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 


64-Bit CryEngine String Trainer Help

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

Joined: 15 Feb 2016
Posts: 3

PostPosted: Mon Feb 15, 2016 11:15 am    Post subject: 64-Bit CryEngine String Trainer Help Reply with quote

Hello,

I'm trying to fix a game called Star Citizen. There's a persistent problem with the audio and I've managed to find a solution with one of the game's assets by essentially scanning for a string of the audio name used for that asset, then changing the value of the string to the audio name of another asset.

Current Process:

1) Boot up Star Citizen.exe so that you're at the menu screen
2) Select Process
3) Change Value Type to 'String'
4) In the 'Text' Search Box type 'Play_WPHA_KBAR_BallisticCannon_S3_Fire_Placeholder' & press 'First Scan':
5) Select all addresses that show up and add them to the address list
6) Change Record->Value to: 'Play_WPHA_KBAR_BallisticCannon_S1_Fire_Placeholder'
7) Done

Playing the game will cause the values for these addresses to change, but once this is done at the menu screen I believe that the changes are persistent.

How do I make a program/trainer that can replicate what I did in cheat engine. Then people can just run the fix.exe once the game is loaded up and be done with it?

Thanks!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Mon Feb 15, 2016 11:46 am    Post subject: Reply with quote

Code:

openProcess("Star Citizen.exe")

fromString="Play_WPHA_KBAR_BallisticCannon_S3_Fire_Placeholder"
toString="Play_WPHA_KBAR_BallisticCannon_S1_Fire_Placeholder"

ms=createMemScan()

--  "+W*X-C" means a checked writable checkbox, a grey execute and a unchecked copy on write. The default of the CE gui (adjust if needed. Empty means all)
ms.firstScan(soExactValue, vtString, rtRounded, fromString, '', 0,0xffffffffffffffff, "+W*X-C", fsmNotAligned, 1, false, false, false, true)  --last true means case sensitive
ms.waitTillDone()

fl=createFoundList(ms)
fl.initialize()
--print(fl.Count)

for i=0,fl.Count-1 do
  writeString(fl.Address[i], toString)
end

fl.deinitialize()
fl.destroy()

ms.destroy()

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Tazius
How do I cheat?
Reputation: 0

Joined: 15 Feb 2016
Posts: 3

PostPosted: Mon Feb 15, 2016 12:03 pm    Post subject: Reply with quote

Dark Byte wrote:
Code:

openProcess("Star Citizen.exe")

fromString="Play_WPHA_KBAR_BallisticCannon_S3_Fire_Placeholder"
toString="Play_WPHA_KBAR_BallisticCannon_S1_Fire_Placeholder"

ms=createMemScan()

--  "+W*X-C" means a checked writable checkbox, a grey execute and a unchecked copy on write. The default of the CE gui (adjust if needed. Empty means all)
ms.firstScan(soExactValue, vtString, rtRounded, fromString, '', 0,0xffffffffffffffff, "+W*X-C", fsmNotAligned, 1, false, false, false, true)  --last true means case sensitive
ms.waitTillDone()

fl=createFoundList(ms)
fl.initialize()
--print(fl.Count)

for i=0,fl.Count-1 do
  writeString(fl.Address[i], toString)
end

fl.deinitialize()
fl.destroy()

ms.destroy()


Thanks for the really quick reply!

I haven't used CE at an advanced level. How do I utilize this code?

Do I paste it into the LUA Table then save as EXE? I've done that, my computer thinks for a bit, but don't see the string changes when I prescanned those strings.

Please advise how to use the code.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25840
Location: The netherlands

PostPosted: Tue Feb 16, 2016 4:04 am    Post subject: Reply with quote

just execute it in a lua engine window inside ce first to verify it works
if not, make some adjustments till it does. (Are you sure you didn't tick unicode)

then when it works adjust it to a script that will work as a trainer.
e..g closeCE() at the end or something. or a gui trainer with a button and under that buttonclick the code

and most importantly, never name your trainer.exe the same as the game

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting 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