Tyler Wilding
fbcc1542f3
decomp: decompile remaining particle files ( #865 )
...
* decomp: finish `beach-part`
* decomp: finish `citadel-part`
* decomp: finish `robotboss-part`
* decomp: finish `sage-finalboss-part`
* decomp: finish `jungle-part`
* decomp: finish `flut-part`
* decomp: finish `firecanyon-part`
* decomp: finish `village2-part2`
* decomp: finish `swamp-part`
* decomp: finish `maincave-part`
* decomp: finish `sunken-part0-5`
* decomp: finish `ogre-part`
* decomp: finish `robocave-part` and `snow-part`
* decomp: finish `collectables-part`
* decomp: finish `village1-part`
* decomp: finish `village1-part2
* decomp: finish `training-part`
* decomp: finish `misty-part`
* decomp: finish `village2-part`
* decomp: finish `village3-part`
* decomp: finish `lavatube-part`
* decomp: finish `hud-h`, `target-racer-h`, `racer-part`
* address feedback
2021-09-29 20:33:40 -04:00
water111
7ebbe812b1
Cleanup sparticle, add ref tests, name a few methods ( #863 )
...
* temp
* add reference tests
2021-09-28 21:17:38 -04:00
Tyler Wilding
dd959d0d0d
decomp: Continuing full pass of gameplay code ( #839 )
...
* decomp: finish `babak` - :code is called in `(code nav-enemy-patrol babak)`
* decomp: almost finish `process-taskable`
* blocked: mistycannon / pelican
* decomp: finish `babak-with-cannon` write a script to fix gsrc
* decomp: finish `process-taskable`
* decomp: finish `flutflut` and `yakow`
* decomp: finish `fishermans-boat`
* blocked: state decomp `training-obs`
* decomp: finish `muse`
* decomp: finish `bonelurker`
* blocked: state decomp in `quicksandlurker`| `balloonlurker`
* decomp: finish `assistant-village2`
* scripts: script to help updating goal_src
* starting to update goal_src
* tests: update ref tests
* src: more src updating
* src: waiting on `process-taskable` and `muse`
* blocked: `citb-plat` state decomp
* decomp: finish `square-platform`
* blocked: `orbit-plat` due to overlays + static data
* decomp: finish `qbert-plat`
* blocked: almost finish `misty-conveyor`, sparticle-callback
* blocked: jungle-mirrors
* blocked: state decomp in `swamp-blimp`
* decomp: finish `swamp-bat`
* decomp: finish `swamp-rat`
* decomp: finish `swamp-rat-nest`
* blocked: state decomp `kermit`
* decomp: finish `cavecrystal-light`
* decomp: finish `spiderwebs`
* blocked: state decomp `dark-crystal`
* decomp: finish `baby-spider`
* decomp: finish `mother-spider-h`
* decomp: finish `mother-spider-proj`
* blocked: state decomp in `gnawer`
* blocked: state decomp in `driller-lurker`
* blocked: `sun-exit-chamber` breaks when adding handle cast
* decomp: finish `sunken-water`
* blocked: `target-tube` ShortCircuitElement::push_to_stack
* decomp: finish `sunken-fish`
* blocked: `minecart` decomp crash when adding stack cast
* decomp: finish `assistant-village3`
* decomp: finish `sage-village3`
* blocked: `cave-trap` done but ran into `go` issue
* blocked: `spider-egg` state decomp
* decomp: finish `target-snowball`
* blocked/stuck: `target-ice` decomp issue around cpad
* pausing: ice-cube has some weird collide-shape-prim handling
* blocked: `snow-ball` state decomp
* blocked: `snow-bumper` state decomp
* decomp: finish `snow-ram-h`
* decomp: finish `yeti`
* decomp: finish `assistant-lavatube`
* re-enable the float cast log
* decomp: updating to new sparticle definitions
* decomp: address feedback up to `swamp-rat-nest`
* address remaining feedback
* all-types: move the `pointer` def
* add back temporary `hud-hidden?`
2021-09-28 20:42:00 -04:00
water111
188373a3f6
decompile some drawable stuff and fix a few small bugs ( #859 )
2021-09-28 19:24:09 -04:00
ManDude
d8e659df66
[decomp] flying-lurker ( #846 )
...
* `flying-lurker`
* why'd this get left behind?
* also `ambient` and add a `banned_objects` config and fix offline tests
* clang
* fix `ambient-type-sound`
2021-09-21 18:40:38 -04:00
water111
5683f04046
[decomp] handle handle->process inside an and ( #851 )
...
* fix the loader example
* improve compiler error message
* fix missing cast issue
2021-09-21 00:12:37 -04:00
water111
f9d8fcd6e4
[decomp] add mips2c converter ( #842 )
...
* mips 2 c basic version, not yet tested
* calling works without crashing, but the function doesn't
* it works
* add test
* cleanup and actually add the test
* dont use mips2c by default for font
* clean up formatting
2021-09-11 20:52:35 -04:00
Tyler Wilding
4ff2130d55
decomp: decompile almost all the platform related files ( #812 )
...
* deocmp: `plat` finished, `baseplat` started
* decomp: finish `baseplat`
* decomp: finish `plat-button`
* decomp: finish `plat-eco`
* decomp: finish `citb-drop-plat-CIT`
* decomp: finish `cit-drop-plat-L1`
* decomp: finish `plat-flip`
* decomp: added a bunch of label defs
* decomp: `plat-button` ref test added
* stash
* decomp: finish `baseplat`
* decomp: finish `plat`
* decomp: finish `plat-button`
* tests: fix offline-test to handle multi-DGO files better
* decomp: finish `citb-drop-plat-CIT`
* decomp: finish `plat-flip`
* decomp: finish `wedge-plats`
* tools: fix memory analyzer, skip invalid type
* decomp: finish `wall-plat`
* fix ordering
* fix some casting issues
* cleanup after conflict resolution
* address reviews
2021-09-06 21:10:19 -04:00
Tyler Wilding
d1f16b34ff
decomp: another batch of easy files ( #823 )
...
* decomp: finish `sharkey`
* decomp: finish `lurkercrab`
* decomp: finish `lurkerpuppy`
* decomp: finish `assistant-citadel`
* decomp: finish `static-screen`
* decomp: finish `robotboss-h`
* decomp: finish `final-door`
* decomp: finish `aphid`
* addressed review
2021-09-06 15:34:31 -04:00
Tyler Wilding
42f7a675b2
decomp: a few files that were done except for sp-launch-group ( #802 )
...
* decomp: dark-eco-pool blocked by sparticle-launch-group label
* decomp: finalize `dark-eco-pool`
* decomp: mostly finish `beach-rocks` waiting for sparticle label supp
* decomp: almost done `beach-rocks` but potential new handle case
* decomp: finish `beach-rocks`
* decomp: finish `assistant`
* decomp: finish `miners`
2021-09-01 11:20:05 -04:00
water111
d9f9e076af
[decompiler] automatically label things when possible ( #784 )
...
* improve label system
* clean up menu
* debug menu working, still need to fix tests
* fix tests and clean up
2021-08-29 11:13:06 -04:00
Tyler Wilding
4c61343cb7
decomp: evilbro ( #774 )
...
* add script to make adding lambda label casts a bit easier
* decomp: almost finish `evil-bro`
blocked by handle -> process conversion it seems:
`No method or function named .asm.sllv.r0 for type (pointer process-tree)`
* so close! SLLV issue (not a simple handle scenario)
* decomp: finalize `evilbro` blocked by func return type
* decomp: finish `evilbro`
2021-08-22 21:03:47 -04:00
water111
403bb5f4de
[decomp] game-info ( #779 )
...
* support more process stuff
* more of game info
* add ref file
* progress on save
2021-08-22 20:12:47 -04:00
water111
97ab6a4e12
add support for non virtual states ( #764 )
...
* add support for non virtual states
* typecheck go
* start on virtual states
* more support for virtual states
* offline passes
* fix tests
* use behavior shortcut instead of lambda
* final cleanup of virtual go
* unused var warnings and fix inconsistent enum decompile order on win vs linux
* fix thread safety bug with goal symbol table and vif1 interrupt handler
* fix type mistake
2021-08-17 20:54:03 -04:00
water
5aa15afe29
decompile sprite-distort without vu1 stuff
2021-08-13 18:50:29 -04:00
Tyler Wilding
a9816f9d28
decomp: finish misty-teetertotter
2021-08-08 17:00:51 -04:00
Tyler Wilding
d400ec3b2d
decomp: mood ( #672 )
...
* decomp: Almost finished `mood`, but confused over the `mood-context` type!
* only function that remains involves vftoi / ppach instructions
* stash
* decomp: fix inline array access issue
* decomp: finalize `mood`
* linting
2021-08-01 16:11:22 -04:00
Tyler Wilding
d37e6c548e
decomp: camera | cam-combiner | cam-start | cam-update ( #621 )
...
* started process on `camera`
* the bulk of `camera` is finished, with the exception of a few
* decomp: Confirmed function ret value
* decomp: `cam-combiner` dead code issue
* stash
* decomp: finish `cam-combiner`
* decomp: finish `cam-start`
* decomp: mostly finish `cam-update`, just needs polish now
* `cam-standard-event-handler` still causing issues
* `cam-combiner` issues with top-level `s6` usage
* decomp: update reference tests
* decomp: finalize `cam-start`
* decomp: `cam-update` cleaned up everything except the array of planes issue
* label correction
* still blocked in cam-combiner over casting issues
* decomp: resolve issues in `cam-start`
* decomp: finalize `cam-update`
* stash
* decomp: finalize `cam-combiner`
* decomp: finalize `camera`
* decomp: address feedback
2021-07-30 22:18:35 -04:00
water111
bd9f550d82
add ref test for sprite and support nested bitfields in static data ( #723 )
2021-07-26 20:02:16 -04:00
water111
2b6684aa5c
[decompiler] Working toward bsp ( #717 )
...
* clean up
* before int to float stuff
* before trying to eliminate the separate read and write maps
* partial fix for register issues
* add missing include
2021-07-25 15:30:37 -04:00
ManDude
1e11a588f5
[decomp] loader prelim work + some cleanup ( #697 )
...
* [decomp] `loader` prelim work + some cleanup
* more things
* more
* even more
* yet even more
* minor fixes
* decompiler fix + use behaviors for two funcs
* last functions
* Create loader_REF.gc
* more work
* change vag tool config format + unrelated farmer and yakow stuff
* update some things
* fix some decomp
* cleanup things i came across + make dgo compileable
* fix consistency test
* update refs
* offline test: skip buggy `external-art-buffer` method
* fix test
2021-07-23 18:30:49 -04:00
water111
c76b51d805
clean up to gsound! ( #709 )
2021-07-19 20:49:33 -04:00
water111
656489e942
[decomp] Clean up - part 2 ( #687 )
...
* temp
* temp2
* basic case support
* working for or without else
* support more cases
* clean up to drawable headers
* ocean
* format json
2021-07-11 16:35:25 -04:00
Tyler Wilding
1b5c5239b1
decomp: mostly finish aligner ( #686 )
...
* decomp: mostly finish `aligner`
Issues in aligner/aligner-h that require hand-editing after decompilation
* linting
2021-07-11 16:19:03 -04:00
water111
1898c7c52a
[decomp] texture ( #684 )
...
* temp
* more cleanup
* fix merge issue
* handle no texture correctly
2021-07-09 22:20:37 -04:00
water111
551a9c4955
[decompiler] ASM Branching Support ( #677 )
...
* basic example working in geometry
* before updating offline'
* clean up
* temp
* progress
2021-07-05 16:07:07 -04:00
Tyler Wilding
17aedd894d
decomp: hint-control | menu | default-menu (as much as possible) ( #632 )
...
* decomp: mostly done `hint-control`
* decomp: Started and decent chunk of `menu` done
* temp stash
* decomp: escape from `menu` hell
* decomp: starting on `default-menu`
* decomp: As much as i can do in `default-menu` at this time
* decomp: clean up `hint-control`
* decomp: fix reference tests
* temp stash
* decomp: finalize `menu`
* decomp: add `menu` to goal_src
* decomp: finalize `hint-control`
* decomp: Resolve TypeConsistency issues
* and fix reference tests
* address feedback
* format and lint
* fix tests
2021-07-04 18:25:08 -04:00
water111
784cd5debb
[decomp] get started on game info ( #674 )
...
* temp
* menu text
* wip
* recognize handle to process
* more
2021-07-03 16:18:41 -04:00
Tyler Wilding
bc41241234
decomp: task-control ( #654 )
...
* stash
* decompiler: support symbols in arrays
* decomp: a ton of lambda casts
* finish task control?
* add lambda label casts
* decomp: resolve some issues, add enums
* decomp: One last decompiler issue remains
* decomp: finalize `task-control`
* linting
* revert change to test change, didn't mean to commit
* decomp: comment out function call for now
2021-07-02 15:11:28 -04:00
water111
bfc1173ed5
Clean up files in kernel ( #625 )
...
* clean up gcommon
* cleanup kernel
2021-06-25 17:55:50 -04:00
water111
06ae38d464
[decomp] clean up type def formatting and remove all-forward-definitions.gc ( #608 )
...
* clean up
* fix test
2021-06-19 15:50:52 -04:00
water111
0aa474f12b
[decomp] finish actor-link-h and a few more ( #592 )
...
* finish actor-link-h
* decompile files
* fix pp issue
2021-06-14 20:46:54 -04:00
Tyler Wilding
506b5d8ceb
Decompile: prototype | video | vol-h | air-h | nav-enemy-h | rigid-body-h ( #575 )
...
* decomp: `prototype` done
* tests/ref: Update all reference tests
* decomp: `video` done
* decomp: Add `video` to src
* decomp: `vol-h` done
* tests/ref: Update reference tests again
* decomp: Add `vol-h` to ref tests, leave `entity` in process as a `basic` for now!
* decomp: `air-h` done, compiler issue though
* decomp: `nav-enemy-h` done, compiler issue though
* decomp: `rigid-body-h` done, compiler issue though
* Address feedback and fix the failing to compile files
* linting
* finish `video` off
2021-06-12 21:52:55 -04:00
water111
92afd62e2c
[decompiler] fix missing casts issue ( #573 )
...
* fix casts issue
* fix bug
* one last small fix
2021-06-09 21:35:13 -04:00
water111
fef7fad65a
[decompiler] process-drawable-h ( #561 )
...
* decomile process-drawable-h
* one more
2021-06-05 23:55:36 -04:00
water111
54f72e9b10
[decomp] joint-mod-h ( #560 )
...
* decompile joint-mod-h
* format'
* missing include
* fix test
2021-06-05 20:22:03 -04:00
water111
3d8013633a
[decompiler] Fix rlet in top level and detect matrix and stack inline construction ( #547 )
...
* top level in rlet
* detect matrix and vector inline 0
* pretty print the symbol map
2021-05-31 18:14:18 -04:00
water111
b1a76b2291
[decomp] Small fixes ( #541 )
...
* fix a few bugs
* fix local vars missing in top level
* more small fixes
* support missing inline array access case
* one more fix
2021-05-30 19:57:11 -04:00
Tyler Wilding
fb939726e8
decomp: Decompile ripple ( #512 )
...
* decomp: Decompile `ripple`
* decomp: Finish decompiling `ripple`
* update necessary src files
2021-05-26 19:40:12 -04:00
water111
3fbdd662dc
[decompiler] Support accessing 128-bit bitfields ( #514 )
...
* support some 128-bit bitfield stuff
* fix bug
* support type stuff correctly
2021-05-21 20:36:04 -04:00
Tyler Wilding
174a079dbd
decomp: Decompile stats-h ( #504 )
...
* decomp: Decompile `stats-h`
* linting
2021-05-20 13:53:19 -04:00
water111
ec412c7777
[decomp] ramdisk, load-dgo and rpc-h ( #496 )
...
* decompile ramdisk load-dgo and rpc-h
* add a bunch of offline tests
* clang-format
2021-05-16 21:07:22 -04:00
water111
79d10979da
[decomp] math-camera ( #491 )
...
* decompile math camera
* missing line
2021-05-15 20:08:08 -04:00
water111
613efbd768
[decomp] transformq-h, clean up trig, and offline test for trig ( #485 )
...
* clean up
* fix store vf fallback errors
2021-05-15 10:38:14 -04:00
water111
129ab54fd4
[decompiler] clean up if/when/cond and recognize define-perm ( #472 )
...
* clean up if and when and cond decisions
* recognize define perm
2021-05-12 19:46:17 -04:00
water111
223adeeb0c
Automatically get float label type in most cases ( #463 )
...
* automatically get float type in most cases
* try harder to print json errors
* fix test
2021-05-11 21:57:05 -04:00
water111
0599d144f8
[decompiler] Clean up config more ( #458 )
...
* remove global config
* fix dir
2021-05-11 20:49:54 -04:00
water111
433993074a
Clean up some errors/crashes in decompiler ( #452 )
...
* fix offline tests, clean up some warnings
* clean up warnings during decomp
* fix remaining crash issues
2021-05-11 16:43:13 -04:00
Tyler Wilding
2a315419de
tests: Automate the offline reference tests better ( #427 )
...
* tests: Move all files to new directories
* scripts: Update decomp scripts
* tests: Remove hard-coded list for offline tests
* linting
2021-05-09 17:03:58 -04:00
Tyler Wilding
971e0e3e24
decomp: pov-camera-h and hud-h ( #425 )
...
* decomp: `pov-camera-h`
* decomp: decompile `hud-h` and update offline tests
* linting
2021-05-07 22:56:37 -04:00