The International Simutrans Forum

Community => Simutrans Gaming Discussion => Topic started by: SHI on January 22, 2010, 04:41:55 PM

Title: What type of pak is the graphic offset parameter applied to?
Post by: SHI on January 22, 2010, 04:41:55 PM
I know the graphic offset parameter applies to vehicle pak. Now I would like to apply it to other paks.
Please let me know if you have a list or document about the graphic offset parameter application.
I have to read a makeobj history?
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: The Hood on January 22, 2010, 04:52:36 PM
I know you can apply it to way graphics, but I haven't tried anything else.  I suspect it works for most things - why not give it a try?
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: VS on January 22, 2010, 05:09:37 PM
Offsets should work everywhere, I think - it is part of image syntax, and should not be specific for just vehicles or buildings.
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: SHI on January 22, 2010, 11:32:48 PM
Thank you for your replies. I tried to apply offset to way pak, but it did not worked as I desired. So I got it wrong.
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: The Hood on January 23, 2010, 01:06:25 PM
What are you trying to do?  And what happened?
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: VS on January 23, 2010, 02:42:43 PM
This is done with offsets.

When I moved the road too much forward, it disappeared under tiles in front. Maybe what you can *do* with offsets depends on type of item because of drawing order? But certainly they work :)

Maybe you have old makeobj?
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: SHI on January 23, 2010, 03:12:40 PM
I tried to apply the offset parameter to an elevated way pak with makeobj50, but the way pak showed no offset graphics.
Now I tried again, I could confirmed the offset is able to applied to way pak. It seems I was wrong..., maybe... I did not put packed a pak file correctly or a dat file had an syntax error, or I could not see a offset graphics by drawing order as you say.
Thank you for your advice.
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: The Hood on January 23, 2010, 03:25:33 PM
It definitely works - I used offsets to create this elevated way here:

http://forum.simutrans.com/index.php?topic=2398.msg41413#msg41413
Title: Re: What type of pak is the graphic offset parameter applied to?
Post by: VS on January 23, 2010, 05:36:38 PM
SHI: Glad to hear you solved it, then :)

Maybe the numbers are confusing - to move "up", offset must be negative...