Users browsing this thread: 1 Guest(s)
Command Edit Upgrade patch [WIP] Alpha Patch Available
10-08-2015, 01:26 PM
For the code, the important factor is to understand the $2180 variable. It is actually a special case and it differs from common variables/registers.
You can think it as a pipe. For each byte written to $2180, it actually is copied to another address, in sequential order. The start address is set at $2181 (low byte), $2182 (middle byte) and $2183(high byte). Each write adds the copy address by the number of bytes written.
In the code, each byte written to $2180 corresponds to a command id to be added to Gogo's list of commands. The copy address was already set somewhere before the code.
You need to write a specific set of commands id at $2180 based in your custom preferences. For your goal, you must use many selective branches to write specific commands id at $2180.
Don't forget to update Y as the size of the commands list in the end of the code. Also, as a engine limitation, if you put more than 15 commands, the list will bug and the extra commands will appear in weird spots without their strings. If there is too few commands, a square related to the character portrait transparency will appear. It is aesthetically ugly.
You can think it as a pipe. For each byte written to $2180, it actually is copied to another address, in sequential order. The start address is set at $2181 (low byte), $2182 (middle byte) and $2183(high byte). Each write adds the copy address by the number of bytes written.
In the code, each byte written to $2180 corresponds to a command id to be added to Gogo's list of commands. The copy address was already set somewhere before the code.
You need to write a specific set of commands id at $2180 based in your custom preferences. For your goal, you must use many selective branches to write specific commands id at $2180.
Don't forget to update Y as the size of the commands list in the end of the code. Also, as a engine limitation, if you put more than 15 commands, the list will bug and the extra commands will appear in weird spots without their strings. If there is too few commands, a square related to the character portrait transparency will appear. It is aesthetically ugly.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)