The International Simutrans Forum

 

Author Topic: Bars on object's image..  (Read 2265 times)

0 Members and 1 Guest are viewing this topic.

Offline Fuzzy Peach

  • *
  • Posts: 89
  • Creator of the Simuworld Challenges.
Bars on object's image..
« 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 Passenger Car
copyright=Fuzzy Peach
=intro_month=3
=intro_year=2010
runningcost=150
cost=2500000
weight=20
speed=160
payload=100
freight=Passagiere
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
« Last Edit: April 26, 2010, 01:42:26 PM by vilvoh »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10320
  • Languages: De,EN,JP
Re: Problems making a PAK file.
« Reply #1 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).

Offline Fuzzy Peach

  • *
  • Posts: 89
  • Creator of the Simuworld Challenges.
Re: Problems making a PAK file.
« Reply #2 on: April 26, 2010, 01:30:52 PM »
Do you know how i would do this in GIMP?

Offline vilvoh

  • One of the good guys
  • Administrator (Inactive)
  • *
  • Posts: 4504
  • I'm the constructor, the architect
    • Escala real
Re: Problems making a PAK file.
« Reply #3 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
« Last Edit: April 26, 2010, 01:44:00 PM by vilvoh »

Offline VS

  • Senior Plumber (Devotee)
  • Devotees (Inactive)
  • *
  • Posts: 4856
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Problems making a PAK file.
« Reply #4 on: April 26, 2010, 01:43:54 PM »
In GIMP, open a png, then in menu layer->transparency->remove alpha channel. Save.