SamiEnazi/infamous2-port
Sobre
inFAMOUS 2 (PS3) as a native PC program for Windows and Linux: Setup recompiles YOUR copy on your PC (static recompilation, Vulkan). No game files included.
Jogos e emulaçãoCrescimento medido de estrelas
- em 24 h
- +5
- em 7 dias
- Coletando histórico
- em 15 dias
- Coletando histórico
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
inFAMOUS 2: native PC port
Your own PS3 copy of inFAMOUS 2, rebuilt as a real PC game for Windows and Linux.
No emulator. Native resolution up to 4K, DLSS, FSR, mods, cheats and any controller.
New in v0.6.4
NVIDIA DLSS and DLAA
NVIDIA's AI upscaling for a sharp, clean picture, or DLAA for the smoothest edges at full resolution. On every NVIDIA RTX card.
AMD FSR
Sharp upscaling and anti-aliasing on any graphics card: FSR 3.1, and FSR 4 on AMD cards that support it. Pick Auto and the game chooses the best one for your card.
HD Texture Pack support
Turn on the HD texture pack for sharper, more detailed surfaces everywhere. The pack is a separate download
(HD texture pack, 894 MB): unzip it into the port's folder (the one with Play inFAMOUS 2.cmd), then turn on
F2 → Graphics → HD texture pack.
Older CPUs are welcome
No AVX2 needed any more. Sandy Bridge, Ivy Bridge, AMD FX and other older processors now run the game: Setup sees your CPU and builds the right version for it.
Up to 14% faster
Up to 14% more frames per second and up to 16% smoother than v0.6.3 on the same PC, plus less input lag and steadier frame pacing.
And much more
- Detail distance: buildings and streets stay detailed much farther away.
- Change resolution and upscaler while you play, no restart.
- Trophy popups in the game, and a trophy page in the menu.
- Lightning colours: paint Cole's lightning in any colour, even black.
- New cheats: all karmic boosts at once, and unlocked powers that stay unlocked.
- Skip cutscene movies: hold START or ✕.
- Less input lag, smoother frame pacing and no more shader stutter when the cache saves.
- Discord status: your friends see your karma rank and time played.
- Big fixes: the freeze after the karma movies, wrong colours in Japanese, Korean and Chinese, "Save failed" on autosaves, the ultrawide HUD blink, black floors after long sessions, and more.
See the difference
Upscalers: native 1080p, FSR, DLSS and DLAA, close up on the same frame.

HD textures: the original textures (left) and the HD pack (right).

Detail distance: Low (left) and Ultra (right): the far buildings keep their full detail.

Resolution: the PS3's 720p (left) and native 4K (right).

Faster than ever
Measured on the test PC (i5-13600K, RTX 2070 Super) with the same save and the same route through the opening, the build Setup makes for you, alternating runs. At 1080p this PC's graphics card sets the pace, so the gain there is smaller.
No game content is included, and none is downloaded. You need your own copy of the game: Setup builds the PC version from it, on your PC. Builds of the game are never shared.
Install in 3 steps
- Download
Setup.exefrom the latest release and put it in a folder on a local drive, for exampleC:\Games\inFAMOUS2. - Run it and pick your game: its folder, a disc image (
.iso) or a PSN package (.pkg). Use the button or drop it on the window. Setup says which game it is before anything is downloaded. - Press Install, wait, press Play.
That's all. No RPCS3, no Git, no Python, no Visual Studio, no admin rights, and nothing is installed into Windows. Setup downloads about 150 MB from GitHub (the port and its own tools) and 433 MB from Sony's servers (the game's 1.04 update and the PS3 system software, the same files a PS3 downloads), copies your game into the port's folder and builds it once. On the test PC the whole install took 12 to 15 minutes.

Linux and the Steam Deck: the next section. More detail on copies and keys: FAQ.
Install on Linux and Steam Deck
It is meant to work the same on any 64-bit Linux (SteamOS, Bazzite, Ubuntu, Fedora, Arch, ...; tested on a Steam Deck and Ubuntu 22.04), with nothing to install first and no password: everything the build needs is downloaded into the port's own folder. Your PC needs a 64-bit CPU (with AVX2 for the faster build; without it the version for older processors is built, new and not yet tried on Linux), a graphics driver with Vulkan (Mesa or NVIDIA's; desktops have it already) and a Linux from 2022 or later (glibc 2.35: Ubuntu 22.04, Debian 12, Fedora 36, SteamOS 3.5 and newer). On a Steam Deck, switch to Desktop Mode first.
- Download
inFAMOUS2-port-v…-Linux-x64.zipfrom the latest release and unpack it where the game should live, for example~/Games/inFAMOUS2(on a Deck: the internal storage, with about 10 GB free). - Double-click the program Install inFAMOUS 2 in that folder. If the desktop asks whether to run it, choose
Execute / Run.
GNOME (Ubuntu, Fedora Workstation): if the file manager does not start it, right-click it and choose
Run as a Program, or open a terminal in the folder and type
bash tools/install_gui.sh. Without zenity or kdialog the installer asks its questions in a terminal window. - The first window says what the install does, with two boxes, both ticked: Optimise for this PC (see below) and Add to Steam (shown when Steam is installed). With Add to Steam you can change the name the game gets in your Steam library. Press Install.
- Your game folder. The one in RPCS3's game list is offered (EmuDeck:
Emulation/roms/ps3/…, also on the SD card); press Use it, or Choose another and pick the folder that holdsPS3_GAME. - How to use it:
- Use the game from its folder (the default): nothing is copied, which saves about 14 GB. The game only reads that folder and never changes it, so it has to be there whenever you play: keep the SD card in. If it is missing, Play says so; put the card back in and start again.
- Copy the game into this folder: about 14 GB more and a few minutes longer. Afterwards the port needs nothing outside its folder, the SD card can go, and the folder can be moved anywhere.
- Wait while it builds. A window shows each step and the minutes so far. On a Steam Deck the whole install takes about 25 minutes, or about 40 with Optimise (copying the game adds about 4). With Optimise, a game window opens in the middle and plays by itself for about 7 minutes, with the sound off: don't touch it or close it.
- With Add to Steam: Steam has to be closed for a moment, because it rewrites its list of games when it exits. The installer asks to close it (or waits until you have), adds the shortcut, and tells you to start Steam again.
- Press Play now. Later, double-click the program Play inFAMOUS 2 in the same folder (no Steam needed), start inFAMOUS 2 (PC port) from the application menu, or, with Add to Steam, start it from your Steam library, also in Game Mode. Before the game is built, Play inFAMOUS 2 starts the installer.
Add to Steam adds one non-Steam game that starts this folder's tools/play.sh, with artwork made from your
game's own icon and background (PS3_GAME/ICON0.PNG, PIC1.PNG). It only ever adds an entry: your other shortcuts
are not changed, a name that is already taken gets another one (you are asked), and Steam's list is copied to
shortcuts.vdf.bak-<time> first. If you move the port's folder, add it again (installer menu: Add to Steam).
Optimise for this PC (PGO): the game is compiled once with counters, plays a new game by itself, and is compiled again with what it learned on your PC. The new game is the same for every copy and every region: the title, the opening, and the tutorial on the pier played the way it asks (look around, run to the gate, blast it open, on toward the disturbance). On Linux both the game code and the engine are optimised (on Windows only the game code: the engine comes prebuilt). On a Steam Deck that made a busy street about 9 % and a plaza about 7 % faster. If any part of it fails, you get the normal build. The profile stays on your PC.
DLC is found by itself when it is installed in RPCS3. Without RPCS3, put the DLC's unlock files (*.edat)
into the dlc folder in the port's folder: they are picked up at the next start.
Double-click Install inFAMOUS 2 again at any time to play, rebuild (after an update, or to repair it), optimise, or add it to Steam. Your saves and settings stay.
For the best performance on a Steam Deck, set the GPU clock to 1100 MHz: in Game Mode, open Quick Access (…) → Performance → Advanced view → Manual GPU clock control → 1100 MHz, ideally with "Use per-game profile" on for this game. The Deck's CPU and GPU share one 15 W budget. Above about 1100 MHz the GPU takes power the CPU needs, and the game gets slower and less steady: on a busy street, 1400 MHz was 5-7 % slower than 1100 and 1600 MHz about 10 % slower. 1000-1200 MHz were about the same.
Every change in v0.6.4
The full list (new, faster, fixed)
New
- Upscalers (F2 → Graphics): Upscaler Auto (the default: DLSS on NVIDIA RTX cards, else FSR), FSR 1, FSR (AMD FSR 3.1, or FSR 4 on AMD cards that have it) and DLSS; Upscaler quality: Off, DLAA / native (100%), Ultra Quality, Quality, Balanced, Performance. DLAA draws the game at your window's size and uses DLSS or FSR only to smooth the edges (#147, #26). The game has no motion data for people and effects, so those can look a little rougher while they move.
- Resolution and upscaler change in the running game, no restart.
- HD texture pack support (F2 → Graphics → HD texture pack, or Setup's checkbox): sharper textures from the HD
pack, a separate download into the port's
hdtexfolder. Smaller graphics cards load each texture at a lower size. - Trophies: a popup with the trophy's icon, grade, name and description when one unlocks, and an F2 → Trophies page.
- Detail distance (F2 → Graphics): Low / Normal / High / Ultra moves the game's level-of-detail distances out, so buildings keep their detailed models farther away (#42, #149).
- Skip cutscene movies: hold START or ✕ (or Enter, Esc, Space) for half a second; a ring fills while you hold.
- Depth of field at the render resolution (F2 → Effects, off by default): the background blur in cutscenes is smooth instead of blocky (#136, by legentus, #138).
- Lightning colours (F2 → Cheats): the inside and the outline of Cole's arcs, for good and evil karma, plus his power particles, fingertip and hand glows, the HUD meter and the karma ring. Black and your own hues too.
- New cheats: All karmic boosts (all six at once, whatever your karma; #85, from bungholio's patch), and Unlock all powers now survives saves and reloads (#102).
- inFAMOUS 1's trophies count for "Continue your story" when its unlocks are on your PC: a
trophies/NPWR00660.json, or an RPCS3 trophy folder (#49, from 3941701's patch). - Older processors: the port now runs on CPUs without AVX2 (Sandy Bridge, Ivy Bridge, AMD FX and similar). Setup sees it and builds a version for them: slower than on an AVX2 CPU, but it plays (#15). Tested by making the test PC act as such a CPU; no real one yet, so reports are welcome.
- The F2 menu: named groups, fully usable with a controller, bigger text.
- Discord: F2 → About → Show on Discord shows "Playing inFAMOUS 2" with the box art, your karma rank and the time played.
- World map panning with a controller, WASD or the mouse (#112, by legentus); a second controller button for each control (#129); live mods switch on and off without a restart (#109, by legentus); the sound follows Windows' default output device (#113, by legentus).
Faster and smoother
- Up to 14 % faster than v0.6.3, and the slowest 1 % of frames up to 16 % faster: 241 fps against 211 at 720p (slowest 1 %: 225 against 194), 194 against 183 at 1080p, on the test PC (i5-13600K, RTX 2070 Super), same save, same route through the opening, the build Setup makes, alternating runs. Less work per frame for the main thread, the PS3 job system and the drawing, a native draw path for most of the game's scenery, and a better-trained optimised engine.
- Less input lag: about 2.5 ms less from button to screen uncapped, about 4 ms less at a 60 fps cap.
- Shaders: "Preparing shaders: N of M" while they build, the important ones first, and a freeze of about a second when the shader cache was saved is gone.
- One game frame in about 700 was never shown (a micro-stutter), and single white, brown or black frames flashed: both fixed.
Fixed
- Freeze after the karma rank-up movies (#94): the port sometimes ran the wrong piece of the game's audio code on the sound processor, which stopped the game. Audio jobs now always get the code they ask for.
- Rainbow colours and about 30 fps with Japanese, Korean or Chinese text (#117).
- "Save failed" on autosaves, which came and went between starts (#99).
- Floors going black after a long session, and the black fog (#115, #38; #111 by legentus).
- Ultrawide (21:9, 32:9): the blinking HUD (#105, #47).
- A green line around movies (#134, by legentus, #137).
- Setup:
- Settings load and save when the game is started through its .exe (#121); a desktop shortcut you deleted is not made again (#75, #110).
- HUD: the minimap and meters no longer wash out to white, and the pause menu's Powers list is no longer black.
- Striped ice (our lightning-colour cheat recoloured textures the ice shares).
- Linux and Steam Deck:
- Deck performance work, the wide-picture flicker fix, the optimising installer and Steam shortcut (#119, by karellopez).
- No more crash at start with a controller on Bazzite / SteamOS (#120, #122, #132; #130 by gwennocas).
- An update now really rebuilds the engine (#95).
- RecompLauncher runs
setup.sh(#148, by Xarishark).
Earlier versions
v0.6.3, v0.6.2, v0.6.1, v0.6.0
v0.6.3
A hotfix.
- The freeze in "Powering Up Flood Town" is fixed (#87, #88): the picture stopped while the sound went on. Other freezes of the same kind are fixed with it, and if the game ever waits on work that nobody is doing, it now notices after a second and carries on.
- "Optimise for this PC" works again (#90). In v0.6.2 its training run ended after 40 seconds and Setup built the game without it.
- Setup no longer stops with "Cannot bind argument to parameter 'Path'" (#89) when the RPCS3 folder an older install took the game from has been removed. Pick your game again and it is copied in.
- No more freezes of up to a second when the game checks the controllers. They came with Bluetooth controllers, most of all when one reconnected.
- Esc pauses the game (the game's own menu, START), and F2 alone opens the port's menu. Enter no longer
pauses and is free to bind in F2 → Controls. Your
input.tomlfollows by itself, unless you had changed the pause key. F2 or Alt+Tab frees the mouse.
v0.6.2
A stability update.
- Windows: no Visual C++ runtime needed. On a PC without it the game did not start ("MSVCP140.dll was not found"). The game now carries what it needs.
- Linux: the game's window opens on Wayland (#54, #44); Setup's folder question no longer becomes the folder; and Setup stops, and says what to do, when the game would be built without its shader translator and draw nothing (#61, #69).
- Direct mouse: a fast flick turns the camera 1:1 (#59): the whole turn at once, nothing after the mouse stops. And the Alt keys can be bound (#68).
- Low-end PCs: the start notice names the 720p picture it chose (#73).
v0.6.1
- Windows 10: Setup installs again. v0.6.0 stopped on Windows 10 with "unpacking llvm-22.1.8-slim-win-x64.7z
failed: tar.exe: LZMA codec is unsupported" (#62, #70): it used Windows'
own tar.exe, and only Windows 11's can read that file. Setup now unpacks its compiler with its own Python and
needs nothing from Windows for it. If v0.6.0 stopped there for you: get this
Setup.exeand run it in the same folder, or just press Try again. - DLC is picked up (#56, #48): Setup copies your DLC's unlock files
from RPCS3 when it has them, and files you put in the port's
dlcfolder are used at the next start (FAQ).
v0.6.0
Install
- One small Setup, one pick. About 85 MB from GitHub instead of 1.3 GB of build tools, and no Microsoft license to accept.
- No RPCS3 needed. The update and firmware come from Sony's servers.
- PSN copies and encrypted disc images are supported, new in this version: a PSN copy with your
.raplicense, an encrypted disc image with its disc key file. - A progress display that always moves: each long step says in plain words what it is, how far it is and about how many minutes are left.
- Fully portable. Your game is copied into the port's folder (about 9 GB), and settings, saves, mods and the shader cache live there too. Copy the folder to another drive or PC and it plays.
- Any folder name works:
&,%,!,',( ),[ ], other alphabets, very long paths (#34, #19, #41).
In the game
- A new F2 menu over the live game: see below.
- Sharper shadows: the sun's shadows are drawn at twice the PS3's resolution by default, with a 4x option.
- MSAA 2x / 4x as an option. Off by default: it costs a lot of GPU time (4x: about 40% of the frame rate at 1080p on the test PC).
- Mesh trimming is off by default: whole meshes are drawn, so nothing small goes missing.
- Faster, most of all on small CPUs: Performance.
Linux
./setup.shnow works on distributions that keep their libraries inlib64(Fedora, openSUSE), stops with a clear message when glslang could not be built, and NixOS has its own environment file (#64, the first community pull request, thanks to ANewJanuary).
Fixed
- The digital (PSN) version's own folder is taken directly (#40).
- 16:9 on an ultrawide screen keeps its shape with black bars (#35); the wide picture no longer flickers to 16:9 (#47).
- The window can be resized, and F2 → Display → Capture-friendly window helps Lossless Scaling and OBS (#51).
- The game's first-start HDD install finishes properly (it was made again at every start).
- AMD Radeon RX 7000 / 9000 with an Adrenalin driver older than 26.6.1: the game says so once.
Known limits of this version
- AMD graphics cards keep the earlier, conservative graphics path: the new GPU-side optimisations are off there until they are tested on AMD hardware. The CPU-side gains apply.
- Linux: this version was built and run by us on one Linux PC only (Ubuntu 22.04, Radeon RX 550, RADV). Other distributions and graphics cards: please report.
Setup.exeis not code-signed, so Windows or an antivirus may warn about it (FAQ).
Every version and its changes: Releases.
The F2 menu

Press F2 (or hold L3+R3) while you play:
- The game stays visible behind a panel on the left.
- One icon per page: Display, Graphics, Audio, Controls, HUD, Lighting, Effects, Mods, Update, Trophies, Cheats, About. Change page with L1 / R1, Q / E, or a click.
- Presets on the Graphics page: Standard and Low-end PC. Change anything and it becomes Your mix.
- One line of help per setting: what it does, what it costs, and whether it applies at once or after a restart.
- A PS3 | YOURS compare line for the picture settings: drag it across the screen to see the PS3's picture beside yours. Hold F3 for the whole PS3 look.
- About: the version, the project page, and the people who support the port.
- Two themes: Hero (blue) and Infamous (red).
Performance against RPCS3
Everything here was measured on one test PC on 17 Nov 2026: i5-13600K, RTX 2070 Super, 32 GB, Windows 11. The game drew at 720p internal (the PS3's own resolution) on both sides, uncapped, with the build Setup makes.
Against RPCS3
Same PC, same save, same spot (the city dock right after loading): RPCS3 0.0.42 ran at 43 fps, this port at 147 fps: 3.4x. In the three lighter views from the same spot it is 3.6x to 4.9x (up to 251 fps against 51). RPCS3 ran with its default settings (LLVM recompilers, Vulkan, 100% resolution scale), with its frame limit and VSync off so it is uncapped too; the settings RPCS3's own database recommends for this game were slower (31 fps), so they were not used. Medians of 3 runs.

On a smaller CPU
The same spot with the test PC held to fewer cores, average fps:
| CPU limit | RPCS3 0.0.42 | Previous version | v0.6.0 | v0.6.0 against the previous version |
|---|---|---|---|---|
| Whole CPU (20 threads) | 43 | 120 | 147 | +23% |
| 4 cores / 8 threads | 28 | 84 | 109 | +30% |
| 4 cores / 4 threads | 6 | 63 | 110 | +75% |
| 2 cores / 4 threads | 7 | not measured | 74 |
- On 4 cores / 4 threads the port went from 63 to 110 fps. RPCS3 is not playable there on this PC (6 fps).
- These rows are the i5-13600K held to its fast cores by process affinity, not a real old 4-core PC. No real low-end PC was measured: if you play on one, your numbers in an issue are welcome.
- "Previous version" is v0.6.0's Setup with the engine of v0.5.7.
- A browser and other programs were open during the runs (0.2 to 0.5 cores); the runs repeat within 1-3%.
- The average is higher everywhere, but the slowest 1% of frames at the whole CPU is not better than before (84 fps against 95), so this version does not claim to be smoother.
At native 1080p with the default picture settings, where the graphics card does more of the work, v0.6.0 is 9% and 12% faster than the previous version in the two heaviest city views, and 2.5% to 19% in the opening fight.
Story videos and cutscenes run at 30 fps in both, as on the PS3.
What you get
- Native 1080p and up: F2 → Graphics → Internal resolution: 720p / 1080p / 1440p / 4K, with SMAA, FXAA or MSAA, NVIDIA DLSS and DLAA, AMD FSR, and sharpening; resolution and upscaler change in the running game.
- HD texture pack support: sharper textures with the HD pack (a separate download).
- Any controller, plug and play: Xbox, DualShock 4, DualSense, Switch Pro, 8BitDo and every pad in the community SDL_GameControllerDB. The button pictures follow what you play with. Every button and key can be remapped in F2 → Controls.
- Direct mouse aiming: the mouse turns the camera directly, as in a PC game, with separate sensitivity for aiming.
- Enhanced lighting: soft, sharper sun shadows, full-resolution ambient occlusion, smooth light gradients. F3 flips to the original PS3 look.
- HD fire, smoke and effects: drawn at full resolution instead of the PS3's 512×288, plus texture packs.
- Widescreen: 21:9, 32:9 and 16:10. You see more at the sides, nothing is stretched.
- Cheats (F2 → Cheats): invincibility, infinite energy, super jump, karma rank, all karmic boosts, unlock all powers, one-hit kills, longer glide, black lightning, saved spots (F7) and more.
- Mods: see below.
- Save manager: every save with its picture, mission, completion and date; New Save Data, overwrite, delete.
- Trophies: the game's 52 trophies unlock as on a PS3, with a popup and an F2 → Trophies page, and Playnite and RecompLauncher can read them.
- Languages: F2 → Audio → Language picks voice and text separately, from what your disc has.
- Field of view slider, detail distance, depth of field switch, a frame rate cap, an fps counter (F1).
- Discord: shows the game, your karma rank and the time played (F2 → About).





Trophies in Playnite and RecompLauncher
The port keeps its trophies in game\gamedata\trophies\NPWR01730.json and also writes them the way RPCS3 does,
in game\gamedata\dev_hdd0\home\00000001\trophy\NPWR01730_00\, so trophy trackers made for RPCS3 can read them.
Playnite (Playnite Achievements or SuccessStory). Both look for an emulator with RPCS3 in its name, so the port gets one:
- Library → Configure Emulators → Add: name it
RPCS3 inFAMOUS 2 port, installation folder<port folder>\game\gamedata, and one custom profile whose executable is<port folder>\Play inFAMOUS 2.cmd. - Add the game by hand: installation folder
<port folder>\game\disc\PS3_GAME, and a play action of the Emulator type with that emulator and profile. - Playnite Achievements: turn on its RPCS3 source. SuccessStory: Settings → RPCS3 → turn it on and add
<port folder>\game\gamedata\dev_hdd0\home\00000001as a home user folder. - Start the game once (the folder is made then), then refresh the game's achievements.
Already set up for RPCS3? Add PS3_TROPHY_RPCS3_DIR=<your RPCS3 folder> to settings.ini and the port also
copies its unlocks into RPCS3's own trophy folder for the game. It never locks anything or moves a date later
there, and it keeps a copy of RPCS3's file once (TROPUSR.DAT.port-backup).
RecompLauncher: started from RecompLauncher, the port reports each trophy to Recomp Achievements. A cheat that changes play makes the session's later unlocks Casual. Picking or saving a spot and the Lightning colours don't.
What you need
- Your copy of inFAMOUS 2. Confirmed by players: the Europe disc (BCES01143), the Turkey disc (BCES01229) and
the US disc (BCUS98125), and the digital (PSN) version 01.03 (NPUA80638 / NPEA00318). In one of these forms:
- the game's folder (the one that holds
PS3_GAME, or the PSN version's own folder) - a disc image (
.iso) - a PSN package (
.pkg)
- the game's folder (the one that holds
- A PC with: Windows 10/11 64-bit (or Linux), a 64-bit CPU with SSE4.2 (AVX2, Intel 4th gen / AMD Ryzen or newer, is faster; older ones get a slower build), a Vulkan graphics card, 16 GB RAM, about 16 GB free disk space on a local drive (not a network drive).
- Internet for the install: about 150 MB from GitHub and 433 MB from Sony.
Tested PCs: the test PC above at 1080p to 4K; players on Windows 10 and 11 up to an RTX 5070 at 1440p; Linux on Ubuntu 22.04 with a Radeon RX 550 (RADV), and a player's Steam Deck (#24).
Linux and Steam Deck
The port builds and runs natively on Linux, with no Wine or Proton. There is no Setup.exe on Linux: ./setup.sh
does the same job, and needs no RPCS3 either.
The easy way: the installer, see Install on Linux and Steam Deck.
In a terminal: unpack the zip and run ./setup.sh (./setup.sh --pgo = Optimise for this PC). The first time it
asks for your game folder, gets the update and firmware from Sony's servers, copies the game into the port's folder
(--link-game: uses it where it is instead, no copy), builds it, then starts it. After that, ./setup.sh just plays.
Or from git:
git clone https://github.com/SamiEnazi/infamous2-port
cd infamous2-port
./setup.sh # or: ./setup.sh --disc <your game folder>
- Nothing to install, on any distribution:
tools/setup.shdownloads its whole build environment into the port'stools-cache/(each file pinned to a version and SHA-256 checked; about 2 GB, nothing outside the folder): LLVM 22.1.8, CMake, Ninja, a portable Python 3.14, the C/C++ headers and libraries (a sysroot made of Ubuntu 22.04's glibc 2.35 and GCC 12 packages, so the game builds the same everywhere and runs on any glibc 2.35 or newer, with the C++ library linked in), SDL2 (Valve's Steam Runtime build, put beside the game) and the Vulkan headers. It checks only what cannot be downloaded: an x86-64 CPU (AVX2, or SSE4.2 for the older-processor build), glibc 2.35 or newer, a Vulkan driver and free space. Unlike Windows, it builds the engine itself: there are no prebuilt Linux tools yet. - Fedora, openSUSE and other
lib64distributions work since v0.6.0 (#64). - NixOS: build and play inside the FHS environment in
tools/nixos/fhs-env.nix(the commands are at the top of that file). Tested by its author on NixOS 26.05 with a Radeon 780M. - Steam Deck (SteamOS 3.5 and later): the installer or
./setup.shin Desktop Mode, nothing to install first, the same as on any other distribution. If the build environment cannot be downloaded or does not work, setup falls back to the way before it: SteamOS's own glibc, linux-api-headers and gcc packages (from Valve's package mirror, SHA-256 checked; #81). A game built inside a Distrobox container is started from that container too (distrobox enter <name> -- <port folder>/setup.sh, #24). - v0.6.0 on Linux was built and run by us on Ubuntu 22.04 with a Radeon RX 550 (RADV): it installs, starts and plays there (slowly: that card is the limit). The frame rates in this section were measured on a Steam Deck; no frame rate is claimed for other Linux PCs. Please report how it runs on your distribution and GPU.
Updates
- When the game starts it asks GitHub whether a new version is out (in the background, at most every 6 hours;
offline it just starts). F2 → Update shows what's new and installs it. Your saves, settings, mods and
controls are kept, and the saves are copied to
saves-backup\first. - An update rebuilds only what changed, so it takes minutes.
- From v0.5.x: F2 → Update (or
Setup.exeon your folder) moves the install to the new layout. It deletes the old 2 GB of build tools and copies your game folder into the port's folder (it asks once and shows the size; your folder is not changed). - F2 → Update → Check for updates automatically turns the check off, and with it the supporters list of the About page. Nothing about you or your PC is sent.
- A copy installed by RecompLauncher is updated by RecompLauncher.
Playing
Start with Play inFAMOUS 2.cmd or the desktop shortcut. For Steam, Playnite and other launchers, add
work\port\build\Infamous2Recomp.exe from the port's folder; Steam Input and the Steam overlay work.
| Key | Action |
|---|---|
| F1 | fps counter |
| F2 (or hold L3+R3) | the port's settings menu |
| Esc | pause: the game's own menu (START) |
| F3 | your picture vs the original PS3 look |
| F7 | go to your saved spot |
| F9 | mark a moment in the session log (a stutter, a glitch) |
| Alt+Enter | fullscreen |
Keyboard and mouse: WASD to move, mouse for the camera, right button to aim, left button to shoot, Space = ✕, Shift = ○, F = □, Q = △, Esc = pause. A click in the game holds the mouse; F2 or Alt+Tab frees it. Remap anything in F2 → Controls → Buttons and keys (Enter is free to bind: it was pause before v0.6.3).
Mods
The community's inFAMOUS 2 mods made for tiffsomniac's inFAMOUS Mod Manager work as they are (whole files, texture patches, xpps patches, and mods with options).
- F2 → Mods → Add a mod from a zip takes the zips in your Downloads folder (only mod files are taken out,
never a program), or unzip a mod into the
modsfolder yourself (mods\<mod>\mod.json). - No Unlocker and nothing to install: your game files are never changed.
- Turn each mod on or off and pick its options in F2 → Mods, then Restart to apply.
- When two mods change the same file, Use this one instead picks the winner.
How it works and the mod format: engine/docs/MODS.md.
FAQ
Do I need RPCS3? No. Since v0.6.0 Setup gets the game's update and the PS3 system software from Sony's servers itself. If RPCS3 is on your PC and already has them, Setup copies them from there instead, and that is all it is used for.
I have the PSN (digital) version.
Pick its folder (NPUA80638 / NPEA00318) or its .pkg. It is unlocked with your own license, the .rap file:
put <CONTENT_ID>.rap beside the game and it is found by itself, otherwise Setup asks for it. No license is
shipped with the port. PSN support is new in this version and was made without a real PSN copy on the test PC, so
if Setup stops, please report it with Setup's log (Details → Copy log).
My disc image (.iso) is encrypted.
A decrypted image is read directly. An encrypted one (a raw copy of the disc) needs its disc key, a .dkey or
.ird file: put it beside the image with the same name (game.iso + game.dkey), otherwise Setup asks for it. A
3K3Y image carries its key. No key is shipped with the port. New in this version.
Windows or my antivirus warns about Setup.exe.
Setup.exe is not code-signed, because signing a program costs money. So Windows SmartScreen or an antivirus may
warn about it, as they can for any new, unsigned file. On the Windows message, click More info, then Run
anyway. The source is open (tools/setup_exe/ in this repository), and here is the VirusTotal scan of this
release's Setup.exe: https://www.virustotal.com/gui/file/648c45ed01ec7c697f95e1e789790badfca6c42ed236c5d66f3bd5c4756731ac
Does DLC work?
Yes, when its unlock files are in the port's folder. inFAMOUS 2's DLC (the extra skins, amps and powers) is a set
of small unlock files, dev_hdd0\game\<your game's ID>\USRDIR\dlc\ulf\unlock_*.edat; the content itself is
already in the game. A game copy that carries them (a PSN folder with the DLC installed) brings them along. From
v0.6.1 Setup also copies them from RPCS3 when it is on your PC and has the DLC installed, on install and on every
update (added DLC to RPCS3 later? run Setup again). And there is a dlc folder in the port's folder: put the
.edat files there and they are picked up the next time the game starts. The DLC must be for the same version
(region) of the game as your copy. DLC that needs a license (.rap) is not supported yet.
Where are my saves and settings?
All in the port's folder. Saves: game\gamedata\dev_hdd0\home\00000001\savedata, backed up to saves-backup\
before every session. Settings: settings.ini, mods.ini, spots.ini, and your controls in input.toml.
Can I move the folder?
Yes. Move or copy the whole port folder to another drive or PC and start Play inFAMOUS 2.cmd. The desktop
shortcut is made again by itself.
How do I uninstall?
Delete the port's folder and the desktop shortcut (copy your saves out first). Nothing was installed into Windows.
Your original game is never touched. Only if you used a version before v0.6.0: also delete
%APPDATA%\inFAMOUS2-port and %LOCALAPPDATA%\inFAMOUS2-port.
The game looks or runs wrong.
Please open an issue and attach the newest play\<date-time> folder: it holds the frame times,
your F9 marks and every long frame with what the game was doing.
Contributing
- Bug reports with the session's
play\<date-time>folder are the most useful thing. - Test reports are wanted for: AMD graphics cards, Linux distributions, a real PSN copy, an encrypted disc image, and old or small CPUs.
- Pull requests are welcome and are reviewed by the owner before they are merged. The first one, #64, is in v0.6.0.
- Never post game files, keys, licenses or builds of the game.
Without Setup.exe (git)
git clone https://github.com/SamiEnazi/infamous2-port
Then run Setup.cmd, or from PowerShell:
tools\setup_build.ps1 -Source <your game folder, .iso or .pkg> [-Rpcs3 <your RPCS3 folder>] -Cleanup
Updating later is the same (git pull first). -Cleanup keeps the tools and build files, so only what changed
is built again. -NoBuildCache deletes them too.
Your own decryption tool (advanced)
Setup hands the game's 1.04 EBOOT.BIN and three firmware modules to a decryptor, by default ps3tool
(tools/ps3tool.py), and checks that what comes back is a decrypted program. To use another tool, put a line
like this in config.local.json in the port's folder:
"decryptor": "\"C:\\Tools\\mydecrypt.exe\" \"{in}\" \"{out}\""
{in} is the encrypted file and {out} where the decrypted one must go.
Supporters
The port is free. If you'd like to support the work, you can here: paypal.me/samiEnazi. Supporters and contributors are listed in the game, in F2 → About.
Contributors: ANewJanuary (Linux setup, #64); legentus (movie border fix, depth of field resolution, map panning, live mods, audio output, GPU light; #137, #138, #112, #109, #113, #111); karellopez (Steam Deck performance, #119); gwennocas (the Linux controller crash, #130); Xarishark (RecompLauncher on Linux, #148); 3941701 (inFAMOUS 1 trophies, #49).
How it works
- ps3recomp translates the game's PowerPC (PPU) and SPU code, and three PS3 firmware modules from your download of the PS3 system software, into C/C++. The small clang + lld compiler Setup brings then compiles it on your PC.
- The engine is prebuilt: it is a release asset with no game code in it.
- The engine's runtime stands in for the PS3 system (files, threads, audio, input, saves, system dialogs), draws the PS3 graphics chip's commands with Vulkan at any internal resolution, and runs the game's heaviest PS3 helper jobs as plain PC code on all cores.
| Folder | What it is |
|---|---|
engine/ |
The engine: the recompiler (engine/tools/) and the runtime (engine/runtime/, engine/libs/). It started as sp00nznet's ps3recomp and is maintained here now. MIT, engine/LICENSE. |
base/ |
The port base: Erik Martins' infamous2-recomp as he published it (commit 8077cda). MIT, base/LICENSE. |
patches/port/ |
Our changes to the port base's files, applied to its copy at build time. |
port_src/ |
Files we add to the port. |
cheats/ |
The game side of the cheats and of the mouse camera. |
natives/ |
Native versions of the game's heaviest SPU jobs. |
tools/ |
The build, Setup, tools/play.ps1, and the tools used to test it. |
Thanks and credits
This port stands on other people's work:
ps3recomp by Ned Heller / sp00nznet and its contributors, and Noah Peterson's fork: the recompiler and runtime this port is built on (MIT, Copyright (c) 2026 Ned Heller / sp00nznet). This project started from it and our fork of it (SamiEnazi/ps3recomp, up to v0.4.2); since v0.5.0 that engine is the
engine/folder of this repository and is maintained here, with its full license inengine/LICENSEand its contributors inengine/CONTRIBUTORS.md.erikomis/infamous2-recomp by Erik Martins: the inFAMOUS 2 port this one started from, and the camera patch behind widescreen (MIT, Copyright (c) 2026 Erik Martins). It is the
base/folder of this repository (his commit 8077cda, unchanged), with its license inbase/LICENSEand its credits inbase/CREDITS.md.ThiagoFraga761/infamous2-pc: the Vulkan SSAO and lighting passes and Windows groundwork we adopted, the texture-cache and buffer-growth ideas behind the freeze fix, and the idea of giving the game's Edge geometry code the real picture size (MIT). Also the native versions of the game's heaviest SPU jobs in
natives/spu/: the Edge geometry kernels (skinning, culling, vertex decompression), the BSP polygon clipper and the render-list builder are ports of hisedge_kernels_native.c,job220_native.candec5f_native.cto this game version (MIT, Copyright (c) 2026 the infamous2-recomp contributors; his notice is kept in each file), with AVX2 paths added here. They are what makes the port fast on 4- and 6-core CPUs.SIMDe (MIT): the 68 headers the Edge kernels need are in
natives/spu/simde-0.8.2/, with its license.bungholio and the ArtemisPS3 cheat-code collection: three of the cheats (jump height, AI speed, enemies hold fire) are their codes for this exact game version, turned into menu switches, their "Hold L2 + X To Fly" code led us to the game's glide physics, and their "Have All Powers" and "Can Use All Powers" codes to the game's power state (see
cheats/NOTES.md). bungholio's RPCS3 patch "All 6 Karmic Boosts Are Active At The Same Time" is the cheat "All karmic boosts", re-made as a run-time hook.L_: the RPCS3 patches "Black Lightning", "Static Thrusters - Flight" and "Static Thrusters - Fast" for this exact game version. On the port they are re-made as run-time hooks with the same effect (F2 → Cheats; how in
cheats/NOTES.md).tiffsomniac: the inFAMOUS Mod Manager and its mod format (whole files, texture and xpps patches, options). The port reads these mods as they are (F2 → Mods); its own code, written from the format.
Yahfz: the RPCS3 community patch "Disable Mesh Trimming" (one instruction word in the game's Edge geometry SPU program), which first showed why faces get holes above 720p. F2 → Graphics → Mesh trimming: Off: whole meshes (the default since v0.6.0) is Yahfz's patch; At the render resolution keeps the game's culling but at the real picture size, so no holes and a little faster; The PS3's 720p culling is the original.
RPCS3 and its team. Until v0.6.0, RPCS3 decrypted the game and firmware for Setup. It was also our reference while building the port: we compared our output against it, and its research and wiki taught us much of what we know about the PS3. No RPCS3 code is included here (RPCS3 is GPL).
Third-party libraries used by the build, each under its own license:
- SDL2 (zlib)
- Vulkan-Headers (Apache-2.0)
- glslang (BSD-3 and others)
- Dear ImGui (MIT)
- SMAA (MIT)
- AMD FidelityFX FSR 1 / CAS and FSR 2 (MIT)
- AMD FidelityFX FSR 3.1 / 4: AMD's
amd_fidelityfx_*_vk.dll, shipped beside the prebuilt engine, are AMD's, under AMD's FidelityFX SDK license (amd_fidelityfx_LICENSE.mdnext to them), not this project's license. - NVIDIA FXAA 3.11
- NVIDIA DLSS: the port uses NVIDIA's DLSS SDK. Its
nvngx_dlss.dll, shipped beside the prebuilt engine, is NVIDIA's, under the NVIDIA DLSS SDK license (nvngx_dlss_LICENSE.txtnext to it), not this project's license. - SDL_GameControllerDB (zlib)
- at3_standalone (LGPL-2.1)
- Recomp Achievements (its own license: free for games, not MIT; it bundles rcheevos and cJSON, both MIT)
Their license files are in
engine/third_party/.
Legal
This is a fan project for people who own the game. It is not affiliated with or endorsed by Sony Interactive Entertainment or Sucker Punch Productions. inFAMOUS is a trademark of Sony Interactive Entertainment LLC. The screenshots show the game running on this port and in RPCS3, for comparison.
This repository contains no game assets, firmware or keys, and no game code beyond the addresses and the few instruction words the cheats switch, taken from public community codes. Everything else game-specific is read from your own copy on your own PC. Do not share builds of the game, or files taken from it.
The code in this repository is MIT-licensed (see LICENSE). The engine (engine/, from sp00nznet's ps3recomp)
and the port base (base/, Erik Martins' infamous2-recomp) keep their own MIT licenses and copyright notices
(engine/LICENSE, base/LICENSE). The libraries in engine/third_party/ keep theirs;
engine/third_party/rl_achievements is under the Recomp Achievements License 1.0, not MIT. The third-party
libraries the build downloads keep their own licenses.
Explore projetos relacionados
Carregando…