car plugin support

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
khadafi laidi
Inhabitant of a Planet
Reactions:
Posts: 1303
Joined: Fri Dec 16, 2016 13:11
Location: Ternate, Indonesia
Plugins: Show
Version: Beta
Phone model: Xiaomi note A5

Platform

car plugin support

#1

Post by khadafi laidi » Thu Apr 13, 2017 6:51

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 FINDONEZIA
-Im rarely active right now
-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 » Thu Apr 13, 2017 7:56

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
Ølsken
Former Bearbear65
Reactions:
Posts: 4793
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: car plugin support

#3

Post by Ølsken » Thu Apr 13, 2017 12:30

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: 8188
Joined: Tue Oct 25, 2016 15:20
Location: Johor Bahru
Plugins: Show
Version: Beta
Phone model: Galaxy A50
Contact:

Platform

Plugin Creator

#4

Post by Ahmad Nur Aizat » Fri Apr 14, 2017 14:17

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 » Sat Apr 15, 2017 0:56

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 » Sat Apr 15, 2017 1:04

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: 2212
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta
Phone model: Iphone 7

Platform

Plugin Creator

#7

Post by Josh » Mon Apr 17, 2017 22:07

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 » Mon Apr 17, 2017 22:18

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: 3384
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Platform

#9

Post by Lobby » Mon Apr 17, 2017 23:01

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: 2212
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta
Phone model: Iphone 7

Platform

Plugin Creator

#10

Post by Josh » Mon Apr 17, 2017 23:06

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 » Mon Apr 17, 2017 23:07

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: 7933
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

#12

Post by CommanderABab » Mon Apr 17, 2017 23:14

Make them all subcompacts so that more may fit on the road. :)
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

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

User avatar
Josh
Graphic designer
Reactions:
Posts: 2212
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta
Phone model: Iphone 7

Platform

Plugin Creator

#13

Post by Josh » Mon Apr 17, 2017 23:41

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: 2212
Joined: Sat Mar 11, 2017 19:20
Location: The Netherlands
Plugins: Show
Version: Beta
Phone model: Iphone 7

Platform

Plugin Creator

#14

Post by Josh » Mon Apr 17, 2017 23:42

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: 7933
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Three Rovers

#15

Post by CommanderABab » Tue Apr 18, 2017 8:17


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

Platform

Plugin Creator

#16

Post by Ahmad Nur Aizat » Tue Apr 18, 2017 12:42

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
Phone model: TT 175

Platform

Plugin Creator

Re: car plugin support

#17

Post by Borbor » Thu Oct 26, 2017 22:35

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
An important pickle
Reactions:
Posts: 2701
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: car plugin support

#18

Post by JustAnyone » Wed Dec 13, 2017 17:48

maybe we could define our own police and firetrucks?

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

Platform

Re: car plugin support

#19

Post by Lobby » Wed Dec 13, 2017 18:08

That's what you can do by using override :)
...Have a nice stay

User avatar
JustAnyone
An important pickle
Reactions:
Posts: 2701
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: car plugin support

#20

Post by JustAnyone » Thu Dec 14, 2017 14:47

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

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”

Who is online

Users browsing this forum: No registered users and 4 guests