[Solved] Need help with data.lua
Posted: Wed Jul 22, 2015 2:37 pm
Hello everyone, I just started using lua scripting as I am a fan of DyTech mod and I did spend some days looking at their code etc and since the 0.12.0 was released the mod is not able to run on it so I was wondering to keep atleast 1 thing from the mod until they update the mod, which may take them a while since the mod is huge.
now I have to say that in the dytech mod I found this line
data.raw["player"]["player"].inventory_size = 100
and I intend to use this just to have something going on quickly and it should do what I want exactly. So I created a new folder named it "inventory-mod_0.1.1" and I created a file "info.json" with these contents
{
"name": "inventory-mod",
"version": "0.1.1",
"title": "Inventory Mod",
"author": "ClayC",
"contact": "http://www.factorio.com",
"homepage": "http://www.factorio.com",
"description": "Get a bigger inventory"
}
I created a control.lua and a data.lua and a prototypes folder which is empty as I saw this as a requirement on a tutorial I followed.
inside the control.lua I pasted the above mentioned line for the inventory size and I left the data.lua empty as I am not sure what to include.
I tried opening the game to see if the mod was recognized and it doesn't show up in the list, I also wasn't able to find any errors what-so-ever
What am I missing?
Any help and information is welcome,
Thanks,
ClayC
now I have to say that in the dytech mod I found this line
data.raw["player"]["player"].inventory_size = 100
and I intend to use this just to have something going on quickly and it should do what I want exactly. So I created a new folder named it "inventory-mod_0.1.1" and I created a file "info.json" with these contents
{
"name": "inventory-mod",
"version": "0.1.1",
"title": "Inventory Mod",
"author": "ClayC",
"contact": "http://www.factorio.com",
"homepage": "http://www.factorio.com",
"description": "Get a bigger inventory"
}
I created a control.lua and a data.lua and a prototypes folder which is empty as I saw this as a requirement on a tutorial I followed.
inside the control.lua I pasted the above mentioned line for the inventory size and I left the data.lua empty as I am not sure what to include.
I tried opening the game to see if the mod was recognized and it doesn't show up in the list, I also wasn't able to find any errors what-so-ever
What am I missing?
Any help and information is welcome,
Thanks,
ClayC