This commit is contained in:
Master Jumblespeed 2015-05-24 23:35:48 -04:00
parent ae614c372f
commit 91aaef9383
11 changed files with 27 additions and 57 deletions

1
PPYTHON_PATH Normal file
View file

@ -0,0 +1 @@
"panda/python/ppython.exe"

2
astron/databases/air_cache/.gitignore vendored Executable file
View file

@ -0,0 +1,2 @@
*
!.gitignore

View file

@ -1,47 +0,0 @@
(dp1
I4000
(lp2
I236
aI34
aI250
aI67
aI13
asI1000
(lp3
I17
aI118
aI99
aI16
aI29
asI9000
(lp4
I222
aI104
aI121
aI59
aI93
asI2000
(lp5
I86
aI139
aI161
aI64
aI194
asI5000
(lp6
I41
aI130
aI85
aI100
aI251
asI3000
(lp7
I157
aI215
aI208
aI242
aI207
asS'day'
p8
I16579
s.

Binary file not shown.

Binary file not shown.

View file

@ -1,5 +1,7 @@
@echo off
set /P PPYTHON_PATH=<../../PPYTHON_PATH
rem Define some constants for our AI server:
set MAX_CHANNELS=999999
set STATESERVER=4002
@ -14,7 +16,7 @@ set BASE_CHANNEL=401000000
echo ===============================
echo Starting Toontown Stride AI server...
echo ppython: "panda/python/ppython.exe"
echo ppython: %PPYTHON_PATH%
echo District name: %DISTRICT_NAME%
echo Base channel: %BASE_CHANNEL%
echo Max channels: %MAX_CHANNELS%
@ -24,7 +26,7 @@ echo Event Logger IP: %EVENTLOGGER_IP%
echo ===============================
:main
"panda/python/ppython.exe" ^
%PPYTHON_PATH% ^
-m toontown.ai.ServiceStart ^
--base-channel %BASE_CHANNEL% ^
--max-channels %MAX_CHANNELS% ^

View file

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

View file

@ -1,5 +1,7 @@
@echo off
set /P PPYTHON_PATH=<../../PPYTHON_PATH
rem Define some constants for our UberDOG server:
set MAX_CHANNELS=999999
set STATESERVER=4002
@ -12,7 +14,7 @@ set BASE_CHANNEL=1000000
echo ===============================
echo Starting Toontown Stride UberDOG server...
echo ppython: "panda/python/ppython.exe"
echo ppython: %PPYTHON_PATH%
echo Base channel: %BASE_CHANNEL%
echo Max channels: %MAX_CHANNELS%
echo State Server: %STATESERVER%
@ -21,7 +23,7 @@ echo Event Logger IP: %EVENTLOGGER_IP%
echo ===============================
:main
"panda/python/ppython.exe" ^
%PPYTHON_PATH% ^
-m toontown.uberdog.ServiceStart ^
--base-channel %BASE_CHANNEL% ^
--max-channels %MAX_CHANNELS% ^

View file

@ -642,10 +642,16 @@ class Avatar(Actor, ShadowCaster):
return Actor.loop(self, animName, restart, partName, fromFrame, toFrame)
@magicWord(category=CATEGORY_COMMUNITY_MANAGER)
@magicWord(category=CATEGORY_COMMUNITY_MANAGER, types=[])
def target():
"""
Returns the current Spellbook target.
"""
target = spellbook.getTarget()
return 'Target: %s-%d [%d]' % (target.getName(), target.doId, target.getAdminAccess())
print 'called target'
print 'name: ' + target.getName()
thisdoid = str(int(target.doId))
print 'doId: ', thisdoid
thisadminacc = str(int(target.getAdminAccess()))
print 'admin access: ', thisadminacc
return 'Target: %s-%d [%d]' % (target.getName(), int(target.doId), int(target.getAdminAccess()))

2
start-all.bat Executable file
View file

@ -0,0 +1,2 @@
cd astron/win32
start-all

8
start-game.bat Normal file → Executable file
View file

@ -1,5 +1,7 @@
@echo off
set /P PPYTHON_PATH=<PPYTHON_PATH
title Toontown Stride Game Launcher
echo Choose your connection method!
@ -33,7 +35,7 @@ echo.
echo ===============================
echo Starting Toontown Stride...
echo ppython: "panda/python/ppython.exe"
echo ppython: %PPYTHON_PATH%
if %INPUT%==2 (
echo Username: %ttsUsername%
@ -45,9 +47,9 @@ echo Gameserver: %TTS_GAMESERVER%
echo ===============================
if %INPUT%==2 (
"panda/python/ppython.exe" -m toontown.toonbase.ClientStartRemoteDB
%PPYTHON_PATH% -m toontown.toonbase.ClientStartRemoteDB
) else (
"panda/python/ppython.exe" -m toontown.toonbase.ClientStart
%PPYTHON_PATH% -m toontown.toonbase.ClientStart
)
pause