Commit Graph

2231 Commits (f5e245590f56c8eef16ac21fdbd5a8e6bd82a4c8)

Author SHA1 Message Date
MysterD f5e245590f Allow users to select between accurate or fast interpolations 2022-05-21 21:47:53 -07:00
Altiami ac6ce708c3 New render frame interpolation via transformation matrix de-/construction (#98)
This method of interpolation aims to correctly interpolate the render
transformation matrices as best as possible without doing an entirely
new render pass. This is accomplished by deconstructing the matrices
into its composition of transformations, interpolating those simpler
transformations individually, and then reconstructing the
transformation matrix with the interpolated transformations.
2022-05-21 21:46:41 -07:00
MysterD a2786951cc audio_stream_load_url() cleanup 2022-05-21 21:20:02 -07:00
Lord-Giganticus 21b4ed3be8 Add function to load music via https URLs (#100) 2022-05-21 21:17:35 -07:00
EmeraldLoc 6ba8a8a989 Hide and seek modifications (#101) 2022-05-21 21:17:00 -07:00
MysterD 3980ed9aaa Initialize gGetHostName 2022-05-21 21:13:01 -07:00
Isaac 3d1c57c020 Improvements to domain resolution (#106) 2022-05-21 21:12:32 -07:00
MysterD 46767dff4f Fix indentation 2022-05-21 21:11:17 -07:00
mjcox244 730af8c267 Fix for Icon In dumb msys DIR (#111) 2022-05-21 21:08:54 -07:00
MysterD 7bae2cbfe3 Merge branch 'coop' of github.com:sm64ex-coop-dev/sm64ex-coop into coop 2022-05-21 21:05:48 -07:00
MysterD f9e156790a Add arena 2022-05-21 21:05:41 -07:00
Amy54Desu 89519fec27 Add Act Num to Playerlist (#95) 2022-05-20 11:36:44 -07:00
Marioiscool246 d0e49ba67f Particle sync fixes (#112)
* Fix lingering particles when a player exits an area or disconnects
2022-05-20 11:32:47 -07:00
MysterD 5fc6bb0491 Fix clang/mac compile 2022-05-19 19:42:07 -07:00
Isaac a5e9e38713 Restore local Mario to mirror room (#109) 2022-05-19 17:14:23 -07:00
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