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/ resources/
save.dat save.dat
ai-crash.txt 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 @echo off
cd ../..
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%: rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<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 @echo off
cd astron cd..
astrond --loglevel info config/cluster.yml 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 @echo off
cd ../..
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%: rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH set /P PPYTHON_PATH=<PPYTHON_PATH

2
tools/.gitignore vendored
View file

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

View file

@ -36,10 +36,8 @@ def loadDNAFileAI(dnaStorage, file):
def setupDoor(a, b, c, d, e, f): def setupDoor(a, b, c, d, e, f):
try: try:
e = int(str(e).split('_')[0]) e = int(str(e).split('_')[0])
except: except:
print 'setupDoor: error parsing', e print 'setupDoor: error parsing', e
e = 9999 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 return
av = simbase.air.doId2do.get(avId) av = simbase.air.doId2do.get(avId)
if av: if av:
if av.getMaxHp() < (av.getHp() + laff): if av.getMaxHp() < (av.getHp() + laff):
movieType = NPCToons.SELL_MOVIE_CHEATER movieType = NPCToons.SELL_MOVIE_CHEATER
self.air.writeServerEvent('suspicious', avId, 'DistributedNPCLaffRestockAI.restock invalid restock') self.air.writeServerEvent('suspicious', avId, 'DistributedNPCLaffRestockAI.restock invalid restock')
self.notify.warning('somebody tried to buy an invalid hp restock! avId: %s' % avId) self.notify.warning('somebody tried to buy an invalid hp restock! avId: %s' % avId)
else: else:
movieType = NPCToons.SELL_MOVIE_COMPLETE movieType = NPCToons.SELL_MOVIE_COMPLETE
av.takeMoney(cost) av.takeMoney(cost)
av.b_setHp(av.getHp() + laff) 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 @echo off
cd..
title TTS Game Launcher title TTS Game Launcher
rem Read the contents of PPYTHON_PATH into %PPYTHON_PATH%:
set /P PPYTHON_PATH=<PPYTHON_PATH set /P PPYTHON_PATH=<PPYTHON_PATH
echo Choose your game server! echo Choose your game server!
echo #1 - Localhost echo #1 - Localhost
echo #2 - Loudrob echo #2 - Custom
echo #3 - Steve echo #3 - Loudrob
echo #4 - Custom
echo. echo.
set /P INPUT= set /P INPUT=
set server=unset
if %INPUT%==1 set TTS_GAMESERVER=127.0.0.1 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=71.200.196.180
if %INPUT%==3 set TTS_GAMESERVER=167.114.220.172
if %INPUT%==4 ( if %TTS_GAMESERVER%==unset (
echo. echo.
set /P TTS_GAMESERVER=Gameserver: set /P TTS_GAMESERVER=Gameserver:
) )
@ -29,4 +33,4 @@ echo Gameserver: %TTS_GAMESERVER%
echo =============================== echo ===============================
%PPYTHON_PATH% -m toontown.toonbase.ClientStart %PPYTHON_PATH% -m toontown.toonbase.ClientStart
pause pause

View file

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