Road decoration
Moderator: Plugin Moderators
Re: Road decoration
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 )
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: and after:
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 )
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: and after:
- PenangLion1016
- Inhabitant of a Megacity
- Reactions:
- Posts: 176
- Joined: 20 Dec 2017, 14:41
- Location: Penang, Malaysia
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Road decoration
what does it mean by "offset"?
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Road decoration
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.
- Lobby
- Developer
- Reactions:
- Posts: 3705
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Road decoration
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
contains new attributes; I added them to the first post.
contains new attributes; I added them to the first post.
Re: Road decoration
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?
- Lakan Haraya
- Metropolitan
- Reactions:
- Posts: 131
- Joined: 28 Mar 2019, 09:34
- Location: Philippines
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Road decoration
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...
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...
- CommanderABab
- AB
- Reactions:
- Posts: 11122
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Road decoration
Have you tried making the animation used for those frames "rotation aware"?
Re: Road decoration
Excuse me, why road decoration can't be put on the railway?
- JustAnyone
- Developer
- Reactions:
- Posts: 3482
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: Road decoration
controls it
Re: Road decoration
thank you!
- Lakan Haraya
- Metropolitan
- Reactions:
- Posts: 131
- Joined: 28 Mar 2019, 09:34
- Location: Philippines
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Road decoration
Would it be possible to support road deco in slopes in the near future?
- CERRERA
- Townsman
- Reactions:
- Posts: 48
- Joined: 25 Jan 2020, 06:19
- Location: Philippines
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Road decoration
Is there a code for animation that is active when the car steps in the road decoration
- CERRERA
- Townsman
- Reactions:
- Posts: 48
- Joined: 25 Jan 2020, 06:19
- Location: Philippines
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
Re: Road decoration
Tutorials for 64 frames of road deco
- Pederont
- Small-town resident
- Reactions:
- Posts: 27
- Joined: 10 Aug 2019, 09:01
- Location: South Korea
- Plugins: Showcase Store
- Contact:
-
Plugin Creator
Platform
Re: Road decoration
Is it possible to make road deco react when vehicle is on the tile? just like military checkpoint.
- CommanderABab
- AB
- Reactions:
- Posts: 11122
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Road decoration
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.
- CommanderABab
- AB
- Reactions:
- Posts: 11122
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Road decoration
That's cool!