Cars

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Cars

Post by JustAnyone » 20 Nov 2021, 11:23

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: 4311
Joined: 14 Sep 2017, 15:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by THEMAX » 20 Nov 2021, 22:52

JustAnyone wrote: 20 Nov 2021, 11: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.
Emperor of Atlantean federated empire
Image
Founder state of Internationxal council
Leader of AEOY and steel pact
User avatar
THEMAX
Inhabitant of a Universe
Reactions:
Posts: 4311
Joined: 14 Sep 2017, 15:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by THEMAX » 22 Nov 2021, 10:38

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.
Emperor of Atlantean federated empire
Image
Founder state of Internationxal council
Leader of AEOY and steel pact
User avatar
THEMAX
Inhabitant of a Universe
Reactions:
Posts: 4311
Joined: 14 Sep 2017, 15:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by THEMAX » 22 Nov 2021, 10:53

Alternatively, night animations code really need to be simplified or have ways to reduce the workload for those.
Emperor of Atlantean federated empire
Image
Founder state of Internationxal council
Leader of AEOY and steel pact
User avatar
CERRERA
Townsman
Reactions:
Posts: 48
Joined: 25 Jan 2020, 04:19
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by CERRERA » 26 Nov 2021, 16:25

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]}
	],
You do not have the required permissions to view the files attached to this post.
Everything you can imagine is real
gmt2948
Villager
Reactions:
Posts: 9
Joined: 08 Jun 2020, 02:48
Plugins: Showcase Store

Re: Cars

Post by gmt2948 » 20 Dec 2021, 06:34

KTX2L.png
Tell me how to get the pos value easily.
Screenshot_20211220-150810_KakaoTalk.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 20 Dec 2021, 10:44

gmt2948 wrote: 20 Dec 2021, 06:34 KTX2L.png
Tell me how to get the pos value easily.Screenshot_20211220-150810_KakaoTalk.jpg
Its Y = -15
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 25 Dec 2021, 04:28

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
You do not have the required permissions to view the files attached to this post.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 30 Dec 2021, 04: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
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 03 Jan 2022, 09:24

Kiki012 wrote: 30 Dec 2021, 04: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.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 06 Jan 2022, 23:50

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.
You do not have the required permissions to view the files attached to this post.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
SRBAPH
Villager
Reactions:
Posts: 13
Joined: 13 Jan 2022, 03:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Cars

Post by SRBAPH » 13 Jan 2022, 10: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...
꧁༒𝔖ℜ𝔅𝔄 𝔓ℌ༒꧂

CEO of Department of Transportation and Communications
(DOTC)


Youtube Channel
https://bit.ly/3rh6hd9

I'm a 13 years old Programmer from the Philippines!
View my Site for more informations:

https://bit.ly/3FnMWfD
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 14 Jan 2022, 01:32

SRBAPH wrote: 13 Jan 2022, 10: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.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
SRBAPH
Villager
Reactions:
Posts: 13
Joined: 13 Jan 2022, 03:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Cars

Post by SRBAPH » 14 Jan 2022, 03:02

sorry i cant understand, should i remove its category?
꧁༒𝔖ℜ𝔅𝔄 𝔓ℌ༒꧂

CEO of Department of Transportation and Communications
(DOTC)


Youtube Channel
https://bit.ly/3rh6hd9

I'm a 13 years old Programmer from the Philippines!
View my Site for more informations:

https://bit.ly/3FnMWfD
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 14 Jan 2022, 12:56

SRBAPH wrote: 14 Jan 2022, 03: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
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
SRBAPH
Villager
Reactions:
Posts: 13
Joined: 13 Jan 2022, 03:59
Location: Cavite, Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Cars

Post by SRBAPH » 15 Jan 2022, 06:20

Kiki012 wrote: 14 Jan 2022, 12:56
Sorry i was typing to quickly so i missed some,yes you need to remove category
ok! thanks for knowing me
꧁༒𝔖ℜ𝔅𝔄 𝔓ℌ༒꧂

CEO of Department of Transportation and Communications
(DOTC)


Youtube Channel
https://bit.ly/3rh6hd9

I'm a 13 years old Programmer from the Philippines!
View my Site for more informations:

https://bit.ly/3FnMWfD
User avatar
Alparingitlgnd5
Townsman
Reactions:
Posts: 77
Joined: 31 Jul 2020, 15:45
Location: Las Pinas, Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Alparingitlgnd5 » 29 Jan 2022, 00:53

Kiki012 wrote: 16 Aug 2021, 03: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
MY SIGNATURE

Image
User avatar
Yakka Works
Inhabitant of a Conurbation
Reactions:
Posts: 412
Joined: 06 Jan 2020, 07:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Yakka Works » 29 Jan 2022, 01:36

Alparingitlgnd5 wrote: 29 Jan 2022, 00:53
Kiki012 wrote: 16 Aug 2021, 03: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.
My plugins,up to date and it's free on my website. So check it out.
My website
Community/Creators Discord Server List
User avatar
Alparingitlgnd5
Townsman
Reactions:
Posts: 77
Joined: 31 Jul 2020, 15:45
Location: Las Pinas, Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by Alparingitlgnd5 » 05 Feb 2022, 10:33

I got a big insane problem guys, I had only one frame okay, but the three other frames were not properly fixed
help! :( :(
MY SIGNATURE

Image
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Cars

Post by CommanderABab » 05 Feb 2022, 10:39

Post the png file. Is it v2 or original?
my avatar:
Previous topicNext topic