To become a cheater

Any discussions regarding the spoilers present in ToME 4.x.x should be restricted to this forum

Moderator: Moderator

Message
Author
Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

To become a cheater

#1 Post 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?
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#2 Post by darkgod »

Once cheat mode is on you need to bind lua console/debug mode to a key in the keybinder
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

Re: To become a cheater

#3 Post by Xandor Tik'Roth »

Alright cool. How do I do that?
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#4 Post by darkgod »

? In the keybind interface, like any other keybninds, press escape and select it
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

Re: To become a cheater

#5 Post 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.
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#6 Post by darkgod »

Because by default hotkey 12 is bound to = too
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

Re: To become a cheater

#7 Post by Xandor Tik'Roth »

So how can I make a brand new keybinding to make the console work?
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#8 Post 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)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

Re: To become a cheater

#9 Post 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.
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#10 Post by darkgod »

are you sure windows didnt have fun and actaully name your file cheat.cfg.txt ? it loves doing that
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

Re: To become a cheater

#11 Post 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?
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#12 Post by darkgod »

game.player:forceLevelup(50)

:)
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

edge2054
Retired Ninja
Posts: 3756
Joined: Fri May 28, 2010 4:38 pm

Re: To become a cheater

#13 Post 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.

Xandor Tik'Roth
Keeper
Posts: 1548
Joined: Tue Aug 12, 2003 3:08 pm
Location: The edge of the Abyss

Re: To become a cheater

#14 Post 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
And it was such a good idea...

darkgod
Master of Eyal
Posts: 10750
Joined: Wed Jul 24, 2002 9:26 pm
Location: Angolwen
Contact:

Re: To become a cheater

#15 Post 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
[tome] joylove: You can't just release an expansion like one would release a Kraken XD
--
[tome] phantomfrettchen: your ability not to tease anyone is simply stunning ;)

Post Reply