Commit Graph

439 Commits

Author SHA1 Message Date
Ethan Roseman
41898d2c0b MacOS test 2020-12-05 17:17:55 -05:00
Alex Bates
e56bcae805 bump splat 2020-12-03 21:07:44 +00:00
Alex Bates
c9e556a00f change 'make clean' behaviour 2020-12-03 21:06:15 +00:00
Alex Bates
cfd0e92cff tidy up splat 2020-12-02 22:26:08 +00:00
Alex Bates
dfcb98ec0b bump splat 2020-12-02 18:13:24 +00:00
Alex Bates
dd9df5438d use area_xxx names for battle section dirs 2020-12-02 15:37:24 +00:00
Alex Bates
cdeb8b5683 decode battle data (wip rodata) 2020-12-02 15:13:17 +00:00
Ethan Roseman
9e5a9710be fix splat regression, cleanup 2020-12-02 01:23:13 -05:00
Ethan Roseman
5062328c73 new file 2020-12-01 19:13:24 -05:00
Ethan Roseman
0da876ff13 Statistics 2020-11-30 00:55:28 -05:00
Ethan Roseman
0a2a1f1662 removing unnecessary syms 2020-11-29 23:52:12 -05:00
Ethan Roseman
1911d1ba99 Faster Yay0 decompression 2020-11-29 23:11:14 -05:00
Ethan Roseman
174c920323 fee30 data 2020-11-29 14:57:23 -05:00
Ethan Roseman
b7e649c1e1 improve data disasm, si.c rodata 2020-11-29 14:37:53 -05:00
Ethan Roseman
0a38d165d2 offset goodness 2020-11-29 13:32:02 -05:00
Ethan Roseman
f344e6ef95 Merge branch 'cornucopia' into symbols-galore 2020-11-29 12:05:24 -05:00
Ethan Roseman
535a1cbc47 undefined_funcs_auto 2020-11-29 12:00:52 -05:00
Ethan Roseman
80856cef14 map funcs rename soln 2020-11-29 11:52:16 -05:00
Ethan Roseman
df6c0891bd working 2020-11-29 02:51:42 -05:00
Ethan Roseman
4b8a276c35 more syms 2020-11-29 02:36:00 -05:00
Ethan Roseman
1e2436bebc update 2020-11-29 02:15:56 -05:00
Ethan Roseman
5b8cc80e2a More symbol insns 2020-11-29 01:42:43 -05:00
Ethan Roseman
b4856126b8 more debug 2020-11-29 00:56:43 -05:00
Ethan Roseman
3766d727ae debug symbol info 2020-11-29 00:49:32 -05:00
Ethan Roseman
c5dec63567 data disassembly! 2020-11-29 00:22:33 -05:00
Ethan Roseman
71dde79186 asm update 2020-11-27 01:39:15 -05:00
Ethan Roseman
def7b12a2d e0b30 2020-11-27 01:14:28 -05:00
Ethan Roseman
1e02c566ad a few more 2020-11-26 16:19:34 -05:00
Ethan Roseman
8271cb5636 3251D0 OK 2020-11-23 13:48:34 -05:00
Ethan Roseman
4400966849 Merge branch 'master' into cornucopia 2020-11-22 10:07:20 -05:00
Alex Bates
bf9a32751a merge master 2020-11-22 10:59:30 +00:00
Ethan Roseman
36e421710d UnkNpcAIFunc5 2020-11-21 23:32:54 -05:00
Ethan Roseman
a82d6893ed UnkNpcAIFunc4 2020-11-21 23:25:13 -05:00
dark-samus
63429d6ad2 split code_106ef0 and match most funcs 2020-11-21 04:28:02 -05:00
dark-samus
48487dbab0 merge master 2020-11-21 02:45:11 -05:00
Ethan Roseman
fb85b1d269 another 2020-11-20 00:16:08 -05:00
Ethan Roseman
4b8af37c35 UnkNpcAIFunc1 2020-11-19 23:08:05 -05:00
Alex Bates
744b12ebe6
split 0x1E00000 extra sprites bin 2020-11-19 09:54:54 +00:00
Alex Bates
b5f0c2588a
merge master 2020-11-19 09:31:10 +00:00
dark-samus
87ec701223 Merge branch 'master' of https://github.com/ethteck/papermario into entity_funcs 2020-11-19 03:32:34 -05:00
dark-samus
141626664f decompile more entity funcs, split new file 2020-11-19 03:31:22 -05:00
Ethan Roseman
e682166792 Merge remote-tracking branch 'origin/master' into cornucopia 2020-11-18 14:10:14 -05:00
Alex Bates
3c7ebe536d
fix fallback lambdas 2020-11-18 11:16:23 +00:00
Alex Bates
a35b085c17
fix credits font 2020-11-18 10:56:56 +00:00
Alex Bates
a7f5ed8a36
remove vmprof stuff 2020-11-18 10:45:01 +00:00
Alex Bates
ec96845074
SPEED 2020-11-18 10:37:02 +00:00
Alex Bates
f558d0faa6
sonic 2020-11-18 10:25:55 +00:00
dark-samus
d68a3e84a6 merge master 2020-11-18 00:35:50 -05:00
Ethan Roseman
f1279977bd various decomp, cleaning splat.yaml 2020-11-18 00:20:28 -05:00
Ethan Roseman
cb23fa9a5a Splat update 2020-11-17 17:01:31 -05:00
Ethan Roseman
f616532137 osSiDeviceBusy 2020-11-13 01:36:13 -05:00
Ethan Roseman
f6f56a8a5f libultra organization 2020-11-13 01:17:53 -05:00
Ethan Roseman
89132f5cc1 partner c file 2020-11-12 00:22:50 -05:00
Ethan Roseman
e723afa31c
Merge pull request #122 from ethteck/splat-extensions
n64splat extensions
2020-11-11 16:36:04 -05:00
Ethan Roseman
76134074ab n64splat extensions 2020-11-11 16:21:25 -05:00
Alex Bates
e0daee1bb8 generate sprite animation headers 2020-11-11 16:33:55 +00:00
Alex Bates
87cc5ed999 match npc sprites 2020-11-11 13:52:04 +00:00
Ethan Roseman
698f1feee9 :( 2020-11-10 15:54:36 -05:00
Ethan Roseman
43f11633a3 more syms, file split 2020-11-10 10:11:43 -05:00
Ethan Roseman
b78de19ffb random progress 2020-11-09 22:48:47 -05:00
Ethan Roseman
e1626030ff some libultra organization 2020-11-09 21:51:33 -05:00
Ethan Roseman
47f464a17e Merge branch 'master' into cornucopia 2020-11-08 17:00:39 -05:00
Ethan Roseman
0628fac4a2 fix offset 2020-11-08 16:11:02 -05:00
Ethan Roseman
f55cace9a3 more EF070 2020-11-08 16:05:39 -05:00
Ethan Roseman
cdd2d6bd15 ASM update and types 2020-11-08 15:40:26 -05:00
Alex Bates
70032a1123 rename si funcs 2020-11-08 19:20:09 +00:00
Alex Bates
c13ca4392b use ScriptOpcode enum instead of macros 2020-11-08 19:07:10 +00:00
Ethan Roseman
9b26bd68ad more syms 2020-11-08 14:02:08 -05:00
Ethan Roseman
680cead360 gAnimatedMeshesPtr 2020-11-08 13:39:23 -05:00
Alex Bates
c794134d08 allow user-controlled label allocation
Required to match some scripts
2020-11-08 15:45:52 +00:00
Alex Bates
f811ed0b92 add explicit const/float DSL commands, improve match disassembly 2020-11-08 15:35:41 +00:00
Alex Bates
d11595684e disassemble complex match statements 2020-11-08 14:57:58 +00:00
Alex Bates
5d36960883 add support for multi-cases and range cases 2020-11-08 14:00:53 +00:00
Alex Bates
6ecf63e992 add match dsl syntax 2020-11-08 12:16:10 +00:00
Alex Bates
5890d885ee update disasm_script.py for new symbol_addrs.txt format 2020-11-08 10:28:08 +00:00
Ethan Roseman
72f4a180f2 SetNpcFlagBits 2020-11-07 23:33:15 -05:00
dark-samus
783f0a2f83 merge master 2020-11-07 19:33:16 -05:00
Ethan Roseman
24558d98d6 sbk_01 2020-11-07 15:50:39 -05:00
Ethan Roseman
0207e22f5e Merge branch 'master' into cornucopia 2020-11-07 14:58:58 -05:00
Ethan Roseman
adf6b96cf9
Merge pull request #116 from ethteck/cornucopia
Various decomp
2020-11-07 14:48:11 -05:00
Ethan Roseman
1173f4c681 :island: 2020-11-07 14:44:44 -05:00
Alex Bates
5943328c0b merge master 2020-11-07 14:45:34 +00:00
Alex Bates
96a20fc060 bump splat 2020-11-07 14:45:16 +00:00
Alex Bates
1e7fa8e418 bump splat 2020-11-07 14:36:42 +00:00
Alex Bates
d5a8f66d2b change C button chars 2020-11-07 12:06:31 +00:00
Alex Bates
750c9e7ccd add .msg syntax docs 2020-11-07 11:56:01 +00:00
Alex Bates
78fb3df09c add alias for some non-ASCII chars as per star rod 2020-11-07 01:13:56 +00:00
Alex Bates
26c23068aa split and compile messages 2020-11-07 01:09:11 +00:00
Ethan Roseman
5ae79b7f86 Various decomp 2020-11-05 19:30:17 -05:00
Alex Bates
dec59abb80
split battle sections 2020-11-05 14:16:57 +00:00
Ethan Roseman
ec5e547146 symbol detection fix 2020-11-02 15:44:06 -05:00
Ethan Roseman
d55b0888a1 gItemTable offsets 2020-11-02 15:22:54 -05:00
Ethan Roseman
743619e28f a few more 2020-11-02 15:19:04 -05:00
Alex Bates
2c4fcac207 fix build 2020-11-02 20:16:19 +00:00
Ethan Roseman
0df7ef28a3 gCurrentEncounter offsets + some funcs 2020-11-02 14:21:58 -05:00
Alex Bates
7828969e61 generate ld_addrs.h without splat 2020-11-02 19:18:21 +00:00
dark-samus
bf34fb3706 Merge branch 'master' of https://github.com/ethteck/papermario into code_102610_funcs 2020-11-02 13:15:27 -05:00
Alex Bates
0448af546c merge master 2020-11-02 17:22:42 +00:00
Alex Bates
0c0780821e bump splat 2020-11-02 16:55:38 +00:00
Alex Bates
b4a19e09e5 fix splat issues 2020-11-02 16:39:29 +00:00
Ethan Roseman
134fcbfa44 PR comment 2020-11-02 11:08:20 -05:00
Ethan Roseman
f88b57873d 4 2020-11-02 11:05:38 -05:00
Ethan Roseman
cee95c6d92 (3) 2020-11-02 00:58:08 -05:00
Ethan Roseman
8a614385bf trying to fix bug (2) 2020-11-02 00:37:04 -05:00
Ethan Roseman
81a672b268 trying to fix a bug 2020-11-02 00:32:18 -05:00
dark-samus
4ab5a61497 merg 2020-11-02 00:28:46 -05:00
Ethan Roseman
a102b7546f Merge branch 'master' into asm-update 2020-11-02 00:17:17 -05:00
Ethan Roseman
36773e4007
Merge pull request #109 from nanaian/images
add image splits
2020-11-01 23:56:22 -05:00
dark-samus
73551cac91 another func, new file split 2020-11-01 20:14:01 -05:00
Ethan Roseman
d6fbf1d71e splat bump2 2020-11-01 19:10:41 -05:00
Ethan Roseman
b545f6fc51 splat bump 2020-11-01 19:03:20 -05:00
Ethan Roseman
43245322cc splat update 2020-11-01 18:43:23 -05:00
Ethan Roseman
3a134d6a7d gPlayerStatus offsets 2020-11-01 18:37:28 -05:00
Ethan Roseman
5d160b9f08 gPlayerData offsets 2020-11-01 18:28:44 -05:00
Ethan Roseman
b6bc2fb604 asm refresh + new splat / symbol_addrs format 2020-11-01 17:36:59 -05:00
Alex Bates
dd4b9ec6e5 merge master 2020-10-31 20:10:22 +00:00
Alex Bates
82a5b59d27 bump splat 2020-10-31 19:57:37 +00:00
Ethan Roseman
bfbae5e26a remove padding3 2020-10-31 15:04:45 -04:00
Alex Bates
ca4c4b0507 bump splat 2020-10-31 18:50:00 +00:00
Alex Bates
44fd38f4f8 add image splits 2020-10-31 18:30:16 +00:00
Ethan Roseman
54cd46a228 Merge branch 'master' into maps 2020-10-31 11:44:54 -04:00
Ethan Roseman
758db707e5 Merge branch 'maps' of github.com:ethteck/papermario into maps 2020-10-31 11:44:33 -04:00
Ethan Roseman
0e383a411b kmr_03 data OK but messy 2020-10-31 11:44:24 -04:00
alex
ed62a6999b
Merge branch 'master' into audio 2020-10-31 05:57:48 +00:00
Alex Bates
edfc6e8cf5 remove 'this is right'
lol
2020-10-31 04:46:57 +00:00
Alex Bates
21ab7fed6c new dsl syntax 2020-10-31 02:28:18 +00:00
Alex Bates
91f3517b86 parse ASCII structs 2020-10-31 00:28:23 +00:00
Alex Bates
d86cb5cb27 improve disasm_map.py output 2020-10-31 00:14:49 +00:00
Ethan Roseman
8ee2bf4522 UnkMoveNpc 2020-10-30 16:23:23 -04:00
Alex Bates
74e8c61db1
bump splat 2020-10-30 19:28:42 +00:00
Alex Bates
3206f6ffde
name code_341d0_len_20d0.c 2020-10-30 19:01:24 +00:00
Alex Bates
c1c0a98810
match area table
YOOOOOOOOOOOOOO
2020-10-30 18:58:59 +00:00
Alex Bates
3d9127a340
match world table .data 2020-10-30 17:43:12 +00:00
Alex Bates
debc0016fd
use ld_addrs.h in load_world_script_api
Renamed from load_map_script_lib
2020-10-30 16:07:33 +00:00
Alex Bates
cce065d529
badly match func_8014A498 2020-10-29 23:52:24 +00:00
Alex Bates
db1ee14d8f
match get_song_variation_override_for_cur_map
This was previously called get_default_variation_for_song, but its more of an override than a default.
2020-10-29 22:41:43 +00:00
Ethan Roseman
0fb1e1ab30 🐶 2020-10-29 16:58:34 -04:00
Alex Bates
631afbe477
match many small funcs, rename symbols 2020-10-29 03:48:04 +00:00
Alex Bates
9c5338c04b
match func_8014AA54 2020-10-29 02:54:01 +00:00
Alex Bates
e0c8108543
match _set_music_track 2020-10-29 01:34:00 +00:00
Alex Bates
9eef0b0273
match set_music_track
rewrite flag as NOT


clean up set_music_track temps
2020-10-29 01:34:00 +00:00
Alex Bates
85f7331004
match func_80055050 2020-10-29 00:29:30 +00:00
Alex Bates
1982b25ff8
remove ld_name 2020-10-28 22:10:23 +00:00
Alex Bates
80dc887bfa
bump splat 2020-10-28 22:09:57 +00:00
Alex Bates
5ddfce7824
improve ld script & asset building
makefile go brrrr
2020-10-28 20:58:11 +00:00
Ethan Roseman
0e554072d1
Merge pull request #99 from ethteck/cornucopia
Cornucopia 4nucopia
2020-10-28 15:04:44 -04:00
Ethan Roseman
eb41485a0a New C file split, many functions decompiled 2020-10-26 19:10:32 -04:00
Ethan Roseman
74ad0711fd
Merge pull request #98 from ethteck/cornucopia
Cornucopia 3D
2020-10-26 18:06:13 -04:00
Ethan Roseman
c2d7449287 SetEntityPosition + co 2020-10-25 22:20:37 -04:00
Ethan Roseman
eba9c356ed Update assist.py 2020-10-25 20:11:05 -04:00
Alex Bates
cba82f3608
remove star-rod 2020-10-25 00:49:09 +01:00
Ethan Roseman
6b8211bee1
Merge pull request #95 from nanaian/script-dsl
Add script DSL
2020-10-24 00:22:38 -04:00
Ethan Roseman
2f33cec82d
Merge pull request #89 from ethteck/cornucopia
Cornucopia: The Squeakquel
2020-10-24 00:18:12 -04:00
Ethan Roseman
5d64708640 Map headers 2020-10-23 21:09:49 -04:00
Alex Bates
1d2e46fcad
do..while -> loop.until
astyle indented the `while` wrongly as there's no semicolon
2020-10-23 21:07:25 +01:00
Alex Bates
52f5d3cc49
improve build time 2020-10-23 21:06:06 +01:00
Alex Bates
f08eab499c
fix warnings 2020-10-23 20:17:35 +01:00
Alex Bates
7c70208230
fix break statement 2020-10-23 20:14:58 +01:00
Alex Bates
d29496e6e0
add do..while psuedoinstruction 2020-10-23 19:35:45 +01:00
Alex Bates
652c52d3dd
use SCRIPT(...) everywhere 2020-10-23 18:39:38 +01:00
Ethan Roseman
98d8bdd789 map header WIP 2020-10-23 08:31:56 -04:00
Alex Bates
218961279b
merge make 2020-10-23 01:56:22 +01:00
Alex Bates
049022174c
new makefile 2020-10-23 01:28:24 +01:00
Ethan Roseman
2462200b48 Merge branch 'master' into cornucopia 2020-10-22 17:16:58 -04:00
Alex Bates
61665d1066
bump splat 2020-10-22 18:12:13 +01:00
Alex Bates
1abd55b4a1
fix build 2020-10-22 17:39:14 +01:00
Alex Bates
0ea4d24deb
merge master 2020-10-22 17:34:31 +01:00
Alex Bates
83153acb59
implement SCRIPT(...) dsl 2020-10-22 05:54:03 +01:00
Ethan Roseman
99d275d1a0 splat 2 2020-10-21 18:08:22 -04:00
Ethan Roseman
a659c1aeb4 big boy cleanup 2020-10-21 18:05:18 -04:00
Alex Bates
5e8f352090
fix BIND_PADLOCK disasm 2020-10-21 04:04:41 +01:00
Alex Bates
a85df352a4
use M(sym) in disasm_map 2020-10-21 03:54:40 +01:00
Alex Bates
9de4cebb79
map disassembly 2020-10-21 03:10:13 +01:00
Ethan Roseman
59d30300f5 GetItemName 2020-10-20 20:59:17 -04:00
Ethan Roseman
6bfd58db59 Merge branch 'master' into cornucopia 2020-10-20 18:00:16 -04:00
Ethan Roseman
89ae878f24 Merge branch 'master' into misc-improvements 2020-10-20 17:26:27 -04:00
Alex Bates
1e9843e549
remove _ prefix from filenames 2020-10-20 21:32:06 +01:00
Alex Bates
ca88a636e9
split maps further, clean asm 2020-10-20 20:47:10 +01:00
Alex Bates
ff7c3f333e
split all map files 2020-10-20 20:11:56 +01:00
Alex Bates
75ef09e046
fix start of .data/.rodata splits 2020-10-20 19:47:23 +01:00
Alex Bates
9e1613ebb9
split maps 2020-10-20 19:26:58 +01:00
alex
607dba0c58
Merge branch 'master' into misc-improvements 2020-10-20 18:51:56 +01:00
Ethan Roseman
ac244f4220
Merge pull request #84 from nanaian/scripts
Script disassembly, match kmr_12
2020-10-20 13:50:04 -04:00
Ethan Roseman
dbd8e0b1ee Merge branch 'misc-improvements' into cornucopia 2020-10-20 12:44:50 -04:00
Alex Bates
99ac1cf053
update si types 2020-10-20 07:33:40 +01:00
Devon R
1514bd43fa
New distro support: openSUSE, Alpine Linux (#82)
* Install scripts for openSUSE/Alpine, static cc1, mips-nintendo-nu64-as

* Update install.sh

only

Co-authored-by: Ethan Roseman <ethteck@gmail.com>
2020-10-20 00:07:04 -04:00
Alex Bates
136df602cd
update symbol_addrs 2020-10-20 04:41:23 +01:00
Alex Bates
23f8d8ee35
add structs/macros for matching map data 2020-10-20 04:11:07 +01:00
Ethan Roseman
dfd9de4765 Beginning SpawnSunEffect 2020-10-19 19:48:16 -04:00
Alex Bates
dd72dfcd1f
fix kmr_12 split 2020-10-19 23:22:18 +01:00
Alex Bates
f9a667bc7d
begin script disassembly 2020-10-19 22:58:57 +01:00
Ethan Roseman
ad275eb02c Makefile cleanup, quieter splata, assist.py 2020-10-19 17:29:40 -04:00
Ethan Roseman
8e47ca56c4
Map code (#80)
* split all map code

hype

* split area_table.bin properly

* fix coverage.py c_func_pattern to match multiline func signatures

* add src/world/* to makefile

* bump splat

* yikes

* splat maps without vram_lock

Co-authored-by: Alex Bates <hi@imalex.xyz>
2020-10-19 00:42:17 -04:00
sonicspiral
a82d662627
Decomp func_8013A854 from code_d0a70_len_4fe0 and add UnkStructFromfunc8013A854 (#78)
* inisital docs of asm logic and mips_to_c output

* add temp unknown struct for this func
* remove comments from asm, will keep them local only.

* moved UnkSructFromfunc8013A854 to common_sructs.h
* added it's pointer to undefined_syms
* fixed struct pointer and size
* this is a new struct, no others that are `0x7C` in size

* pulled upstream. testing more code.

* fix func_8013A854 to represent latest upstream

* remove unknown struct from common structs to this func

* this is a void func

* unknown struct should be an array with size based on mipstoc outpute a0 < 0x5A

* correct number of lines of asm output from diff, but all code does not match

* fix data types in UnkStructFromfunc8013A854

* temp_v0's logical shift needs to go after UnkStructFromfunc8013A854

* remove unneeded variables

* remove unneeded variables and adding inline sll multiple calc

* add UnkStructFromfunc8013A854 back to common structs

* add UnkStructFromfunc8013A854 back to common structs

* pull latest n64 splat

* analyzing func_8013AA9C to construct UnkStructFromfunc8013A854

* may need unions to represent sub structs in this unk

* roll back struct changes and focus on regalloc

* not an array of pointers looks like there's an array of 90 structs, each struct of size 0x7C

* got OK, now need to cleanup code

* Merge branch 'master' of https://github.com/ethteck/papermario into code_d0a70_len_4fe0-func_8013A854

# Conflicts:
#	tools/n64splat

* fix comment

* remove func_8013AA9C comment used during debug

* add placeholders unks in UnkStructFromfunc8013A854 based on func_8013AA9C

* add first 6 unks in D_80156954

* update todo, add some padding

* adding padding

* adjusting padding

* finished first implementation of padding for UnkStructFromfunc8013A854

* run ./coverage.py --delete-matched

* git checkout -f master && git pull for tools/star-rod

* several changes to UnkStruct8013A854:
* change name from UnkStructFromfunc8013A854 to UnkStruct8013A854
* only include known member data
* add list typedef since this is any arracy of structs

* fix UNKSTRUCT8013A854_SIZE const

* fix スプラトゥーン n64splat

* implement UnkStruct8013A854List to track which array we are pointing to in this unknown struct

* resolve PR feedback. todo resolve splat, review alex optimization:
* move unkstruct extern, struct, and size to code_d0a70_len_4fe0.c
* format void func_8013A854 variable spacing
* add unknown symbol D_80156954;0x80156954 to tools/symbol_addrs.txt

* try fix スプラトn64 with git checkout master && git pull

* fix lint

* move var declaration to inside if and format code

* remove todo comment

Co-authored-by: sonicspiral <>
Co-authored-by: sonicspiral <mru@plusultra.localdomain>
2020-10-19 00:15:04 -04:00
Ethan Roseman
78dc55f2f5 some of world_goompa 2020-10-18 20:24:43 -04:00
Ethan Roseman
b71a05cd97 world_goombaria 2020-10-18 20:04:18 -04:00
Ethan Roseman
37856b1b54 2020-10-18 19:27:14 -04:00
Ethan Roseman
fa589f28f1 more 🐟 2020-10-18 18:16:42 -04:00
Ethan Roseman
a15a282a08 Thy cornucopia hath return! 2020-10-18 17:04:40 -04:00
Alex Bates
5f87748ccf
merge master 2020-10-18 15:44:38 +01:00