A tool to make Gecko codes for Super Mario Sunshine. https://pypi.org/project/supSMSGecko/
Find a file
2023-07-14 22:27:36 +09:00
src/supSMSGecko [v0.1.0a3] Changed default output file name of make_xml to @code.xml 2023-07-14 21:49:49 +09:00
.gitignore init (v0.1.0a1) 2023-07-14 21:14:54 +09:00
CHANGELOG.md [v0.1.0a4] Fixed setup.cfg to include ldscript/ 2023-07-14 22:27:36 +09:00
LICENSE init (v0.1.0a1) 2023-07-14 21:14:54 +09:00
MANIFEST.in init (v0.1.0a1) 2023-07-14 21:14:54 +09:00
pyproject.toml init (v0.1.0a1) 2023-07-14 21:14:54 +09:00
README.md Fixed README 2023-07-14 22:00:15 +09:00
setup.cfg [v0.1.0a4] Fixed setup.cfg to include ldscript/ 2023-07-14 22:27:36 +09:00

supSMSGecko

A tool to make Gecko codes for Super Mario Sunshine.

Installation

pip install supSMSGecko

Example

from supSMSGecko import make_xml, symbols, Button as B

def main(g, ver):
  S = symbols[ver]
  addr_inst = 0x26 + S['TMarDirector::direct']
  addr_input = S['mPadStatus']
  # code
  g.write16(addr_inst, 600)
  g.if16(addr_input, '==', B.B | B.DL)
  g.write16(addr_inst, 2400)
  g.if16(addr_input, '==', B.B | B.DR, endif=True)
  g.write16(addr_inst, 4800)
  g.endif()

# output the generated Gecko codes for all 4 versions to "@code.xml"
make_xml(main)

TODO

  • document of each function