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
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
e3a4627eeb
[decompiler] recognize jak 2 vector-float*!, fix some vector inline casting bugs ( #1926 )
2022-09-26 20:57:44 -04:00
water111
5c7a3384e5
[jak2] static sound macro ( #1919 )
...
eg
```
(set! (-> obj sound-pre-open) (static-sound-spec "airlock-slider"))
```
it is the same as jak 1, but the `fo-curve` option is set to 1
sometimes.
2022-09-25 16:19:06 -04:00
water111
903450b878
[decompiler] recognize mfc nop ( #1911 )
...
Forgot to include in previous PR.
2022-09-24 14:56:22 -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
Tyler Wilding
017070525a
d/jak2: finish vol | cam-layout | menu | default-menu and start working on nav code ( #1867 )
...
I also added font-color names since this PR adds quite a few:

2022-09-11 13:42:46 -04:00
ManDude
cfb6abb24d
[decompiler] rewrite set lets as just sets ( #1858 )
...
Rewrites specific kinds of lets where the return value of the `set!`
itself is meant to be used to just be `set!`s. Implemented at the let
rewrite level. Seems to work for Jak 2 so far.
Fixes #1854 .
2022-09-07 18:28:01 -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
water111
b5d21be9c5
W/misc fixes ( #1838 )
...
* temp
* temp
* before cleaning up
* cleanup merge
* fix warnings
* merge fix
* clang format
2022-09-05 20:29:12 -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
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