[MOD 0.13.x] Advanced Personal Defense
Re: [MOD 0.13.x] Advanced Personal Defense
In the future I hope to include modded ammo compatibility.
Are there any other besides the ones you listed?
In the mean time I would say just stick with the regular old piercing ammo clips.
Sorry about the ammo box incompatibility. I'll look into it but my programming experience is limited. I can't promise that I can fix that.
Are there any other besides the ones you listed?
In the mean time I would say just stick with the regular old piercing ammo clips.
Sorry about the ammo box incompatibility. I'll look into it but my programming experience is limited. I can't promise that I can fix that.
Re: [MOD 0.13.x] Advanced Personal Defense
I dunno, for me ammobox worked well, apart from having to add its ammo to the list of those supported by mod ( making the following entry : in the line 10 of control.lua).
Code: Select all
['piercing-bullet-ammo-box']='bullet',
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: [MOD 0.13.x] Advanced Personal Defense
Whoops your right. I checked again with all mods turned off and it was unaffected by upgrades. Alright looks like I need to go mod hunting. gimme a bit.
[Edit] Alright found the culprit. Turns out I had installed https://mods.factorio.com/mods/Doomquil ... r%20Turret And completely forgot about it. that fact the mod made a stealth edit to the PLD so no yellow test telling me it was modified by a mod did not help either. My bad it turns out
[Edit] Alright found the culprit. Turns out I had installed https://mods.factorio.com/mods/Doomquil ... r%20Turret And completely forgot about it. that fact the mod made a stealth edit to the PLD so no yellow test telling me it was modified by a mod did not help either. My bad it turns out
Re: [MOD 0.13.x] Advanced Personal Defense
That's pretty cool, I will take a peek and see if such functionality can be included. Will see if he wants to combine forces.
Re: [MOD 0.13.x] Advanced Personal Defense
.14 is out.
I might be able to make it better though.
Well, this is going to be a major overhaul for me. :/Modding
Added support for equipment grids in cars, tanks, locomotives, and cargo wagons.
Changed equipment grids to work as protoypes: defined and referenced by things that use them.
Changed equipment and equipment grids to have categories that define what equipment can go in what equipment grid.
Scripting
Fixed game freeze when an error was thrown during the player left game event.
Removed LuaItemStack::has_grid.
Removed LuaItemPrototype::equipment_grid_size.
Changed LauItemStack::grid to return nil if the item doesn't have a grid.
Added LuaItemPrototype::equipment_grid.
Added LuaEntity::grid read.
Added Added LuaEquipmentGridPrototype.
Added LuaEquipmentGrid::prototype read.
Added LuaEquipmentPrototype::equipment_categories read.
Added LauForce::unchart_chunk()
I might be able to make it better though.
Re: [MOD 0.13.x] Advanced Personal Defense
Mod has been updated for Factorio 0.14. Special thanks to David Merillat!
Inreased gun cooldown from 2 to 3, seemed like it was shooting too fast. It's still faster than rifle by a bit.
Inreased gun cooldown from 2 to 3, seemed like it was shooting too fast. It's still faster than rifle by a bit.
Re: [MOD 0.13.x] Advanced Personal Defense
Hey there, I've upgraded the code, now it supports modded ammunition and works when used in vehicles.
- Attachments
-
- Advanced_Personal_Defense_0.1.4.zip
- (70.39 KiB) Downloaded 142 times
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: [MOD 0.13.x] Advanced Personal Defense
Dammit, I keep forgetting to take out that debug portion of the code. You know, the last few lines that give you a bit of stuff at the start if the game.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: [MOD 0.13.x] Advanced Personal Defense
Nice.
I should be able to test it out and get things updated this weekend.
I should be able to test it out and get things updated this weekend.
Re: [MOD 0.13.x] Advanced Personal Defense
I'm getting a strange thing when I test.
Unknown key error. Normally I'd look past it but there's duplicate parts with different keys showing up:
This gun gobbles up ammo and works properly.
This gun does not.
The gun that works, does indeed work great on equipment grids.
Sidenote: a tank with 10 shields on it is UNSTOPPABLE.
I'll try to chip away at this issue when I have time. Don't feel comfortable pushing the update with this duplicate part bug though.
Unknown key error. Normally I'd look past it but there's duplicate parts with different keys showing up:
This gun gobbles up ammo and works properly.
This gun does not.
The gun that works, does indeed work great on equipment grids.
Sidenote: a tank with 10 shields on it is UNSTOPPABLE.
I'll try to chip away at this issue when I have time. Don't feel comfortable pushing the update with this duplicate part bug though.
Re: [MOD 0.13.x] Advanced Personal Defense
That's the true name of the item, the one by which the game engine knows it.
The game then takes this name and looks into locale files for what to substitute it with before showing it to the user, if it finds nothing, it shows the name itself.
The code works by creating a single equipment for each kind of ammo (the player needs to produce only one of those) and then it swaps the equipment when it should use other bullet type.
The names of those equipments are generated, locale files cannot be generated. Before, I've made the relevant entries for english locale for vanilla bullets.
Last time I've changed the pattern of generated entity names, but I guess I was too tired to change the locale.
The game then takes this name and looks into locale files for what to substitute it with before showing it to the user, if it finds nothing, it shows the name itself.
The code works by creating a single equipment for each kind of ammo (the player needs to produce only one of those) and then it swaps the equipment when it should use other bullet type.
The names of those equipments are generated, locale files cannot be generated. Before, I've made the relevant entries for english locale for vanilla bullets.
Last time I've changed the pattern of generated entity names, but I guess I was too tired to change the locale.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: [MOD 0.13.x] Advanced Personal Defense
Oh.. I should be able to fix this via updating the locale file then. Thanks
Re: [MOD 0.13.x] Advanced Personal Defense
Can you make it actually use the ammo type? not just consume it?
eg deal more damage with better ammo?
Also any chance you can have it draw ammo from Cargo when used on a Tank/car/train?
hehe...
and finally.... any chance you can make it use any ammo... inc modded ammo form other mods?
eg deal more damage with better ammo?
Also any chance you can have it draw ammo from Cargo when used on a Tank/car/train?
hehe...
and finally.... any chance you can make it use any ammo... inc modded ammo form other mods?
Re: [MOD 0.13.x] Advanced Personal Defense
Doesn't it already do all of that?
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: [MOD 0.13.x] Advanced Personal Defense
I really like this mod - thanks!
1) It might be nice to have another tier above it with crazy high crafting requirements for the endgame scenario where you've got a really big base and tons of production and clearing out biters is no longer difficult, but turns into a tedious chore. e.g it could take 100 speed modules or something to build, but then end up firing a very powerful laser every couple few ticks so you just don't have worry about spending 10 hours running around with capsules and a flamethrower just to clear a big space. You still have to build a wall, of course, it just takes the tedium away from killing biter bases, which is already almost zero risk at the endgame, just time consuming.
2) Do you know if the AI for the these personal defense guns is available to be tweaked so that it fires on trees and rocks? Again, in that endgame megabase scenario, clearing out trees and rocks can sometimes be a hassle. I can semi-automate it with deconstruction blueprints and requesters and trains, but sometimes I wish I could just stick like a "personal debris cleanup laser" in my power armor and walk around and obliterate the "junk".
1) It might be nice to have another tier above it with crazy high crafting requirements for the endgame scenario where you've got a really big base and tons of production and clearing out biters is no longer difficult, but turns into a tedious chore. e.g it could take 100 speed modules or something to build, but then end up firing a very powerful laser every couple few ticks so you just don't have worry about spending 10 hours running around with capsules and a flamethrower just to clear a big space. You still have to build a wall, of course, it just takes the tedium away from killing biter bases, which is already almost zero risk at the endgame, just time consuming.
2) Do you know if the AI for the these personal defense guns is available to be tweaked so that it fires on trees and rocks? Again, in that endgame megabase scenario, clearing out trees and rocks can sometimes be a hassle. I can semi-automate it with deconstruction blueprints and requesters and trains, but sometimes I wish I could just stick like a "personal debris cleanup laser" in my power armor and walk around and obliterate the "junk".
Re: [MOD 0.13.x] Advanced Personal Defense
I honestly have no idea. It might be possible to tweak how the AI considers trees and rocks but then I think all of the turrets would shoot at them. Personally I find deconstruct to be efficient. Or the old tank plow.ribsngibs wrote:I really like this mod - thanks!
1) It might be nice to have another tier above it with crazy high crafting requirements for the endgame scenario where you've got a really big base and tons of production and clearing out biters is no longer difficult, but turns into a tedious chore. e.g it could take 100 speed modules or something to build, but then end up firing a very powerful laser every couple few ticks so you just don't have worry about spending 10 hours running around with capsules and a flamethrower just to clear a big space. You still have to build a wall, of course, it just takes the tedium away from killing biter bases, which is already almost zero risk at the endgame, just time consuming.
2) Do you know if the AI for the these personal defense guns is available to be tweaked so that it fires on trees and rocks? Again, in that endgame megabase scenario, clearing out trees and rocks can sometimes be a hassle. I can semi-automate it with deconstruction blueprints and requesters and trains, but sometimes I wish I could just stick like a "personal debris cleanup laser" in my power armor and walk around and obliterate the "junk".
If you use grids on the tank, load it up with shields and you're golden. Then a load of lasers in the armor.
I'd consider it a separate mod, and honestly I'm not skilled enough tinkering under the hood of this game to pull it off.
Making a super laser is a lot more "cheaty" than I'm interested in. With the current game I find it easy to install 4-6 lasers and just run through a spawn camp, maybe use a little fire on the big groups. Don't even need bot capsules!
If it seems that for balance it should be more powerful I will consider adjusting the damage up but right now it seems ok.
I think what I would suggest for you is that mod for the armor that give you a 20x20 grid. Easy to fit more lasers than you'll ever need. And multiple roboports will take deconstruct a full screen of trees in no time.
If you pop open the mod files in notepad you can edit the values, turn the damage to 500 or something that will one-shot anything.
Re: [MOD 0.13.x] Advanced Personal Defense
What inspired me to write my post on this forum was that I had already modded your mod and cranked the damage (and lowered the fire delay, and increased the movement speed) of the laser so that it was totally cheaty god mode.AutoMcD wrote: If you pop open the mod files in notepad you can edit the values, turn the damage to 500 or something that will one-shot anything.
For balance, no I don't think it needs to be more powerful - it's just a convenience thing. At some point you can kill everything with no risk, but it still eats up a lot of time (I cleared out I think a 2x3 km rectangular block of biters and it took many hours!)
Yeah, the tree thing is also just minor convenience stuff - deconstruct is fast "enough", but my UPS are getting low enough that waiting for the ~50 bots to recharge on my personal roboport is a little painful. What I *should* do is change my supply train (which stops at every outpost in my base), so that it also picks up extra trees and alien artifacts and carts them back to main base on its route.
Re: [MOD 0.13.x] Advanced Personal Defense
Updated code.
It wasn't generating the ammo for mod loaded after and was crashing when ammo equipment was put into trains.
Now it doesn't do that.
It wasn't generating the ammo for mod loaded after and was crashing when ammo equipment was put into trains.
Now it doesn't do that.
- Attachments
-
- Advanced_Personal_Defense_0.1.5.zip
- (70.72 KiB) Downloaded 123 times
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
Re: [MOD 0.13.x] Advanced Personal Defense
is it known (or deliberate) that it doesn't load ammo when placed into a vehicle grid? I'm using both VehicleGrids and AAI programmable vehicles and it never pulls ammo from the vehicle trunk inventory to charge up
Re: [MOD 0.13.x] Advanced Personal Defense
It is AAI doing its thing. It works (somewhat) when not used with mods that erase entities under the hood.Hyratel wrote:is it known (or deliberate) that it doesn't load ammo when placed into a vehicle grid? I'm using both VehicleGrids and AAI programmable vehicles and it never pulls ammo from the vehicle trunk inventory to charge up
I'll see into the code. Check back later this day.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.