car plugin support

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
khadafi laidi
Inhabitant of a Planet
Reactions:
Posts: 1313
Joined: 16 Dec 2016, 13:11
Location: Ternate, Indonesia
Plugins: Showcase Store
Version: Beta

Platform

car plugin support

#1

Post 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
User avatar
Kartofun
Small-town resident
Reactions:
Posts: 26
Joined: 16 Jan 2017, 12:45
Location: Russia
Plugins: Showcase Store
Version: Beta

Platform

Re: car plugin support

#2

Post 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
User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: car plugin support

#3

Post 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
User avatar
Ahmad Nur Aizat
TheoTown Veteran
Reactions:
Posts: 8260
Joined: 25 Oct 2016, 15:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#4

Post by Ahmad Nur Aizat »

former member can make the FSM
User avatar
Mayor Jeffrey IX
TheoTown Cartographer
Reactions:
Posts: 988
Joined: 05 Apr 2017, 16:48
Location: Right here
Plugins: Showcase Store

Platform

#5

Post 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
User avatar
Sometheotown mayor
Has uncountable inhabitants
Reactions:
Posts: 1548
Joined: 28 Jan 2017, 21:37
Location: Somewhere in the middle of russia
Plugins: Showcase Store

Platform

#6

Post by Sometheotown mayor »

Umm no?
I'll make the IATU and SSOAE enforcement units
User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#7

Post 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
User avatar
Sometheotown mayor
Has uncountable inhabitants
Reactions:
Posts: 1548
Joined: 28 Jan 2017, 21:37
Location: Somewhere in the middle of russia
Plugins: Showcase Store

Platform

#8

Post 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"}],
}
]
User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

#9

Post 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
Last edited by CommanderABab on 29 Nov 2017, 10:16, edited 1 time in total.
User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#10

Post by Josh »

Thank you very much lobby!!
User avatar
Sometheotown mayor
Has uncountable inhabitants
Reactions:
Posts: 1548
Joined: 28 Jan 2017, 21:37
Location: Somewhere in the middle of russia
Plugins: Showcase Store

Platform

#11

Post 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
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#12

Post by CommanderABab »

Make them all subcompacts so that more may fit on the road. :)
User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#13

Post by Josh »

Lobby, can you please add cars
User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#14

Post by Josh »

I think the game reads id's of the cars
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Three Rovers

#15

Post by CommanderABab »

User avatar
Ahmad Nur Aizat
TheoTown Veteran
Reactions:
Posts: 8260
Joined: 25 Oct 2016, 15:20
Location: Johor Bahru
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#16

Post by Ahmad Nur Aizat »

I dunno what vehicle shall I make now...
User avatar
Borbor
Inhabitant of a Conurbation
Reactions:
Posts: 360
Joined: 27 Apr 2017, 14:03
Location: Republic of Turkey
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: car plugin support

#17

Post by Borbor »

my police car is not working
Attachments
Screenshot_2017-10-26-23-32-26.png
User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: car plugin support

#18

Post by JustAnyone »

maybe we could define our own police and firetrucks?
User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: car plugin support

#19

Post by Lobby »

That's what you can do by using override :)
User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: car plugin support

#20

Post by JustAnyone »

Lobby wrote: 13 Dec 2017, 18:08 That's what you can do by using override :)
Without overriding*
Post Reply Previous topicNext topic

Return to “Plug-In Discussion”