The International Simutrans Forum

Community => Simutrans Help Center => Topic started by: Fuzzy Peach on April 25, 2010, 11:51:35 pm

Title: Bars on object's image..
Post by: Fuzzy Peach on April 25, 2010, 11:51:35 pm
I'm using Makeobj 50 and Pakhelper 3.2. I made the PNG and the DAT files and when i go to make it it works fine. But when i try to use it in game it has a weird effect. It places white lines in front of the picture and the pictures aren't aligned.

Here's the DAT:
Code: [Select]
obj=vehicle
name=KX-8010 P****enger Car
copyright=Fuzzy Peach
=intro_month=3
=intro_year=2010
runningcost=150
cost=2500000
weight=20
speed=160
payload=100
freight=P****agiere
length=8
waytype=track
EmptyImage[S]=KX-8010.0.2
EmptyImage[E]=KX-8010.0.0
EmptyImage[SE]=KX-8010.0.1
EmptyImage[SW]=KX-8010.0.3
EmptyImage[N]=KX-8010.0.2
EmptyImage[W]=KX-8010.0.0
EmptyImage[NW]=KX-8010.0.1
EmptyImage[NE]=KX-8010.0.3

The PAK is attached in the ZIP below.

mod note: subject modified to explain better the content of the thread.
~vilvoh
Title: Re: Problems making a PAK file.
Post by: prissi on April 26, 2010, 09:08:02 am
Use a 24 bit PNG not 32 bit PNG solves this. Also the newest moekogj may solve this (not available in binary form).
Title: Re: Problems making a PAK file.
Post by: Fuzzy Peach on April 26, 2010, 01:30:52 pm
Do you know how i would do this in GIMP?
Title: Re: Problems making a PAK file.
Post by: vilvoh on April 26, 2010, 01:38:35 pm
Just cut the original image, create a new one of the same size and then paste the original one into the new one. Finally save it and voila!!

PS: It's not a bug, It's a well known effect in Simutrans, called the bars effect
Title: Re: Problems making a PAK file.
Post by: VS on April 26, 2010, 01:43:54 pm
In GIMP, open a png, then in menu layer->transparency->remove alpha channel. Save.