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 


im new at this can anyone help?

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

Joined: 16 Nov 2014
Posts: 0

PostPosted: Sun Nov 16, 2014 8:30 am    Post subject: im new at this can anyone help? Reply with quote

strideram wrote:
Hi,

This game is made using RenPY. One of its characteristics is that the memory address for the resources changes with every action we do. The workaround is mentioned in this other thread (http[colon]//forum[dot]cheatengine[dot]org/viewtopic.php?p=5366672#5366672) ... (I can't post urls yet, please replace [colon] with : and [dot] with . in the urls mentioned in the post)

Quote:

Money is stored as a 4 byte value (4 byte aligned), exactly as you see is ingame, I mean there is no encryption. Your problem is that the value changes its address each time you change its value, so you have to find and edit it in one go.

tips to increase your chances of one-hit-wonder:
1-have an uncommon number of gold: odd, not a multiple of 5 and as high as possible, but again avoid common video game numbers like 999.
2-You will probably have several results anyway. If you have less than 20 just change their value in CE and see if it changes ingame. Right clicking twice causes the game to refresh the displayed value without changing its address.

EDIT:
The best way to cheat in this game would be to edit script.rpyc


That thread was talking about some other game made using RenPY. Anyway, Princess Trainer doesn't have any .rpyc files readily available for us to modify. I did the following steps to get access to "user editable .rpy" files. My hack basically ensures that when gambling irrespective of whether we win or lose, we will always gain 2000 gold.

Steps:

1. Install Python 2.7. Ensure its added to your system path.
2. Navigate Windows Explorer to the folder where the game is installed. Inside this folder you should see the file "Princess Trainer.exe" and the directory "game". We will call this the baseDir.
3. Create a new directory here, give it the name "game-backup". Cut and paste all the files from inside the "game" directory to inside the "game-backup" directory.
4. Create a new file in the baseDir with the name "rpatool.py". Edit this file in notepad (or wordpad if line endings are messed up, preferable use an editor like Notepad++ or Notepad2). Save the contents of this url (https[colon]//raw[dot]githubusercontent[dot]com/Shizmob/rpatool/master/rpatool) in this file.
5. Open a command prompt and navigate to the baseDir.
6. Extract the contents of "game-backup\archive.rpa" to "game"

Code:
python.exe rpatool.py -o game -x game-backup\archive.rpa


7. Edit the file "game\dice_game.rpy" in notepad++ or notepad2 or some text editor.

Replace
Code:
$ gold +=20
with
Code:
$ gold +=2000


Replace
Code:
$ gold -=20
with
Code:
$ gold +=2000


8. Save the file. Start the game. If you have an existing save where gambling has been unlocked, then you can immediately earn 6000 gold via gambling. Else you could start a new game and grind gold till gambling is unlocked Smile


EDIT:

Took a while, but figured out how to increase the starting pool of gold. Follow the steps mentioned above. And then edit the file "game\slavemquest.py"

Replace
Code:
$ gold +=20
with
Code:
$ gold +=2000


Ok so following the steps i have managed to get to at least step five. I wasnt sure if i did step five right or not but im generally stuck at steps 5 and 6. I generally have no idea what im doing wrong.



bandicam 2014-11-16 06-21-28-085.jpg
 Description:
This is thr problem im running into
 Filesize:  37.96 KB
 Viewed:  26209 Time(s)

bandicam 2014-11-16 06-21-28-085.jpg


Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 112

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Sun Nov 16, 2014 5:26 pm    Post subject: Reply with quote

Wrong button. You have created a new topic.
_________________
My trainers can be found here: http://www.szemelyesintegracio.hu/cheats

If you are interested in any of my crappy articles/tutorials about CE and game hacking, you can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles

Don't request cheats or updates.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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