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
-----------------------
I'm getting the same type of error across multiple mods
Update broken mods?
-
- Manual Inserter
- Posts: 2
- Joined: Sun Feb 28, 2016 2:30 am
- Contact:
Re: Update broken mods?
For the first one, try game.surfaces['nauvis']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
-----------------------
I'm getting the same type of error across multiple mods
For the second one, try defines.events.on_entity_died
-
- Manual Inserter
- Posts: 2
- Joined: Sun Feb 28, 2016 2:30 am
- Contact:
Re: Update broken mods?
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!daniel34 wrote: For the first one, try game.surfaces['nauvis']
For the second one, try defines.events.on_entity_died
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)
-------------------------------------
This is the last problem mod I have as well, I've fixed the other ones.
-
- Burner Inserter
- Posts: 9
- Joined: Fri Mar 18, 2016 10:16 pm
- Contact:
Re: Update broken mods?
game.surfaces['nauvis'] won't work because it's trying to index 'game'daniel34 wrote:For the first one, try game.surfaces['nauvis']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
-----------------------
I'm getting the same type of error across multiple mods
For the second one, try defines.events.on_entity_died
Re: Update broken mods?
I know it works, having just tried it in 0.12.26.Austin5003 wrote:game.surfaces['nauvis'] won't work because it's trying to index 'game'daniel34 wrote:For the first one, try game.surfaces['nauvis']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
-----------------------
I'm getting the same type of error across multiple mods
For the second one, try defines.events.on_entity_died
-
- Filter Inserter
- Posts: 952
- Joined: Sat May 23, 2015 12:10 pm
- Contact:
Re: Update broken mods?
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
This is essential should a mod add another surface
-
- Burner Inserter
- Posts: 8
- Joined: Mon Mar 21, 2016 5:59 pm
- Contact:
Re: Update broken mods?
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.