The International Simutrans Forum

 

Author Topic: Makeobj not reading image  (Read 465 times)

0 Members and 1 Guest are viewing this topic.

Offline venom_

  • *
  • Posts: 4
  • Languages: EN
Makeobj not reading image
« on: July 22, 2018, 03:29:35 AM »
Hi. I'm trying to make a waytype track, only makeobj isn't reading the icon, saying that the space [0.2] has no data, despite me putting something in that slot. What does this mean?? https://imgur.com/FhW68lV
I put the image in to show that I put an icon at 0.2 and see if I did something wrong in making the icon.

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE
Re: Makeobj not reading image
« Reply #1 on: July 22, 2018, 06:12:01 AM »

Offline Leartin

  • Devotee
  • *
  • Posts: 1064
  • PAK-DEV P192C
  • Languages: DE, EN
Re: Makeobj not reading image
« Reply #2 on: July 23, 2018, 07:25:42 AM »
A cursor should not be required.
My guess: Did you specify to pak at 128 size? Otherwise, makeobj will attempt to pak in 64 size - hence 0.2 would be empty space.

Offline venom_

  • *
  • Posts: 4
  • Languages: EN
Re: Makeobj not reading image
« Reply #3 on: July 25, 2018, 12:08:59 AM »
Yes, I made sure to specify 128 size

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2836
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Makeobj not reading image
« Reply #4 on: July 25, 2018, 02:59:15 AM »
If you add the dat file and tell us the command you are calling it would make things much easier.

Offline Frank

  • Inactive/Retired
  • *
  • Posts: 1431
  • Languages: DE

Offline venom_

  • *
  • Posts: 4
  • Languages: EN
Re: Makeobj not reading image
« Reply #6 on: July 26, 2018, 02:03:09 PM »
Code: [Select]
obj=way
waytype=track
name=Eland430track
cost=100000
maintenance=4000
topspeed=430
copyright=
draw_as_ding=0
system_type=0
intro_year=2010
intro_month=1
retire_year=2999
retire_month=1
icon⇒ Eland430track.0.2
cursor=Eland430track.0.3
Image[-][0]=Eland430track.6.3
Image[N][0]=Eland430track.1.0
Image[S][0]=Eland430track.1.1
Image[E][0]=Eland430track.1.2
Image[W][0]=Eland430track.1.3
Image[NS][0]=Eland430track.0.0
Image[EW][0]=Eland430track.0.1
Image[NE][0]=Eland430track.2.0
Image[SE][0]=Eland430track.2.1
Image[SW][0]=Eland430track.2.2
Image[NW][0]=Eland430track.2.3
Image[NEW][0]=Eland430track.3.0
Image[NSE][0]=Eland430track.3.1
Image[SEW][0]=Eland430track.3.2
Image[NSW][0]=Eland430track.3.3
Image[NEW1][0]=Eland430track.4.0
Image[NSE1][0]=Eland430track.4.1
Image[SEW1][0]=Eland430track.4.2
Image[NSW1][0]=Eland430track.4.3
Image[NEW2][0]=Eland430track.5.0
Image[NSE2][0]=Eland430track.5.1
Image[SEW2][0]=Eland430track.5.2
Image[NSW2][0]=Eland430track.5.3
Image[NSEW][0]=Eland430track.6.0
Image[NSEW1][0]=Eland430track.6.1
Image[NSEW2][0]=Eland430track.6.2
ImageUp[3][0]=Eland430track.7.0
ImageUp[6][0]=Eland430track.7.1
ImageUp[9][0]=Eland430track.7.2
ImageUp[12][0]=Eland430track.7.3
ImageUp2[3][0]=Eland430track.8.0
ImageUp2[6][0]=Eland430track.8.1
ImageUp2[9][0]=Eland430track.8.2
ImageUp2[12][0]=Eland430track.8.3

That's the dat file

The command is: makeobj pak128 way.Eland430track.pak Eland430track.dat

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2836
  • D'oh
    • by An_dz
  • Languages: pt, en, it, (de)
Re: Makeobj not reading image
« Reply #7 on: July 26, 2018, 02:50:13 PM »
Your icon is using the wrong separator characters. You are using the double arrow right () character instead of equal (=) followed by greater than (>):
Code: [Select]
icon=> Eland430track.0.2