McGuten / Factorio5DimMods

5Dim's mods repository
MIT License
13 stars 13 forks source link

Removing personal roboports >MK2 from armor turns them into MK2 roboports #36

Open jlidtke opened 3 years ago

jlidtke commented 3 years ago

Adding the line:

    equipment.take_result = "5d-personal-roboport-equipment-" .. inputs.number

to 5dim_core/lib/equipment/generation-personal-roboport-equipment.lua line 22 will fix the problem.

19    --Item
20    if inputs.new then
21        item.name = "5d-personal-roboport-equipment-" .. inputs.number
22        equipment.take_result = "5d-personal-roboport-equipment-" .. inputs.number
23    end
NIronwolf commented 3 years ago

Thanks for this. It's been an issue for us. :)

torretto89 commented 1 year ago

I know this is old but I haven't found the answer anywhere else. I make this change but then the mod doesn't show up in my mod list anymore. Any help would be appreciated.

NIronwolf commented 1 year ago

I know this is old but I haven't found the answer anywhere else. I make this change but then the mod doesn't show up in my mod list anymore. Any help would be appreciated.

Depends on how you make the edit. If you unzip the mod to a folder of the same name and edit just the one file, you should be ok. You can't just say take the one file out. The "mod" needs to live as a .zip or a directory.

If it's a server, you may also want to change the version info by changing the directory/file name and updating info.json. You'll then need to send that as a zip to anyone that plays because it won't be found on the mod portal.

jrdiver commented 2 months ago

Bumping this issue.... still a thing. Would be nice to get this patched in officially someday