Cars

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 489
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Cars

#61

Post by Imran M » Fri Dec 14, 2018 12:55

[mention]Lobby[/mention] Hi, there's something wrong. When I try to use my truck, it says it can't find the I'd.
Attachments
space.zip
(7.93 KiB) Downloaded 17 times

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

Platform

Re: Cars

#62

Post by Lobby » Fri Dec 14, 2018 13:40

[mention]Imran M[/mention] That's because of the order in which your files are read in. Rename your "space cars" folder into "a_space cars" to ensure that it will be loaded first.
...Have a nice stay

User avatar
Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 489
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Cars

#63

Post by Imran M » Fri Dec 14, 2018 13:59

Thanks! I didn't know that!

User avatar
Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 489
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Plugin Creator

Re: Cars

#64

Post by Imran M » Fri Dec 14, 2018 14:30

Meh, close enough.
Attachments
Okerak_18-12-14_12.27.26.png

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

Platform

Plugin Creator

Re: Cars, did you know? Designating level in car spawner.

#65

Post by CommanderABab » Sat Apr 20, 2019 3:34

Code: Select all

"car spawner":[
           {
             "cars":["$bigcarplugin63"],
             "count":1000,
             "radius":3000,
             "level":-1,
              "targets":[
                "$busdepot00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$busstop00",
                "$busdepot00",
                "$railstation00",
                "$bigpark00" ,
                "$easteregg00"
            ] 
           },
           {
             "cars":["$bigcarplugin63"],
             "count":1000,
             "radius":3000,
             "level":0,
              "targets":[
                "$busdepot00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$busstop00",
                "$busdepot00",
                "$railstation00",
                "$bigpark00" ,
                "$easteregg00"
            ] 
           },
           {
             "cars":["$bigcarplugin63"],
             "count":1000,
             "radius":3000,
             "level":1,
              "targets":[
                "$busdepot00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$busstop00",
                "$busdepot00",
                "$railstation00",
                "$bigpark00" ,
                "$easteregg00"
            ] 
           },
           {
             "cars":["$bigcarplugin63"],
             "count":1000,
             "radius":3000,
             "level":2,
              "targets":[
                "$busdepot00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$busstop00",
                "$busdepot00",
                "$railstation00",
                "$bigpark00" ,
                "$easteregg00"
            ] 
           },
           {
             "cars":["$bigcarplugin63"],
             "count":1000,
             "radius":3000,
             "level":3,
              "targets":[
                "$busdepot00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$busstop00",
                "$busdepot00",
                "$railstation00",
                "$bigpark00" ,
                "$easteregg00"
            ] 
           },
           {
             "cars":["$bigcarplugin63"],
             "count":1000,
             "radius":3000,
             "level":4,
              "targets":[
                "$busdepot00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$easteregg00",
                "$busstop00",
                "$busdepot00",
                "$railstation00",
                "$bigpark00" ,
                "$easteregg00"
            ] 
           },
           {
             "cars":["$bigcarplugin63"],
             "count":100,
             "radius":300,
             "level":1           
           }
         ],
That you can spawn cars from different levels?
So, if car spawner designates level 3 for a car(s), then that/those car(s) you would spawn directly to a level 3 bridge next to the building.

I think default ground level would be 0.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

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

User avatar
Lancaster Kingdom
Inhabitant of a Planet
Reactions:
Posts: 1373
Joined: Wed Sep 20, 2017 21:38
Location: Royal District, Karlayneer, LK
Plugins: Show
Version: Beta

Platform

Re: Cars

#66

Post by Lancaster Kingdom » Thu Jul 11, 2019 15:22

What's wrong with that?
farmmilk.zip
(3.54 KiB) Downloaded 2 times
Constitutional Monarchy / King- Emmet II / Prime Minister - Layla Lifert / President of the Houses of Stymest - Lord Justin / President of Justice- Lady Regina / Royal Court- Lord Jaxon

God Save The King!

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

Platform

Plugin Creator

Re: Cars

#67

Post by CommanderABab » Thu Jul 11, 2019 18:17

Your .json with commas expanded to commas and linefeed:

Code: Select all

{ "id":"milkcar.28eu9jd",
 "type":"car",
 "frames":[ {"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4} ,
 {"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4},
 {"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4} ],
 "v2":true,
 "capacity":1,
 "flag normal":false,
 "flag user2":true },
 [ { "id":"milfarm929jd",
 "type":"industrial",
 "workers":190,
 "author":"Lancaster Kingdom",
 "width":1,
 "height":1,
 "frames":[{"bmp":"milkfarm.png"}],
 "smoke":[{"id":"$smoke07",
"x":13,
"y":-14}],
 "level":3,
 "car spawner":[ { "cars":["milkcar.28eu9jd"],
 "radius":100,
 "count":70 } ] } ]
Should be:

Code: Select all

[{ "id":"milkcar.28eu9jd",
 "type":"car",
 "frames":[ {"bmp":"milkcar.png",
"w":15,
"h":10,
"count":4}  ],
 "v2":true,
 "capacity":1,
 "flag normal":false,
 "flag user2":true },
 { "id":"milfarm929jd",
 "type":"industrial",
 "workers":190,
 "author":"Lancaster Kingdom",
 "width":1,
 "height":1,
 "frames":[{"bmp":"milkfarm.png"}],
 "smoke":[{"id":"$smoke07",
"x":13,
"y":-14}],
 "level":3,
 "car spawner":[ { "cars":["milkcar.28eu9jd"],
 "radius":100,
 "count":70 } ] } ]
I redacted multiple uses of the same .png in the frames statements for the car, but that wasn't causing your problem. The json being an array [] of objects {}, didn't start with the initial [, which was later in the file. I moved it to the beginning.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

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

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest