Update broken mods?

Place to get help with not working mods / modding interface.
Post Reply
jugglebubbles
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Feb 28, 2016 2:30 am
Contact:

Update broken mods?

Post by jugglebubbles »

I'm brand new to this game but not lua, what steps do I need to take to update broken mods? I've already checked out the game.on_ now = script.on_ thing but I'm still getting some erros

Image
Image

-----------------------
I'm getting the same type of error across multiple mods
Image
Image

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Update broken mods?

Post by daniel34 »

jugglebubbles wrote:I'm brand new to this game but not lua, what steps do I need to take to update broken mods? I've already checked out the game.on_ now = script.on_ thing but I'm still getting some erros

Image
Image

-----------------------
I'm getting the same type of error across multiple mods
Image
Image
For the first one, try game.surfaces['nauvis']
For the second one, try defines.events.on_entity_died
quick links: log file | graphical issues | wiki

jugglebubbles
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sun Feb 28, 2016 2:30 am
Contact:

Re: Update broken mods?

Post by jugglebubbles »

daniel34 wrote: For the first one, try game.surfaces['nauvis']
For the second one, try defines.events.on_entity_died
Thanks a ton! I think I found a fix for the first one but using what you've shown me for the second one I was able to fix quite a few error related to missing underscores and I've learned what that error message means now. Thanks a lot!

Now I've come across this one and I don't know what other value 'game' could be (I tried script already as a longshot)

Image
Image

-------------------------------------
This is the last problem mod I have as well, I've fixed the other ones.
Image
Image

Austin5003
Burner Inserter
Burner Inserter
Posts: 9
Joined: Fri Mar 18, 2016 10:16 pm
Contact:

Re: Update broken mods?

Post by Austin5003 »

daniel34 wrote:
jugglebubbles wrote:I'm brand new to this game but not lua, what steps do I need to take to update broken mods? I've already checked out the game.on_ now = script.on_ thing but I'm still getting some erros

Image
Image

-----------------------
I'm getting the same type of error across multiple mods
Image
Image
For the first one, try game.surfaces['nauvis']
For the second one, try defines.events.on_entity_died
game.surfaces['nauvis'] won't work because it's trying to index 'game'

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Update broken mods?

Post by daniel34 »

Austin5003 wrote:
daniel34 wrote:
jugglebubbles wrote:I'm brand new to this game but not lua, what steps do I need to take to update broken mods? I've already checked out the game.on_ now = script.on_ thing but I'm still getting some erros

Image
Image

-----------------------
I'm getting the same type of error across multiple mods
Image
Image
For the first one, try game.surfaces['nauvis']
For the second one, try defines.events.on_entity_died
game.surfaces['nauvis'] won't work because it's trying to index 'game'
I know it works, having just tried it in 0.12.26.
quick links: log file | graphical issues | wiki

ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: Update broken mods?

Post by ratchetfreak »

I think the proper solution would be to replace the surface global with getting the surface of whatever you are acting on.

This is essential should a mod add another surface

slothman320
Burner Inserter
Burner Inserter
Posts: 8
Joined: Mon Mar 21, 2016 5:59 pm
Contact:

Re: Update broken mods?

Post by slothman320 »

I was rooting through the files of the Harvesters mod when I found the issue with it booting. I removed the lines that required the huge explosion effect and replaced them with the updated medium explosion. It now boots. However there's an issue on attempting to start a game with the mod installed. It says that the control.lua is missing the addinterface.If anyone knows how to fix this please help because I'm willing to work with others to start patching these mods. There's far too many dead mods that don't work anymore.

Post Reply

Return to “Modding help”