general: new vsc tasks method
added a workspace for tasks relying on the existing scripts
This commit is contained in:
parent
6d7b5070c5
commit
e7e4c9d493
18 changed files with 164 additions and 194 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -12,7 +12,9 @@ whitelist/
|
|||
.idea
|
||||
venv/
|
||||
*.json
|
||||
!.vscode/tasks.json
|
||||
!win32/.vscode/tasks.json
|
||||
!linux/.vscode/tasks.json
|
||||
!darwin/.vscode/tasks.json
|
||||
*.buildings
|
||||
*.trackRecords
|
||||
PPYTHON_PATH
|
||||
|
|
12
.vscode/darwin/start-ai-server.sh
vendored
12
.vscode/darwin/start-ai-server.sh
vendored
|
@ -1,12 +0,0 @@
|
|||
#!/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
4
.vscode/darwin/start-astron-server.sh
vendored
|
@ -1,4 +0,0 @@
|
|||
#!/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
4
.vscode/darwin/start-game.sh
vendored
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
export LOGIN_TOKEN=dev
|
||||
|
||||
/usr/local/bin/python3.9 -m toontown.launcher.QuickStartLauncher
|
11
.vscode/darwin/start-uberdog-server.sh
vendored
11
.vscode/darwin/start-uberdog-server.sh
vendored
|
@ -1,11 +0,0 @@
|
|||
#!/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
12
.vscode/linux/start-ai-server.sh
vendored
|
@ -1,12 +0,0 @@
|
|||
#!/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
6
.vscode/linux/start-astron-server.sh
vendored
|
@ -1,6 +0,0 @@
|
|||
#!/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
4
.vscode/linux/start-game.sh
vendored
|
@ -1,4 +0,0 @@
|
|||
#!/bin/sh
|
||||
export LOGIN_TOKEN=dev
|
||||
|
||||
python3 -m toontown.launcher.QuickStartLauncher
|
11
.vscode/linux/start-uberdog-server.sh
vendored
11
.vscode/linux/start-uberdog-server.sh
vendored
|
@ -1,11 +0,0 @@
|
|||
#!/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
99
.vscode/tasks.json
vendored
|
@ -1,99 +0,0 @@
|
|||
{
|
||||
// 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
11
.vscode/win32/start_ai_server.bat
vendored
|
@ -1,11 +0,0 @@
|
|||
@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
3
.vscode/win32/start_astron_server.bat
vendored
|
@ -1,3 +0,0 @@
|
|||
@echo off
|
||||
cd astron/win32
|
||||
astrond --loglevel info ../config/astrond.yml
|
7
.vscode/win32/start_game.bat
vendored
7
.vscode/win32/start_game.bat
vendored
|
@ -1,7 +0,0 @@
|
|||
@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
|
9
.vscode/win32/start_uberdog_server.bat
vendored
9
.vscode/win32/start_uberdog_server.bat
vendored
|
@ -1,9 +0,0 @@
|
|||
@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
|
47
darwin/.vscode/tasks.json
vendored
Normal file
47
darwin/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Darwin - Start Game",
|
||||
"type": "shell",
|
||||
"command": "./start_game.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Darwin - Start AI Server",
|
||||
"type": "shell",
|
||||
"command": "./start_ai_server.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Darwin - Start Astron Server",
|
||||
"type": "shell",
|
||||
"command": "./start_astron_server.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Darwin - Start UberDOG Server",
|
||||
"type": "shell",
|
||||
"command": "./start_uberdog_server.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
47
linux/.vscode/tasks.json
vendored
Normal file
47
linux/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Linux - Start Game",
|
||||
"type": "shell",
|
||||
"command": "./start_game.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Linux - Start AI Server",
|
||||
"type": "shell",
|
||||
"command": "./start_ai_server.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Linux - Start Astron Server",
|
||||
"type": "shell",
|
||||
"command": "./start_astron_server.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Linux - Start UberDOG Server",
|
||||
"type": "shell",
|
||||
"command": "./start_uberdog_server.sh",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
20
vscode.code-workspace
Normal file
20
vscode.code-workspace
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"folders": [
|
||||
{
|
||||
"name": "Source",
|
||||
"path": "."
|
||||
},
|
||||
{
|
||||
"name": "Windows Scripts",
|
||||
"path": "win32"
|
||||
},
|
||||
{
|
||||
"name": "Linux Scripts",
|
||||
"path": "linux"
|
||||
},
|
||||
{
|
||||
"name": "Darwin Scripts",
|
||||
"path": "darwin"
|
||||
}
|
||||
]
|
||||
}
|
47
win32/.vscode/tasks.json
vendored
Normal file
47
win32/.vscode/tasks.json
vendored
Normal file
|
@ -0,0 +1,47 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
||||
// for the documentation about the tasks.json format
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Windows - Start Game",
|
||||
"type": "shell",
|
||||
"command": "./start_game.bat",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Windows - Start AI Server",
|
||||
"type": "shell",
|
||||
"command": "./start_ai_server.bat",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Windows - Start Astron Server",
|
||||
"type": "shell",
|
||||
"command": "./start_astron_server.bat",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Windows - Start UberDOG Server",
|
||||
"type": "shell",
|
||||
"command": "./start_uberdog_server.bat",
|
||||
"group": "test",
|
||||
"presentation": {
|
||||
"reveal": "always",
|
||||
"panel": "new"
|
||||
}
|
||||
},
|
||||
]
|
||||
}
|
Loading…
Reference in a new issue