Themabewertung:
  • 0 Bewertung(en) - 0 im Durchschnitt
  • 1
  • 2
  • 3
  • 4
  • 5
Coding airline graphics
#2
You need the graphics and for each object a file with parameters. Size of single graphics should conform to your pakset. In your first graphic every single graphic has a size of 256x256 pixels, but i didn´t know any pak256***. Second graphic you can use directly for pak192...comic for example.

Create the .dat file:
Generally information for dat-file-parameters you can find at http://simutrans-germany.com/wiki/wiki/en_dat_Files.
Here an example (not tested) , if your second graphic named A320.png you can copy the parameters into a text-file with extension .dat, maybe a320turkish.dat.
Specific parameters for your vehicle you should change to the values of the A320, here are power, wight.... from a Boeing(?).

Code:
#next line the program need for every vehicle obj=vehicle #name of your vehicle name=A320_Turkish #name of the artist copyright=BTBEI2016 intro_year=1990 intro_month=1 retire_year=2015 retire_month=12 waytype=air #price in depots will set to 1/100 of this value cost=20000000 #price per kilometer will set to 1/100 of this value runningcost=780 # i´m not sure, i think here only works the german Parameter for passengers freight=Passagiere # max passengers can loaded, if you create vehicles for passenger-transportation payload=120 engine_type=diesel #in KW, not HP power=10500 #increase this value, your vehicle will faster reach maximum speed gear=130 #in kilomerters per hour speed=907 # in tons weight=61 # more useful for vehicles with trailers, you can control distance between # for example truck and trailer # beware to set this parameters to high for planes, maybe your plane than need # more than one field to load, but its not possible ingame length=5 # look at the sound-folder in your pak, maybe there exist a sound.tab # inside you can found numbers for the sound-files, you can use here sound=5 # smoke= # constraints you should use for vehicles with trailers constraint[prev][0]=none constraint[prev][1]=none constraint[next][0]=none constraint[next][1]=none # to work your graphic needs the name A320T.png or you have to change "A320T" to the name of your graphic, value behind graphic name # identify line and row for each single-graphic EmptyImage[S]=A320T.0.0 EmptyImage[N]=A320T.0.3 EmptyImage[E]=A320T.0.2 EmptyImage[W]=A320T.0.1 EmptyImage[SW]=A320T.1.1 EmptyImage[SE]=A320T.1.3 EmptyImage[NW]=A320T.1.2 EmptyImage[NE]=A320T.1.0 # only useful if you painted discrete graphics for a loaded vehicle #freightImageType[0]= #freightimage[0][S]= #freightimage[0][N]= #freightimage[0][E]= #freightimage[0][W]= #freightimage[0][SW]= #freightimage[0][SE]= #freightimage[0][NE]= #freightimage[0][NW]= #_EO_

Lines started with # are only comments, you can delete them.

Now you have your grahics and your dat-file.
To compile them for the game, you need the program makeobj: https://sourceforge.net/projects/simutra...s/makeobj/.

Easy way to compile: Copy your .png and the .dat in the same folder, like makeobj.
Start a command-line.
Change to your makeobj-folder.
Enter makeobj <paksetname>, i´d never created objects for pak192.comic, but makeobj pak192.comic should work (or without point?).
Makeobj should compile all files found in your makeobj-folder.
Copy the created .pak-file(s) in your pakset-folder in simutrans-directory and start the game.

School is out since over 30years, hard to write in english Smile.
Zitieren


Nachrichten in diesem Thema
Coding airline graphics - von BTBEI2016 - 04-07-2016, Monday-17:54:36
[Kein Betreff] - von Pumuckl999 - 04-07-2016, Monday-20:49:12
[Kein Betreff] - von BTBEI2016 - 04-07-2016, Monday-21:04:27
[Kein Betreff] - von Pumuckl999 - 04-07-2016, Monday-21:13:14
[Kein Betreff] - von BTBEI2016 - 04-07-2016, Monday-22:50:45
[Kein Betreff] - von BTBEI2016 - 04-07-2016, Monday-23:41:53
[Kein Betreff] - von Leartin - 05-07-2016, Tuesday-07:56:37
[Kein Betreff] - von BTBEI2016 - 05-07-2016, Tuesday-09:48:00
[Kein Betreff] - von BTBEI2016 - 06-07-2016, Wednesday-09:01:23
[Kein Betreff] - von Leartin - 06-07-2016, Wednesday-10:39:08
[Kein Betreff] - von BTBEI2016 - 06-07-2016, Wednesday-11:34:53
[Kein Betreff] - von BTBEI2016 - 19-07-2016, Tuesday-10:31:48
[Kein Betreff] - von Sybill - 19-07-2016, Tuesday-14:59:54
[Kein Betreff] - von papa69 - 19-07-2016, Tuesday-19:09:11
[Kein Betreff] - von BTBEI2016 - 19-07-2016, Tuesday-22:44:52
[Kein Betreff] - von BTBEI2016 - 19-07-2016, Tuesday-23:25:56
[Kein Betreff] - von papa69 - 20-07-2016, Wednesday-17:05:22
[Kein Betreff] - von Sybill - 21-07-2016, Thursday-19:19:16
[Kein Betreff] - von BTBEI2016 - 21-07-2016, Thursday-20:33:35
[Kein Betreff] - von BTBEI2016 - 21-07-2016, Thursday-20:41:03
[Kein Betreff] - von Sybill - 21-07-2016, Thursday-21:04:59
[Kein Betreff] - von The Transporter - 21-07-2016, Thursday-22:03:07
[Kein Betreff] - von BTBEI2016 - 21-07-2016, Thursday-22:34:57
[Kein Betreff] - von The Transporter - 21-07-2016, Thursday-22:57:24
[Kein Betreff] - von BTBEI2016 - 21-07-2016, Thursday-23:17:40
[Kein Betreff] - von BTBEI2016 - 21-07-2016, Thursday-23:19:28
[Kein Betreff] - von The Transporter - 21-07-2016, Thursday-23:39:48
[Kein Betreff] - von BTBEI2016 - 21-07-2016, Thursday-23:57:47
[Kein Betreff] - von The Transporter - 22-07-2016, Friday-00:04:07
[Kein Betreff] - von Sybill - 22-07-2016, Friday-00:11:17
[Kein Betreff] - von BTBEI2016 - 22-07-2016, Friday-00:27:01
[Kein Betreff] - von BTBEI2016 - 22-07-2016, Friday-00:37:35
[Kein Betreff] - von Sybill - 22-07-2016, Friday-00:49:52
[Kein Betreff] - von The Transporter - 22-07-2016, Friday-01:46:41
[Kein Betreff] - von BTBEI2016 - 22-07-2016, Friday-09:21:11
[Kein Betreff] - von BTBEI2016 - 22-07-2016, Friday-09:36:18

Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste