Page 1 of 1

Days Gone - Broken Road DLC

Posted: Sat Jun 14, 2025 10:42 am
by qwerpy
Days Gone - Broken Road DLC is out, and the other Days Gone tables don't work with it.

I made this quickly to make playing a little easier. It only has:
  • (v.0.1) inf clip ammo
  • (v.0.1) inf medical items (probably needs 2)
  • (v.0.1) inf throwables (probably needs 2) -> (v.0.3) new approach won't go below 1 item
  • (v.0.2) + inf skillpoints (needs at least 1 point)
  • (v.0.3) ++ fuel always set to full
  • (v.0.3) ++ stamina always max
Unfortunately enabling the infinite throwables blocks the death animation, so when the game "freezes" just disable that item and the game will continue.
(v.0.3) I attempted another way but that didn't fix the animation lock-up/freeze. Sorry about that.

I'm a neophyte at this stuff, hopefully others can add to it. cheers.

Re: Days Gone - Broken Road DLC

Posted: Wed Jun 18, 2025 11:34 am
by qwerpy
I just noticed when trying to use the NERO injector, that it sets the health as the same as the stamina cheat.

So, disable the stamina cheat before you get near a NERO box. Sorry about that, like I said, I'm brand new at this stuff.

The code which does the stamina (and health too unfortunately)

Code: Select all

DaysGone.exe+9062C0 - 0F57 C0               - xorps xmm0,xmm0
DaysGone.exe+9062C3 - F2 0F5A C2            - cvtsd2ss xmm0,xmm2
DaysGone.exe+9062C7 - F3 0F11 02            - movss [rdx],xmm0
and looking at the stack trace that takes me back to this block, which the DaysGone.exe+34EABEB is the call into that block above.

Code: Select all

DaysGone.exe+34EABC0 - 48 89 5C 24 08        - mov [rsp+08],rbx
DaysGone.exe+34EABC5 - F3 0F11 4C 24 10      - movss [rsp+10],xmm1
DaysGone.exe+34EABCB - 57                    - push rdi
DaysGone.exe+34EABCC - 48 83 EC 20           - sub rsp,20
DaysGone.exe+34EABD0 - 48 8B 39              - mov rdi,[rcx]
DaysGone.exe+34EABD3 - 4D 8B C8              - mov r9,r8
DaysGone.exe+34EABD6 - 49 8B 00              - mov rax,[r8]
DaysGone.exe+34EABD9 - 48 8B D1              - mov rdx,rcx
DaysGone.exe+34EABDC - 49 8B C9              - mov rcx,r9
DaysGone.exe+34EABDF - 48 63 5F 50           - movsxd  rbx,dword ptr [rdi+50]
DaysGone.exe+34EABE3 - 49 03 D8              - add rbx,r8
DaysGone.exe+34EABE6 - 4C 8D 44 24 38        - lea r8,[rsp+38]
DaysGone.exe+34EABEB - FF 90 30020000        - call qword ptr [rax+00000230]
(with the final line being the call the function above) so [rdx] gets set but I don't know how to determine if it's stamina or health (or focus even).

So, the easiest thing is just to disable the stamina cheat before going near a NERO injector.

Re: Days Gone - Broken Road DLC

Posted: Wed Jun 18, 2025 12:07 pm
by Send
qwerpy wrote:
Wed Jun 18, 2025 11:34 am
...
Read up on compares.

Checked a couple things. Your fuel script for example, no need to push and pop and/or use another register to hold the new value.

Code: Select all

  push eax
  mov eax,40000000   // 2.0f in IEEE-754 hex
  movd xmm0,eax
  pop eax
  movss [rbx+000000D4],xmm0
 

example:
Method 1:

Code: Select all

movss xmm0,[newfuel] // Move our label of 'newfuel' in to xmm0
movss [rbx+D4],xmm0 // Move xmm0 in to [register+offset] of current fuel

newfuel:   // Our custom label
dd (float)2 // The value of our custom label

Method 2:

Code: Select all

movss xmm0,[rbx+offset_of_max_fuel] // Move 'Max Fuel' in to xmm0
movss [rbx+D4],xmm0 // Move xmm0 in to 'Current Fuel'
Method 3:

Code: Select all

movss xmm0,[rbx+D4] // Move 'Current Fuel' in to xmm0
movss [rbx+D4],xmm0 // Move 'Current Fuel' back in to current fuel
Method 4:
Find the instruction that is reducing the fuel, most likely the subss instruction a couple lines above movss [rbx+D4],xmm0. NOP that.