Equipment Grid help

Place to get help with not working mods / modding interface.
Post Reply
User avatar
dtoxic
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Fri Apr 01, 2016 8:40 pm
Contact:

Equipment Grid help

Post by dtoxic »

Hi all, can someone help me to create a mod that adds equipment grid to early armor (light and heavy)
my coding skills in lua are on the same level as Chinese speaking skill in other words zero!

so if some has the will and time to walk me trough it i would be grateful

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Equipment Grid help

Post by steinio »

That's how a dev does it for his mod:
https://github.com/Klonan/Construction_ ... e.lua#L317

The function adds the tiny equipment grid (1x1) to all armor without any else skips it.

line 327 defines the grid
Image

Transport Belt Repair Man

View unread Posts

User avatar
dtoxic
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Fri Apr 01, 2016 8:40 pm
Contact:

Re: Equipment Grid help

Post by dtoxic »

steinio wrote:
Sun May 05, 2019 1:15 pm
That's how a dev does it for his mod:
https://github.com/Klonan/Construction_ ... e.lua#L317

The function adds the tiny equipment grid (1x1) to all armor without any else skips it.

line 327 defines the grid
Thx, i assume i would have to change the "drone" part with "light-armor,Hevy-armor"?

User avatar
dtoxic
Long Handed Inserter
Long Handed Inserter
Posts: 82
Joined: Fri Apr 01, 2016 8:40 pm
Contact:

Re: Equipment Grid help

Post by dtoxic »

Ok so managed to create equipment grid for the early armor's (light and Heavy) but now i cant figure out why it wont accept the equipment?!
i know i have to define what equipment is acceptable, but for the life of me i cant figure that part out

i used other mods and a couple of tutorials and a lot of trial and error to figure it out to this stage

can some one have a look at this and help me out? here is a link to the mod

https://www.dropbox.com/s/ppcf1ereraed3 ... 1.zip?dl=0

Post Reply

Return to “Modding help”