Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Toontown Server Source Code (and tutorial)

Status
Not open for further replies.
Newbie Spellweaver
Joined
Jul 2, 2014
Messages
6
Reaction score
4
I do not take credit for this

Source code download ( )



1) Download the source
2) Extract the source somewhere (right click > extract all). If you don't have that option, (a much better winrar alternative)
3) Go into the TTISource\ folder
4) Install python-2.7.msi inside that folder
5) Install vns_full.exe inside that folder
6) Copy or cut the "Panda3d_1.9.0" from that folder into your C:\ directory.
7) This step requires a few parts (for the TCP buffer patch)
7a) ( or look it up for Windows 8 ).
7b) Reboot your computer after turning UAC off (if already off, ignore this).
7c) Go into "TTISource" and then run "Increase TCP Buffer Size.bat".
8 )Turn UAC back on (or keep it off) and reboot (you MUST reboot after running the patch)


Now you're ready to start the server!
9) Go into "ToontownInfiniteRetro" and then run the following with administrator in this order:
9a) start_astron_server.bat
9b) start_uberdog_server.bat
9c) start_ai_server.bat (this is basically the "district" server, in layman's terms)


NOW WAIT FOR THE DISTRICT TO START. It will take a little bit to create all the objects.
If you get a "Unable to send datagram after connection is closed." error, you likely didn't run the TCP buffer patch correctly.


Now you're ready to play!
10a) If you just want to play singleplayer and you have the server on your own computer, you can go into "ToontownInfiniteRetro" and run "start_game_localhost.bat"


10b) If you want to play the game privately with a few friends, you can go into "ToontownInfiniteRetro" and edit "start_game_localhost.bat" with your server's IP (easiest way is to google what is my IP in my opinion)


Now you need to make yourself admin![/size] (or watch the video above)
11a) Easy method: Go into ToontownInfiniteRetro\astron\astrondb\ and open each yaml file with notepad. Look for one that looks similar to this, but with your own username:
Code:
id: 100000009
class: Account
fields:
  CREATED: "\"Sun Jun 22 22:30:02 2014\""
  LAST_LOGIN: "\"Sun Jun 22 22:30:02 2014\""
  ACCOUNT_ID: "\"usernamehere\""
  ACCESS_LEVEL: 0
  ACCOUNT_AV_SET: "[0, 0, 0, 100000010, 0, 0]"
  ESTATE_ID: 0
  ACCOUNT_AV_SET_DEL: "[]"
11b) Edit the line next to "ACCESS_LEVEL" from 0 to 700.


12) Now, relog into the game - and try typing ~ghost in the chat.
 
Last edited:
Newbie Spellweaver
Joined
Jul 2, 2014
Messages
6
Reaction score
4
can you post screenshots ?
toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums


... or did you mean screenshots for the tutorial?
 
Last edited:
Experienced Elementalist
Joined
Jul 16, 2010
Messages
275
Reaction score
29
works but its hard to click the blue arrow at text,idk if its my screen resolution fault or something with game

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums
 
Newbie Spellweaver
Joined
Jul 2, 2014
Messages
6
Reaction score
4
works but its hard to click the blue arrow at text,idk if its my screen resolution fault or something with game

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums

toontownguy - Toontown Server Source Code (and tutorial) - RaGEZONE Forums
Clicking UI elements is a little off, yes. There are also a few bugs.
 

Kia

Newbie Spellweaver
Joined
Nov 12, 2013
Messages
8
Reaction score
2
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.
 
Initiate Mage
Joined
Jul 11, 2014
Messages
1
Reaction score
0
Hello is there a way to add more districts? If i use the ai server more than one time the console/districts keep crashing.

But i saw that this is working because for a few seconds i was in game and looked for the two districts and they were online but they crashed every minute or something.
 

Kia

Newbie Spellweaver
Joined
Nov 12, 2013
Messages
8
Reaction score
2
Just let it crash 2-3 times, then it works.
 
Newbie Spellweaver
Joined
Jul 8, 2014
Messages
8
Reaction score
0
I am using a hamachi ip for this game, and I can't run the start_astron_server.bat because of the error: 'astrond' is not recognized as an internal or external command, operable program, or batch file.
 

Kia

Newbie Spellweaver
Joined
Nov 12, 2013
Messages
8
Reaction score
2
Did not test on XP, compiling Astron for Linux right now. Will report here if it worked.
 
Newbie Spellweaver
Joined
Jul 8, 2014
Messages
8
Reaction score
0
I am using Windows 8.1 to set the server up and I get the application was unable to start correctly when clicking on start_astron_server.bat without running it as admin.
 
Status
Not open for further replies.
Back
Top