Page 1 of 5

[COMPLETED] Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 3:37 pm
by Erlkonig
The game is already out, but it uses Denuvo so it probably has anti-tamper measures that make it problematic to use Cheat Engine, just like Monster Hunter: World. Would it be possible to get someone to make a table with an infinite CP or AP cheat?

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 3:45 pm
by NumberXer0
I dont have the game yet, but Denuvo isn't an anti cheat. Plenty of Denuvo games work just fine with CE. Have you tried simply searching the values?

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 4:08 pm
by Erlkonig
Alright, I'll test it out and get back to you.

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 4:22 pm
by NukeZen
It would be nice to have a table for this game. But having just started it I still do not know how many and what new contents have been added. Let's say that CP, AP and EXP would already be a great thing to edit. I will try to look for these values by myself, but if someone could make a complete talbe, it would obviously be better.

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 4:23 pm
by NumberXer0
I'm sure someone will make a table. If you want to do it beforehand, just try searching the values. Try 4 bit and if that doesn't work, float. A lot of games use float values for hp, stamina and stuff like that

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 4:28 pm
by Erlkonig
Alright, changing CP worked and the game didn't crash, so it looks like normal value searching works. What's more, the game doesn't have a dynamic memory at all, a simple CE search found a 'green' value.

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 4:42 pm
by tontsa00
What values you found CP, is it 4 bytes ? Also when can you finally use exp and money for your troops. Like same way Valkyria Chronicles 1st had?

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 4:50 pm
by Erlkonig
I searched for a byte since the hard CP limit is 20.

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 6:25 pm
by tontsa00
Cool, i was able to change my soldier's stats, editing HP, Dodge, Def, Aim and vs Armor stats, trying to edit more stats when i can, hope someone else who is further along from chapter 2 could post table.

I was able to find values for EXP, money and some soldier's stats.

Damn stats don't stick, so trying to see if i could get stat changes permanent

Re: Valkyria Chronicles 4

Posted: Tue Sep 25, 2018 11:52 pm
by Erlkonig
Anyone have any idea how to edit AP? That's the one thing I'm having trouble finding with normal value search. I can't quite pin it down.

Re: Valkyria Chronicles 4

Posted: Wed Sep 26, 2018 12:21 am
by Noire Blackheart
I managed to find money and xp but i havent tried CP or any stats yet, but I would like inf hp.

Re: Valkyria Chronicles 4

Posted: Wed Sep 26, 2018 12:55 am
by Erlkonig
Noire Blackheart wrote:
Wed Sep 26, 2018 12:21 am
I managed to find money and xp but i havent tried CP or any stats yet, but I would like inf hp.
You can find HP quite easily, though I have yet to find a good way to affect only allies. Right now I managed to get a pointer that manipulates the HP of the unit that is currently selected and taking action.

Here it is:

Code: Select all

"Valkyria4_x64.exe"+013A7218

Offset 1: 3C
Offset 2: 8
Offset 3: 268
Offset 4: 120
Offset 5: 38
Hope that helps out. I haven't tried restarting the game though so idk if the pointer is permanent.

EDIT: It's a 4 byte address by the way.

Re: Valkyria Chronicles 4

Posted: Wed Sep 26, 2018 1:03 am
by NumberXer0
It seems like everything is pretty basic in this game. Simple searches can turn up most things. I wish I knew how to write scripts haha.

Re: Valkyria Chronicles 4

Posted: Wed Sep 26, 2018 3:11 am
by pox911

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>2</ID>
      <Description>"Get Stats Of Current Controlled Player"</Description>
      <Options moHideChildren="1"/>
      <LastState Activated="1"/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>

[ENABLE]

aobscanmodule(CurPlayer,Valkyria4_x64.exe,48 8B 40 08 8B 40 3C) // should be unique
alloc(newmem,$1000,"Valkyria4_x64.exe"+9297A14)

label(code)
label(return)
label(CurPlyData)
registersymbol(CurPlyData)

newmem:

code:
  mov rax,[rax+08]
  mov [CurPlyData],rax
  mov eax,[rax+3C]
  jmp return
  CurPlyData:

CurPlayer:
  jmp newmem
  nop
  nop
return:
registersymbol(CurPlayer)

[DISABLE]

CurPlayer:
  db 48 8B 40 08 8B 40 3C

unregistersymbol(CurPlayer)
unregistersymbol(CurPlyData)
dealloc(newmem)
</AssemblerScript>
      <CheatEntries>
        <CheatEntry>
          <ID>3</ID>
          <Description>"Base"</Description>
          <LastState Value="1" RealAddress="141319728"/>
          <VariableType>4 Bytes</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>0</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>4</ID>
          <Description>"Current Health"</Description>
          <LastState Value="229" RealAddress="141319764"/>
          <VariableType>4 Bytes</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>3C</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>9</ID>
          <Description>"Current Ammo Gun 1"</Description>
          <LastState Value="3" RealAddress="141319818"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>f0</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>10</ID>
          <Description>"Infinite Ammo Flag Gun 1"</Description>
          <LastState Value="1" Activated="1" RealAddress="141319819"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>f1</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>11</ID>
          <Description>"Current Ammo Gun 2"</Description>
          <LastState Value="0" RealAddress="14131981C"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>F4</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>12</ID>
          <Description>"Infinite Ammo Flag Gun 2"</Description>
          <LastState Value="1" Activated="1" RealAddress="14131981D"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>F5</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>14</ID>
          <Description>"Current Ammo Gun 3"</Description>
          <LastState Value="2" Activated="1" RealAddress="141319820"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>F8</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>15</ID>
          <Description>"Infinite Ammo Flag Gun 3"</Description>
          <LastState Value="1" Activated="1" RealAddress="141319821"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>F9</Offset>
          </Offsets>
        </CheatEntry>
        <CheatEntry>
          <ID>5</ID>
          <Description>"Has Taken Action"</Description>
          <LastState Value="0" Activated="1" RealAddress="141319871"/>
          <VariableType>Byte</VariableType>
          <Address>CurPlyData</Address>
          <Offsets>
            <Offset>149</Offset>
          </Offsets>
        </CheatEntry>
      </CheatEntries>
    </CheatEntry>
    <CheatEntry>
      <ID>7</ID>
      <Description>"Infinite AP"</Description>
      <LastState Activated="1"/>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
aobscanmodule(InfAPTestAOB,Valkyria4_x64.exe,F3 0F 11 BB C4 04 00 00) // should be unique
registersymbol(InfAPTestAOB)

InfAPTestAOB:
db 90 90 90 90 90 90 90 90
 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat

InfAPTestAOB:
db f3 0f 11 bb c4 04 00 00


unregistersymbol(InfAPTestAOB)
</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
Here is what ive thrown together so far. Infinite AP and some stats on your current selected character like health, ammo, has completed an action(never ending use :P)

Re: Valkyria Chronicles 4

Posted: Wed Sep 26, 2018 3:29 am
by Erlkonig
Nice! Good work!