Page 1 of 2

car plugin support

Posted: 13 Apr 2017, 06:51
by khadafi laidi
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

Re: car plugin support

Posted: 13 Apr 2017, 07:56
by Kartofun
khadafi 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
Nice idea

Re: car plugin support

Posted: 13 Apr 2017, 12:30
by Bearbear76
Kartofun wrote:
khadafi 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
Nice idea
Agree
Might be fun to play around with it

Posted: 14 Apr 2017, 14:17
by Ahmad Nur Aizat
former member can make the FSM

Posted: 15 Apr 2017, 00:56
by Mayor Jeffrey IX
SomeTheotownMayor can make his private Police force.
I can make Secret Service vans.
Secret Service is in charge of guarding the President in case you didn't know

Posted: 15 Apr 2017, 01:04
by Sometheotown mayor
Umm no?
I'll make the IATU and SSOAE enforcement units

Posted: 17 Apr 2017, 22:07
by Josh
I tried to make cars but I failed, the only thing I know is that its needs 4 rotation frames, maybe speed, x, y, h, w maybe

Posted: 17 Apr 2017, 22:18
by Sometheotown mayor
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"}],
}
]

Posted: 17 Apr 2017, 23:01
by Lobby
The game isn't designed for such things :lol:

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
  }
]
using this image: 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:
Image


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

Posted: 17 Apr 2017, 23:06
by Josh
Thank you very much lobby!!

Posted: 17 Apr 2017, 23:07
by Sometheotown mayor
Fire bridge ? XD
WOOO I got something right !
I don't really know what I would like to change so for now, no

Posted: 17 Apr 2017, 23:14
by CommanderABab
Make them all subcompacts so that more may fit on the road. :)

Posted: 17 Apr 2017, 23:41
by Josh
Lobby, can you please add cars

Posted: 17 Apr 2017, 23:42
by Josh
I think the game reads id's of the cars

Three Rovers

Posted: 18 Apr 2017, 08:17
by CommanderABab

Posted: 18 Apr 2017, 12:42
by Ahmad Nur Aizat
I dunno what vehicle shall I make now...

Re: car plugin support

Posted: 26 Oct 2017, 22:35
by Borbor
my police car is not working

Re: car plugin support

Posted: 13 Dec 2017, 17:48
by JustAnyone
maybe we could define our own police and firetrucks?

Re: car plugin support

Posted: 13 Dec 2017, 18:08
by Lobby
That's what you can do by using override :)

Re: car plugin support

Posted: 14 Dec 2017, 14:47
by JustAnyone
Lobby wrote: 13 Dec 2017, 18:08 That's what you can do by using override :)
Without overriding*