Turret Pod Equipment


Gun, Flame, Shotgun turret pods in equipment. They consume both ammo and electricity.

Content
6 days ago
1.1 - 2.0
1.84K
Combat

g Bob's logistics?

14 days ago
(updated 14 days ago)

Hello
I wish to use this mod with "bob's logistics" and "bob's vehicle equipment" but as it turns out, I cant.

I am creating a very customized Bob's + Angel's modpack for game version1.1.110.
My idea is to use this mod as an early game protection option for my trains as they operate beyond the factory outskirts.

I already modified multiple aspects of this mod by myself for my own personal use case. But I cant figure out how to enable turret pod equipment for bob's trains.

Would you be able to assist?

13 days ago

Hi,

But I cant figure out how to enable turret pod equipment for bob's trains.

By trains do you mean cargo wagon modifications in that mod?

12 days ago
(updated 12 days ago)

Yes. I learned that you need an inventory space to put the ammo in. So I will (or would like to) use turret pods only inside bob's cargo wagons, car, tank and the spidertrons from bob's warfare.

In the mean time I managed to add a tiny code snippet directly in "equipment.lua" runtime, which allowed me to put the turret pods inside the grids of bob's trains and spidertrons..
but it seems the turret module does not receive power from bob's vehicle equipment (bob's vehicle solar panels and bob's vehicle batteries) when inside a wagon. Or at least that's what I got from testing..
the module didn't really work inside a wagon grid and I noticed it wasn't charging nor it found any of the ammo types I put inside the cargo wagon inventory (the "no ammo" warning sign stayed on it).
The turret pods work completely fine with all the ammo types from bobs warfare inside the car, tank and bob's spidertrons, which is awesome.

I noticed you have your own categories in the form of "zd-turret-pod-equipment-basic-category" and "zd-turret-pod-equipment-advanced-category" but I couldnt work with them at all.

This is what I did (with some help from GPT..):

if mods and mods.bobvehicleequipment then
..local extra = {
...."car", "tank", "vehicle", "armoured-vehicle",
...."locomotive", "cargo-wagon"
..}
..for , entry in pairs(gunpods.grids) do
....for
, c in ipairs(extra) do
......table.insert(entry, c)
....end
..end
end

I really cant code lua.

So I would still appreciate the assistance :D
Thank you for your time btw.

12 days ago

If you have successfully added mod's equipment-grids to the list to allow inserting pods inside, then it should work fine. My mod scripted logics checks only for any grid presence and car/tank/cargo-wagon/spidertron inventory.

12 days ago
(updated 12 days ago)

But it doesn't :(
I really cant say why...
I just tested it again.. Sadly I cant post an image to demonstrate.
You may test it yourself when you find the time.
Perhaps your implementation will be better.
I beg you to try. I really want to use your mod.

12 days ago
(updated 12 days ago)

I tested bobvehicleequipment with my mod in factorio1.x - it worked fine. I've just looked at source code of boblogistics - there is nothing that can prevent reloading weapons if you are sure you put weapons in the same wagon ammo is stored in the inventory of (for example I didn't implement locomotives to take ammo from cargo-wagons of the same train, therefore pod and ammo must be in the same cargo-wagon!).
Then the only problem could be how wagon object (entity) appears: if it is built the standard way (by player or construction bot) or created somehow (in the last case a dedicated factorio event must be risen). As I see in boblogistics all cargo wagons are built the common way. Can it be you make up trains in your mod pack some special way? For example there was some interesting mod I never tried ... Train Construction Site.

12 days ago

hm..
No, no.. I just place wagons by hand.
And I swear I put the pods in a wagon together with the ammo in it..
I dont need train construction site.. And I dont intend to put turret pods inside the locomotives..
I will test this again with a brand new, fresh installation of your mod together with bobvehicleequipment and boblogistics. After which I will report back to you.

12 days ago
(updated 12 days ago)

When using freshly installed, unmodified turret pod equipment + boblogistics and bobvehicleequipment..
I simply can not insert the turret equipment inside any of the wagon grids. I'm not allowed since the wagons are not part of the list. Only car and tank.
This was my problem in the first place..
How did you test it?

11 days ago

How did you test it?

I tested it exactly as I wrote above: Only bobvehicleequipment mod - as it adds grids to vanilla vehicles (factorio1.x doesn't have grid for tank). I didn't test bobs extended/armoured cargo-wagons.
According to source code of both mods everything should be fine.
My mod adds pods for any car, spidertron and cargo-wagon derivatives.
Only if there is some other mod with incorrect implementation, which overwrites equipment-grid categories completely.

If I have time, I'll check with those two mods combo.

11 days ago

I am creating a very customized Bob's + Angel's modpack for game version1.1.110.

Are you about factorio 1.1.110 ? And corresponding TurretPod version 1.0.5 ? :-)

11 days ago

I tested bobvehicleequipment with my mod in factorio1.x - it worked fine.
My mod adds pods for any car, spidertron and cargo-wagon derivatives.

I have absolutely no idea how you've achieved this on your side.
I simply cannot put turret pods inside a cargo wagon here. Even after trying a fresh install of only turret pods + bobvehicleequipment and nothing else.
Nothing works.
I literally made an imgur account, just to send you photo evidence here:

This image shows that placing turret pods inside a cargo wagon is forbidden in every case and test i've tried.
https://imgur.com/gallery/turret-pods-not-working-uQj7KT8

This image shows my mod folder. According to your test Turret pods + bobvehicleequipment.
https://imgur.com/gallery/mod-folder-hUfO7H4

Yes, im using Factorio version 1.1.110 and TurretPod version 1.0.5. This is what automatically gets downloaded from the mod browser.
All I desire is to place turret pods inside a cargo wagon.

I feel obliged to ask for your discord username so we could communicate better.

11 days ago

Yes, im using Factorio version 1.1.110 and TurretPod version 1.0.5. This is what automatically gets downloaded from the mod browser.
All I desire is to place turret pods inside a cargo wagon.

Sorry, I missed this important fact. Yeeah, those were good old times of Rampant mods, heavy battles with local fauna, etc. That version 1.0.5 supports only car derivatives (cars, tanks, helicopters, planes, etc.), but not cargo-wagons or spidertrons.
To add cargo-wagon support into the '2023 version some changes in mod code should be picked from actual version and merged into 1.0.5 tagged code version of the mod.

11 days ago

You can find me as garrotte on Factorio discord server https://discord.gg/factorio .

New response