water111
9a04c7e311
[decomp] sparticle, sparticle-launcher, set up sprite ( #1949 )
...
- fix crash with unhandled sparticle definition (happens with the weird
array int32s that I don't understand yet)
- update mips2c stuff
- add part-tester
- fix some issues around texture uploads

2022-10-09 19:56:07 -04:00
ManDude
af5009a29e
[decomp] make defpart and defpartgroup work in jak 2 ( #1947 )
2022-10-09 12:53:44 -04:00
water111
3d4dfb2077
[decomp] Decompile some time-of-day stuff, support new style Jak 2 time of day ( #1943 )
...
- Add "tfrag-water" tfrag tree support (may just be the same as Jak 1's
'dirt' for the settings)
- Add "tfrag-trans" tfrag tree support, reusing "trans-tfrag" from jak
1.
- Add a hack to `LinkedObjectFileCreation` to handle `oracle`, which is
accidentally multiply defined as a type leftover from jak 1 (an entity
in village1), and level info for jak 2.
- Add `VI1.DGO`
- add `time-of-day.gc`, and a few other stub functions so it works
- Set up some time of day stuff in GOAL for jak 2/PC renderers
- Clean up time of day in c++ renderers, support the more complicated
weight system used by jak 2 (backward compatible with jak 1, thankfully)
The mood functions now run, so this could cause problems if they rely on
stuff we don't have yet. But it seems fine for ctysluma and prison for
now.








2022-10-08 13:33:03 -04:00
ManDude
9351bf782e
[decomp2] game-info, game-task and task-control ( #1884 )
...
And everything else needed for them!
A couple functions are bad currently.
- fixes #1929 - untested on linux
- fixes #1924 - now you need to type `,` before a lambda you want to put
in a pair.
- fix debugger symbol table in jak 2
- made the decompiler output `(meters 2)` instead of `(meters 2.0)`
- fixed a bug with the bitfield enum special -1 case
- made bad game text decomp not exit the decompiler
- added `editable-player` and `script`
2022-09-27 19:44:20 -04:00
water111
6227c6d6a8
More array special cases ( #1913 )
...
also make jak 1 and jak 2 behave the same way, to reduce confusion. It
wasn't too bad to update jak 1.
2022-09-24 16:10:13 -04:00
water111
6a1bde4168
[decomp] fix up debug menu rendering, add a few others ( #1892 )
...

actor vis boxes for PRI.DGO
2022-09-16 20:42:33 -04:00
water111
4eea31c3e9
[jak 2] texture ( #1866 )
...
- Decompile and patch `texture.gc` for PC
- Improve decompiler when offset doesn't fit in immediate (for types
larger than 8k and some scratchpad accesses)
- Fix symbol->string issues in both jak 1 and 2
- Fix bug with VIF interrupt used to profile VU code (hooked up to
OpenGLRenderer BucketRenderers in PC port)
- Support `~o` in `format`.
- Uncomment stuff in `merc.gc` that now works!

fixes https://github.com/open-goal/jak-project/issues/1850
2022-09-11 14:17:55 -04:00
Ethan Lafrenais
22982d2750
[decomp] jak2: debug, debug-sphere ( #1846 )
...
I wasn't able to 100% complete `debug` due to a bunch of level boundary
debug stuff I couldn't figure out. But, I added a ref test and
documented/copied over everything else into goal_src.
Most of the functions that existed in Jak 1 are identical, others got an
extra param or 2 and some now make copies of arguments instead of
modifying them. There's a bunch of new functions, including all of the
debug functions that used to be in `level-boundary` are now in `debug`.
At the very end of `debug` there's also some weird asm functions
checking for some EE memory controller bug (not sure what's up with
that)?
2022-09-07 18:14:34 -04:00
Tyler Wilding
44d59e6b33
d/jak2: finish mood-funcs | mood-funcs2 | almost all of mood and airlock ( #1842 )
2022-09-06 20:35:00 -04:00
Tyler Wilding
80d0137dba
d/jak2: finish the majority of sparticle and sparticle-launcher ( #1840 )
...
* sparticle-launcher
* d/jak2: large amount of `sparticle-launcher` done
* d/jak2: finish the majority of `sparticle`
* decomp: improve format code ignoring
* d/jak2: make bits unique in `sp-cpuinfo-flag`
* d/jak1: revert config change
2022-09-05 18:03:46 -04:00
Hat Kid
2a1dc7bd2b
decomp: emerc, emerc-vu1 ( #1833 )
...
* decompiler: add support for `MADDq` in VU disassembler, add `emerc-vu1` program
* decomp: `emerc`, `emerc-vu1`
2022-09-02 18:29:30 -04:00
Tyler Wilding
d264779173
d/jak2: finish glist | glist-h | camera | cam-interface | cam-states-dbg | cam-combiner | cam-debug | cam-start ( #1829 )
...
* d/jak2: finish `glist` and `glist-h` partially done `time-of-day`
* d/jak2: finish `camera` and `cam-interface`
* d/jak2: partially finish `cam-master` `cam-states`, and `cam-update` finish `cam-states-dbg` `cam-combiner` `cam-debug` and `cam-start`
* tests: update ref tests
* scripts: add scripts to automatically update gsrc files
* d/jak2: update gsrc
2022-08-31 19:22:47 -04:00
Ethan Lafrenais
e7b1a2d292
[decomp] jak2: sprite, sprite-distort, some of sprite-glow ( #1814 )
...
* Decompile sprite-distort
* Revert matrix, sprite-vec-data-2d changes
* Sprite distort ref test
* Sprite distort docs
* Better sprite-distort docs
* Jak2 sprite distort VU
* sprite decomp
* Some of sprite-glow
* Clean up
2022-08-29 19:04:54 -04:00
Tyler Wilding
d176b294b9
d/jak2: finish entity-table | sky-data | relocate | and the majority of default-menu ( #1812 )
...
* d/jak2: finish `entity-table`
* d/jak2: finish `sky-data`
* d/jak2: finish `relocate`
* d/jak2: halfway through `default-menu`
* d/jak2: 75% done `default-menu`....
* d/jak2: add `default-menu` to ref tests (partially)
* d/jak2: finish updating related code
* scripts: add tooling to automatically keep code from `all-types` up to date
* d/jak2: fixed vector types
2022-08-29 18:49:57 -04:00
Tyler Wilding
01abde35d8
d/jak2: First few files, mood-tables and vol-h ( #1796 )
...
* decomp: format jak1 cast files
* decomp: finish `mood-tables` and `mood-tables2`
* jak2: stop disasm'ing
* jak2: format jak2 cast files, start working on the rest of the `mood` files
* scripts: fix running pcsx2 watcher
* d/jak2: finish `vol-h`
* d/jak2: address feedback
2022-08-24 19:34:09 -04:00
water111
f7bd0752f8
[decomp] Decompile first batch of files in engine ( #1787 )
...
* wip
* getting stuff set up so we can actually run test cases
* better handle block entry stuff
* types2 working on gstring
* comments
* math ref working
* up to first stack stuff
* stack fixes
* bounding box
* math stuff is working
* float fixes
* temp debug for (method 9 profile-array)
* stupid stupid bug
* debugging
* everything is broken
* some amount of type stuff works
* bitfield
* texture bitfields not working
* temp
* types
* more stuff
* type check
* temp
* float related fixes for light and res problems
* revisit broken files, fix bugs
* more types
* vector debug
* bug fixes for decompiler crashes in harder functions
* update goal_src
2022-08-24 00:29:51 -04:00
Tyler Wilding
c269374e24
gsrc: add decomp begins placeholder to all gsrc files ( #1731 )
2022-08-05 16:12:54 -04:00
Tyler Wilding
345793af41
jak2: Generate goal_src skeleton ( #1581 )
...
* jak2: merge identical art files
* jak2: a skeleton is born
2022-06-30 01:22:51 -04:00