 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
EVILGRANDMASTER How do I cheat?
Reputation: 0
Joined: 24 Dec 2023 Posts: 3
|
Posted: Sun Dec 24, 2023 4:36 pm Post subject: First time trying to mess with script, help please? |
|
|
Trying to have some fun with Pokémon Uranium and encountered this. I took the code from a source I found on "fearless revolution" and posted it where it looked to match, but ended up with an error. Any advice and help would be appreciated, Images are attached.
| Description: |
|
| Filesize: |
199.08 KB |
| Viewed: |
2354 Time(s) |

|
| Description: |
| Modified script error message |
|
| Filesize: |
229.47 KB |
| Viewed: |
2354 Time(s) |

|
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Sun Dec 24, 2023 6:37 pm Post subject: |
|
|
| Copy/Paste entire code here for comparative analysis. The images do not show the scripts in their entirety.
|
|
| Back to top |
|
 |
EVILGRANDMASTER How do I cheat?
Reputation: 0
Joined: 24 Dec 2023 Posts: 3
|
Posted: Mon Dec 25, 2023 9:39 am Post subject: Code used |
|
|
alloc(TypeName,256)
alloc(ByteSize,4)
alloc(PreferedAlignment, 4)
alloc(ConvertRoutine,1024)
alloc(ConvertBackRoutine,1024)
TypeName:
db 'RPG VX type',0
ByteSize:
dd 4
PreferedAlignment:
dd 1
//The convert routine should hold a routine that converts the data to an nteger (in eax)
//function declared as: stdcall int ConvertRoutine(unsigned char *input);
//Note: Keep in mind that this routine can be called by multiple threads at the same time.
ConvertRoutine:
[32-bit]
push ebp
mov ebp,esp
push ecx
mov ecx,[ebp+8]
[/32-bit]
//at this point ecx contains the address where the bytes are stored
//put the bytes into the eax register
mov eax,[ecx] //second fun fact, addressing with 32-bit registers doesn't work in 64-bit, it becomes a 64-bit automatically (most of the time)
shr eax,1 //shift right by 1 bit (divide by 2)
//and now exit the routine
[64-bit]
ret
[/64-bit]
[32-bit]
pop ecx
pop ebp
ret 4
[/32-bit]
//The convert back routine should hold a routine that converts the given integer back to a row of bytes (e.g when the user wats to write a new value)
//function declared as: stdcall void ConvertBackRoutine(int i, unsigned char *output);
ConvertBackRoutine:
[32-bit]
push ebp
mov ebp,esp
push edx //save the registers
push ecx
mov edx,[ebp+0c]
mov ecx,[ebp+08]
[/32-bit]
//at this point edx contains the address to write the value to
//and ecx contains the value
push eax
push edx
mov edx,[edx] //edx now contains the original value
and edx,1 //only save the first bit
mov eax,ecx //eax gets the user input value
shl eax,1 //shift left by 1 bit (multiply by 2)
or eax,edx //add the bits of the original value
pop edx
mov [edx],eax //write the new value into the old value
pop eax
[64-bit]
//everything is back to what it was, so exit
ret
[/64-bit]
[32-bit]
//cleanup first
pop ecx
pop edx
pop ebp
ret 8
[/32-bit]
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Dec 25, 2023 11:21 am Post subject: |
|
|
We need to see the entire script. What you have posted does not match what you have shown above. You should also use code brackets. You may also consider posting both scripts so that we can see what has been changed from the original, working script.
Last edited by ++METHOS on Mon Dec 25, 2023 7:19 pm; edited 1 time in total |
|
| Back to top |
|
 |
EVILGRANDMASTER How do I cheat?
Reputation: 0
Joined: 24 Dec 2023 Posts: 3
|
Posted: Mon Dec 25, 2023 1:58 pm Post subject: |
|
|
I apologize, as I am still very new at this. All of the code I am trying to work with comes from these 2 pages of conversation, with the most recent iteration being out of date and is mid way down the first page. I am trying to update the table but nearly everything I am doing is a shot in the dark for me.
I will try to give the link by chopping it up as I cannot post links yet it seems.
fearlessrevolution (dotcom)
/viewtopic.php?f=4&t=467
|
|
| Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Mon Dec 25, 2023 7:18 pm Post subject: |
|
|
| Simply post each script here, in their entirety, using code brackets.
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|