car plugin support

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
khadafi laidi
Inhabitant of a Planet
Reactions:
Posts: 1319
Joined: Fri Dec 16, 2016 13:11
Location: Ternate, Indonesia
Plugins: Show
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
Fact about me:
-President of ANDROMEDA
-Now busy with the college
-Play Call of duty mobile
-Subscribe my channel:
https://www.youtube.com/channel/UCWS1fz ... 4syaxcA74A

User avatar
Kartofun
Small-town resident
Reactions:
Posts: 26
Joined: Mon Jan 16, 2017 12:45
Location: Russia
Plugins: Show
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: 5296
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta

Platform

Plugin Creator

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
ImageJust my opinion

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

Platform

Plugin Creator

#4

Post by Ahmad Nur Aizat »

former member can make the FSM

User avatar
Mayor Jeffrey IX
TheoTown Cartographer
Reactions:
Posts: 989
Joined: Wed Apr 05, 2017 16:48
Location: Right here
Plugins: Show

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
Or is it?
Using 295.

Sometheotown mayor
Has uncountable inhabitants
Reactions:
Posts: 1548
Joined: Sat Jan 28, 2017 21:37
Location: Somewhere in the middle of russia
Plugins: Show

Platform

#6

Post by Sometheotown mayor »

Umm no?
I'll make the IATU and SSOAE enforcement units
Hello
I'm your average 14 y old boy who likes drinking water.

What else ?

User avatar
Josh
Graphic designer
Reactions:
Posts: 2218
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta

Platform

Plugin Creator

#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
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you🌲

Sometheotown mayor
Has uncountable inhabitants
Reactions:
Posts: 1548
Joined: Sat Jan 28, 2017 21:37
Location: Somewhere in the middle of russia
Plugins: Show

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"}],
}
]
Hello
I'm your average 14 y old boy who likes drinking water.

What else ?

User avatar
Lobby
Developer
Reactions:
Posts: 3590
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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 Wed Nov 29, 2017 10:16, edited 1 time in total.

User avatar
Josh
Graphic designer
Reactions:
Posts: 2218
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta

Platform

Plugin Creator

#10

Post by Josh »

Thank you very much lobby!!
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you🌲

Sometheotown mayor
Has uncountable inhabitants
Reactions:
Posts: 1548
Joined: Sat Jan 28, 2017 21:37
Location: Somewhere in the middle of russia
Plugins: Show

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
Hello
I'm your average 14 y old boy who likes drinking water.

What else ?

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

Platform

Plugin Creator

#12

Post by CommanderABab »

Make them all subcompacts so that more may fit on the road. :)
Image

User avatar
Josh
Graphic designer
Reactions:
Posts: 2218
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta

Platform

Plugin Creator

#13

Post by Josh »

Lobby, can you please add cars
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you🌲

User avatar
Josh
Graphic designer
Reactions:
Posts: 2218
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta

Platform

Plugin Creator

#14

Post by Josh »

I think the game reads id's of the cars
Proud TheoTown player sinds update 1.1.50

Creator of Aldorria, Covinton Empire, West Country, Sunnydale

Save nature, before it kills you🌲

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

Platform

Plugin Creator

Three Rovers

#15

Post by CommanderABab »


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

Platform

Plugin Creator

#16

Post by Ahmad Nur Aizat »

I dunno what vehicle shall I make now...

User avatar
Borbor
Inhabitant of a Conurbation
Reactions:
Posts: 361
Joined: Thu Apr 27, 2017 14:03
Location: Republic of Turkey
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: car plugin support

#17

Post by Borbor »

my police car is not working
Attachments
Screenshot_2017-10-26-23-32-26.png
http://www.theotown.com/forum/search.ph ... =firstpost
"Our true mentor in life is science."
Mustafa Kemal Atatürk

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2955
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: car plugin support

#18

Post by JustAnyone »

maybe we could define our own police and firetrucks?
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

User avatar
Lobby
Developer
Reactions:
Posts: 3590
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: car plugin support

#19

Post by Lobby »

That's what you can do by using override :)
=^._.^= ∫

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2955
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: car plugin support

#20

Post by JustAnyone »

Lobby wrote:
Wed Dec 13, 2017 18:08
That's what you can do by using override :)
Without overriding*
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”