The International Simutrans Forum

 

Author Topic: How to draw an object?  (Read 1958 times)

0 Members and 1 Guest are viewing this topic.

Offline ROCAMBOLER529

  • *
  • Posts: 86
  • Languages: ES EN
How to draw an object?
« on: November 17, 2017, 12:17:01 AM »
Can i draw a vehicle, building or factory using paint? If i had the object drawed, what will i need to do or what tool will i need to use to transform a pain into a simutrans object?!?!

Offline jamespetts gb

  • Simutrans-Extended project coordinator
  • Devotee
  • *
  • Posts: 17667
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: How to draw an object?
« Reply #1 on: November 17, 2017, 12:52:10 AM »
The workflow depends on the pakset. For Pak128.Britain, see here and, for a tutorial, here. I am not familiar with the workflow for other paksets - I suggest that you ask in the forum pertaining to the pakset that you wish to assist in developing.

Offline ROCAMBOLER529

  • *
  • Posts: 86
  • Languages: ES EN
Re: How to draw an object?
« Reply #2 on: November 17, 2017, 01:26:41 AM »
But what happen if the object that i can creates will be on pak64?
« Last Edit: November 17, 2017, 02:00:09 AM by ROCAMBOLER529 »

Offline Leartin

  • Devotee
  • *
  • Posts: 1055
  • PAK-DEV P192C
  • Languages: DE, EN
Re: How to draw an object?
« Reply #3 on: November 17, 2017, 05:00:45 AM »
Once you have a graphic, you need to write a dat-file with all the informations about the object your graphic is supposed to represent, as well as defining which graphic to use for what (eg. for vehicles, define which graphic shows which direction).
If you go to one of the public pakset repositories (eg https://sourceforge.net/p/simutrans/code/HEAD/tree/pak64/) you can look at existing images and dat files. Probably the easiest way to start out is taking an existing dat-file of an object similar to yours and change name + graphics definition to get your object in the game. If you succeed, you can then alter other information about the object to fit your need.

Offline ROCAMBOLER529

  • *
  • Posts: 86
  • Languages: ES EN
Re: How to draw an object?
« Reply #4 on: November 18, 2017, 12:00:51 AM »
Once you have a graphic, you need to write a dat-file with all the informations about the object your graphic is supposed to represent, as well as defining which graphic to use for what (eg. for vehicles, define which graphic shows which direction).
If you go to one of the public pakset repositories (eg https://sourceforge.net/p/simutrans/code/HEAD/tree/pak64/) you can look at existing images and dat files. Probably the easiest way to start out is taking an existing dat-file of an object similar to yours and change name + graphics definition to get your object in the game. If you succeed, you can then alter other information about the object to fit your need.

Very Useful!!! i like that!! but i need to open or download any file or i need to open an specific file for a specific object, eg, A new factory in the factory files?!?!