Barotrauma

Barotrauma

night and day
9 Comments
Title Fight Enjoyer 29 Jan, 2024 @ 10:08am 
will this be mp eventually
shoolgate 23 Dec, 2023 @ 11:56am 
When you cancel a module, your turret lights will be removed. Unable to restore turret lights, game save has been disabled. The only way to restore the lights is to start over, and this module has potential but it makes it too dark can't find the monsters. The turret lights are too dim.
shoolgate 23 Dec, 2023 @ 4:27am 
The ship's searchlights were too dark can't see the map at night
ironic_and_dead  [author] 4 Dec, 2023 @ 3:30am 
@international So the main issue is that, main game loop uses a delta time that continually run on the client, even if you are in the game menu. When I programmed it i wanted to avoid any potential other instances where delta time might run unintentionally(more me be being lazy checking the entire codebase for other instances).

So i created my own tick system that runs client side when the player is actually playing the game.

Basically There is 1 file to check for the current time, that only starts and stops when the game is on a mission/campaign. vs storing all the start/stop times, reading those values and subtracting and adding based on the current delta time to correctly add the game-play time. There is potentially a lot of edge cases to deal with.

For multiplayer I can make the assumption that the delta time would also run even in the lobby, so would need to replicate the system,

Just need time to sit down plan it out and test it, and time is a luxury atm for me.
International Conglomerate 1 Oct, 2023 @ 1:57pm 
@ironic_and_dead
How involved do you think it'd be? Generally i've seen mp handled by using a conditional in the init that'll only trigger if the executer is either a server or a directly singleplayer client.
ironic_and_dead  [author] 27 Sep, 2023 @ 4:11am 
You unfortunately might be waiting a long time for MP support. 3 months +. I am hoping there is another lua developer out there who can take that portion on and get it out there.
JinxMann 26 Sep, 2023 @ 4:32am 
Can't wait for multiplayer
Clownicus 23 Sep, 2023 @ 2:43am 
les go
Personman 22 Sep, 2023 @ 12:45pm 
I didnt know that one of the best barotrauma yts makes mods!