Skip to content

Commit

Permalink
v0.4.1.0 + fixed gamemode list not being synced with clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalis committed May 19, 2016
1 parent 7113a15 commit 1d3d1d5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Subsurface/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("0.4.0.2")]
[assembly: AssemblyFileVersion("0.4.0.2")]
[assembly: AssemblyVersion("0.4.1.0")]
[assembly: AssemblyFileVersion("0.4.1.0")]
19 changes: 14 additions & 5 deletions Subsurface/Source/Screens/NetLobbyScreen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ public NetLobbyScreen()

missionTypeButtons = new GUIButton[2];

missionTypeButtons[0] = new GUIButton(new Rectangle(120, 0, 20, 20), "<", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[0] = new GUIButton(new Rectangle(100, 0, 20, 20), "<", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[0].UserData = -1;

new GUITextBlock(new Rectangle(120, 0, 120, 20), "Random", GUI.Style, Alignment.BottomLeft, Alignment.TopCenter, missionTypeBlock).UserData = 0;
new GUITextBlock(new Rectangle(120, 0, 80, 20), "Random", GUI.Style, Alignment.BottomLeft, Alignment.TopCenter, missionTypeBlock).UserData = 0;

missionTypeButtons[1] = new GUIButton(new Rectangle(240, 0, 20, 20), ">", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[1] = new GUIButton(new Rectangle(200, 0, 20, 20), ">", Alignment.BottomLeft, GUI.Style, missionTypeBlock);
missionTypeButtons[1].UserData = 1;

missionTypeBlock.Visible = false;
Expand Down Expand Up @@ -521,6 +521,8 @@ private void SetMissionType(int missionTypeIndex)

missionTypeBlock.GetChild<GUITextBlock>().Text = Mission.MissionTypes[missionTypeIndex];
missionTypeBlock.UserData = missionTypeIndex;

valueChanged = true;
}

public bool ToggleMissionType(GUIButton button, object userData)
Expand All @@ -533,6 +535,8 @@ public bool ToggleMissionType(GUIButton button, object userData)

SetMissionType(missionTypeIndex);

valueChanged = true;

return true;
}

Expand Down Expand Up @@ -1107,16 +1111,21 @@ public void ReadData(NetIncomingMessage msg)
}
}

catch
catch (Exception e)
{
DebugConsole.ThrowError("Failed to read lobby update message");
return;
}

if (!string.IsNullOrWhiteSpace(mapName) && !GameMain.NetworkMember.Voting.AllowSubVoting) TrySelectSub(mapName, md5Hash);

if (!GameMain.NetworkMember.Voting.AllowModeVoting)
{
SelectMode(modeList.children[modeIndex], modeList.children[modeIndex].UserData);
//SelectMode(modeList.children[modeIndex], modeList.children[modeIndex].UserData);
modeList.Select(modeIndex, true);

GameModePreset modePreset = modeList.children[modeIndex].UserData as GameModePreset;
missionTypeBlock.Visible = modePreset.Name == "Mission";
}

SetTraitorsEnabled(traitorsEnabled);
Expand Down
27 changes: 27 additions & 0 deletions Subsurface/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
---------------------------------------------------------------------------------------------------------
v0.4.1.0
---------------------------------------------------------------------------------------------------------

- alien ruins and some special monsters/items that only spawn inside them
- improved lighting
- flashlights and flares
- depth charges
- items can be moved from the inventory to cabinets/containers by double clicking
- option to choose mission type in multiplayer
- fixed crashes when using medical syringes in multiplayer
- fixed characters occasionally ''exploding'' or being launched to a random direction when
entering/exiting the sub
- fixed long map seeds always generating the same map
- fixed item loading issues when playing the game on a PC using the Turkish locale (and most likely some
other locales with special uppercase/lowercase rules)

---------------------------------------------------------------------------------------------------------
v0.4.0.3
---------------------------------------------------------------------------------------------------------

- stun syncing bugfix
- fixed dead/unconscious characters being impossible to select in the info menu
- fixed crashes when detonating nitroglyserine by injecting it
- oxygen level deteriorates more slowly when unconscious
- instructions for dealing with broken junction boxes in the tutorial

---------------------------------------------------------------------------------------------------------
v0.4.0.2
---------------------------------------------------------------------------------------------------------
Expand Down
Binary file modified Subsurface_Solution.v12.suo
Binary file not shown.

0 comments on commit 1d3d1d5

Please sign in to comment.