Skip to content
This repository was archived by the owner on Dec 30, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions Scripts/bat/!README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
buildAllDebug
Builds all projects with debug configuration
buildAllRelease
Builds all projects with release configuration

configDev
Sets the game server config for development
configMap
Sets the game server config for mapping
configServer
Sets the game server config to match the actual server

runBuildAll
Builds the client and server then runs them

runQuickAll
Runs the client and server without building
runQuickClient
Runs the client without building
runQuickServer
Runs the server without building


A quick explanation on the variations of files.

The debug vs release build is simply what people dev in vs the actual server. The release build contains various
optimizations, while the debug build contains debugging tools.
If you're mapping, use the release build as it will run smoother.

The Server config file simply matches the actual server, while the other two have some cvar tweaks that come in
handy for their specific tasks.
Essentially only saves you some commands when you load in, but very convenient none the less.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
copy runconfigdev.toml server_config.toml
copy ../config/configDev.toml server_config.toml
move server_config.toml ../../bin/Content.Server/
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
copy runconfigmap.toml server_config.toml
copy ../config/configMap.toml server_config.toml
move server_config.toml ../../bin/Content.Server/
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@echo off
copy runconfigserver.toml server_config.toml
copy ../config/configServer.toml server_config.toml
move server_config.toml ../../bin/Content.Server/
10 changes: 0 additions & 10 deletions Scripts/bat/readme.txt

This file was deleted.

4 changes: 0 additions & 4 deletions Scripts/bat/run3server.bat

This file was deleted.

4 changes: 0 additions & 4 deletions Scripts/bat/run4client.bat

This file was deleted.

4 changes: 4 additions & 0 deletions Scripts/bat/runBuildAll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
start runBuildServer.bat %*
start runBuildClient.bat %*
exit
4 changes: 4 additions & 0 deletions Scripts/bat/runBuildClient.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cd ../../
call dotnet run --project Content.Client %*
pause
4 changes: 4 additions & 0 deletions Scripts/bat/runBuildServer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cd ../../
call dotnet run --project Content.Server %*
pause
4 changes: 4 additions & 0 deletions Scripts/bat/runQuickAll.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
start runQuickServer.bat %*
start runQuickClient.bat %*
exit
4 changes: 4 additions & 0 deletions Scripts/bat/runQuickClient.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cd ../../
call dotnet run --project Content.Client --no-build %*
pause
4 changes: 4 additions & 0 deletions Scripts/bat/runQuickServer.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@echo off
cd ../../
call dotnet run --project Content.Server --no-build %*
pause
134 changes: 0 additions & 134 deletions Scripts/bat/runconfigserver.toml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ id = "parkstation"
min_players = 32

[rules]
rules.time = 60
rules.exempt_local = false
time = 60
exempt_local = false

[events]
ramping_average_end_time = 120.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ id = "parkstation"
min_players = 32

[rules]
rules.time = 60
rules.exempt_local = false
time = 60
exempt_local = false

[events]
ramping_average_end_time = 120.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ id = "parkstation"
min_players = 32

[rules]
rules.time = 60
rules.exempt_local = false
time = 60
exempt_local = false

[events]
ramping_average_end_time = 120.0
Expand Down
32 changes: 32 additions & 0 deletions Scripts/sh/!README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
buildAllDebug
Builds all projects with debug configuration
buildAllRelease
Builds all projects with release configuration

configDev
Sets the game server config for development
configMap
Sets the game server config for mapping
configServer
Sets the game server config to match the actual server

runBuildAll
Builds the client and server then runs them

runQuickAll
Runs the client and server without building
runQuickClient
Runs the client without building
runQuickServer
Runs the server without building


A quick explanation on the variations of files.

The debug vs release build is simply what people dev in vs the actual server. The release build contains various
optimizations, while the debug build contains debugging tools.
If you're mapping, use the release build as it will run smoother.

The Server config file simply matches the actual server, while the other two have some cvar tweaks that come in
handy for their specific tasks.
Essentially only saves you some commands when you load in, but very convenient none the less.
4 changes: 2 additions & 2 deletions Scripts/sh/run2configServer.sh → Scripts/sh/configDev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
cd "$(dirname $0)"
fi

cp runconfigserver.toml ../../bin/Content.Server/server_config.toml
cp ../config/configDev.toml ../../bin/Content.Server/server_config.toml
8 changes: 8 additions & 0 deletions Scripts/sh/configMap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cp ../config/configMap.toml ../../bin/Content.Server/server_config.toml
8 changes: 8 additions & 0 deletions Scripts/sh/configServer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

cp ../config/configServer.toml ../../bin/Content.Server/server_config.toml
10 changes: 0 additions & 10 deletions Scripts/sh/readme.txt

This file was deleted.

20 changes: 20 additions & 0 deletions Scripts/sh/runBuildAll.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#!/usr/bin/env sh

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
fi

echo "will run both server and client in the same terminal so will give you both outputs at once"
echo "dont mind fatl error relating to port 1212 does not seem to change anything"
Comment on lines +8 to +9

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we get this retested to make sure it wasn't just like, a single time thing? I really have doubts that this is a real issue.


cd ../../

dotnet build -c debug

cd ./Scripts/sh

sh -e runQuickServer.sh &
sh -e runQuickClient.sh

exit
6 changes: 3 additions & 3 deletions Scripts/sh/run4client.sh → Scripts/sh/runBuildClient.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
cd "$(dirname $0)"
fi

cd ../../bin/Content.Client
./Content.Client
cd ../../
dotnet run --project Content.Client
6 changes: 3 additions & 3 deletions Scripts/sh/run3server.sh → Scripts/sh/runBuildServer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# make sure to start from script dir
if [ "$(dirname $0)" != "." ]; then
cd "$(dirname $0)"
cd "$(dirname $0)"
fi

cd ../../bin/Content.Server
./Content.Server
cd ../../
dotnet run --project Content.Server
Loading