The python source code for Disney's now discontinued MMO, Toontown Online. All code is fomatted to pycodestyle guidelines.
- Download and install Panda3D-1.8.0
- Download and install setuptools
- Download and install pytz (TAR file)
To install setuptools and pytz (in that order!) simply execute
path\to\panda\python\ppython.exe setup.py install
ATTENTION! If you already downloaded the Panda3D version for OTP server on the OTP repository skip this step. In order to run the AI, UD (and the server) you need a special Panda3D version which can be obtained here (Alternatively, you can build it yourself here)
Once you've obtained the correct Panda for the UD, if you wish, create a BAT file to automate the running process.
@echo off
path\to\>>>>>>UD<<<<<<\panda\python\ppython main_ud.py
pause
Make sure you have the server up and running before running the UD!
Once you've obtained the correct Panda for the AI, if you wish, create a BAT file to automate the running process.
@echo off
path\to\>>>>>>AI<<<<<<\panda\python\ppython main_ai.py
pause
Make sure you have the server up and running and also the uberdog before running the AI!
Once you have the server, UD, and the AI running, it's time to launch the game. To do that, if you wish, create a BAT file to automate the running process.
@echo off
path\to\>>>>>GAME<<<<<\panda\python\ppython main.py your_username
pause
´
Have your OTP server folder one directory up the game folder, and always leave the name of the folder as ToontownOnline, as illustrated.
anywhere\
OTP-Reboot\
...
ToontownOnline\
...
This way the DC file is manageable by both projects without the needing of copy-pasting every change.