Road decoration
Moderator: Plugin Moderators
Re: Road decoration
How can I place specific decos only on straight roads? Could you please mark frame animation indices indexes? Like "1st is for curve" :v
I'm not lazy, I'm motivated to do nothing!
...
...
- CommanderABab
- AB
- Reactions:
- Posts: 9098
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
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:
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!
Re: Road decoration
Thank you Shama, I didn't notice that 
Edited the first post accordingly.

Edited the first post accordingly.
=^._.^= ∫
- PenangLion1016
- Inhabitant of a Megacity
- Reactions:
- Posts: 157
- Joined: Wed Dec 20, 2017 14:41
- Location: Penang, Malaysia
- Plugins: Show
Re: Road decoration
what does it mean by "offset"?
Hey its me Pen (or Tan Choon Wei )
mah youtube: https://www.youtube.com/channel/UCTJQOO ... NAdd1hTgig
the other guy who uses bluestacks (the rarest)
im from Penang btw
NEW CHANNEL!
https://www.youtube.com/channel/UCLppp3 ... uuvtDuRmeg
mah youtube: https://www.youtube.com/channel/UCTJQOO ... NAdd1hTgig
the other guy who uses bluestacks (the rarest)
im from Penang btw
NEW CHANNEL!
https://www.youtube.com/channel/UCLppp3 ... uuvtDuRmeg
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.
=^._.^= ∫
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.


=^._.^= ∫
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?

Re: Road decoration
It is part of the game, it is a road decoration and it uses on click fun.
=^._.^= ∫
- Lakan Haraya
- Metropolitan
- Reactions:
- Posts: 124
- Joined: Thu Mar 28, 2019 9:34
- Location: Philippines
- Plugins: Show
- Version: Beta
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...
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors
“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
Pinoy? Sali na
https://discord.gg/9n7PFy
CEO of Haráya Motors
“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
Pinoy? Sali na

https://discord.gg/9n7PFy
- CommanderABab
- AB
- Reactions:
- Posts: 9098
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
Re: Road decoration
Excuse me, why road decoration can't be put on the railway?
- JustAnyone
- Rip-off engineer
- Reactions:
- Posts: 3026
- Joined: Sun Jul 23, 2017 12:45
- Location: Easter Island
- Plugins: Show
Re: Road decoration
controls it
Re: Road decoration
- Lakan Haraya
- Metropolitan
- Reactions:
- Posts: 124
- Joined: Thu Mar 28, 2019 9:34
- Location: Philippines
- Plugins: Show
- Version: Beta
Re: Road decoration
Would it be possible to support road deco in slopes in the near future? 
"ᜀᜃᜓ ᜀᜅ᜔ ᜁᜌᜓᜅ᜔ ᜑᜇᜌ"
CEO of Haráya Motors
“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
Pinoy? Sali na
https://discord.gg/9n7PFy
CEO of Haráya Motors
“TheoTown Philippines Council”
“Kapulungan Ng Mga Nagkakaisang Lungsod”
Pinoy? Sali na

https://discord.gg/9n7PFy
- DESOLAN
- Villager
- Reactions:
- Posts: 21
- Joined: Sat Jan 25, 2020 6:19
- Location: Philippines
- Plugins: Show
- Version: Beta
Re: Road decoration
Is there a code for animation that is active when the car steps in the road decoration