The International Simutrans Forum

 

Author Topic: Smoke offset for vehicles  (Read 2088 times)

0 Members and 1 Guest are viewing this topic.

Offline The Hood

  • Devotee
  • *
  • Posts: 2889
  • pak128.Britain developer
Smoke offset for vehicles
« on: March 04, 2010, 08:43:43 AM »
I would like to request a smoke offset for vehicles.  Currently this is possible for positioning smokes correctly on factories, but not vehicles.  The main reason is that I have had some difficulties with getting smokes in a nice-looking place for steam road vehicles and ships, as the position of the funnel/chimney in the tile is different for the trains (which work well, by and large).

I know this would be slightly trickier than for industries, as 8 rotations are needed, but would it be possible to include a smoke offset in a similar way to the image offset, i.e.

Code: [Select]
Image[x]=pngfilename.i.j,imgoffsetx,imgoffsety,smokeoffsetx,smokeoffsety
This improvement would certainly help improve some pak128.Britain graphics.

Offline jonasbb

  • Web Team
  • *
  • Posts: 167
Re: Smoke offset for vehicles
« Reply #1 on: March 04, 2010, 03:24:07 PM »
I support this request, because in pak192.comic we had the same difficult.
But i do not like the way you want to implement it in the dat-file.

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4564
  • Languages: EN, DE, AT
Re: Smoke offset for vehicles
« Reply #2 on: March 04, 2010, 06:19:59 PM »
Can this be achieved by defining a smoke object with correct offsets for each vehicle? This coould at least be a work-around then.

Offline VS

  • Senior Plumber (Devotee)
  • Devotee
  • *
  • Posts: 4855
  • Vladimír Slávik
    • VS's Simutrans site
  • Languages: CS,EN
Re: Smoke offset for vehicles
« Reply #3 on: March 04, 2010, 06:26:03 PM »
More like correct offsets for directions, I would say...

Offline jonasbb

  • Web Team
  • *
  • Posts: 167
Re: Smoke offset for vehicles
« Reply #4 on: March 04, 2010, 06:29:06 PM »
Can this be achieved by defining a smoke object with correct offsets for each vehicle? This coould at least be a work-around then.
This doesn't solve the problem we had with pak192.comic.

You can test it with pak192.comic and the lok BR80.
In north and west direction the smoke is placed at the end of the lok.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9433
  • Languages: De,EN,JP
Re: Smoke offset for vehicles
« Reply #5 on: March 05, 2010, 01:08:51 PM »
Imho this should be (better) solved by smoke with directions. THis could make also smoke for airplanes, which is highly directional ...

Offline The Hood

  • Devotee
  • *
  • Posts: 2889
  • pak128.Britain developer
Re: Smoke offset for vehicles
« Reply #6 on: March 05, 2010, 01:40:17 PM »
The only other consideration is differences in alignment between road and rail.  For steam trains, smoke comes from a central alignment along the tile, whereas for steam buses/trucks it comes offset.  I suppose in the system prissi proposes it would be OK effort-wise to create two different smokes, one for each alignment.  I'm just worried that without the ability to offset smokes, it may still look very strange in certain situations, especially when the vehicle is travelling slowly...