Page 2 of 3

Re: Road decoration

Posted: 15 Jan 2019, 05:25
by Shama
Hi everyone! Just started posting and doing plugin stuff, 2nd post ever! I thought I would save others the trouble I just went through trying to figure this out. (for sidewalks for my upcoming roads plugin :)

There is an error of sorts in Lobby's posted code, and zip. Obviously the in game decos are fine, but the problem seems to be spread to others plugins. The same problem was even in Rockforts trees deco json, and i'm sure many others.

The image coordinates are a bit off.. doesnt show with his trees, or really much at all unless you are trying to do sidewalks or anything that hugs the road, or are OCD with ya pixels :D)

Anyway..
{"id":"$anim_roaddeco_sample00_00","type":"animation","frames":[{"bmp":"frames.png","x":0,"w":32,"handle y":8}]},
{"id":"$anim_roaddeco_sample00_01","type":"animation","frames":[{"bmp":"frames.png","x":32,"w":32,"handle y":8}]},
{"id":"$anim_roaddeco_sample00_02","type":"animation","frames":[{"bmp":"frames.png","x":64,"w":32,"handle y":8}]},
{"id":"$anim_roaddeco_sample00_03","type":"animation","frames":[{"bmp":"frames.png","x":92,"w":32,"handle y":8}]}

92 should be 96

...and whalla! Thanks for the great game Lobby and putting the code and what not up for us to use and play with!

before:
20190114_210559[1].png
and after:
20190114_210634[1].png

Re: Road decoration

Posted: 05 Feb 2019, 19:03
by Lobby
Thank you Shama, I didn't notice that :o

Edited the first post accordingly.

Re: Road decoration

Posted: 22 Mar 2019, 13:34
by PenangLion1016
what does it mean by "offset"?

Re: Road decoration

Posted: 31 Mar 2019, 14:56
by Lobby
The world texture is composed from smaller buildings. I use "offset x" and "offset y" to specify from where to pick the frames from. Since you usually bundle your own graphics with your plugin there's usually no need for you to use them.

Re: Road decoration

Posted: 07 Jun 2019, 10:21
by Lobby
It's up to you to specify for which alignment of the road which frames/animations should be drawn. Therefore it's also possible to use exactly two frames :)

:66: contains new attributes; I added them to the first post.

Re: Road decoration

Posted: 05 Aug 2019, 14:26
by 22Alpha
Hello guys, anyone remember the road barrier plugin? Not sure if Lobby or Commander made it. But can it work as a road deco? or it would remain as an on click fun plugin?

Re: Road decoration

Posted: 28 Aug 2019, 23:23
by Lobby
It is part of the game, it is a road decoration and it uses on click fun.

Re: Road decoration

Posted: 14 May 2020, 15:49
by Lakan Haraya
Hi :)

How can I create a rotation aware road deco for frame 5 and 10 (straight road) of the road, because rotation 0 (default) and 2 build the same road deco :/ and I don't want it into my plugin
Hmm...

Re: Road decoration

Posted: 14 May 2020, 18:09
by CommanderABab
Have you tried making the animation used for those frames "rotation aware"?

Re: Road decoration

Posted: 22 Jul 2020, 06:27
by star Lee
Excuse me, why road decoration can't be put on the railway?

Re: Road decoration

Posted: 22 Jul 2020, 11:13
by JustAnyone

Code: Select all    Reset

"required flag train": true
JSON checker
Check
controls it

Re: Road decoration

Posted: 22 Jul 2020, 15:49
by star Lee
JustAnyone wrote: 22 Jul 2020, 11:13

Code: Select all    Reset

"required flag train": true
JSON checker
Check
controls it

thank you! :D

Re: Road decoration

Posted: 27 Jul 2020, 05:46
by Lakan Haraya
Would it be possible to support road deco in slopes in the near future? 🤔

Re: Road decoration

Posted: 07 Nov 2020, 19:27
by CERRERA
Is there a code for animation that is active when the car steps in the road decoration

Re: Road decoration

Posted: 25 Jan 2021, 17:57
by CERRERA
Tutorials for 64 frames of road deco

Re: Road decoration

Posted: 04 Feb 2021, 17:28
by Pederont
Is it possible to make road deco react when vehicle is on the tile? just like military checkpoint.

Re: Road decoration

Posted: 04 Feb 2021, 20:57
by CommanderABab
You could try a fun using "road usage" in the condition statement. Keep in mind that it probably includes all levels of road at that tile: road, bridge(s), and tunnel.

Re: Road decoration

Posted: 05 Feb 2021, 05:06
by ian`
Yes, but it's not easy to make. :?

Re: Road decoration

Posted: 05 Feb 2021, 19:05
by CommanderABab
That's cool!

Re: Road decoration

Posted: 10 Mar 2021, 23:11
by imajoke
*confused screaming*