Road decoration

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 931
Joined: Wed Jun 07, 2017 20:28
Location: 50M3WH3R3
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 on battery saving mode!

User avatar
CommanderABab
AB
Reactions:
Posts: 7563
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 1530 times
Counting from 0, you can see that the straight sections are at 5 and 10.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

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

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 931
Joined: Wed Jun 07, 2017 20:28
Location: 50M3WH3R3
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 on battery saving mode!

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

PenangLion1016
Townsman
Reactions:
Posts: 62
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: 3331
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
kekman
Townsman
Reactions:
Posts: 73
Joined: Mon Oct 01, 2018 19:28
Location: romania
Plugins: Show
Version: Beta

Platform

Re: Road decoration

#28

Post by kekman » Thu May 30, 2019 16:11

is it possible to only use 2 frames for it?
Gonl Eivl Uartak nad sti eeoplp!,Plugin creating and Face breaking

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

Platform

Re: Road decoration

#29

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

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest