Commit Graph

2216 Commits (2d3a3c419d05aa69727d980e9c854c37e86725fc)

Author SHA1 Message Date
Isaac 2d3a3c419d Headless compile flag (#107) 2022-05-19 17:12:39 -07:00
Isaac e4baa6eb95 Restore Mario to selected palette when returning to main menu (#105) 2022-05-19 17:07:58 -07:00
Agent X 9924d72f27 Mouse lock & freeze cam fixes and warp constants (#103) 2022-05-19 17:06:51 -07:00
Marioiscool246 6b9f95ef43 C-Up Player Head Rotation Fix & Particle Flags Sync Fix (#99)
Local head rotation is now no longer copied to all other players
C-Up mode head rotation now sends to the other players through
the player packet so others can see the head move around

m->particleFlags are now synced to the other players now
2022-05-19 16:52:47 -07:00
PeachyPeach f433dbfcf6 Fixed various audio bugs; DynOS can now detect texture duplicates to decrease generated bin files size (#110)
Fixed the following audio bugs:
    Bug: Rom-hacks sequences don't seem to be affected by volume scaling and
         muting
    Fix: Force the BGM sequences to follow the vanilla behavior:
        Volume can't go higher than default volume
        Volume is reduced to 31% when the game is paused
        Audio is stopped when the game is paused outside the Castle levels
    Bug: (Pointed out by Draco) Mario's voice clips are not replaced by the
         player's character's in the following instances: fall to death
         barrier, "here we go" in the ending cutscene, "let's a go"
         after selecting a star, "okey dokey" after starting the game.
    Fix: The first two ones now call
         play_character_sound(m, CHAR_SOUND_...) instead of
         play_sound(SOUND_MARIO_..., pos). The last two ones couldn't be
         fixed the same way for two reasons: First, the corresponding sounds
         were not referenced in the sound table, second, the sound played is
         always cut-off after a few frames (due to how sm64 resets the sound
         banks after loading a level).

Added SOUND_*_LETS_A_GO and SOUND_*_OKEY_DOKEY sounds for each playable
    character as Bass samples.
    Character Bass sounds work the same way as vanilla sounds (i.e. can be
    played with play_character_sound), but they cannot be prematurely stopped
    by sm64 sound banks shenanigans.
    This fixes the cut-off for both the star select and the castle grounds
    entry, plays the sound corresponding to the player's character, and doesn't
    need to extend or edit the sound table.

DynOS can detect texture duplicates when generating a bin or lvl file.
    When a duplicate is detected, the name of the original texture node is
    written instead of the whole PNG data, decreasing significantly the
    resulting file size.
2022-05-19 16:40:45 -07:00
mjcox244 451cc7eb92 Add Icon to windows build (#96) 2022-05-19 16:33:17 -07:00
Isaac d8d8eb731a change text depending on if you are client or server (#92) 2022-05-17 16:24:56 -07:00
MysterD ef4c7d780c Reset hardcoded values on disconnect 2022-05-17 01:22:45 -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
MysterD f9949b64c9 Prevent rendering mirror players - fix crash in mirror room 2022-05-14 02:46:39 -07:00
MysterD e14166a955 Merge branch 'coop' of github.com:djoslin0/sm64ex-coop into coop 2022-05-13 23:30:10 -07:00
MysterD e1ab2cfb80 Fix crash when loading custom audio on client 2022-05-13 23:27:49 -07:00
MysterD 2ef1f18d5c Merge remote-tracking branch 'public/coop' into coop 2022-05-13 20:21:14 -07:00
Agent X 90f5fc3a08 djui_hud_get_raw_mouse_x/y, djui_hud_set_mouse_locked (#91) 2022-05-13 19:55:47 -07:00
EmeraldLoc d0c21aa702 Made network_description/player_description hold 1 extra character (#90) 2022-05-13 19:55:38 -07:00
MysterD 83f441cd4e Add djui_hud_world_pos_to_screen_pos, and render interpolated rect/texture 2022-05-13 19:54:49 -07:00
MysterD 9cc68fac94 Make red coin star spawn on late join 2022-05-11 18:22:40 -07:00
MysterD 096c67db9b Prevent packet processing when disconnected 2022-05-11 18:15:46 -07:00
MysterD 394733ffc7 Set discord network system on shutdown 2022-05-11 18:11:53 -07:00
MysterD 934d41a44e Prevent joining a Discord lobby when you're already hosting 2022-05-11 18:10:27 -07:00
MysterD 2c9f42abd6 Do more Discord API cleanup on network shutdown 2022-05-11 01:33:56 -07:00
MysterD 91988cc426 Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2022-05-11 01:28:36 -07:00
MysterD aaa8e4b885 Clear network players on disconnect 2022-05-11 01:27:14 -07:00
Isaac 6035d4652b Crash fix (#87) 2022-05-10 21:20:40 -07:00
EmeraldLoc 75a83d6244 Fixed mac compilation (#88) 2022-05-10 21:20:19 -07:00
Isaac 50a4a55647 Prevent spoofing moderator packets (#86) 2022-05-10 02:27:29 -07:00
MysterD 4b7b6926d1 Moderator cleanup 2022-05-09 23:20:07 -07:00
MysterD 2ecb0bd08b Merge branch 'unstable' into coop 2022-05-09 23:13:19 -07:00
Isaac bf569006b6 Moderator (#80) 2022-05-09 23:11:39 -07:00
EmeraldLoc 8fa2a6e51e Fixed everything in dj's todolist for hns (#85)
* Fixed everything in dj's todolist for hns, and also made it more balanced
in other ways. List of changes roughly: made anticamp off by default, made
mario only have to touch another mario, and made vanish cap off always,
and made caps off for hiders
2022-05-09 23:11:12 -07:00
MysterD 528318e60a Clear hooks on lua shutdown 2022-05-09 09:53:14 -07:00
MysterD 679c5963a3 Attempt #3 2022-05-09 09:45:14 -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 e328766148 Possible fixes to shell race level desyncs, prevent first place from getting mushrooms 2022-05-09 08:28:30 -07:00
MysterD a7acfe063f Allow disconnecting to the main menu 2022-05-09 08:00:34 -07:00
MysterD 3fe4c4ecfa Fix mod cache on boot 2022-05-09 07:34:49 -07:00
MysterD f9411da5a6 Started working toward allowing disconnection 2022-05-09 07:27:47 -07:00
MysterD c5024111df Fix mirror 2022-05-09 05:46:36 -07:00
MysterD 006b7a0667 Fix crash in bookshelf_manager_act_2() 2022-05-09 05:16:05 -07:00
MysterD e6bc87fa80 Fix crash in bhv_piranha_plant_bubble_loop 2022-05-09 05:10:53 -07:00
MysterD 1022527004 Fix crash in geo_switch_mario_cap_on_off 2022-05-09 05:09:22 -07:00
MysterD f7fc918642 Added a bunch of null checks to object_helpers.c 2022-05-09 05:07:42 -07:00
MysterD 0c58092203 Fix crash in obj_angle_to_object 2022-05-09 05:00:15 -07:00
MysterD 51c301c431 Do a file type check on custom audio 2022-05-09 04:12:54 -07:00
MysterD 493c35fd03 Fix custom sounds 2022-05-09 04:07:43 -07:00
MysterD 95c00d5f59 Remove spawn offsets, a relic of a time where all players were in the same level 2022-05-08 17:40:47 -07:00
MysterD c864b462e4 Fix DISCORD_SDK=0 on Linux 2022-05-08 17:01:19 -07:00
MysterD db28d297b9 The death of the unstable branch 2022-05-08 16:43:09 -07:00
MysterD 272cac6376 Merge branch 'audio' into unstable 2022-05-08 16:41:05 -07:00