The International Simutrans Forum


Author Topic: Simutrans object file  (Read 2182 times)

0 Members and 1 Guest are viewing this topic.


  • *
  • Posts: 93
  • Languages: ES EN
Simutrans object file
« on: August 15, 2018, 11:27:23 PM »
Hi community:

Is posible to change the codes of an object in Simutrans?? I wanna change some objects like the post man in Pak128 Britain-Exp or  remove somethings of the Simutrans Experimental or Standart that (for me) arent necesaries

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Administrator
  • *
  • Posts: 20713
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Simutrans object file
« Reply #1 on: August 15, 2018, 11:55:05 PM »
This is possible, as the pakset in question is open source. You will need to obtain the source code for the pakset here, make the modifications that you wish to the .dat files, and then recompile it using Makeobj (the easiest way of doing which is to use the Python script Makeall.mos if you are using Windows, or the makefile if you are using Linux).

Offline Leartin

  • Oh no, not him again!
  • Devotee
  • *
  • Posts: 1573
  • PAK-DEV P192C
  • Languages: DE, EN
Re: Simutrans object file
« Reply #2 on: August 16, 2018, 03:59:33 AM »
If the goal is to remove something the source code is not required, as it is possible to just delete the pak file containing the object in question. If it's in a file containing several objects, makeobj can be used to seperate them first.

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2836
  • Languages: EN
Re: Simutrans object file
« Reply #3 on: August 16, 2018, 04:18:17 AM »
Pak128 Britain Exp has most objects in separate pak files. Delete the ones you do not want or add/replace new ones you want.

Be aware that to play online with other players everyone must have the same pak files. Also if you are using my Java auto update tool to play nightly experimental builds then it may restore files you delete/change if those files are changed in the nightly.