Page 1 of 2

To become a cheater

Posted: Sat Sep 10, 2011 5:25 am
by Xandor Tik'Roth
Playing the newly-released beta 33 and I have a few character builds I'd like to try. To do this, however, I need to cheat my way into some higher levels and such. I followed the instructions on the wiki (create the 'cheat.cfg' file in the Settings folder, add 'cheat = true' to the file and save, hit [ctrl] + L in game), but I can't get the lua console to come up. Am I doing something wrong? Is there a way to edit the save file itself?

Re: To become a cheater

Posted: Sat Sep 10, 2011 8:33 am
by darkgod
Once cheat mode is on you need to bind lua console/debug mode to a key in the keybinder

Re: To become a cheater

Posted: Sat Sep 10, 2011 5:29 pm
by Xandor Tik'Roth
Alright cool. How do I do that?

Re: To become a cheater

Posted: Sat Sep 10, 2011 5:57 pm
by darkgod
? In the keybind interface, like any other keybninds, press escape and select it

Re: To become a cheater

Posted: Sat Sep 10, 2011 6:10 pm
by Xandor Tik'Roth
I'm still not getting it. I've bound [C] + L to a hotkey (=), but every time I hit =, it brings up a message saying that the hotkey is not defined.

Re: To become a cheater

Posted: Sat Sep 10, 2011 6:12 pm
by darkgod
Because by default hotkey 12 is bound to = too

Re: To become a cheater

Posted: Sat Sep 10, 2011 6:26 pm
by Xandor Tik'Roth
So how can I make a brand new keybinding to make the console work?

Re: To become a cheater

Posted: Sat Sep 10, 2011 7:30 pm
by darkgod
I dont understand, jsut bind it to some unused key there's no reason it wont work.
Are you sure cheat mode is active ? (try to ctrl+click somewhere, if you teleport there it works)

Re: To become a cheater

Posted: Sat Sep 10, 2011 7:47 pm
by Xandor Tik'Roth
The Teleport doesn't work... so what am I doing wrong?

I created the cheat.cfg file in the C:\Users\[User]\T-Engine\4.0\Settings location.

Re: To become a cheater

Posted: Sat Sep 10, 2011 8:59 pm
by darkgod
are you sure windows didnt have fun and actaully name your file cheat.cfg.txt ? it loves doing that

Re: To become a cheater

Posted: Sat Sep 10, 2011 9:09 pm
by Xandor Tik'Roth
Pretty sure. I'm staring at the file now and it's called cheat.cfg. I'm using Windows 7. Is there a better way to tell?

Edit: Oh, nevermind. I saved it as a .txt file, so that's why it wasn't working. You're a genius...

Edit again: So I try to use the code to level myself up to Level 50 [game.player.forceLevelup(50)], and it returns an error that I don't understand.

Code: Select all

1 :=: /engine/interface/ActorLevel.lua:137: attempt to index local 'self' (a number value)
I've tried it with multiple values and still nothing. Thoughts?

Re: To become a cheater

Posted: Sat Sep 10, 2011 9:19 pm
by darkgod
game.player:forceLevelup(50)

:)

Re: To become a cheater

Posted: Sat Sep 10, 2011 10:00 pm
by edge2054
Some other useful commands.

game.player:resetToFull()

game.player.max_life = 10000

game.player:learnTalent(game.player.T_TALENT_NAME, true) -- there's a third variable here for talent level if you want to use it, the second variable is force so it'll ignore requirements

the debug menu is also handy if you want to goof around with gear or tougher monsters but you'll have to bind it to a hotkey.

Re: To become a cheater

Posted: Sat Sep 10, 2011 11:02 pm
by Xandor Tik'Roth
Okay, so I finally got the force level to work, and then I ran into another fantastic little error. I can assign my stat points all day long, but I can't assign any points to class or generic talents (category works okay, though). Every time I try to increase one, I get the following error:

Code: Select all

Lua Error: /mod/dialogs/LevelupDialog.lua:691: attempt to call method 'learnTalent' (a number value)
At [C]:-1 learnTalent
At /mod/dialogs/LevelupDialog.lua691 learnTalent
At /mod/dialogs/LevelupDialog.lua611 learn
At /mod/dialogs/LevelupDialog.lua587 treeSelect
At /mod/dialogs/LevelupDialog.lua95 fct
At /engine/ui/TreeList.lua:304 onUse
At /engine/ui/TreeList.lua:204 fct
At /engine/Mouse.lua:48 receiveMouse
At /engine/Mouse.lua:76 delegate
At /engine/ui/Dialog.lua:511 mouseEvent
At /engine/ui/Dialog.lua:302 fct
At /engine/Mouse.lua:48

Re: To become a cheater

Posted: Sun Sep 11, 2011 7:27 am
by darkgod
Well what did you do exactly ? looks like you assigned a value to learnTalent instead of calling it
You can probably fix it by doing:
game.player.learnTalent = nil