Deutsches Simutransforum

Normale Version: Coding airline graphics
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2 3 4

BTBEI2016

hi All I have painted those graphics for Turkish Airlines A320 and British Airways A380 but I don't know how to code them into paks for pak 192 ? can someone tell me how ? thank you Smile
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.

BTBEI2016

Thank you for your instructions Smile it is a bit complicated process , I will try to do it and if I have questions I will ask Smile
Only complicated at the first times Smile.

Maybe helpful: For pak192.comic so far as I know outside of this forum doesn´t exist a central source-location. But for pak128 you can find it on https://github.com/simutrans/pak128.

There you can find the .dat-files for many objects and associated graphics. Great to look how it works and you can copy the .dats and change it for your own objects.

BTBEI2016

dear sir I have the PNG and DAT file but the makeobj tool is not functioning . could you help me please what to do ? I thank you

BTBEI2016

hi I am following the instructions but the file created is just 1KB size so something wrong . how can I fix that ? Thank you
I smell repaints of A350-1000's work. As such, it's probably best to ask the original creator for the original dat files, since the specification should be the same and only name/image is different.

Pumuckl999,'index.php?page=Thread&postID=111409#post111409' schrieb: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***.
You can use any graphic of any size in any pakset, you just have to pak it as eg. pak256 in makeobj (no need to specify the pakset, makeobj only cares about tile size) - however, objects that are not the right size won't be centered on the tile, thus one needs to specify an offset... and that's where it becomes a bit more complicated then a beginner should deal with first time-

BTBEI2016

hi First of all Thank you so much for your kind help Smile I have the original DAT files , I will do some more trials and if I faced a difficulty I will inform by posting it .

BTBEI2016

Dear I want to kindly ask what I should write as per attached photo in order to get correct pak file ? Thank you Smile
"makeobj pak192" for the smaller plane and "makeobj pak256" for the bigger plane. Furthermore, check if all image references in the dat file refer to "TurkishA320" since that's the name of the png.
Seiten: 1 2 3 4