Two equipment grids for a vehicle?

Place to get help with not working mods / modding interface.
User avatar
PiteR
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 10, 2016 3:23 pm
Contact:

Two equipment grids for a vehicle?

Post by PiteR »

Hello,

So I'm the dev of the 0.17 version of Electric Vehicles mod and I'm trying to get it to support Bob's Vehicle Equipment.

The problem is that I can't get my electric vehicle to accept Bob's equipment. I can see that in Bob's data-updates.lua file there is a change to base game vehicles' equipment grid. My electric vehicles' equipment grid is

Code: Select all

electric-vehicles-electric-locomotive or
electric-vehicles-electric-car or
electric-vehicles-electric-tank respectively
Maybe there is another way to get these equipment grids to accept Bob's equipment?

I hope I explained my problem well

Thanks in advance,
Peter
Bilka
Factorio Staff
Factorio Staff
Posts: 3309
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Two equipment grids for a vehicle?

Post by Bilka »

His equipment probably has a different category than your grids allow. Try adding his equipment category to your grids (the property name is equipment_categories).
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
PiteR
Burner Inserter
Burner Inserter
Posts: 8
Joined: Thu Nov 10, 2016 3:23 pm
Contact:

Re: Two equipment grids for a vehicle?

Post by PiteR »

Bilka wrote: Mon Apr 08, 2019 5:38 pm His equipment probably has a different category than your grids allow. Try adding his equipment category to your grids (the property name is equipment_categories).
Ok, I see. Could you (or someone else) give me a example?

EDIT: How can I access the Bob's mod equipment grid in data-update.lua?
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Two equipment grids for a vehicle?

Post by darkfrei »

PiteR wrote: Mon Apr 08, 2019 6:11 pm How can I access the Bob's mod equipment grid in data-update.lua?
Same as another:
log ("data.raw["equipment-grid"] " .. serpent.block (data.raw["equipment-grid"]))

or with info mod
Attachments
2019-04-09 09_21_20-Window.png
2019-04-09 09_21_20-Window.png (23.09 KiB) Viewed 1224 times
Post Reply

Return to “Modding help”