[MOD 0.13.x] Electric Ghost Car 0.13.3

Topics and discussion about specific mods
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

[MOD 0.13.x] Electric Ghost Car 0.13.3

Post by darkfrei »

Electric Ghost Car
gec007.PNG
gec007.PNG (435.38 KiB) Viewed 2957 times
Info:
The new electric / hybrid car for your base! If your factory is so big, then you need to use transport for it! This electric car need accumulators during your way. No accumulators - no energy.
It can't stuck with your buildings, but don't use it by your mining outpost.


Name: Electric Ghost Car
Factorio Version: 0.13.x
Latest Release: v0.13.3, 28.06.2016


Download: here
electric_ghost_car_0.13.3.zip
(818.98 KiB) Downloaded 157 times
License: https://opensource.org/licenses/MIT

:arrow: Not tested by multiplayer

v.0.13.1 - 0.13.3 - updated to version 0.13
v.0.0.8 - tanks and cars can't charging from electric net. Some fixes.


control.lua
Last edited by darkfrei on Tue Jun 28, 2016 10:15 pm, edited 8 times in total.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [MOD 0.12.x] Ghost Electric Car 0.0.8

Post by darkfrei »

v.0.0.8 - some fixes, tanks and cars can't charging anymore.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: [MOD 0.13.x] Electric Ghost Car 0.13.1

Post by darkfrei »

Update to Electric Ghost Car 0.13.3, this code was added/ changed. See Mod changes in 0.13

Code: Select all

if not defines then
  require "defines"
  defines.trainstate = defines.train_state
end
http://lua-api.factorio.com/0.13.0/LuaCustomTable.html
Example
Custom tables may be iterated using pairs.

Code: Select all

for _, p in pairs(game.players) do game.player.print(p.name); end
The following will produce no output because ipairs is not supported with custom tables.

Code: Select all

for _, p in ipairs(game.players) do game.player.print(p.name); end  -- incorrect; use pairs instead
Post Reply

Return to “Mods”