The International Simutrans Forum

PakSets and Customization => General Resources and Tools => PakSet Maintainers and Artists Corner => Topic started by: vorlon on July 08, 2013, 12:46:21 PM

Title: Overlapping graphics
Post by: vorlon on July 08, 2013, 12:46:21 PM
I made this simple one-way road with benches and trees to give pedestrians more room in the city centre during this era of cars.  :)

(http://img854.imageshack.us/img854/2091/9edt.png) (http://imageshack.us/photo/my-images/854/9edt.png/)

But it seems that the task wasn't as simple as it first seemed. The buildings adjacent to the road overlap the trees growing on the sidewalk which looks a bit strange. I suppose it's intended that ways appear under buildings, vehicles and other such objects. But I remember seeing on the forum roads which had fixed lamp poles without any graphical errors. So are there some special parametres to the dat files which allow more images to deal with this error? A guaranteed solution would be to code the trees as a wayobject, but it's a nuisance while placing the road in-game.

Another similar issue I found (not related to my road though) is the buses overlapping the oneway-signs. A bug with the sign, it seems.
Title: Re: Overlapping graphics
Post by: IgorEliezer on July 08, 2013, 01:20:21 PM
Oh dear, I simply loved it.

I had plans to make more add-ons towards urban design (pedestrian lanes, parks etc) but I have never got around to making them. In fact, I made a very small step toward that: http://forum.simutrans.com/index.php?topic=3526.0 (http://forum.simutrans.com/index.php?topic=3526.0). (ack! ancient topic in Portuguese, it seems broken too)

EDIT: fixed awkward typo in a lazy Monday morning. ;D

EDIT2: argh, I had to fix the fix.
Title: Re: Overlapping graphics
Post by: VS on July 08, 2013, 01:37:27 PM
What happens if you rotate the world - does the road still work?

Alternatively, you could set their speed to 0 so that nothing can really use them. Then you could do anything, graphics-wise :)
Title: Re: Overlapping graphics
Post by: Fabio on July 08, 2013, 01:45:32 PM
you need to use draw_as_ding=1 flag in dat file.
you can also put objects in the front using frontimage entries. (check faster roads in pak128 svn)
also a way object could be better than a road since roads will be replaced by standard city road in time.
Title: Re: Overlapping graphics
Post by: greenling on July 08, 2013, 04:30:57 PM
Hello vorlon
Quote from: vorlon on July 08, 2013, 12:46:21 PM
(http://img854.imageshack.us/img854/2091/9edt.png) (http://imageshack.us/photo/my-images/854/9edt.png/)
Your road they you have be make look very good out.
And that with the sign it a bug.
Title: Re: Overlapping graphics
Post by: vorlon on July 08, 2013, 06:08:38 PM
Quote from: VS
What happens if you rotate the world - does the road still work?

That never crossed my mind, I usually don't rotate my games. But I had to try, and the asymmetrical crossings obviously didn't aling correctly anymore. It doesn't really matter, since the usage of this way is very limited anyway.

Quote from: VS
Alternatively, you could set their speed to 0 so that nothing can really use them. Then you could do anything, graphics-wise :)

True, but the crossings would also terminate the cross streets which is quite unpractical. Besides, it's much nicer to see it actually being used!

Quote from: Fabio
you need to use draw_as_ding=1 flag in dat file.

Thanks Fabio, it worked! Since the road is now finished and there seems to be some demand, I'm putting it available for download. I can upload the sources as well if anyone wants.

DISCLAIMER: Consult doctor before downloading if you have been diagnosed with allergy of micromanagement or obsessive map rotating -syndrome.  ;)

https://www.dropbox.com/s/3fevjubzc2wtan6/way.oneway_road.pak (https://www.dropbox.com/s/3fevjubzc2wtan6/way.oneway_road.pak)