Commit graph

370 commits

Author SHA1 Message Date
Agent X
7568a8564f The old dynos warp hook params worked fine
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-05-01 21:37:44 -04:00
Agent X
ee7d694940 Fix HOOK_ON_WARP and document more functions (87.18%) 2025-05-01 20:26:04 -04:00
Isaac0-dev
5c3ef3d419 fix mac compile
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-04-30 20:51:10 +10:00
ManIsCat2
29f9e7cfcb
Add G_PACKED_NORMALS Geo Mode from F3DEX3 (#768)
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
* Add new geometry mode

* Fix lua vertex colors not working
2025-04-25 15:07:31 -04:00
PeachyPeach
0f351e11fb
Gfx/Vtx improvements (#756)
Some checks failed
Build coop / build-windows (push) Has been cancelled
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
- Renamed the `new` and `realloc` functions to `create` and `resize`
- Added `delete_all`
- Made Mod Data a class:
  - Allocation is now limited to prevent out-of-memory crashes: 1024 display lists of max size 2048 and 1024 vertex buffers of max size 4096 per mod
  - Added error codes to identify the cause of a failure (name not found, pointer not found, max size exceeded, item pool is full, ...)
2025-04-24 14:03:17 +10:00
Isaac0-dev
dcaa7e725d
fix resetting display lists (#752)
Some checks failed
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-04-18 02:28:15 +02:00
Isaac0-dev
25ff0c93c4 fix scrolling textures again
now that only vanilla vertices are duplicated
2025-04-17 11:49:04 +10:00
Agent X
6527ee1b7a Fix HOOK_ON_WARP params
Some checks failed
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-04-15 14:13:58 -04:00
Agent X
0cb0b41c07 Add some level commands to make porting HackerSM64 levels easier
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-04-14 19:25:05 -04:00
PeachyPeach
467b22e939
Gfx set command: v2 + Gfx/Vtx dynamic alloc (#718)
Some checks failed
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
* set_gfx_command part 2

* part 3

* get gfx/vtx from name; copy gfx/vtx

* gfx/vtx dynamic allocation lua

* gfx/vtx_new: don't take level/model/vanilla names

* Clean up gbi constants

* update example

* Isaac review; add gfx_get_next_command and vtx_get_next_vertex

* make all commands length 1; missing NULL checks
2025-04-12 18:19:14 -04:00
Blockyyy
43d2248727
HOOK_BEFORE_WARP, added params to HOOK_ON_LEVEL_INIT and HOOK_ON_WARP (#736) 2025-04-10 17:17:59 -04:00
Agent X
e1c0d87ea8 Add some missing gfx symbols to DynOS
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-04-08 17:30:00 -04:00
Isaac0-dev
a67c096ecb remove some double lookups in dynos
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
Build coop / build-macos-arm (push) Waiting to run
Build coop / build-macos-intel (push) Waiting to run
2025-04-08 14:32:25 +10:00
Isaac0-dev
7dc31e3780 model pool fix
better fix than 1bfe9d509c
just checks the level pool for session models
2025-04-08 13:54:04 +10:00
PeachyPeach
b190ee09fb
Gfx Vtx vanilla only duplicates (#733)
Some changes for gfx vtx duplication:
- Only vanilla (read-only) stuff is duplicated
- Stuff is duplicated only once, and uses a map rom->ram for next iterations
- Stuff is restored to original values on network shutdown

also fixes incorrect types in some extern declarations
2025-04-08 10:20:50 +10:00
Agent X
3a751aac56 Revert "move models to higher priority pools if needed"
This reverts commit 1bfe9d509c.
2025-04-06 13:35:40 -04:00
Isaac0-dev
1bfe9d509c move models to higher priority pools if needed
Some checks failed
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
sometimes, a model may be loaded by the level, but then a mod loads it for the session, which causes issues so we move the model to the right pool.
2025-04-04 14:17:16 +10:00
Isaac0-dev
049e767ac6 free stuff
Some checks failed
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
Build coop / build-macos-intel (push) Has been cancelled
2025-04-02 12:42:14 +10:00
Isaac0-dev
54d33d28ba fix scrolling textures simply not scrolling
this was caused by the duplicated vertices commit
2025-04-02 11:42:24 +10:00
Agent X
0ee8d5f81e Fix/optimize/improve lighting engine 2025-03-28 23:06:48 -04:00
Isaac0-dev
d81512680b
duplicate every instance of a display list (#720)
Co-authored-by: PeachyPeachSM64 <72323920+PeachyPeachSM64@users.noreply.github.com>
2025-03-28 09:17:53 +10:00
Agent X
3e540790a3
Basic Vertex Point Lighting Engine (#716)
* CONCEPT: Basic vertex lighting engine

Set the geometry mode on your model to G_LIGHTING_ENGINE_EXT, spawn a `bhvAmbientLight`, spawn some `bhvPointLight`s, and then you got yourself a mighty interesting scene.

* Fixes

* How did I miss this

* Make light set home pos
2025-03-27 16:36:02 -04:00
Agent X
f8230fe484 Correct DynOS skybox texture tile paths (WARNING: MAY BREAK SKYBOX TEXTURE PACKS DESIGNED FOR COOPDX)
Some checks failed
Build coop / build-macos-intel (push) Has been cancelled
Build coop / build-ubuntu (push) Has been cancelled
Build coop / build-windows (push) Has been cancelled
Build coop / build-macos-arm (push) Has been cancelled
2025-03-21 20:40:16 -04:00
Agent X
5eb1a27eb4 Make custom GEO_ASMs work inside level geo 2025-03-09 12:33:14 -04:00
Isaac0-dev
2fca847499 bring back skip_pack_generation 2025-03-04 17:13:00 +10:00
Isaac0-dev
d6e243c4a7 add obj_get_model_id_extended, remember regular model ids 2025-03-04 15:09:09 +10:00
Isaac0-dev
f238b3d0f5
allow Lua to manipulate displaylists and vertices (#675)
Co-authored-by: ManIsCat2 <137772623+ManIsCat2@users.noreply.github.com>
2025-02-27 14:27:55 +10:00
Sonic The
e24431928c
Lvl Macros (#678)
for dynos levels that use the normal macros
2025-02-23 07:44:53 +10:00
Agent X
abf818b90e Boy what the hell (unbreak mods and DynOS packs)
They dug me out of my grave and told me `configSkipPackGeneration`. My heart sank.
This feature would have been fine if it was off by default and if it wasn't then people caught it before the version was officially released and the option was promptly disabled without a massive pool of people having this option turned on by default.
So I will say, Coolio wasn't really in the wrong by adding this, it should have never been changed to be on by default.
2025-02-14 18:42:41 -05:00
Cooliokid956
2218428a4d
Skip DynOS binary file generation on startup (#638)
it is off by default, but the common player may want to turn it on to improve loading times
2025-01-19 18:49:15 +10:00
KirbyKidJ
d1d36a1fa2
Fixed MacOS Resource Path Location (#617)
* Fixed MacOS resource path

I'm not very good at C coding.

* Fixed formatting and ensured safe return
2025-01-07 16:27:11 -05:00
Isaac0-dev
547e22530c fix dynos warps castle grounds bug 2025-01-07 09:04:37 +10:00
PeachyPeach
49c9a2d57e
Fix typo in gfx command (DynOS) (#605) 2025-01-02 18:47:12 -05:00
Michael
735a7ec7a7
Japanese Support (#574)
* server console with commands

* better unicode support and japanese translation

* Update README.md

* restore unneeded changes

* missed this

* extra

* restore

* remove extra line

* spacing

* japanese aliased

* language display names

* Update .gitignore

* japanese language support

* more common kanji

* merging new images

* fix line conflicts

* again

* redefinition removal

* Update djui_font.c

* Update djui_font.c

* Update djui_font.c

* separated japanese glyphs and images

* Update .gitignore

* Update djui_font.c

* Revert "Update djui_font.c"

This reverts commit ab2ad8c189.

* Revert "separated japanese glyphs and images"

This reverts commit c3d0fd40e3.

* recombined sheets

* Update djui_font.c

* Update djui_font.c

* Update djui_font.c

* separated japanese glyphs and images

* Update Japanese.ini

---------

Co-authored-by: Isaac0-dev <62234577+Isaac0-dev@users.noreply.github.com>
2024-12-31 10:32:31 -05:00
PeachyPeach
96932f5bf1
Custom geo function and switch nodes with Lua callback (#593) 2024-12-31 10:23:13 +10:00
Radek Krzyśków
dc538f4f50
Reworked the platform-dependent executable paths. Quoting the command line for Discord game invites. (#188) 2024-12-27 18:05:54 -05:00
PeachyPeach
970f454d8e
DynOS support for textures with palette (#582) 2024-12-27 17:52:28 -05:00
PeachyPeach
f1e216649d
Auto disable billboards for 3D models (#579) 2024-12-22 07:54:45 -05:00
xLuigiGamerx
6757a3abb7
Added FONT_SPECIAL (#556)
* Fixed player and mod lists not updating on language change

* Added `FONT_SPECIAL` which is based on the special controls letters in dialog boxes
2024-12-17 08:58:38 -05:00
Agent X
036fa909a4 Add missing selectionbox arrows and cake screen textures to DynOS 2024-12-15 19:51:55 -05:00
Isaac0-dev
23a6b6726f better typing for cmaps 2024-12-09 08:21:53 +10:00
Isaac0-dev
c65a67ccf1 use a hmap for scroll targets 2024-11-30 15:34:25 +10:00
Isaac0-dev
c0691d4b3e add unordered map to cmap 2024-11-30 15:33:11 +10:00
Isaac0-dev
2bfd9bc5f6 init dynos levels in DynOS_Level_GetCollision 2024-11-30 09:12:47 +10:00
Isaac0-dev
92fbe54ebd separate dynos pack model and mod owned model ids
to address the grand star late join model bug that can happen with mods like omm.
the bug happened when players have different dynos packs, and during a late join, the model ids are relied on to be the same.
dynos packs can offset the available model ids, therefore desyncing the model used on late join.
2024-11-28 14:02:27 +10:00
Isaac0-dev
39826deadd add a way to find surface types in collision 2024-11-22 08:57:37 +10:00
Khangaroo
693a77078d
Low-hanging fruit mod loading optimizations (#493)
* Low-hanging fruit mod loading optimizations

* Fix DynOS fread spam and don't use a linked list for mod cache (still O(n^2), but much faster)
2024-11-16 12:44:57 +10:00
Drahnokks
636b385e48
add controller.buttonReleased (#379) 2024-10-20 09:25:08 +10:00
Isaac0-dev
f8a30e4fd8 fix some issue with recent prs 2024-10-18 12:47:24 +10:00
xLuigiGamerx
49be9d159b
Allowed Dynos to use geo_mario_cap_display_list (#337)
* Allowed Dynos to use geo_mario_cap_display_list

* Fixed [CS] Extra Characters breaking voices in other CS mods
2024-09-24 10:04:50 +10:00