car plugin support
Moderators: Scenario Moderators, Plugin Moderators
- khadafi laidi
- Inhabitant of a Planet
- Posts: 1313
- Joined: 16 Dec 2016, 13:11
- Location: Ternate, Indonesia
- Plugins: Showcase Store
- Version: Beta
-
Platform
car plugin support
Um..... excuse me, Lobby i boring with building and terrain plugin. Please make car plugin support for theotown. I don't force you to do this
- Kartofun
- Small-town resident
- Posts: 26
- Joined: 16 Jan 2017, 12:45
- Location: Russia
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: car plugin support
Nice ideakhadafi laidi wrote:Um..... excuse me, Lobby i boring with building and terrain plugin. Please make car plugin support for theotown. I don't force you to do this
- Bearbear76
- Former Bearbear65
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: car plugin support
AgreeKartofun wrote:Nice ideakhadafi laidi wrote:Um..... excuse me, Lobby i boring with building and terrain plugin. Please make car plugin support for theotown. I don't force you to do this
Might be fun to play around with it
- Ahmad Nur Aizat
- TheoTown Veteran
- Posts: 8260
- Joined: 25 Oct 2016, 15:20
- Location: Johor Bahru
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
- Mayor Jeffrey IX
- TheoTown Cartographer
- Posts: 988
- Joined: 05 Apr 2017, 16:48
- Location: Right here
- Plugins: Showcase Store
-
Platform
- Sometheotown mayor
- Has uncountable inhabitants
- Posts: 1548
- Joined: 28 Jan 2017, 21:37
- Location: Somewhere in the middle of russia
- Plugins: Showcase Store
-
Platform
- Sometheotown mayor
- Has uncountable inhabitants
- Posts: 1548
- Joined: 28 Jan 2017, 21:37
- Location: Somewhere in the middle of russia
- Plugins: Showcase Store
-
Platform
Something like this lobby ?
Code: Select all
[
{
"id":"$testcar_1",
"type":"car",*/(could also be fire/police/medic/*
"height":1,
"width":1,
"frames":
[{"bmp":"car1.png"},
{"bmp":"car2.png"},
{"bmp":"car3.png"},
{"bmp":"car4.png"}],
}
]
- Lobby
- Developer
- Posts: 3719
- Joined: 26 Oct 2008, 12:34
- Plugins: Showcase Store
- Version: Beta
-
Platform
The game isn't designed for such things
However, you're right, the "type" has to be "car" and there's no width nor height, just frames. You can override existing cars by using the same id. That's currently the only way to get own cars into the game, as the game choses the correct car by it's unique id.
Here a short sample how to override the fire <brigade> car:
using this image: 
You have to provide a multiple of 4 frames. You can provide for example 3 cars by using 12 frames. The game will then select one of these cars randomly. "v2" is used here as it makes defining car frames easier. I recommend just to use it.
The result for the sample looks like this:

Existing car ids you may want to override:
$carres00
$carres01
$carres02
$carind00
$carind01
$carind02
$carfirebrigade00
$carpolice00
$carbus00
$carswat00
$tank00
$mltry_truck00
$carmedic00

However, you're right, the "type" has to be "car" and there's no width nor height, just frames. You can override existing cars by using the same id. That's currently the only way to get own cars into the game, as the game choses the correct car by it's unique id.
Here a short sample how to override the fire <brigade> car:
Code: Select all
[
{
"override":true,
"id":"$carfirebrigade00",
"type":"car",
"frames":[
{"bmp":"my_firebrigade.png","w":23,"h":15,"count":4}
],
"v2":true
}
]

You have to provide a multiple of 4 frames. You can provide for example 3 cars by using 12 frames. The game will then select one of these cars randomly. "v2" is used here as it makes defining car frames easier. I recommend just to use it.
The result for the sample looks like this:

Existing car ids you may want to override:
$carres00
$carres01
$carres02
$carind00
$carind01
$carind02
$carfirebrigade00
$carpolice00
$carbus00
$carswat00
$tank00
$mltry_truck00
$carmedic00
Last edited by CommanderABab on 29 Nov 2017, 10:16, edited 1 time in total.
- Sometheotown mayor
- Has uncountable inhabitants
- Posts: 1548
- Joined: 28 Jan 2017, 21:37
- Location: Somewhere in the middle of russia
- Plugins: Showcase Store
-
Platform
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Posts: 11241
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- Ahmad Nur Aizat
- TheoTown Veteran
- Posts: 8260
- Joined: 25 Oct 2016, 15:20
- Location: Johor Bahru
- Plugins: Showcase Store
- Version: Beta
- Contact:
-
Plugin Creator
Platform
- JustAnyone
- Developer
- Posts: 3581
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform
Re: car plugin support
maybe we could define our own police and firetrucks?
- JustAnyone
- Developer
- Posts: 3581
- Joined: 23 Jul 2017, 12:45
- Location: Easter Island
- Plugins: Showcase Store
-
Platform