Car Teleportator: Quantum Carburetor

by AivanF

Equip your vehicle with a Quantum Carburetor, select destination position, put bunch of fuel, then accelerate to 88 km/h – and teleport wherever you want! Even on other planets ;)

Content
5 months ago
2.0
4.80K
Transportation Armor

b Crash with Renai Transportation

The first time I tried to use a train ramp, Quantum Carburetor reported a crash.

1852.969 Error MainLoop.cpp:1510: Exception at tick 8273415: The mod Renai Transportation (2.1.12) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event RenaiTransportation::on_entity_damaged (ID 115)
The mod Car Teleportator: Quantum Carburetor (1.0.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Vehicle-Teleportator::on_player_driving_changed_state (ID 33)
Vehicle-Teleportator/script/main.lua:290: attempt to index a nil value
stack traceback:
Vehicle-Teleportator/script/main.lua:290: in function 'find_vehicle'
Vehicle-Teleportator/script/main.lua:758: in function 'handler'
core/lualib/event_handler.lua:72: in function <core/lualib/event_handler.lua:70>
stack traceback:
[C]: in function 'set_passenger'
RenaiTransportation/script/event/entity_damaged.lua:160: in function <RenaiTransportation/script/event/entity_damaged.lua:38>

I changed main.lua:290 to

if player.physical_vehicle and player.physical_vehicle.get_driver() and player.physical_vehicle.get_driver().player == player then

That seemed to fix it for me.

New response