Hi,
I'm trying to combine my mod with FreeER's mind control mod.
I'm getting an error on line 72 of my control file and can't seem to get it resolved.
I've attached both my mod and a working version of the Mind Control mod.
Could someone please take a look at this and let me know what I'm missing?
EDIT: Files removed.
Thanks!
Help combining two mods
Help combining two mods
Last edited by TheSAguy on Wed Jun 24, 2015 4:52 pm, edited 1 time in total.
Re: Help combining two mods
You might want provide us with the error you are getting too
Re: Help combining two mods
Actually, no need for it, just checking you code I think I got it:semvoz wrote:You might want provide us with the error you are getting too
Code: Select all
function OnBuilt(entity)
-- Temple has been built
if entity.name == "templev2" then
glob.numTemples = glob.numTemples + 1
glob.factormultiplier = GetFactorPerTemple(glob.numTemples)
game.player.print("The the number of temples currently: " .. glob.numTemples) -- Debug
end
--- Mind Control Built
if event.createdentity.name == "MBeacon" then
table.insert(glob.beacons, event.createdentity)
end
end
Code: Select all
if event.createdentity.name == "MBeacon" then
So, I am guessing you are getting something related to a call to 'nil' or something similar.
If you change line 72 into:
Code: Select all
if entity.name == "MBeacon" then
We you might still get an error, but it should be different
Re: Help combining two mods
Thanks semvoz,
After changing what you said and removing some other "event"'s I think I have it working.
After changing what you said and removing some other "event"'s I think I have it working.
Last edited by TheSAguy on Wed Jun 24, 2015 4:52 pm, edited 1 time in total.