[MOD 0.13.X] RC Tank

Topics and discussion about specific mods
Xenon
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Jun 21, 2016 10:10 am
Contact:

[MOD 0.13.X] RC Tank

Post by Xenon »

Name: RC Tank
Description: A RC Controlled Tank
License: CC-BY-NC-ND 3.0
Version: 0.0.3
Release: 2016-06-21
Tested-With-Factorio-Version: 0.13.15

This provides a RC Controlled Tanks with a RC Base to control them
or to be more precise this Tank teleports you back to the RC base when you leave it or when the tank or the controlling base gets destroyed
Since the tank is imho pretty weak in late game and it's pretty useless to mass produce them (at least if i'm not missing something) I wanted to give it at least some sense to do so.

To RC control such a Tank simply enter the RC Base

Not Tested:
Multiplayer

Known Bugs:
base shows no fuel icon

Changelog:
0.0.3:
added GUI
Support for 0.13
Support for 0.12 dropped

0.0.2:
Fixed savegame issue (thx Adil)
Added RC-Base
Added english and german localisation

0.0.1: initial

Hi, I'm new to (Factorio) modding. This is my first work. Please feel free to post constructive critic or help and tipps.
Also if I loose interest and am not contactible for lets say 3 Month i would like to allow it to be CC-BY-NC without the ND --just in case--
Attachments
rctank_0.0.3.zip
[0.13.X]
(10.89 KiB) Downloaded 119 times
rctank_0.0.2.zip
[0.12.X]
(10.68 KiB) Downloaded 97 times
rctank_0.0.1.zip
[0.12.X]
(9.11 KiB) Downloaded 72 times
Last edited by Xenon on Mon Aug 08, 2016 4:21 pm, edited 3 times in total.
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: [MOD 0.12.X] RC Tank

Post by Adil »

Welcome to the forum and mod community.

I assume you know about wiki and api (if not, they're in signature.)
I'll also will dump only a few remarks on the code, just in case, but I believe you're capable of figuring them and the rest on your own.

1. Mod is not mp compatible (and will break completely with 0.13) due to usage of 'game.player'.
2. Your mod works during the gameplay because in lua any variable not preceded with 'local' is considered global variable and is stored between calls.
To have it be stored through save\load you should put them in a table named 'global', it always exists by default.

Keep it up!
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Xenon
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Jun 21, 2016 10:10 am
Contact:

Re: [MOD 0.13.X] RC Tank

Post by Xenon »

Version 0.0.3 is here with 0.13 support and GUI.
Multiplayer could work too but isn't tested, so who knows.... (needs testing)

Does somebody know how to make it 0.12 and 0.13 compatible since there seems to be a problem with the: require "defines"
Post Reply

Return to “Mods”