Skip to content

Commit

Permalink
v0.5.4.0 + converting parameters of the spawn command to correct case
Browse files Browse the repository at this point in the history
  • Loading branch information
Regalis committed Nov 22, 2016
1 parent 03e55a2 commit 219f925
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 10 deletions.
7 changes: 0 additions & 7 deletions StyleCop.Cache

This file was deleted.

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.5.3.4")]
[assembly: AssemblyFileVersion("0.5.3.4")]
[assembly: AssemblyVersion("0.5.4.0")]
[assembly: AssemblyFileVersion("0.5.4.0")]
7 changes: 6 additions & 1 deletion Subsurface/Source/DebugConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,8 @@ public static void ExecuteCommand(string command, GameMain game)
spawnPoint = WayPoint.GetRandom(commands[1].ToLowerInvariant() == "human" ? SpawnType.Human : SpawnType.Enemy);
}

if (string.IsNullOrWhiteSpace(commands[1])) return;

if (spawnPoint != null) spawnPosition = spawnPoint.WorldPosition;

if (commands[1].ToLowerInvariant()=="human")
Expand All @@ -311,7 +313,10 @@ public static void ExecuteCommand(string command, GameMain game)
}
else
{
spawnedCharacter = Character.Create("Content/Characters/" + commands[1] + "/" + commands[1] + ".xml", spawnPosition);
spawnedCharacter = Character.Create(
"Content/Characters/"
+ commands[1].First().ToString().ToUpper() + commands[1].Substring(1)
+ "/" + commands[1].ToLower() + ".xml", spawnPosition);
}

if (spawnedCharacter != null && GameMain.Server != null)
Expand Down
35 changes: 35 additions & 0 deletions Subsurface/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,38 @@
---------------------------------------------------------------------------------------------------------
v0.5.4.0
---------------------------------------------------------------------------------------------------------

Submarine editor:
- copy, paste and cut functionality
- items/structures can be copied by holding ctrl while dragging
- it's possible to move a wire by moving both items it's connected to (without having to move each
individual point of the wire separately)
- "hull volume helper" which makes it easier to select a suitable ballast tank size and
NeutralBallastLevel setting in the navigation terminal
- equipped items are removed when switching from wiring mode to character mode or vice versa
- no need to wait when deattaching items from the walls with a wrench


Bugfixes:
- wires are now positioned correctly in mirrored subs
- UI elements (buttons, textboxes, etc) can't be clicked through each other anymore
- fixed a bug that caused crashes when deattaching items from walls
- fixed a game-crashing particle bug
- fixed respawned characters getting assigned to a different team than the rest of the characters
(causing them to be displayed separately in the crew menu)
- pathfinding/autopilot fixes

Misc:
- server hosts can give players special privileges (kick, ban, end round)
- saving the contents of the server info box and the traitor setting
- changes to battery logic: they can now be used to cover the entire power consumption of the
electrical grid (assuming their maximum output is high enough)
- added "artifact holders" to alien ruins (which can also be used for turning artifacts into power
sources if installed in a sub)
- changes to character collider behavior: crouching changes the size of the collider and it's
easier to step over small obstacles


---------------------------------------------------------------------------------------------------------
v0.5.3.4
---------------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 219f925

Please sign in to comment.