Page 1 of 1

Quick question about entering functions in debug console

Posted: Sat May 22, 2010 7:56 pm
by ptbptb
OK, I accidentally threw away around 5400 credits (my entire bank account) by hitting 'donate' when I meant to hit 'cancel'. I'd like to get my money back by cheating. :P

So I worked out that I could sell 270 fuel rods for about that amount and decided to 'additem' them in the console.

Code: Select all

(objAddItem gPlayerShip (itmCreate &itHelium3FuelRod; 272))
I got a "Mismatched open parentheses" error. :-(

Could someone point out where I'm being stupid? (Apart from where I accidentally threw away all the money - I already know that was stupid)

Posted: Sat May 22, 2010 8:33 pm
by sdw195

Posted: Sat May 22, 2010 8:43 pm
by ptbptb
sdw195 wrote:i get it too
http://yfrog.com/jvdebugoutputp
Yeah, but I presume this means we're missing something - rather than the debug console has mysteriously broken. :?

Posted: Sat May 22, 2010 9:30 pm
by alterecco
You can not use entities in the console. For that you would have to use the corresponding UNID, in this case 0x0000403C

Instead of doing this, I would suggest just using plyCredit instead

Code: Select all

(plyCredit gPlayer 5400)
P.S.: ptbptb: I just heard from Gambit that your wiki account is authorized

Posted: Sat May 22, 2010 9:54 pm
by ptbptb
For that you would have to use the corresponding UNID, in this case 0x0000403C
Is there a list of UNID vs Entity for items etc. somewhere?
alterecco wrote:P.S.: ptbptb: I just heard from Gambit that your wiki account is authorized
Heh, I think you could tell that just by looking at the 'recent changes' page there. :lol:

Posted: Sat May 22, 2010 11:35 pm
by digdug
Is there a list of UNID vs Entity for items etc. somewhere?
yes, transcendence.xml contains the list of all the UNIDs of the game.
Heh, I think you could tell that just by looking at the 'recent changes' page there. Laughing
woah :shock:
great job you are doing there, thank you very much :D
ptbptb, there was a discussion sometime ago, we were pondering to find a way to add all the functions with an automated system.

Posted: Sun May 23, 2010 4:30 am
by ptbptb
digdug wrote:woah :shock:
great job you are doing there, thank you very much :D
ptbptb, there was a discussion sometime ago, we were pondering to find a way to add all the functions with an automated system.
Shouldn't be /too/ hard - but you'd have to have server-side access wouldn't you?

*Ahem*; Anyway, I think this is definitely 'new thread' time.