Register - Login
Views: 99793375
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
05-03-22 05:00:29 AM
Jul - General Game/ROM Hacking - Need tips for good Lua scripting? New poll - New thread - New reply
Next newer thread | Next older thread
SamEarl13

Nipper Plant
Trying (and failing) to learn Lua.
Level: 43


Posts: 357/419
EXP: 523828
For next: 41218

Since: 02-14-12


Since last post: 4.1 years
Last activity: 17 days

Posted on 05-09-16 04:38:41 PM Link | Quote
While this isn't exactly game or console specific i felt this was the best place to put the question.

Basically I've always loved cheating in games in stupid ways and I even tried making a series on YouTube but ultimately it was too much of a hassle. The reason was I'd keep a log of all values I'd tried and what they do and even if I got what i wanted I'd end up with a lot of seemingly useless stuff. However I noticed Lua Scripting could do a lot more and thanks to Xkeeper for showing me some examples I managed to make a few ultra simple stuff but nothing worth sharing yet.

I'd like to know if there's anything I should know when making scripts and if there are any limits in what can be done. I don't have a specific game i want to hack but there's loads of things I'd love to try.

____________________
I was finding files in old PS1 games before my CD drive died and made a disc explode.
Nanashi
𝒾´𝓂 π‘”π’Άπ“Ž
Level: 27


Posts: 7/166
EXP: 103505
For next: 12654

Since: 12-04-15

Pronouns: she/her

Since last post: 38 days
Last activity: 1 day

Posted on 05-09-16 08:13:52 PM Link | Quote
I kinda wish emulua stuff was more used, especially along rom hacking.
Probably you could even have easy online multiplayer in pokeymans and other games by faking out game link input with it or something.

Anyways

Generally documenting ram even if it looks functionally useless is a good help- especially if you can get an understanding on how the addresses are actually used and when.

The game itself is important in that some will just take anything and run with it/kind of try to make it right. For instance, in Metroid 1 you can just write anything among the sprites and the game will "try". (So say, implementing Spazer through Lua is just a matter of writting three beams) In others, though, you won't get anything good out of it unless properly called since they like to read from rom frequently, so you can't just arbitrarily spawn things so simply.

Another part you may overlook at first is that the code runs on every drawing frame. This means if some instruction loads a value and reads from it in the same frame it'll be unaffected.

Also in general ui-like stuff is easier than directly affecting the game, since you need to essentially simulate interactions with it and the script for anything elaborate.
SamEarl13

Nipper Plant
Trying (and failing) to learn Lua.
Level: 43


Posts: 358/419
EXP: 523828
For next: 41218

Since: 02-14-12


Since last post: 4.1 years
Last activity: 17 days

Posted on 05-10-16 09:54:11 AM Link | Quote
Thanks for the tips, I have noticed that some games were easy to cheat in while others almost seemed cheat-proof. I also agree with having a UI, I don't even know how to bind stuff to keyboard keys yet but things like buttons are quite easy.

____________________
I was finding files in old PS1 games before my CD drive died and made a disc explode.
Next newer thread | Next older thread
Jul - General Game/ROM Hacking - Need tips for good Lua scripting? New poll - New thread - New reply


Rusted Logic

Acmlmboard - commit 47be4dc [2021-08-23]
©2000-2022 Acmlm, Xkeeper, Kaito Sinclaire, et al.

28 database queries, 1 query cache hits.
Query execution time: 0.089523 seconds
Script execution time: 0.004780 seconds
Total render time: 0.094303 seconds