FakeFishGames / Barotrauma

A 2D online multiplayer game taking place in a submarine travelling through the icy depths of Jupiter's moon Europa.
http://www.barotraumagame.com/
1.73k stars 402 forks source link

Jovian radiation doesn't move in multiplayer at all #14148

Closed SomeRandomNoobKekeke closed 3 months ago

SomeRandomNoobKekeke commented 3 months ago

Disclaimers

What happened?

It ~either~ doesn't move ~or checkbox for enabling jovian radiation doesn't work~

Reproduction steps

Start multiplayer campaign with radiation enabled togglecampaignteleport Jump around the map 4-6 times No radiation...

In singleplayer you will see red radiation front

Bug prevalence

Happens every time I play

Single player or multiplayer?

Multi Player

-

No response

Version

v1.4.6.0 (Blood in the Water Update, hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

SomeRandomNoobKekeke commented 3 months ago

I decompressed my multiplayer saves, RadiationEnabled="True", very strange

I tried togglecampaignteleport, docking undocking, Radiation amount doesn't change :( <Radiation Amount="-200" Enabled="True" />

https://github.com/FakeFishGames/Barotrauma/blob/4a63dacbcee8e3829a44e9c16a5335704a979a4d/Barotrauma/BarotraumaShared/SharedSource/Map/Map/Map.cs#L1189

This seems to be easier to test in debug version https://github.com/FakeFishGames/Barotrauma/blob/4a63dacbcee8e3829a44e9c16a5335704a979a4d/Barotrauma/BarotraumaClient/ClientSource/Map/Map/Map.cs#L527-L538

SomeRandomNoobKekeke commented 3 months ago

I made myself a command

      DebugConsole.Commands.Add(new DebugConsole.Command("radstep", "", (string[] args) =>
      {
        GameMain.GameSession?.Map?.Radiation?.OnStep(1);
      }));

I can move radiation with it, but after start level / dock it resets back to -200

I'm out of ideas on how to test it barodev small

Vykn commented 3 months ago

RadiationEnabled="" doesn't control the radiation. At the bottom of the gamesession.xml, there's a <Radiation> line which is how it's actually enabled/disabled.

Also, #13590

SomeRandomNoobKekeke commented 3 months ago

OK, i figure it out:

So, radiation does work, it's just hard to test

SomeRandomNoobKekeke commented 3 months ago

@Vykn

At the bottom of the gamesession.xml, there's a line which is how it's actually enabled/disabled.

i mentioned that, you didn't ever read it

Radiation amount doesn't change :( <Radiation Amount="-200" Enabled="True" />

Vykn commented 3 months ago

I did read it, I just didn't recognise that part of it. I encountered this over a year ago and it seemed like the same issue. Sorry ¯\_(ツ)_/¯