vs code tasks

cool B)
This commit is contained in:
TheFamiliarScoot 2021-07-30 17:27:31 -04:00
parent 84a0f214b6
commit 6d7b5070c5
14 changed files with 194 additions and 0 deletions

1
.gitignore vendored
View file

@ -12,6 +12,7 @@ whitelist/
.idea .idea
venv/ venv/
*.json *.json
!.vscode/tasks.json
*.buildings *.buildings
*.trackRecords *.trackRecords
PPYTHON_PATH PPYTHON_PATH

12
.vscode/darwin/start-ai-server.sh vendored Normal file
View file

@ -0,0 +1,12 @@
#!/bin/sh
BASE_CHANNEL=401000000
MAX_CHANNELS=999999
STATE_SERVER=4002
MESSAGE_DIRECTOR_IP="127.0.0.1:7199"
EVENT_LOGGER_IP="127.0.0.1:7197"
DISTRICT_NAME="Toon Valley"
/usr/local/bin/python3.9 -m toontown.ai.AIStart --base-channel ${BASE_CHANNEL} \
--max-channels ${MAX_CHANNELS} --stateserver ${STATE_SERVER} \
--messagedirector-ip ${MESSAGE_DIRECTOR_IP} \
--eventlogger-ip ${EVENT_LOGGER_IP} --district-name "$DISTRICT_NAME"

4
.vscode/darwin/start-astron-server.sh vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
# This assumes that your astrond build is located in the
# "astron/darwin" directory.
./astrond --loglevel info ../config/astrond.yml

4
.vscode/darwin/start-game.sh vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
export LOGIN_TOKEN=dev
/usr/local/bin/python3.9 -m toontown.launcher.QuickStartLauncher

11
.vscode/darwin/start-uberdog-server.sh vendored Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
MAX_CHANNELS=999999
STATE_SERVER=4002
MESSAGE_DIRECTOR_IP="127.0.0.1:7199"
EVENT_LOGGER_IP="127.0.0.1:7197"
BASE_CHANNEL=1000000
/usr/local/bin/python3.9 -m toontown.uberdog.UDStart --base-channel ${BASE_CHANNEL} \
--max-channels ${MAX_CHANNELS} --stateserver ${STATE_SERVER} \
--messagedirector-ip ${MESSAGE_DIRECTOR_IP} \
--eventlogger-ip ${EVENT_LOGGER_IP}

12
.vscode/linux/start-ai-server.sh vendored Normal file
View file

@ -0,0 +1,12 @@
#!/bin/sh
BASE_CHANNEL=401000000
MAX_CHANNELS=999999
STATE_SERVER=4002
MESSAGE_DIRECTOR_IP="127.0.0.1:7199"
EVENT_LOGGER_IP="127.0.0.1:7197"
DISTRICT_NAME="Toon Valley"
python3 -m toontown.ai.AIStart --base-channel ${BASE_CHANNEL} \
--max-channels ${MAX_CHANNELS} --stateserver ${STATE_SERVER} \
--messagedirector-ip ${MESSAGE_DIRECTOR_IP} \
--eventlogger-ip ${EVENT_LOGGER_IP} --district-name "$DISTRICT_NAME"

6
.vscode/linux/start-astron-server.sh vendored Normal file
View file

@ -0,0 +1,6 @@
#!/bin/sh
cd /astron/linux
# This assumes that your astrond build is located in the
# "astron/linux" directory.
./astrond --loglevel info ../config/astrond.yml

4
.vscode/linux/start-game.sh vendored Normal file
View file

@ -0,0 +1,4 @@
#!/bin/sh
export LOGIN_TOKEN=dev
python3 -m toontown.launcher.QuickStartLauncher

11
.vscode/linux/start-uberdog-server.sh vendored Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
MAX_CHANNELS=999999
STATE_SERVER=4002
MESSAGE_DIRECTOR_IP="127.0.0.1:7199"
EVENT_LOGGER_IP="127.0.0.1:7197"
BASE_CHANNEL=1000000
python3 -m toontown.uberdog.UDStart --base-channel ${BASE_CHANNEL} \
--max-channels ${MAX_CHANNELS} --stateserver ${STATE_SERVER} \
--messagedirector-ip ${MESSAGE_DIRECTOR_IP} \
--eventlogger-ip ${EVENT_LOGGER_IP}

99
.vscode/tasks.json vendored Normal file
View file

@ -0,0 +1,99 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Start Game",
"type": "shell",
"command": "./.vscode/linux/start_game.sh",
"windows": {
"command": ".\\.vscode\\win32\\start_game.bat"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start Game (Darwin)",
"type": "shell",
"command": "./.vscode/darwin/start_game.sh",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start AI Server",
"type": "shell",
"command": "./.vscode/linux/start_ai_server.sh",
"windows": {
"command": ".\\.vscode\\win32\\start_ai_server.bat"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start AI Server (Darwin)",
"type": "shell",
"command": "./.vscode/darwin/start_ai_server.sh",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start Astron Server",
"type": "shell",
"command": "./.vscode/linux/start_astron_server.sh",
"windows": {
"command": ".\\.vscode\\win32\\start_astron_server.bat"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start Astron Server (Darwin)",
"type": "shell",
"command": "./.vscode/darwin/start_astron_server.sh",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start UberDOG Server",
"type": "shell",
"command": "./.vscode/linux/start_uberdog_server.sh",
"windows": {
"command": ".\\.vscode\\win32\\start_uberdog_server.bat"
},
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
},
{
"label": "Start UberDOG Server (Darwin)",
"type": "shell",
"command": "./.vscode/darwin/start_uberdog_server.sh",
"group": "test",
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}

11
.vscode/win32/start_ai_server.bat vendored Normal file
View file

@ -0,0 +1,11 @@
@echo off
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
:main
%PPYTHON_PATH% -m toontown.ai.AIStart --base-channel 401000000 ^
--max-channels 999999 --stateserver 4002 ^
--messagedirector-ip 127.0.0.1:7199 ^
--eventlogger-ip 127.0.0.1:7197 ^
--district-name "Toon Valley"
goto main

3
.vscode/win32/start_astron_server.bat vendored Normal file
View file

@ -0,0 +1,3 @@
@echo off
cd astron/win32
astrond --loglevel info ../config/astrond.yml

7
.vscode/win32/start_game.bat vendored Normal file
View file

@ -0,0 +1,7 @@
@echo off
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
set LOGIN_TOKEN=dev
%PPYTHON_PATH% -m toontown.launcher.QuickStartLauncher

View file

@ -0,0 +1,9 @@
@echo off
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
%PPYTHON_PATH% -m toontown.uberdog.UDStart --base-channel 1000000 ^
--max-channels 999999 --stateserver 4002 ^
--messagedirector-ip 127.0.0.1:7199 ^
--eventlogger-ip 127.0.0.1:7197