Toontown Server Source Code (and tutorial)

Status
Not open for further replies.
hi guys, whenever i try to launch uberdog and ai servers they both give me a line that says this as it tries to connect multiple times : AstronInternalREpository(warning): Failed to connect! <code=3; 'Timeout on connection')

this didnt happen before i changed my ip, i tried my hamachi and my house ip but neither work
 
it wont let me do local it says i cant connect to my ip and tried other ones and have no luck but i did have a problem on step 9a if that matters help plz
 
Hi, I done all the steps and repaired everything. It launches but crashes and says, 'module pytz unrecognised' and it won't recognise some of the cogs either! Answer ASAP
 
I am not good with this stuff, me and my friend are trying to play a server together do duo stuff and we have no idea, we have tried everything. even copy paste the same file. the district name is the same but we cant see eachother. we have tried everything. even doing ~ghost 10+ times. if someone can help me or give me very detailed information on how to do this it would be alot of help. a video tutorial would be even more appreciated
 
I am not good with this stuff, me and my friend are trying to play a server together do duo stuff and we have no idea, we have tried everything. even copy paste the same file. the district name is the same but we cant see eachother. we have tried everything. even doing ~ghost 10+ times. if someone can help me or give me very detailed information on how to do this it would be alot of help. a video tutorial would be even more appreciated

Hello, OP here. Here is the original tutorial video for this (which got taken down at some point):

Some of the links in the video/description don't work, but you can find that stuff in the original post of this thread. Hope this helps :)

Sorry for not being too active in this thread. I haven't messed around with the source in awhile.

If you're interested in building up the source code, or starting a community around the source - go vote here
 
All commands begin with ~. Everything in brackets ( [] ) are arguments.



  • unlocks - Unlocks the invoker's teleport access, emotions, and pet trick phrases.
  • sos [count] [name] - Modifies the invoker's specified SOS card count.
  • units [value] - Restock all resistance messages.
  • fires [count] - Modifies the invoker's pink slip count.
  • maxMoney [maxMoney] - Modifies the target's max money value.
  • money [money] - Modifies the target's current money value.
  • bank [max / transfer] [value] - Modifies the target's bank money values.
  • fishingRod [fishingRod] - Modify the target's fishing rod value.
  • maxFishTank [maxFishTank] - Modify the target's max fish tank value.
  • name [name] - Modify the target's name.
  • hat [hatIndex] [hatTexture] - Modify the target's hat.
  • glasses [glassesIndex] [glassesTexture] - Modify the target's glasses.
  • backpack [backpackindex] [backpacktexture] - Modify the target's backpack.
  • hoes [shoesIndex] [shoesTexture] - Modify the target's shoes.
  • kick - Kick the target from the game server.
  • gmIcon [accesslevel] - Toggles the target's GM icon. If an access level is provided, however, the target's GM icon will be overridden.
  • ghost - Toggles invisibility on the invoker. Anyone with an access level below the invoker will not be able to see him or her.
  • badName - Revoke the target's name.
  • tickets [tickets] - Set the target's racing tickets value.
  • cogIndex [index] - Modifies the invoker's Cog index.
  • inventory [reset / restock] [gagTrack] - Resets or Fills the given Gag Track with Gags (leave out gagTrack for filling all Tracks).
  • dna [part] [value] - Modify a DNA part on the target.
  • trophyScore [score] - Modifies the target's trophy score.
  • givePies [pieType] [numPies] - Give the target (numPies) of (pieType) pies.
  • trackBonus [trackIndex] - Modify the invoker's track bonus level.
  • track [remove / add / experience] [gagTrack] [value] - Sets the expierence for the given track.
  • suit [spawn / building / do / invasion / invasionend] [cogType] [isSkeleCog] [isV2] [isWaiter] - No need for explaination.

How do you use the commands on other toons
 
Hello, I need help using commands, you see I can't seem to make them work, I've done all the steps but the commands in game don't work, if I type in

"~ghost" It appears red, and when I enter it just doesn't work, I can't use ghost, please help.


And yes I did set the access level from 0 to 700
 
All commands begin with ~. Everything in brackets ( [] ) are arguments.


  • suit [spawn / building / do / invasion / invasionend] [cogType] [isSkeleCog] [isV2] [isWaiter] - No need for explaination.

Can anyone explain this one? I'm trying to just summon certain cogs.
 
can someone please help me building the game
im using tools/build_client.py i changed infinite to toontown and shared to otp (tell me if its right)
i get this error
i changed main module to toontown.toonbase.toontownstartdist
Building the client...
couldn't import direct.extensions
couldn't import direct.extensions
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/Developer/Panda3D/direct/showutil/pfreeze.py", line 117, in <module>
freezer.done(compileToExe = compileToExe)
File "/Developer/Panda3D/direct/showutil/FreezeTool.py", line 886, in done
self.__loadModule(mdef)
File "/Developer/Panda3D/direct/showutil/FreezeTool.py", line 974, in __loadModule
fp = open(pathname, modulefinder.READ_MODE)
IOError: [Errno 2] No such file or directory: 'toontown.toonbase.ToontownStartDist'



Also does anyone know how to do the git process on prepare client and write_files
since im on a mac it gives me error about programfiles
if anyone knows how to fix this i would be happy
 
Can anyone explain this one?

suit [spawn / building / do / invasion / invasionend] [cogType] [isSkeleCog] [isV2] [isWaiter]

Say I want to spawn a flunky invasion; what would I type? I've tried "~suit spawn invasion flunky" but nothing worked. I'm not sure how to work this one.

*EDIT*
Nevermind; I found this full list of commands :D

This is the complete list of ALL commands within the game currently.

Using "~" before a command sets it to be done to yourself.
Using "~~"before a command sets it to be done to the targeted player/object.

~maxToon *gag you don't want* (Leave gag spot blank to get all gags)

~shoes *0-3* *number* (number = texture)
~hat *0-56* *number* (number = texture)
~backpack *0-24* *number* (number = texture)
~glasses *0-21* *number* (number = texture)

~system *Message* (Global whisper message)
~accessLevel *moderation title* (Turns players into mods, admins, etc., useless for yourself)
~kick *username* (Says "You can't kick yourself.", no matter the name)
~ban *username* (Says "You can't ban yourself.", no matter the name)

~dna species *species*
~dna torso *0/1/2*
~dna legs *0/1/2*
~dna color *1-24*
~dna color 26 (Black, but only works for cats)
~dna color 0 (White, but only work for bears)
~dna head *species*
~dna headsize *0-4* (changes the characteristics of your head, not it's actual size)
~dna headcolor *color*
~dna armcolor *color*
~dna legcolor *color*
~dna toptex *0-149*
~dna toptexcolor *color*
~dna sleevetex *0-136*
~dna sleevetexcolor *color*
~dna bottex *0-58*
~dna bottexcolor *color*
~dna gloves *color* (Only color that works is 0, which is white)

Texture colors range from 0 to 31. Regular colored clothing is 27.

~dna save *save number* (save current look of your toon)
~dna restore *save number* (reloads the look of your toon back to how it was saved)

~name *name*
~badName (revokes your name back too "<color> <species>")

~unites *number*
~fires *1-255*
~sos *1-100* *SOS name* ("magic cat" and "trap cat" are SOS options)
~gravity *number* (No message verification, just jump to see. 0 = reset)
~unlocks (Teleport access, all emotes, all doodle phrases)
~maxMoney *40-250*
~money *0-1200*
~bank max *1000-12000*
~bank transfer *number*
~fishingRod *0-4*
~maxFishTank *20-99*
~ghost (transparent, uninteractable, walk through walls and doors)
~tickets *number* (racing tickets)

~inventory reset *gagTrack* (Leave gagTrack blank to lose all gags, if you type in numbers instead of names, 0-6 takes out the corresponding level for all gags)
~inventory restock *gagTrack* (Leave gagTrack blank to restock all, if you type in numbers instead of names, 0-6 gives you the corresponding level for all gags. 6 is level 7 gags)

~gagBag *20-255* (Sets how many gags you can hold)

~trophyScore *number* (Building floors for stars)
~givePies *0-7* *-1-99* (Pie 6 is invalid, and -1 amount gives unlimited)

~track experience *gagTrack* *0-10500*
~track remove *gagTrack*
~track add *gagTrack*

~suit spawn *cogType* *isSkeleCog* *isV2* *isWaiter*
~suit building *0-3* (number = cog type)
~suit do *number* (number = difficulty)

~suit invasion *cog brand* *cog type* *isSkeleCog* *isV2* *isWaiter*
~suit invasionend *number* (requires any number after it to work)

For Invasion calls:
Best place to see the order of cogs is your sticker book. It goes from top to bottom and left to right. When counting yourself, 0 = 1.
Cog brand is Bossbot, Lawbot, Cashbot, Sellbot. (0-3)
Cog type is the respective bot from the brand. (0-7)
Skelecogs? Is a question. Leaving it blank or putting 0 means no. Putting 1 means yes.
V2.0? Is a question. Blank or 0 means no. 1 means yes.
Waiter is a question. Blank or 0 means no. 1 means yes.

~hp *-1-137*
~maxHP *15-137*

~house type *0-5*
~race leave

~loop *emotion*
~pose *emotion* *frame number* *body part* (leave body part blank to pose completely)
~pingpong *emotion* *start frame* *end frame* *body part* (start, end, and part at optional)
~rightHand *battle item*
~leftHand *battle item*

~globalTeleport (Unlocks all teleports)
~getZone
~zone *location ID* (wrong ID will crash the game most often)
~target (states info on who you have selected, yourself if nothing is selected)
~warp (warps selected user/object to yourself, useless solo)
~factoryWarp *factory zone ID* (only works in factory)

~spooky (darkens the current area you are in)

~minigame request *trolley game* (hope for your game next)
~minigame force *trolley game* (your game next)
~minigame remove *trolley game* (remove your request for next game)
~minigame difficulty *trolley game* (make game harder or easier)
~minigame safezone *trolley game* (not sure what this does yet?)
~minigame abort *trolley game* (quit game, only works in game)

~skipVP (skips the cog battles of the VP)
~skipCFO (skips the cog battles of the CFO)
~skipCJ (skips the cog battles of the CJ)
~skipCEO (skips the cog battles of the CEO)

~collisionsOff
~collisionsOn

~xyz *x* *y* *z* (numbers for location)
~hpr *h* *p* *r* (numbers for rotation of yourself, 0 0 0 resets it)

~quests clear
~quests clearHistory
~quests add *toontask ID* *task slot*
~quests remove *toontask ID* *task slot*
~quests list
~quests bagSize *1-4*
~quests progress *toontask ID* *number*
~quests tier *1-17* (toontask area that your toon is in; 1 = Flippy gag training, 17 = advanced after DDL tasks)

The number in the progress word is the amount that you have for your quest. So if you need 300 Flunkies and you put the number as 300, then the task would be complete.

~skipMovie (skips the after battle sequence, when in battle)
~oobe
~oobeCull
~a2d
~wire
~idNametags
~nameNametags
~placer
~explorer
~neglect
~backgroundColor *r* *g* *b* *a* (r g b a are all numbers)

~suitPaths (shows path that cogs follow on street and battle locations)

~cheesyEffect *1-14* *playground zone ID* *duration*
0 = normal
1 = Big head
2 = Small head
3 = Big legs
4 = Small legs
5 = Big toon
6 = Small toon
7 = Flat left-right
8 = Flat front-back
9 = Ghost
10 = White out
11 = Invisible body
12 = Pumpkin head
13 = Big white out
14 = Snowman head
15 = Green toon

~achievements earn *ID*
~achievements remove *ID*

~fish *fish species* (requests fish to be caught)
~fish remove (removes requested fish catch)

~cogIndex *number*
(When in a cog suit or area that allows you to be, sets the cog type that you will be wearing. 0 = boss, 1 = law, 2 = cash, 3 = sell)
 
Last edited:
Is there any way to remove the protection the server/client has for Python Injectors? I've been looking all through the .py files and I can't find anything about injectors so far. Thank you!
 
play toontown.exe
ppython - Entity point not found
RegisterTouchWindows could not be located in the dynamic link library USER32.dell
Entity point not found, error
User32.dell
Please Help!

WindowsXP
-------------------
not a vaily 32 app
start_astron_server.bat

Somebody Please Help me with this!



play toontown.exe
ppython - Entity point not found
RegisterTouchWindows could not be located in the dynamic link library USER32.dell
Entity point not found, error
User32.dell
Please Help!

WindowsXP
-------------------
not a vaily 32 app
start_astron_server.bat

Somebody Please Help me with this!
 
Last edited:
Hi, I need help. My friend Can't connet to my server im not sure why. We can't do Whats my ip because it doesn't work but hamachi only does. He is stuck at the could not conent to " This ip ".
 
Status
Not open for further replies.
Back