Commit graph

3788 commits

Author SHA1 Message Date
Cooliokid956
efcfff210d
Miscellaneous additions (#711)
- Fixed script file path shortening for Windows in console errors (what I could at least, the one left unfixed is preprocessed and I can't mess with that)
- Adjusted audio sanity check messages to sound more natural
- 9 new functions added:

## `audio_stream_set_loop_points(audio, start, end)`
Sets an audio stream's loop points in samples, no longer requiring a hacky method to loop streams in mods

## `get_active_mod()`
Returns the mod currently being processed, can be used by mods with APIs to determine what they're being used by and react accordingly

## `get_area_update_counter()`
Returns `gAreaUpdateCounter`, can be used to determine various in-game statistics, as well as if the game is being updated

## Exposed several object pointers
`get_current_object()` to retrieve `gCurrentObject`
`get_dialog_object()` to retrieve `gContinueDialogFunctionObject`
`(get|set)_cutscene_focus()` to retrieve/assign `gCutsceneFocus`
`(get|set)_secondary_camera_focus()` to retrieve/assign `gSecondCameraFocus`
2025-03-24 07:31:06 +10:00
Sunk
5ba01cc232
Improvements to non-pvp player interactions (#712)
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 more bounce interactions

* Prevent out of bounds pushing
2025-03-21 09:06:10 +10:00
Agent X
64ef23ba6a Make sliders show their number value
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-03-18 23:07:03 -04:00
Agent X
2479eaabfb This new camera code is NOT up to pollos standards. 2025-03-18 23:06:36 -04:00
Sunk
14f98e4b30
Add automatic toggle (#707)
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-03-17 13:04:09 +10:00
Sunk
f9b6fba0b5
Fix revamped pvp oversight (#706)
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-03-16 21:20:29 +10:00
Agent X
0f0997a2ac Add mod menu text hook and make hook functions return index
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-03-15 18:04:59 -04:00
Agent X
ab49c33d86 Expose some cool math functions
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-03-14 22:25:56 -04:00
Sunk
dc4ac0f681
Properly fix lua interaction flags (#704)
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
Reverts a change Isaac did a little while ago and fixes the source of the issue
2025-03-14 13:47:23 -04:00
Sunk
edacdcc7e4
More settings to the Camera settings menu (#555)
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
Sherbie's suggestions from #497 and #538, as well as suggestions from others on discord.
Add 2 new camera settings to free camera, being camera collision and dpad usage.
Add an entire new camera submenu for romhack camera, which are now no longer exclusive to romhacks.
2025-03-14 13:01:51 +10:00
Agent X
3792f0aebb Raise custom object fields limit from 16 to 64 2025-03-13 22:09:46 -04:00
Agent X
c84afa7325 Improve version info on crash screen 2025-03-13 22:06:31 -04:00
Isaac0-dev
2dd17af4e1 explicitly allow setting cobjects to nil 2025-03-14 10:24:33 +10:00
Agent X
8775f9c145 Fix lighting
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-03-13 00:42:04 -04:00
Isaac0-dev
8141d9906a test fixes for djui tile offsets [build]
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-03-12 17:16:40 +10:00
jayden
aac7096f63
feat: enable coroutines (#695)
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-03-12 14:09:40 +10:00
Sunk
dae7854c3c
Fix pokey death issue (#702) 2025-03-12 11:40:08 +10:00
ManIsCat2
334aac7cf1 add lua texture image 2025-03-11 00:52:38 +03:30
Isaac0-dev
d3e8f9cf48 whoops
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-03-10 23:34:08 +10:00
Isaac0-dev
f98571c458 add documentation to some missing manual functions 2025-03-10 23:22:20 +10:00
Isaac0-dev
aa21b4feea better /warp dev command
no need to provide act and area, it will default to area 1 act 0
added alternate level abbreviations that have been used commonly in some mods (to avoid typing long level names)
2025-03-10 21:41:53 +10:00
Isaac0-dev
b1af1ade33 fixed get_level_num_from_course_num 2025-03-10 21:13:58 +10:00
Isaac0-dev
04ea4d6ad4 smlua use lot and lvt names rather than an index 2025-03-10 12:21:48 +10:00
Isaac0-dev
7cdad52fb8 print type names rather than their type index 2025-03-10 11:28:28 +10:00
Isaac0-dev
ac71f841dc fix nil objects crashing parts of the game 2025-03-10 10:57:33 +10:00
Prince Frizzy
9d1776410c
Fix GIT_HASH and re-add build date. (#691) 2025-03-10 09:20:15 +10:00
Agent X
1f0c44dd9e Add cake screen split into tiles script (by eros)
Co-Authored-By: eros71 <16540103+eros71-dev@users.noreply.github.com>
2025-03-09 12:33:14 -04:00
Isaac0-dev
ba2078f6e9 allow using "/" to get help menu
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
2025-03-09 16:25:03 +10:00
Isaac0-dev
3b0a12c4ac fix pause exiting instead of "continue, don't save" 2025-03-09 15:32:16 +10:00
Isaac0-dev
a8bc754820 reset coopnet callbacks on shutdown [build]
Some checks are pending
Build coop / build-ubuntu (push) Waiting to run
Build coop / build-windows (push) Waiting to run
fixes "Lost connection to CoopNet!" error
2025-03-09 14:46:40 +10:00
Isaac0-dev
a583814ef9 testing actions 2025-03-08 20:12:53 +10:00
Isaac0-dev
0810f01396 no longer need a rom to compile the game
the files:
- sound_data_compressed.ctl
- sound_data_compressed.tbl
- sequences_compressed.bin
are now added as files that are generated by assemble_sound.py, they're compressed, and are decompressed at compile time.
rom assets have been removed from these files, so they are now just metadata for loading the sounds that are extracted at runtime.
2025-03-08 12:43:29 +10:00
Isaac0-dev
99b8f31900 init mario from save file on network shutdown 2025-03-06 17:33:17 +10:00
Isaac0-dev
c7df4eb071 fixed interaction flags when a mod doesn't specify an interaction type 2025-03-05 23:04:52 +10:00
Sunk
34e20e763d
Update revamped PVP (#660)
* Fix water punches to include pitch in their range
* Allow rollouts to deal damage again
2025-03-05 11:18:19 +10:00
Isaac0-dev
8570cfd4fc sanitize object display lists 2025-03-05 07:56:02 +10:00
Isaac0-dev
0876d161e0 better level_script_parse
implemented all fields of the currently supported level commands:
- object model, position and angles
- macro model
2025-03-05 00:07:33 +10:00
Isaac0-dev
2fca847499 bring back skip_pack_generation 2025-03-04 17:13:00 +10:00
Isaac0-dev
386417edc0 force billboard star numbers to fix romhacks that override star number actor 2025-03-04 16:44:57 +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
0695a532b7 add missing sanity depth checking to obj getters 2025-03-04 14:28:07 +10:00
Isaac0-dev
46a12cef9b avoid pushing objects that are despawned 2025-03-04 09:16:43 +10:00
Isaac0-dev
d6ce716809 smlua reduce key collisions and sanity check them 2025-02-27 15:43:26 +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
Isaac0-dev
7ccbc3a094 flip merry go round boo spawning logic
rather than checking if all players are near the merry go round, check if any player is near the merry go round.
2025-02-27 13:51:43 +10:00
Isaac0-dev
a457f48959 remove some whitespace in gSmluaConstants 2025-02-24 19:55:43 +10:00
Isaac0-dev
cf12912bf6 scroll texture interp wrapping 2025-02-24 19:43:38 +10:00
xLuigiGamerx
935f871930
Added xOffset and yOffset to the DjuiFont struct to align the custom hud fonts (#652) 2025-02-23 07:58:45 +10:00
Isaac0-dev
2ec4b5e53c set_find_wall_direction 2025-02-22 11:54:07 +10:00
Isaac0-dev
077bbc4d54 fix warnings
😔
2025-02-22 09:05:40 +10:00