Search found 8 matches

by Vanra
Mon Mar 07, 2016 8:36 pm
Forum: Ideas and Requests For Mods
Topic: New (possible horror like) enemy
Replies: 0
Views: 515

New (possible horror like) enemy

So, I had something in mind for an enemy. I want to work it out as well as work on the mod itself with anyone willing to help me (considering I'm a bit new to Lua still.)

What I had in mind is an enemy that isn't interested in actually the survival of the planet but rather doing it to torment you ...
by Vanra
Fri Mar 04, 2016 2:21 pm
Forum: Modding help
Topic: Modding error
Replies: 9
Views: 2543

Re: Modding error

I'll go be ashamed in a corner right now... Sorry about that.
by Vanra
Fri Mar 04, 2016 2:15 pm
Forum: Modding help
Topic: Modding error
Replies: 9
Views: 2543

Re: Modding error

The function gets called in 3 cases, when it is destroyed, mined or on build... I am guessing, since it happens when I put anything down it will have to do with the on build.

function OnBuiltEntity(_Event)
local _Entity = _Event.createdentity
if IsSmartSplitter(_Entity) then
...

Which get called ...
by Vanra
Fri Mar 04, 2016 1:46 pm
Forum: Modding help
Topic: Modding error
Replies: 9
Views: 2543

Re: Modding error

Error 3:

I've tried looking it up and can't seem to find anything about it since most refer to the global version of this error.
control.lua:228: attempt to index local '_Entity' (a nil value)

As for the code from line 227 to 229:

function IsSmartSplitter(_Entity)
return (_Entity.name ...
by Vanra
Thu Mar 03, 2016 9:24 pm
Forum: Modding help
Topic: Modding error
Replies: 9
Views: 2543

Re: Modding error

Sadly enough I am getting a new error code now, one that I had to fix before, but this time it seems to be an issue somewhere else...

Unknown key:"Error while running the on_init: .../control.lua:24:attempt to index global 'glob' (a nil value)"

Here is the code that should give the error ...
by Vanra
Thu Mar 03, 2016 8:57 pm
Forum: Modding help
Topic: Modding error
Replies: 9
Views: 2543

Re: Modding error

Thank you, I must've had C++ stuck in my mind somewhere, that did fix it.

And I missed the documentation completely. I'll be working my way though it now!

Thanks again!
by Vanra
Thu Mar 03, 2016 8:43 pm
Forum: Ideas and Requests For Mods
Topic: [IDEA] Monorail train
Replies: 0
Views: 502

[IDEA] Monorail train

It was my original idea for a mod. I am currently working on a different one, but I still wouldn't mind working this out.

I'm still learning to code in Lua and mod this game, but my original game involved making a monorail train.
Faster than the regular train, more fragile though but most important ...
by Vanra
Thu Mar 03, 2016 8:39 pm
Forum: Modding help
Topic: Modding error
Replies: 9
Views: 2543

Modding error

Greetings,

I've been playing this game since I bought it on Steam about a day or two ago and gotten completely addicted to it.

Seeing as I'm studying to become a programmer, I thought I'd give modding this game a try, yet I seem to have hit a wall.

For some reason, try to generate a new map or ...

Go to advanced search