Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Plugin Creator

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: 7870
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Plugin Creator

wgreyroadrd.png (3.22 KiB) Viewed 1972 times
Counting from 0, you can see that the straight sections are at 5 and 10.
770!🆎️

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

Plugin Creator

Thanks!
I'm not lazy, I'm motivated to do nothing!
...

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

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

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

Platform

Thank you Shama, I didn't notice that

Edited the first post accordingly.
...

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

Platform

what does it mean by "offset"?
Hey its me Pen (or Tan Choon Wei )
the other guy who uses bluestacks (the rarest)
im from Penang btw

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

Platform

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: 3373
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

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

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

Platform

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?

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