Project Altis is a private server for Disney's now defunct MMO-RPG, Toontown Online.

Toontown Rewritten is a free-to-play revival of Disney's Toontown Online. Create your own Toon and join the battle to save Toontown from the evil robot Cogs. Play now for FREE!

Toontown Online Source Code Viewer

Toontown

Toontown Online Source Codes

This source code contains various exploits and vulnerabilities, it is not intended for use.

Toontown Online Source Code Control

This source code was completely depricated in March of 2016, and hasn't been used since.

This is now going public and archived due to it's un-used nature.

Toontown Online Source Code Repositories

Feel free to use it as a reference for learning.

Toontown

You are more than welcome to use any source code from this repository under the conditions of it's License.

  1. A copy of the license must be present and the works must be under Apache 2.0
  2. A list of changes must be listed.
  3. A note in regards to the usage of this repository must be noted.
Toontown Online Source Code

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an 'AS IS' BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Toontown Cheat Codes

  1. nout = MultiplexStream()
  2. loadPrcFileData(', 'framebuffer-multisample 1' )
  3. loadPrcFileData(', 'notify-level info')
  4. loadPrcFileData(', 'default-directnotify-level info')
  5. #loadPrcFileData(', 'want-directtools #t')
  6. ConfigVariableString('default-model-extension', '.bam').setValue('.bam')
  7. from direct.gui.DirectGui import *
  8. from direct.distributed.ClientRepository import ClientRepository
  9. from direct.showbase.InputStateGlobal import inputState
  10. from direct.showbase.DirectObject import DirectObject
  11. from direct.distributed.PyDatagram import PyDatagram
  12. from direct.distributed.PyDatagramIterator import PyDatagramIterator
  13. from direct.distributed.ClockDelta import globalClockDelta
  14. from direct.distributed import DistributedSmoothNode
  15. from toontown.toonbase import TTLocalizer
  16. from toontown.toonbase import ToontownGlobals
  17. from direct.directnotify.DirectNotify import DirectNotify
  18. FONT = loader.loadFont('phase_3/models/fonts/ImpressBT.ttf')
  19. wp = WindowProperties()
  20. base.win.requestProperties(wp)
  21. MODEL_ANTIALIAS = AntialiasAttrib.MAuto | AntialiasAttrib.MBetter
  22. ''
  23. class ToontownExplorer_ClientRepository(ClientRepository):
  24. notify = directNotify.newCategory('ClientRepository')
  25. def __init__(self):
  26. ClientRepository.__init__(self, dcFileNames=dcFileNames)
  27. notify = directNotify.newCategory('ToontownExplorerClient')
  28. def __init__(self):
  29. self.cr = ToontownExplorer_ClientRepository()
  30. successCallback=self.connectSuccess,
  31. def connectFailure(self, statusCode, statusString):
  32. self.notify.warning('Couldn't connect to server: %d, %s' % (statusCode, statusString))
  33. def connectSuccess(self):
  34. self.acceptOnce('gotTimeSync', self.gotTimeSync)
  35. DistributedSmoothNode.globalActivateSmoothing(1, 0)
  36. self.acceptOnce('createReady', self.createReady)
  37. def createReady(self):
  38. print 'toon coming soon'
  39. base.gamec = ToontownExplorer_Client()
  40. ''
  41. from tts.shtiker import ShtikerBook
  42. from tts.shtiker import MapPage
  43. from tts.shtiker import InventoryPage
  44. self.book.load()
  45. self.optionsPage.load()
  46. self.book.addPage(self.optionsPage, pageName=TTLocalizer.OptionsPageTitle)
  47. self.shardPage = ShardPage.ShardPage()
  48. self.book.addPage(self.shardPage, pageName=TTLocalizer.ShardPageTitle)
  49. self.mapPage = MapPage.MapPage()
  50. self.book.addPage(self.mapPage, pageName=TTLocalizer.MapPageTitle)
  51. self.inventoryPage = InventoryPage.InventoryPage()
  52. self.book.addPage(self.inventoryPage, pageName=TTLocalizer.InventoryPageTitle)
  53. #self.fishPage = FishPage.FishPage()
  54. #self.fishPage.load()
  55. #self.book.addPage(self.fishPage, pageName=TTLocalizer.FishPageTitle)
  56. self.book.enter()
  57. from tts.hood.HoodManager import ZoneManager
  58. def __loadToon(self):
  59. self.localToon.buildFromDNA(['t', 'm', 'r', 'ss', 26, 'l', 26, 'm', 26, 0, 0, 'Clyde the Hacker'])
  60. from toontown.gui import LaffMeter
  61. self.laffMeter = LaffMeter.LaffMeter('t', 35, 35)
  62. self.laffMeter.setScale(0.075)
  63. if base.game.localToon.getAnimalType() 'monkey' or base.game.localToon.getAnimalType() 'pig':
  64. else:
  65. self.laffMeter.start()
  66. def loadGame(self):
  67. self.__loadToon()
  68. self.__loadBook()
  69. base.game = ToontownExplorer()
  70. friendsGui = loader.loadModel('phase_3.5/models/gui/friendslist_gui')
  71. friendsButtonNormal = friendsGui.find('**/FriendsBox_Closed')
  72. friendsButtonPressed = friendsGui.find('**/FriendsBox_Open')
  73. friendsButtonRollover = friendsGui.find('**/FriendsBox_Rollover')
  74. bFriendsList = DirectButton(image=(friendsButtonNormal, friendsButtonPressed, friendsButtonRollover), relief=None, pos=(1.192, 0, 0.875), scale=newScale, text=(', TTLocalizer.FriendsListLabel, TTLocalizer.FriendsListLabel), text_scale=0.09, text_fg=Vec4(1, 1, 1, 1), text_shadow=Vec4(0, 0, 0, 1), text_pos=(0, -0.18), text_font=ToontownGlobals.getInterfaceFont())
  75. global text
  76. import Tkinter as tk
  77. root = tk.Tk()
  78. root.title('Toontown Explorer Developer Injector (From Toontown House)')
  79. global text
  80. text = tk.Text(frame,width=70,height=20)
  81. text.insert(1.0,')
  82. text.pack(side='left')
  83. tk.Button(root,text='Inject!',command=runInjectorCode).pack()
  84. scroll.pack(fill='y',side='right')
  85. text.config(yscrollcommand=scroll.set)