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 


Where is default path for .exe?

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

Joined: 04 Apr 2017
Posts: 2

PostPosted: Tue Apr 04, 2017 7:42 pm    Post subject: Where is default path for .exe? Reply with quote

I've made a table that reads input from a .csv for easy updating. I set the opening path simply to something like 'file.csv,' put the file in the same directory as the table/trainer, and this works perfectly for both table and trainer types. However if I save as .exe, the script can no longer find the .csv. I tried putting it in the same directory and in the CE directory, but it only works if I write an extra function to manually declare the full path. How/where do I put the .csv so that the .exe can open it directly without specifying the full path?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 332

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

PostPosted: Wed Apr 05, 2017 2:18 am    Post subject: Reply with quote

when you generate the trainer add the csv file to the list of files. when someone runs it it will get extracted at the same spot as the exe

alternatively, use the TrainerOrigin variable in lua which will be set when it's a trainer. it will contain the path to the trainer exe

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
rovinian
How do I cheat?
Reputation: 0

Joined: 04 Apr 2017
Posts: 2

PostPosted: Wed Apr 05, 2017 5:16 am    Post subject: Reply with quote

I rather not add it when I generate the trainer because the whole purpose of using the .csv is to be able to update the data it's reading without having to update re-generate the trainer. I will try the TrainerOrigin; I found that earlier but I thought it only worked for .CETRAINER. Will it also work for .exe?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 332

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

PostPosted: Wed Apr 05, 2017 6:23 am    Post subject: Reply with quote

also works for exe yes
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
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