Commit Graph

26 Commits (a0e0493e45cf1e573d441338169d6bce7fbd7c59)

Author SHA1 Message Date
MysterD e166a12d96 Whoops 2023-11-08 20:14:14 -08:00
MysterD 301448f78a Fixed crash in DynOS_Actor_AddCustom() 2023-11-08 12:22:24 -08:00
MysterD f28573c91e Added in-game console for DynOS and Lua errors 2023-05-19 04:20:08 -07:00
MysterD 8250670808 Prevent deduplication of area models - it would overwrite the areaIndex 2023-05-18 21:29:57 -07:00
MysterD 2703f7193a Rewrite how models are loaded and retrieved... yet again 2023-05-16 00:01:10 -07:00
MysterD 67b7aab091 Fixed several crashes and errors found in static analysis 2023-05-15 01:15:20 -07:00
MysterD c12d926a67 Fix some memory mismanagement 2023-05-13 02:42:35 -07:00
MysterD e264cdd16b Load all models into dynamic memory, and store them in a way for reuse 2023-05-12 16:15:35 -07:00
MysterD 808691498e Fix crash in DynOS_Actor_AddCustom 2023-05-07 15:48:19 -07:00
MysterD 8fd9d76f5a Fix mac compile 2022-05-28 21:09:27 -07:00
PeachyPeach 18503ecc52 Various bug fixes + Added is_game_paused() and more background music functions to lua (#93)
Bug: DynOS models with animations cannot swap animations if they are
     loaded via lua (smlua_model_util_get_id and
     obj_set_model_extended).
Fix: DynOS_Actor_GetActorGfx takes a graph node instead of a georef,
     and checks for DynosValidActors graph nodes if georef is NULL.

Bug: The game can crash when calling obj_set_model_extended inside a
     HOOK_ON_OBJECT_RENDER hook.
Fix: The crash happens in smlua_model_util_load_with_pool_and_cache_id
     due to pool being NULL. If the game can't allocate an
     AllocOnlyPool object, use DynOS to generate the graph node.

Bug: warp_to_level and similar functions don't trigger HOOK_ON_WARP.
Fix: Call HOOK_ON_WARP hooks in DynOS_Warp_UpdateWarp and
     DynOS_Warp_UpdateExit after level and mario initialization.

Bug: The game sometimes calls HOOK_ON_OBJECT_RENDER hooks for
     unintended objects.
Fix: Initialize hookRender field to 0 when creating an object.

Bug: Actions can't apply gfx offsets to characters that have an anim
     offset (Waluigi, Wario)
Fix: Add m->curAnimOffset to gfx.pos[1] instead of setting it to
     m->pos[1] + m->curAnimOffset, except during the jumbo star
     cutscene.
2022-05-14 14:28:25 -07:00
EmeraldLoc 75a83d6244 Fixed mac compilation (#88) 2022-05-10 21:20:19 -07:00
MysterD 4f8c58faf6 Actual fix for crash when disconnecting with custom models in level 2022-05-09 09:28:20 -07:00
MysterD 319736520c Fixed crash when disconnecting with custom models in the level 2022-05-09 08:40:18 -07:00
MysterD f9411da5a6 Started working toward allowing disconnection 2022-05-09 07:27:47 -07:00
MysterD 41aac2a3c4 Possible mac compile fix 2022-04-23 15:54:39 -07:00
MysterD 0f821483b1 Automatically disable billboards when a DynOS model uses more than 6 vertices 2022-04-23 03:05:16 -07:00
MysterD 4a4501d0e4 Fixed finding of renamed custom actors 2022-04-22 18:54:11 -07:00
MysterD a3df8d9c0b Massive DynOS refactor for performance/organization 2022-04-19 21:06:18 -07:00
MysterD 8ddf90a058 Make DynOS texture lookup use a set for performance 2022-04-19 18:24:26 -07:00
MysterD 0c696edf0c Display a message on screen when script errors are found 2022-04-16 22:47:16 -07:00
Prince Frizzy 7c5261554e Merge in small changes. (#63) 2022-04-16 19:12:12 -07:00
MysterD b6be0a0e78 Rewrite of hash/cache system 2022-04-16 13:05:10 -07:00
MysterD d5d556b8e8 Fix for dynos mod actors that replace other actors 2022-04-11 22:14:12 -07:00
MysterD 264acbe7b9 Fix how DynOS loads custom actors 2022-04-11 18:15:54 -07:00
MysterD 0342f767df Refactored actor geos in DynOS 2022-04-08 18:56:22 -07:00