Page 1 of 2
Dumb question from a non-modder
Posted: Sun Feb 02, 2020 10:31 am
by MassiveDynamic
I don't know how to mod, but I like to tinker, so I am playing with Power Armor MK3 mod. First I made a copy of the zipped folder. Next I extracted the files and found a couple things I was confident I could change that were pretty obvious looking; specifically grid size and item size. So I adjusted them slightly using Notepad. Then I zipped up the folder. Next I changed the name of the original folder slightly and moved it to a temp folder. Then I moved the edited zipped folder into the Mods folder. So, thinking I was pretty smart, I opened Factorio and checked to see if the grid size had changed and the shield icon size had changed? And NO. Neither thing changed. So I closed Factorio, turned off the mod, reloaded, quit, turned the mod on, reloaded, and still no changes.
What am I not doing correctly?
I am fascinated by the idea of modding and this is my first foray into that world. (Except a little bit of fun with Dungeon Defenders armor modding some years ago)
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 1:58 pm
by Linver
Hi, some details are missing, so I don't get what are u doing wrong, but I will list some possible problems hoping one of this will help u:
- Prototypes are indexed by name. If ur mod or all loaded mods add to the game two prototypes, for example two equipment grids with the same name, they exist and are accessible by their names, so because they have the same name for the game is like the same object is added two times, and will be save the second one, because the first will be overwritten, see Prototype definitions.
- Mod Order. Each mod will be loaded in 3 stages, data, data-update and data-final-fixes, if is not specified with dependecy, this phases will be executed in lexicographical order, for example if we have mod A and B, will be done first A-data after B-data after A-data-update and blabla.. if B require A in dependecy, will be done first B and then A, for more info see Data-Lifecycle. If u have Power armor loaded with ur mod, but will be loaded after, will override ur mod prototypes in what they are equials.
- Bad info file. Factorio load mod if the info file is valid, and start looking for some default files, if u have write some bad information inside, like a wrong mod name or version will be not loaded, see Mod structure
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 2:18 pm
by MassiveDynamic
So specifically I edited this in the “equipment-grid2” folder...
See height,width changed from 20 to 30 each.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 3:53 pm
by Honktown
You need to assign it to the armor too. Did you do that?
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 4:41 pm
by darkfrei
1. Please use Notepad++ for modding
2. You don't need to zip it.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 5:52 pm
by MassiveDynamic
Ok, thanks, I used Notepad++, but still no joy. I tried several times, zipping, not zipping, each time I closed Factorio and restarted. Both when I left the file zipped and unzipped, the mod did not appear in the mod list in-game. Only when I use the original zip file does the mod appear in the list. And YES I made sure the file name was correct.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 6:03 pm
by Pi-C
MassiveDynamic wrote: Sun Feb 02, 2020 5:52 pm
Both when I left the file zipped and unzipped, the mod did not appear in the mod list in-game. Only when I use the original zip file does the mod appear in the list.
Restart the game and let it load to the main menu. Then search the log file (factorio-current.log) for the name of your mod. If anything is wrong with the mod that stops it from loading, you should find the reason there.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 6:14 pm
by eradicator
The required folder hierarchy is different for non-/zipped:
Not zipped:
.\blabla\mods\your-mod-name_1.2.3\info.json
.\blabla\mods\your-mod-name_1.2.3\data.lua
Zipped:
.\blabla\mods\your-mod-name_1.2.3.zip|your-mod-name_1.2.3\info.json
.\blabla\mods\your-mod-name_1.2.3.zip|your-mod-name_1.2.3\data.lua
(after the "|" is an extra folder inside the zip file)
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 6:34 pm
by MassiveDynamic
You guys are awesome! Thanks, BUT... still no joy. I admit I'm in over my head but here are 2 screenshots that answer your questions. They will mean more to you than to me.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 6:41 pm
by Pi-C
Incorrect mod name, I'd say. See
here:
The mod must either be in a folder, or in a folder inside a zip file. The mod folder/zip must be named in the pattern of {mod-name}_{version-number}, for example test-mod-thing_0.0.1. When using a zip file for the mod, the folder inside the zip file does not have any naming restrictions; only the zip file itself must be named with the {mod-name}_{version-number} pattern. The mod name and its version number are defined in the info.json file.
Get rid of the spaces in the directory names, and follow the pattern laid out above …
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 7:03 pm
by MassiveDynamic
I am admittedly cumbersome and a little slow, BUT... I tried renaming the UN-zipped folder using the Power-Armor-MK3_0.2.14 with no joy.
Now I edited the file and RE-zipped it using the EXACT SAME ORIGINAL NAMING STRUCTURE (I copy/pasted it just to be 100% sure) and still not recognizing it.
Tell me when I should give up.

- Screenshot (19).png (859.37 KiB) Viewed 4558 times
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 7:10 pm
by MassiveDynamic
So upon further consideration this question occurs to me. Notice here that the mod appears in the list....

- Screenshot (20).png (1.26 MiB) Viewed 4555 times
But, when I edit the file in any way, it no longer appears in the list. I was thinking that maybe I need to load the mod again, but instead of from the portal from my file... But I don't seem to have that option????
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:07 pm
by Honktown
Pi-C wrote: Sun Feb 02, 2020 6:41 pm
Incorrect mod name, I'd say. See
here:
The mod must either be in a folder, or in a folder inside a zip file. The mod folder/zip must be named in the pattern of {mod-name}_{version-number}, for example test-mod-thing_0.0.1. When using a zip file for the mod, the folder inside the zip file does not have any naming restrictions; only the zip file itself must be named with the {mod-name}_{version-number} pattern. The mod name and its version number are defined in the info.json file.
Get rid of the spaces in the directory names, and follow the pattern laid out above …
Interestingly, Power Armor Mk3 actually does have spaces in the zip name: "Power Armor MK3_0.2.12.zip" with the title in file:
Wonder how that plays vs folder.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:16 pm
by Pi-C
Honktown wrote: Sun Feb 02, 2020 8:07 pm
Interestingly, Power Armor Mk3 actually does have spaces in the zip name: "Power Armor MK3_0.2.12.zip" with the title in file:
Wonder how that plays vs folder.
Code: Select all
0.478 Info ModManager.cpp:249: Found duplicate mod Power Armor MK3, using folder version (0.2.14).
I honestly didn't expect this …
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:24 pm
by MassiveDynamic
Now you guys are speaking in codibabble way over my head. What exactly does this mean to me?
Pi-C wrote: Sun Feb 02, 2020 8:16 pm
Honktown wrote: Sun Feb 02, 2020 8:07 pm
Interestingly, Power Armor Mk3 actually does have spaces in the zip name: "Power Armor MK3_0.2.12.zip" with the title in file:
Wonder how that plays vs folder.
Code: Select all
0.478 Info ModManager.cpp:249: Found duplicate mod Power Armor MK3, using folder version (0.2.14).
I honestly didn't expect this …
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:33 pm
by DaveMcW
Screenshots are not very helpful at communicating mod errors.
What would be helpful is if you attach your zip file.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:36 pm
by MassiveDynamic
Will do as soon as I get back.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:43 pm
by Pi-C
MassiveDynamic wrote: Sun Feb 02, 2020 8:24 pm
Now you guys are speaking in codibabble way over my head. What exactly does this mean to me?
Honktown wrote: Sun Feb 02, 2020 8:07 pm
Wonder how that plays vs folder.
Honktown quoted a line from the original "Power Armor Mk3"'s info.json; it shows that this mod really uses spaces in its name.
Code: Select all
0.478 Info ModManager.cpp:249: Found duplicate mod Power Armor MK3, using folder version (0.2.14).
That's a line from the log file after I unpacked the directory and Factorio used the folder version instead of the zip file. So we can rule out that your mod isn't being found because it has spaces in its name.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:47 pm
by Deadlock989
Mods are allowed spaces in the name, it's just that the mod portal stopped accepting them for upload at some point.
Usually a mod completely missing from the in-game list means a malformed info.json file in my experience.
Re: Dumb question from a non-modder
Posted: Sun Feb 02, 2020 8:56 pm
by MassiveDynamic
So here is my small modification in screenshots. All I did was unpack the zip, change height,width to 30,30, repack the zip, delete the unzipped version. And here is the edited mod.