Page 1 of 1

Bendy bus

Posted: 02 Jan 2018, 20:23
by A dutch Guy
THIS PLUGIN NO LONGER WORKS SINCE THE BUS TYCOON UPDATE

Hello everyone,

This plugin replaces the ingame busses with a bendy bus. It was quite easy to make, but I saw nobody who made one. So I made one.
Hope you like it :-)

credits to Lobby/developers for the bus template.


Opar_18-01-02_19.45.49.png

Re: Bendy bus

Posted: 02 Jan 2018, 20:45
by A dutch Guy
Funeoz wrote: 02 Jan 2018, 20:43 Can you add a screenshot without shaders.(classic) :)
yes of course. forgot to turn the shader off :?
will update it soon

Re: Bendy bus

Posted: 02 Jan 2018, 20:57
by A dutch Guy
former member wrote: 02 Jan 2018, 20:51 I call them Accordion Buses :lol:
Btw, do they come only in red? Asking because there only red on the picture.
Yes the only come in red. The front replaces the $carbus00. I couldn't figure out how to use multiple "tail" commands in the .json file with multiple frames. I'm not the best coder unfortunately :|

Re: Bendy bus

Posted: 02 Jan 2018, 22:36
by Lobby
@A dutch Guy You were just faster than I, way too much to do... but yes, this is one of the reasons why car chaining was added. Another thing are trucks with trailers :)

Re: Bendy bus

Posted: 03 Jan 2018, 01:06
by fico240
A dutch Guy wrote: 02 Jan 2018, 20:57
Yes the only come in red. The front replaces the $carbus00. I couldn't figure out how to use multiple "tail" commands in the .json file with multiple frames. I'm not the best coder unfortunately :|
Maybe if you want, I can help you with the buses of the other colors, more or less I understood how to use the "tail" command. :)

Re: Bendy bus

Posted: 03 Jan 2018, 02:56
by fico240
fico240 wrote: 03 Jan 2018, 01:06 Maybe if you want, I can help you with the buses of the other colors, more or less I understood how to use the "tail" command. :)
It has been impossible for me to do that spawn the buses of other colors, the only way is to do a bus depot and in the .json write that spawn the other buses of different colors.

Code: Select all

[{
		"frames": [{
			"bmp": "bus_green_front.png",
			"count": 4,
			"h": 16,
			"w": 20
		}],
		"id": "bus_green00",
		"type": "car",
		"v2": true
	}, {
		"frames": [{
			"bmp": "bus_green_tail.png",
			"count": 4,
			"h": 16,
			"w": 20
		}],
		"id": "bus_green_01",
		"type": "car",
		"v2": true
	}, {
		"author": "A Dutch Guy",
		"flag normal": false,
		"flag bus": true,
		"frames": [{
			"bmp": "bus_green_front.png",
			"count": 4,
			"h": 16,
			"w": 20
		}],
		"id": "bus_green_00",
		"speed": 1,
		"tail": ["bus_green_01"],
		"type": "car",
		"v2": true
	}, {
		"author": "Lobby and developers",
		"car spawner": [{
			"cars": ["bus_green_00"],
			"count": 1,
			"radius": 1000,
			"targets": ["$busdepot00"]
		}],
		"frames": [{
			"bmp": ["bus_depot00"]
		}]

more or less it would be like that. ;)
I took a couple of hours with the code ...