Road decoration

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 972
Joined: Wed Jun 07, 2017 20:28
Location: 2hot2tell
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Road decoration

#21

Post by Kulche » Wed Oct 10, 2018 17:21

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!
...blame lobby for that

User avatar
CommanderABab
AB
Reactions:
Posts: 7933
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Road decoration

#22

Post by CommanderABab » Wed Oct 10, 2018 17:31

wgreyroadrd.png
wgreyroadrd.png (3.22 KiB) Viewed 2047 times
Counting from 0, you can see that the straight sections are at 5 and 10.
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 972
Joined: Wed Jun 07, 2017 20:28
Location: 2hot2tell
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Road decoration

#23

Post by Kulche » Wed Oct 10, 2018 17:32

Thanks! :json
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

Shama
Settler
Reactions:
Posts: 7
Joined: Tue May 08, 2018 11:00
Plugins: Show

Re: Road decoration

#24

Post by Shama » Tue Jan 15, 2019 5:25

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
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!!

User avatar
Lobby
Developer
Reactions:
Posts: 3384
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Road decoration

#25

Post by Lobby » Tue Feb 05, 2019 19:03

Thank you Shama, I didn't notice that :o

Edited the first post accordingly.
...Have a nice stay

User avatar
PenangLion1016
Townsman
Reactions:
Posts: 95
Joined: Wed Dec 20, 2017 14:41
Location: Penang, Malaysia
Plugins: Show

Plugin Creator

Platform

Re: Road decoration

#26

Post by PenangLion1016 » Fri Mar 22, 2019 13:34

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

User avatar
Lobby
Developer
Reactions:
Posts: 3384
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Road decoration

#27

Post by Lobby » Sun Mar 31, 2019 14:56

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.
...Have a nice stay

User avatar
Lobby
Developer
Reactions:
Posts: 3384
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Road decoration

#28

Post by Lobby » Fri Jun 07, 2019 10:21

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.
...Have a nice stay

User avatar
22Alpha
Inhabitant of a Conurbation
Reactions:
Posts: 445
Joined: Sat Sep 23, 2017 14:29

Platform

Re: Road decoration

#29

Post by 22Alpha » Mon Aug 05, 2019 14:26

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?
:mine

User avatar
Lobby
Developer
Reactions:
Posts: 3384
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

Re: Road decoration

#30

Post by Lobby » Wed Aug 28, 2019 23:23

It is part of the game, it is a road decoration and it uses on click fun.
...Have a nice stay

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 2 guests