.hack//G.U. Last Recode

.hack//G.U. Last Recode

Not enough ratings
How to Modify XP and Damage Scaling in .hack//G.U. Last Recode
By Ivor Tyree
Created by Ivor Tyree, Script by Xande

This guide will show you how to modify XP gain and enable/disable damage scaling in .hack//G.U. Last Recode using a PowerShell script created by Xande found on reddit post. This is especially useful if you want to adjust XP rates to fit your playstyle or tweak damage scaling based on level differences.

   
Award
Favorite
Favorited
Unfavorite
Disclaimer
Before making any changes, back up your game files. Modifying the game files could cause unintended behavior or issues with the game. If anything goes wrong, you can restore your backups or use Steam's file verification feature to recover the original files.
What you'll need
  1. A text editor (e.g., Notepad, Notepad++, etc.).
  2. Windows PowerShell (built into most Windows installations).
  3. The script provided below, which you’ll need to create and run.
Step 1: Create the PowerShell Script
1. Open a Text Editor:
  • You can use any basic text editor like Notepad or something more advanced like Notepad++.
Copy the Script:
  • Copy the following PowerShell script (created by Xande) into your text editor:
$xpOffset = 0x7d4cc0, 0x8fb2d0, 0x9fa140, 0x9d9260 $lvlScaleInstructions = 0xF3, 0x41, 0x0F, 0x59, 0xD8 $lvlNoop = 0x90, 0x90, 0x90, 0x90, 0x90 $lvlScaleAddress = 0x48f695, 0x56b5f5, 0x5744c1, 0x557cb1 $step = 0x4 $xpLR = 0xc3, 0xbd, 0xb6, 0xb0, 0xa9, 0xa3, 0x9c, 0x96, 0x82, 0x6f, 0x62, 0x55, 0x3b, 0x1a, 0x0d, 0x0a, 0x08, 0x06, 0x04 $xpOriginal = 0x96, 0x91, 0x8c, 0x87, 0x82, 0x7d, 0x78, 0x73, 0x64, 0x55, 0x4b, 0x41, 0x2d, 0x14, 0x0a, 0x07, 0x05, 0x04, 0x03 $xpmulti = Read-Host "% of original xp(base 100, 130 for last recode)" if ([string]::IsNullOrWhiteSpace($xpmulti)){ $xpmulti = 100 } $xpmulti /= 100 Write-Host "Enable damage level scaling(Y/n)" $dmg_scale = Read-Host if ([string]::IsNullOrWhiteSpace($dmg_scale) -or $dmg_scale -eq "y", "Y"){ $dmg_scale = "y" } elseif ($dmg_scale -eq "n","N"){ $dmg_scale = "n" } for ($i = 1; $i -lt 5; $i++) { $path = Get-ChildItem .\"hackGU_vol$i.dll" $file = [System.IO.File]::ReadAllBytes($path) for ($j = 0; $j -lt $xpOriginal.Count; $j++) { $file[$xpOffset[$i-1] + $step*$j] = $xpOriginal[$j] * $xpmulti } if ($dmg_scale -eq "y"){ for ($j = 0; $j -lt 5; $j++) { $file[$lvlScaleAddress[$i - 1] + $j] = $lvlScaleInstructions[$j] } } else{ for ($j = 0; $j -lt 5; $j++) { $file[$lvlScaleAddress[$i - 1] + $j] = $lvlNoop[$j] } } [System.IO.File]::WriteAllBytes($path, $file) } Read-Host "Press any button to continue..."
Save the Script:
  • Save the file in the root folder of the game (where the .dll files like hackGU_vol1.dll are located).
  • Name the file:change_xp.ps1
Step 2: Running the PowerShell Script
1. Open PowerShell:
  • Right-click on the Start button and select Windows PowerShell (Admin). You’ll need administrator privileges to modify the game's files.
2. Navigate to the Game Folder:
  • In PowerShell, type the following command to navigate to the game’s root folder (adjust the path if necessary):
cd "C:\Program Files (x86)\Steam\steamapps\common\HackGU\"
3. Run the Script:
  • Once in the game folder, type the following command to execute the script:
.\change_xp.ps1
4. Follow the Prompts:
  • The script will ask for the percentage of XP you want to use. For example, if you want to halve XP, enter 50.
  • You will also be asked whether you want to enable damage level scaling:
  • Enter y to enable level-based damage scaling (damage will scale with character and enemy levels).
  • Enter n to disable it (damage will not scale based on levels).
What Does the Script Do?
XP Multiplier:
  • Adjust the rate at which you gain XP. A value of 50 means you gain XP at half the normal rate.
Damage Scaling:
  • If enabled, damage dealt and received is affected by the level difference between you and your enemies.
  • If disabled, damage remains constant regardless of level differences.
Step 3: Test the Changes
  1. After running the script, launch the game and check if the XP and damage scaling behave according to your preferences.
  2. If you want to undo the changes, you can restore the original .dll files from your backup.
Credits
Script created by Xande.
Guide written by Ivor Tyree.
Troubleshooting
Script doesn’t run?:
  • You may need to change your PowerShell execution policy to allow scripts. In PowerShell, run:
Set-ExecutionPolicy RemoteSigned
  • After running the script, you can revert to your original execution policy:
Set-ExecutionPolicy Restricted
Thanks for coming!
This guide should be enough to create and run the script and adjust the XP and damage scaling in .hack//G.U. Last Recode.

If you encounter any issues, feel free to leave a comment!
10 Comments
Ivor Tyree  [author] 3 Oct @ 4:33am 
The damage it self is not covered in this script
But the scaling is off in original so I'd recommend to set it to no as well
FernandZero 3 Oct @ 1:15am 
Damage was also buffed in the remaster right? Should I bump it down to 50 too?
Thanks for the quick response
Ivor Tyree  [author] 1 Oct @ 8:16am 
Hello there
I'm always happy to help fellow .hackers to relive this adventure like in the old PS2 days
So basicly when it comes to the scaling disabling it will be more like the original one and decreasing the XP multiplier to 50 makes it not as fast but not as grindy as well
From my experience 50 exp multiplier makes it more similar to the original
Hope It's clearer now
If not feel free to reach out to me on DM
FernandZero 1 Oct @ 12:08am 
Sorry to revive this old guide but what are the values I should use to restore Recode to the values it was in the original game? I just feel it was too easy in the new game and fine in the original
DaggerMantle 23 Dec, 2024 @ 3:50am 
I know this is old, but you can run this without messing with the execution policy by using

powershell -ExecutionPolicy Bypass -File .\change_xp.ps1

This method bypasses the execution policy only temporarily and does not change any policy settings.
AstroNinja 13 Dec, 2024 @ 1:21pm 
i already had the game on PS4 and got it on sale just so i can mod it to restore the games original PS2 difficulty, so this might come in handy for that
Ivor Tyree  [author] 29 Nov, 2024 @ 4:22pm 
If you disable it then:
Lower and same levels are gonna be more reasonably difficult
But higher levels may be easier, as the scaling wont kick in and you may even deal more damage to higher level enemies, than with the scaling on.
Zerodramon 29 Nov, 2024 @ 1:36pm 
Little bit confuse. Short asking for more challenge should i disable or enable the damage scalling?
Ivor Tyree  [author] 29 Nov, 2024 @ 12:48am 
Short answer: yes
A little longer but still short answer:
All mobs and npc have stats, and those stats impact is boosted/lowered depending on level diff
If you take out the level diff, they still have those stats, but you will not be as much melted/melting during the fights.

I personally found, that disabling it makes it more like normal MMO
Darkmana 29 Nov, 2024 @ 12:03am 
Thank for this, my question though is how does disabling the level scaling affect the game? I assume it means you can't over-level content, but does that also mean enemy levels matter less, allowing you to fight much higher level enemies?

I'm just trying to have a more balanced/challenging experience.