Cars

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Cars

#101

Post by JustAnyone »

Such declaration of night animations would lead to a lot of wasted plugin space, henceforth, such feature is not available.
User avatar
THEMAX
Inhabitant of a Universe
Reactions:
Posts: 4314
Joined: 14 Sep 2017, 17:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#102

Post by THEMAX »

JustAnyone wrote: 20 Nov 2021, 13:23 Such declaration of night animations would lead to a lot of wasted plugin space, henceforth, such feature is not available.
Thanks for the answer then.
User avatar
THEMAX
Inhabitant of a Universe
Reactions:
Posts: 4314
Joined: 14 Sep 2017, 17:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#103

Post by THEMAX »

Would be nice if it was supported regardless tho, cause afaik, at least for the train expansion plugin, they dont take that much plugin space.
User avatar
THEMAX
Inhabitant of a Universe
Reactions:
Posts: 4314
Joined: 14 Sep 2017, 17:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#104

Post by THEMAX »

Alternatively, night animations code really need to be simplified or have ways to reduce the workload for those.
User avatar
CERRERA
Townsman
Reactions:
Posts: 48
Joined: 25 Jan 2020, 06:19
Location: Philippines
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Cars

#105

Post by CERRERA »

I need some help
Screenshot_20211127-001923_TheoTown.jpg

Code: Select all

"animation":[
	{"id":"$lrtheadlights00.anim2", "pos":[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "frames":[0]},
	{"id":"$lrtheadlights01.anim2", "pos":[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0], "frames":[1]},
	{"id":"$lrtheadlights02.anim2", "pos":[0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0], "frames":[2]},
	{"id":"$lrtheadlights03.anim2", "pos":[0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0], "frames":[3]},
	//diagonal light
	{"id":"$lrtheadlights00.anim2", "pos":[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0], "frames":[4]},
	{"id":"$lrtheadlights01.anim2", "pos":[0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0], "frames":[5]},
	{"id":"$lrtheadlights02.anim2", "pos":[0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0], "frames":[6]},
	{"id":"$lrtheadlights03.anim2", "pos":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], "frames":[7]}
	],
User avatar
gmt2948
Villager
Reactions:
Posts: 9
Joined: 08 Jun 2020, 04:48
Plugins: Showcase Store

Re: Cars

#106

Post by gmt2948 »

KTX2L.png
KTX2L.png (249 Bytes) Viewed 12414 times
Tell me how to get the pos value easily.
Screenshot_20211220-150810_KakaoTalk.jpg
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#107

Post by Yakka »

gmt2948 wrote: 20 Dec 2021, 08:34 KTX2L.png
Tell me how to get the pos value easily.Screenshot_20211220-150810_KakaoTalk.jpg
Its Y = -15
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#108

Post by Yakka »

Finally im understand how to make diagonal one, but not night animation yet, i know it such wasting plugin space but lobby did add winter even small amount of building have winter frame. But yeah im posting this comment just to show.
Wakoru2_21-12-25_11.18.46.png
Wakoru2_21-12-25_11.18.55.png
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#109

Post by Yakka »

Can someone explain this for me
The V2 is bit different from others

Code: Select all    Reset

{ "id": "$tractor_trailer00", "type": "car", "frames": [{ "x": 644, "y": 709, "w": 14, "h": 11, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 8, 9, 10, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 4, 10, 13, 8, 0, 0], "frames": [1, 2] } ], "v2": [3, 1, 2, 0] //Explain this }, { "id": "$tractor00", "type": "car", "frames": [{ "x": 700, "y": 717, "w": 16, "h": 10, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 6, 12, 7, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 3, 7, 15, 6, 0, 0], "frames": [1, 2] }, { "id": "carlight_yellow", "pos": [7, 5, 0, 0, 0, 0, 6, 5], "frames": [0, 3] }, { "id": "carlight_yellow", "pos": [9, 4, 0, 0, 0, 0, 8, 6], "frames": [0, 3] } ], "speed": 0.5, "tail": ["$tractor_trailer00"], "v2": [3, 1, 1, 1], //Explain this "flag normal": false, "flag tractor": true }
JSON checker
Check
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#110

Post by Yakka »

Kiki012 wrote: 30 Dec 2021, 06:37 Can someone explain this for me
The V2 is bit different from others

Code: Select all    Reset

{ "id": "$tractor_trailer00", "type": "car", "frames": [{ "x": 644, "y": 709, "w": 14, "h": 11, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 8, 9, 10, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 4, 10, 13, 8, 0, 0], "frames": [1, 2] } ], "v2": [3, 1, 2, 0] //Explain this }, { "id": "$tractor00", "type": "car", "frames": [{ "x": 700, "y": 717, "w": 16, "h": 10, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 6, 12, 7, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 3, 7, 15, 6, 0, 0], "frames": [1, 2] }, { "id": "carlight_yellow", "pos": [7, 5, 0, 0, 0, 0, 6, 5], "frames": [0, 3] }, { "id": "carlight_yellow", "pos": [9, 4, 0, 0, 0, 0, 8, 6], "frames": [0, 3] } ], "speed": 0.5, "tail": ["$tractor_trailer00"], "v2": [3, 1, 1, 1], //Explain this "flag normal": false, "flag tractor": true }
JSON checker
Check
Nevermind i understand it now,it only working non diagonal mode,its something like handle y for animation,but it's for cars.
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#111

Post by Yakka »

Here's some explanation from my previous post

Did you car somewhat miss aligned with road or rail track, by Y axis (up or down)?

Code: Select all

"v2":[
0, //First Y axis of frame
0, //Second Y axis of frame
0, //Third Y axis of frame
0 //Fourth Y axis of frame
]
Negative value is equally down
Positive value is equally up

Here some examples:
Before:
TestLandK012_22-01-07_06.51.54.png
After:
TestLandK012_22-01-07_06.57.30.png

As shown at several in game cars.
User avatar
SRBAPH
Villager
Reactions:
Posts: 14
Joined: 13 Jan 2022, 05:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Cars

#112

Post by SRBAPH »

hello! what are the id of categories? bc when i created my own plugin in Theoown Plugin Creator, it has an error that categry id could not be found...
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#113

Post by Yakka »

SRBAPH wrote: 13 Jan 2022, 12:10 hello! what are the id of categories? bc when i created my own plugin in Theoown Plugin Creator, it has an error that categry id could not be found...
Car type is requiring an category,it won't show up to at category.
User avatar
SRBAPH
Villager
Reactions:
Posts: 14
Joined: 13 Jan 2022, 05:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Cars

#114

Post by SRBAPH »

sorry i cant understand, should i remove its category?
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#115

Post by Yakka »

SRBAPH wrote: 14 Jan 2022, 05:02 sorry i cant understand, should i remove its category?
Sorry i was typing to quickly so i missed some,yes you need to remove category
User avatar
SRBAPH
Villager
Reactions:
Posts: 14
Joined: 13 Jan 2022, 05:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Cars

#116

Post by SRBAPH »

Kiki012 wrote: 14 Jan 2022, 14:56
Sorry i was typing to quickly so i missed some,yes you need to remove category
ok! thanks for knowing me
User avatar
Alparingitlgnd5
Townsman
Reactions:
Posts: 76
Joined: 31 Jul 2020, 17:45
Location: Las Pinas, Philippines
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Cars

#117

Post by Alparingitlgnd5 »

Kiki012 wrote: 16 Aug 2021, 05:31 Can anyone provide an example for very long vehicle,like more than 22pixel in width,in this case i need a example for 1 tile long
woah your signature is a animated train
User avatar
Yakka
Inhabitant of a Conurbation
Reactions:
Posts: 413
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#118

Post by Yakka »

Alparingitlgnd5 wrote: 29 Jan 2022, 02:53
Kiki012 wrote: 16 Aug 2021, 05:31 Can anyone provide an example for very long vehicle,like more than 22pixel in width,in this case i need a example for 1 tile long
woah your signature is a animated train
Let's talk about this in private message or other topics if you want to know how i do so.
User avatar
Alparingitlgnd5
Townsman
Reactions:
Posts: 76
Joined: 31 Jul 2020, 17:45
Location: Las Pinas, Philippines
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Cars

#119

Post by Alparingitlgnd5 »

I got a big insane problem guys, I had only one frame okay, but the three other frames were not properly fixed
help! :( :(
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

#120

Post by CommanderABab »

Post the png file. Is it v2 or original?
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”