Look, I have no idea how to mod. I just wanted to make a mod work, that was working in 1.1. The original creator haven't updated it in 6 months. I went through the changelog and fixed stuff in entity.lua and item.lua. But don't really understand what's wrong with control.lua
The file is attached if someone can take a look?
Thanks
control.lua: attempt to index global
control.lua: attempt to index global
- Attachments
-
- control.lua
- (5.93 KiB) Downloaded 4 times
Re: control.lua: attempt to index global
'global' was renamed to 'storage' in 2.0. You need to find anywhere that tries to access global and update the name.
Re: control.lua: attempt to index global
The update to Factorio 2.0 came with some drastic changes: 'global' was renamed, things like 'game.prototypes' have been moved to 'prototypes' etc.
Here is the preview of the changes posted in preparation for 2.0. If you read through it, you may find the things that don't work for you. If you're in luck, you may find that just renaming a few things may fix your bug. Of course, some more changes (e.g. in regard to logistic networks) are not quite as easy to fix. Post some more details when you see such problems!
You may also want to check out the Factorio API Docs.
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!