Skip to content

Commit

Permalink
0.3.8: Changed server process priority to "high" instead of "realtime…
Browse files Browse the repository at this point in the history
…", and fixed a crash issue (client-side) upon map change.
  • Loading branch information
Ohmnivore committed Jul 6, 2014
1 parent a47bf56 commit b10cbda
Show file tree
Hide file tree
Showing 12 changed files with 37 additions and 5 deletions.
Binary file modified Client/export/windows/cpp/bin/SkullRush.exe
Binary file not shown.
2 changes: 1 addition & 1 deletion Client/export/windows/cpp/bin/config.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.3.7
version=0.3.8
name=NOOB
team=1
ip=
Expand Down
Binary file modified Client/export/windows/cpp/bin/lime.ndll
Binary file not shown.
2 changes: 2 additions & 0 deletions Client/source/PreGame.hx
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class PreGame extends FlxState
Reg.client.send(Msg.PlayerInfo.ID, 1, ENet.ENET_PACKET_FLAG_RELIABLE);

myTrace("Sending player info to server.");

Reg.pre_state = null;
}

public function downloadError(e:LoaderErrorType):Void
Expand Down
3 changes: 2 additions & 1 deletion Client/source/SkullClient.hx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ class SkullClient extends Client
//FlxG.switchState(new PlayState());
//Reg.state.loadMap(Msg.MapMsg.data.get("mapname"), Msg.MapMsg.data.get("mapstring"));
//trace(Msg.MapMsg.data.get("mapstring"));
Reg.pre_state.myTrace("Received map file!");
if (Reg.pre_state != null)
Reg.pre_state.myTrace("Received map file!");
SkullClient.execute = false;
FlxG.switchState(new PlayState(Msg.MapMsg.data.get("mapstring")));
}
Expand Down
15 changes: 15 additions & 0 deletions Server/assets/maps/ProjectDef.oep
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,20 @@
<ValueDefinitions />
<NodesDefinition Enabled="false" Limit="-1" DrawMode="None" Ghost="false" />
</EntityDefinition>
<EntityDefinition Name="TriggerArea" Limit="-1" ResizableX="true" ResizableY="true" Rotatable="false" RotateIncrement="15">
<Size>
<Width>64</Width>
<Height>64</Height>
</Size>
<Origin>
<X>0</X>
<Y>0</Y>
</Origin>
<ImageDefinition DrawMode="Rectangle" ImagePath="" Tiled="false">
<RectColor A="255" R="255" G="0" B="0" />
</ImageDefinition>
<ValueDefinitions />
<NodesDefinition Enabled="true" Limit="-1" DrawMode="Fan" Ghost="false" />
</EntityDefinition>
</EntityDefinitions>
</project>
Binary file modified Server/export/windows/cpp/bin/SkullRushServer.exe
Binary file not shown.
15 changes: 15 additions & 0 deletions Server/export/windows/cpp/bin/assets/maps/ProjectDef.oep
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,20 @@
<ValueDefinitions />
<NodesDefinition Enabled="false" Limit="-1" DrawMode="None" Ghost="false" />
</EntityDefinition>
<EntityDefinition Name="TriggerArea" Limit="-1" ResizableX="true" ResizableY="true" Rotatable="false" RotateIncrement="15">
<Size>
<Width>64</Width>
<Height>64</Height>
</Size>
<Origin>
<X>0</X>
<Y>0</Y>
</Origin>
<ImageDefinition DrawMode="Rectangle" ImagePath="" Tiled="false">
<RectColor A="255" R="255" G="0" B="0" />
</ImageDefinition>
<ValueDefinitions />
<NodesDefinition Enabled="true" Limit="-1" DrawMode="Fan" Ghost="false" />
</EntityDefinition>
</EntityDefinitions>
</project>
2 changes: 1 addition & 1 deletion Server/export/windows/cpp/bin/config.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.3.7
version=0.3.8

############################

Expand Down
Binary file modified Server/export/windows/cpp/bin/lime.ndll
Binary file not shown.
2 changes: 1 addition & 1 deletion Server/source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class PlayState extends FlxState
Admin.hookCommands();

Insomnia.preventSleep();
Insomnia.setProcessPriority(Insomnia.P_REALTIME_PRIORITY_CLASS);
Insomnia.setProcessPriority(Insomnia.P_HIGH_PRIORITY_CLASS);
}

public function loadMap(Name:String):Void
Expand Down
1 change: 0 additions & 1 deletion Shared/code/OgmoLoader.hx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ class OgmoLoader
var map:FlxTilemap = new FlxTilemap();
map.loadMap(x.innerData, ArtifactFix.artefactFix(Assets.getImg(x.att.tileset), 16, 16), 16, 16, 0, 0, 0, 0);
State.maps.add(map);
//map.pixelPerfectRender = false;

interpretData(td, map);
}
Expand Down

0 comments on commit b10cbda

Please sign in to comment.