Default key config (on my own keyboard)
UP DOWN LEFT RIGHT BOMB
Player 1 up down left right insert
Player 2 w s a d ctrl
Player 3 p ö l ä num0
Player 4 z h g j v
---
0 solid
1 breakable
2 breakable (requires 1 more hit)
3 breakable (requires 2 more hits)
4 breakable (requires 3 more hits)
5 invisible wall
6 skull
7 bomb
8 nothing
9 +bomb
10 +range
11 +speed
12 red ?
13 blue ?
14 green ?
15 white ?
16 switch players
17 stop time
18 shield
19 star
20 web
21 1up
22 poison
I found these out by Cheat Engine. Unfortunately, in Cheat Engine, the address was not shown as green, so it is dynamically assigned?
I need to do more testing.
---
I put an item in the top right corner of the field and ran searches whilst changing the item, with these two results:
64919,82676
I then added another item to the left of the previous item and ran searches whilst changing that item, and the results were:
64919,82676
The same addresses? I added another tile 2 spots to the left of the top right corner and this time it's
64918,82676
Perhaps we can discard the 2nd result (82676).
It turned out my perception of how walls can contain items is wrong. In fact, when a wall is broken, RNG is called to determine the item that will be dropped.
--> I broke wall A = +bomb, I died and broke the same wall A again = star
--> I broke wall B = +bomb, I broke wall A = star
So I will need to look for the RNG seed next.
---
I ran searches, looking for the RNG seed and these are the results. I can't seem to narrow it down more. Perhaps it is a dword address?
198442|4
198443|59
198444|237
198445|108
It seems RNG is advanced when there is an explosion graphic on the screen. It is advanced multiple times for each explosion.
* Can I display something on the JPC screen?
* Can I specify what type is the address that I want to print? (word or byte)
* Can I clear the lua output after a loadstate?
* When pressing many keys in JPC-rr's virtual keyboard (in order to control 4 players), do these keys all register or is there a key lock like in most physical keyboards?