Organize the repo a bit more

This commit is contained in:
John Cote 2015-05-22 23:47:35 -04:00
parent 459a68049a
commit 1fbd0602dc
13 changed files with 60 additions and 51 deletions

2
.gitignore vendored
View file

@ -23,4 +23,4 @@ contentpacks/
resources/
save.dat
ai-crash.txt
gentokenlr.py
gentokenlr.py

View file

@ -1,5 +0,0 @@
rem only use this with a non-remotedb
start astron
start ai
start ud
start client

View file

@ -1 +1 @@
*.db
*.db

1
ai.bat → astron/win32/start-ai-server.bat Executable file → Normal file
View file

@ -1,4 +1,5 @@
@echo off
cd ../..
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH

View file

@ -0,0 +1,5 @@
rem Starts a Localhost server. This is meant for Windows. To connect to developer server, use the start-game-remotedb file for your OS.
start start-astron-cluster
start start-uberdog-server
start start-ai-server

5
astron.bat → astron/win32/start-astron-cluster.bat Executable file → Normal file
View file

@ -1,4 +1,5 @@
@echo off
cd astron
cd..
astrond --loglevel info config/cluster.yml
pause
pause

1
ud.bat → astron/win32/start-uberdog-server.bat Executable file → Normal file
View file

@ -1,4 +1,5 @@
@echo off
cd ../..
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH

2
tools/.gitignore vendored
View file

@ -1,2 +1,2 @@
build
build/*
build/*

View file

@ -36,10 +36,8 @@ def loadDNAFileAI(dnaStorage, file):
def setupDoor(a, b, c, d, e, f):
try:
e = int(str(e).split('_')[0])
except:
print 'setupDoor: error parsing', e
e = 9999
DNADoor.setupDoor(a, b, c, d, e, f)
DNADoor.setupDoor(a, b, c, d, e, f)

View file

@ -89,11 +89,11 @@ class DistributedNPCLaffRestockAI(DistributedNPCToonBaseAI):
return
av = simbase.air.doId2do.get(avId)
if av:
if av.getMaxHp() < (av.getHp() + laff):
movieType = NPCToons.SELL_MOVIE_CHEATER
self.air.writeServerEvent('suspicious', avId, 'DistributedNPCLaffRestockAI.restock invalid restock')
self.notify.warning('somebody tried to buy an invalid hp restock! avId: %s' % avId)
else:
movieType = NPCToons.SELL_MOVIE_COMPLETE
av.takeMoney(cost)
av.b_setHp(av.getHp() + laff)
if av.getMaxHp() < (av.getHp() + laff):
movieType = NPCToons.SELL_MOVIE_CHEATER
self.air.writeServerEvent('suspicious', avId, 'DistributedNPCLaffRestockAI.restock invalid restock')
self.notify.warning('somebody tried to buy an invalid hp restock! avId: %s' % avId)
else:
movieType = NPCToons.SELL_MOVIE_COMPLETE
av.takeMoney(cost)
av.b_setHp(av.getHp() + laff)

18
client.bat → win32/start_game.bat Executable file → Normal file
View file

@ -1,19 +1,23 @@
@echo off
cd..
title TTS Game Launcher
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
echo Choose your game server!
echo #1 - Localhost
echo #2 - Loudrob
echo #3 - Steve
echo #4 - Custom
echo #2 - Custom
echo #3 - Loudrob
echo.
set /P INPUT=
set server=unset
if %INPUT%==1 set TTS_GAMESERVER=127.0.0.1
if %INPUT%==2 set TTS_GAMESERVER=71.200.196.180
if %INPUT%==3 set TTS_GAMESERVER=167.114.220.172
if %INPUT%==4 (
if %INPUT%==3 set TTS_GAMESERVER=71.200.196.180
if %TTS_GAMESERVER%==unset (
echo.
set /P TTS_GAMESERVER=Gameserver:
)
@ -29,4 +33,4 @@ echo Gameserver: %TTS_GAMESERVER%
echo ===============================
%PPYTHON_PATH% -m toontown.toonbase.ClientStart
pause
pause

View file

@ -1,21 +1,22 @@
@echo off
title TTS Remote DB Launcher
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
rem Get the user input:
set /P ttsUsername="Username: "
set /P ttsPassword="Password: "
echo Using Steve's dev server.
set TTS_GAMESERVER=167.114.220.172
echo ===============================
echo Starting Toontown Stride...
echo ppython: %PPYTHON_PATH%
echo Username: %ttsUsername%
echo Gameserver: %TTS_GAMESERVER%
echo ===============================
%PPYTHON_PATH% -m toontown.toonbase.ClientStartRemoteDB
pause
@echo off
cd..
title Toontown Stride RemoteDB Launcher
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
rem Get the user input:
set /P ttsUsername="Username: "
set /P ttsPassword="Password: "
set TTS_GAMESERVER=167.114.220.172
echo ===============================
echo Starting Toontown Stride...
echo ppython: %PPYTHON_PATH%
echo Username: %ttsUsername%
echo Gameserver: %TTS_GAMESERVER% (Steve's Dev Server)
echo ===============================
%PPYTHON_PATH% -m toontown.toonbase.ClientStartRemoteDB
pause

7
guieditor.bat → win32/start_gui_editor.bat Executable file → Normal file
View file

@ -1,7 +1,10 @@
@echo off
cd..
title GUI Editor
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH
:main
%PPYTHON_PATH% -m guieditor.EditorStart
goto main
pause