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 


Loren The amazon Princess
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Single player cheat request
View previous topic :: View next topic  
Author Message
mogymog
How do I cheat?
Reputation: 0

Joined: 24 Aug 2011
Posts: 2

PostPosted: Thu May 10, 2012 10:28 am    Post subject: Loren The amazon Princess Reply with quote

I'm trying to figure out how to change the money in this game. Nothing I seem to do works. Can anyone else give it a go and see whats up?
Back to top
View user's profile Send private message
webgrunt
Newbie cheater
Reputation: 0

Joined: 01 Apr 2010
Posts: 11

PostPosted: Sat May 26, 2012 10:56 pm    Post subject: Reply with quote

Me too. Can't figure it out. Some games are just uncheatable.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 34

Joined: 12 Mar 2012
Posts: 1018

PostPosted: Sun May 27, 2012 7:36 am    Post subject: Reply with 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, but I haven't managed to get unrpyc to work (python saying that the renpy module has no "game" member). If anyone got it to work, I'm interested.
Back to top
View user's profile Send private message
Csimbi
Grandmaster Cheater Supreme
Reputation: 47

Joined: 14 Jul 2007
Posts: 1251

PostPosted: Sun May 27, 2012 12:03 pm    Post subject: Reply with quote

Gniarf wrote:
I haven't managed to get unrpyc to work

Looks like this?
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 34

Joined: 12 Mar 2012
Posts: 1018

PostPosted: Sun May 27, 2012 2:59 pm    Post subject: Reply with quote

Long time no see Csimbi.

Yup it's exactly this error message. Looks like that steeve guy managed to get unrpyc to work in the end, so at least it is possible. I guess I'll switch to stubborn mode when I have time, get it to work and post the how to.

UPDATE:
Actually it looks like unrpyc script was written for an earlier version of ren'py and lacks support for the "screen" script keyword. I've partly reimplemented it but sadly there is sometimes "compiled" python code within a screen statement, so I need to merge a AST->python decompiler with unrpyc...*runs away hanging his head*

UPDATE 2:
Ok fine, I throw the towel. It seems there is only one AST to python decompiler available, it's Chris Warburton's (aka Warbo). Though it works well for test cases, it is still in pre-alpha stage and doesn't work against The Amazon Princess' code, and I'm NOT going to code an ast->py decompiler. So currently cheat modding is a no go, stick to one-hit-wonder CEing.

The joke of the end: the game engine's name, ren'py, was probably meant to mean "love python" (ren=love in japanese). Well I sure felt that python...
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 34

Joined: 12 Mar 2012
Posts: 1018

PostPosted: Mon May 28, 2012 4:54 pm    Post subject: Reply with quote

Hahaha! I've had a strike of luck in a last final attempt! The script we need for money cheat is one of the few that decompile correctly.

So here is what you have to do:
1-Install python 2.6 or 2.7 but NOT python3.x
2-download unrpyc.py and decompiler.py from https://github.com/yuriks/unrpyc
3-save them both in the folder that contains LorenAmazonPrincess.exe. Let's call this directory BaseDir.
4-Open BaseDir\renpy\ast.py with notepad, and replace:
Code:
        if renpy.game.script.record_pycode:
            renpy.game.script.all_pycode.append(self)

with:
Code:
        if renpy.game.script:
            if renpy.game.script.record_pycode:
                renpy.game.script.all_pycode.append(self)

(pay attention to the number of tabulations)
5-Edit unrpyc.py with notepad and add:
Code:
import renpy.game

below:
Code:
import renpy.object

6-Open a command prompt in BaseDir
7-type: unrpyc.py --clobber "game\RPG Framework\inventory.rpyc"
8-Once it is finished, delete BaseDir\game\RPG Framework\inventory.rpyc
9-Have fun editing BaseDir\game\RPG Framework\inventory.rpy with notepad (or wordpad is linefeeds are F*ed up).
Personnally I suggest replacing:
Code:
pBuyer.gold -= ((pItem.price - int(pItem.price*pFame))*pQuantity)

with:
Code:
pBuyer.gold += ((pItem.price - int(pItem.price*pFame))*pQuantity)

(Why should we pay for buying when we can be paid to buy?)
10-No recompilation or any rpy->rpyc conversion is needed, just play.


Last edited by Gniarf on Wed Jun 27, 2012 1:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
Csimbi
Grandmaster Cheater Supreme
Reputation: 47

Joined: 14 Jul 2007
Posts: 1251

PostPosted: Tue May 29, 2012 7:00 am    Post subject: Reply with quote

Glad you figured it out. Thanks for the info.
Back to top
View user's profile Send private message
aaa300
How do I cheat?
Reputation: 0

Joined: 30 May 2012
Posts: 2

PostPosted: Wed May 30, 2012 8:01 pm    Post subject: Reply with quote

It doesn't work for me. When i type that into the command prompt it just opens unrpyc.py. Some help would be nice Smile
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 34

Joined: 12 Mar 2012
Posts: 1018

PostPosted: Wed May 30, 2012 9:00 pm    Post subject: Reply with quote

You probably ticked "always use the selected program to open this kind of fils" when you opened unrpyc.py with notepad. *sigh* Just reinstall python 2.6.

Last edited by Gniarf on Thu May 31, 2012 5:35 am; edited 1 time in total
Back to top
View user's profile Send private message
aaa300
How do I cheat?
Reputation: 0

Joined: 30 May 2012
Posts: 2

PostPosted: Wed May 30, 2012 10:00 pm    Post subject: Reply with quote

Thanks that fixed it Very Happy
Back to top
View user's profile Send private message
narutochatsrcool
How do I cheat?
Reputation: 0

Joined: 02 Jun 2012
Posts: 2
Location: United States

PostPosted: Sat Jun 02, 2012 9:02 am    Post subject: No module named Reply with quote

Hello. This is good, I've been looking for something like this for this exact game!! I already had unrpyc installed from that website, and followed all the steps, but after i typed

unrpyc.py --clobber "game\RPG Framework\inventory.rpyc"

It said ImportError: No module named optparse

SO i tried to delete "import optparse" and then it said ImportError: No module named os.path, and I went down the list of the imports and kept deleted them and it kept saying No module named __ . Any ideas? I've been searching for two days now to get this to work!! :

To get Python 2.6 I also uninstalled the newest version and installed this version. In case that changes anything.

EDIT:

I noticed some other things too.

Those import files (optparse, os.path, sys, cPickle as pickle, codecs, glob, and itertools) were in this

"C:\Users\home\Desktop\BaseDir\lib\linux-x86\lib\python2.6"

And also...my computer is a windows not a linux so i don't know why those files are in linux-x86.....I really don't know anything about stuff like this besides cmd, a few python things, and making things in renpy so can someone please help me? Confused
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 34

Joined: 12 Mar 2012
Posts: 1018

PostPosted: Sat Jun 02, 2012 10:20 am    Post subject: Reply with quote

I think your python directories aren't configured correctly (leftovers from previous python install?). To check that:
-open a command prompt in the directory that contains python.exe
-run python.exe
-in the python shell, type:
Code:
import sys
print sys.path

-if you see directory_where_python2.6_is\lib then your paths are set up correctly. If you don't, fix that but I dunno how. One temporary fix would be to type "set pythonpath=directory_where_python2.6_is\lib" in the command prompt before running any .py script but that's going to be annoying.
Back to top
View user's profile Send private message
narutochatsrcool
How do I cheat?
Reputation: 0

Joined: 02 Jun 2012
Posts: 2
Location: United States

PostPosted: Sat Jun 02, 2012 10:35 am    Post subject: THANK YOU SOOO MUCH!!! Reply with quote

I'm so happy!!! Right when I read the word paths i instantly remembered that in System Properties in evironmental variables, i had set my PYTHONHOME and PYTHONPATH to C:\Python27\Lib, and all I did was change it to 26 and it worked!!! Thank you for this guide and for all your help!!! Very Happy Very Happy Very Happy Very Happy Very Happy
Back to top
View user's profile Send private message
webgrunt
Newbie cheater
Reputation: 0

Joined: 01 Apr 2010
Posts: 11

PostPosted: Sun Jun 24, 2012 3:59 pm    Post subject: Reply with quote

Thank you for this! However I messed it up somehow. When I try to run the game after following the steps, I get this:

I'm sorry, but an uncaught exception occurred.

While loading the script.
TypeError: exec: arg 1 must be a string, file, or code object

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "E:\Program Files (x86)\Winter Wolves\Loren The Amazon Princess\renpy\bootstrap.py", line 296, in bootstrap
File "E:\Program Files (x86)\Winter Wolves\Loren The Amazon Princess\renpy\main.py", line 225, in main
File "E:\Program Files (x86)\Winter Wolves\Loren The Amazon Princess\renpy\exports.py", line 1349, in load_module
File "E:\Program Files (x86)\Winter Wolves\Loren The Amazon Princess\renpy\execution.py", line 279, in run
TypeError: exec: arg 1 must be a string, file, or code object

Windows-7-6.1.7601-SP1
Ren'Py 6.13.12.1728
Back to top
View user's profile Send private message
ghost28
How do I cheat?
Reputation: 0

Joined: 25 Jun 2012
Posts: 2

PostPosted: Mon Jun 25, 2012 1:30 am    Post subject: Reply with quote

Gniarf,

thanks for your info its working great. im wondering is there a way to make it work on planet stronghold and spirited heart.i try it and on command console give me error

Traceback (most recent call last):
File "C:\Games\Planet Stronghold\unrpyc.py", line 31, in <module>
import renpy.game
File "C:\Games\Planet Stronghold\renpy\game.py", line 33, in <module>
import renpy.display
File "C:\Games\Planet Stronghold\renpy\display\__init__.py", line 36, in <modu
le>
log = renpy.log.open("log", developer=False, append=False)
AttributeError: 'module' object has no attribute 'log'
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Single player cheat request All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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)