Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Wacky Races rendering distance

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
IraFunesto
How do I cheat?
Reputation: 0

Joined: 01 Oct 2021
Posts: 8

PostPosted: Sun Sep 03, 2023 1:20 pm    Post subject: Wacky Races rendering distance Reply with quote

I fixed the aspect ratio of the game, but to get the 16:9 aspect ratio, the rendering distance is decreased. I found a value that increases the rendering distance, but this value also controls other things. this is an example:

https ://i.ibb.co/VVMXRrb/image.png

If I decrease the value 0000803f with 0000403f, this is what happens:

https ://i.ibb.co/XpXWHxF/image.png

If I restart the game, the cars fall from top to bottom.

It is the only value I found that increases the rendering distance, I don't know how to do to increase only that without bugging other things.

here is a screen of the memory viewer:

https ://i.ibb.co/s5fZjYz/image.png
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Sun Sep 03, 2023 9:15 pm    Post subject: Reply with quote

-first of all, add this value to cheat engine's address table, then set the value type as 'Float' ,the number you changed is originally 1.0 ,and you changed it to 0.75
-then, regarding the value bugging out other things, you need to see what accesses that value, and look for that specific code that uses this address to calculate the draw distance, then write a script that redirects it to your value (ie: a custom address with the value of 0.75), keeping the address value intact.
Back to top
View user's profile Send private message
IraFunesto
How do I cheat?
Reputation: 0

Joined: 01 Oct 2021
Posts: 8

PostPosted: Mon Sep 04, 2023 6:08 am    Post subject: Reply with quote

The first part you explained I did. I don't know how to create the script that creates the custom address.
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Mon Sep 04, 2023 7:43 am    Post subject: Reply with quote

after adding the address to the table, right click and select "Find out what accesses this address", where the list of the instruction will be shown in a separate window, if you can post a screenshot of that window, will write a sample script for you.
Back to top
View user's profile Send private message
IraFunesto
How do I cheat?
Reputation: 0

Joined: 01 Oct 2021
Posts: 8

PostPosted: Mon Sep 04, 2023 8:14 am    Post subject: Reply with quote

Thank you:

https ://i.ibb.co/nwwFWM7/image.png
Back to top
View user's profile Send private message
TsTg
Master Cheater
Reputation: 5

Joined: 12 Dec 2012
Posts: 340
Location: Somewhere....

PostPosted: Tue Sep 05, 2023 6:51 pm    Post subject: Reply with quote

the following is for the first instruction on the screenshot, other address should be similar, once you understand this one:
Code:
[ENABLE]
alloc(PatchMem,$1000,Wpc.exe)
label(CustomVal)
registersymbol(CustomVal)

PatchMem:
//replace the opcode to match with the one used in the said address
//example: 0043CB7D -- fdivr dword ptr [00512214] ----->becomes: fdvir dword ptr [CustomVal]
//so and so forth with the others
//this code is for the address 43CB7D

fdivr dword [CustomVal]
jmp 0043CB7D+6   //the return address, either write it like that, or read the next instruction's address, and use it, should be 0043CB83

//the custom value to apply, you can set it here, or add it in cheat engine's table, then edit, for easier changes later, simply, activate the script first, then right click the "Add address manually" button, and enter without quotes "CustomVal" in the address field, and set the value type to Float
CustomVal:
dd (float)1.0


//finaly redirect the game code here
0043CB7D:
jmp PatchMem
nop



[DISABLE]
//restore original bytes/code
0043CB7D:
fdivr dword ptr [00512214]

//clean up
unregistersymbol(CustomVal)
dealloc(PatchMem)
Back to top
View user's profile Send private message
IraFunesto
How do I cheat?
Reputation: 0

Joined: 01 Oct 2021
Posts: 8

PostPosted: Wed Sep 06, 2023 6:58 am    Post subject: Reply with quote

Thank you, it works great. Only one address increases or dominates the visual distance, but it is connected to the camera, so I have to try something close to that address.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites