Krastorio 2 Spaced Out


Overhaul merging Krastorio 2 with Space Age.

Overhaul
a month ago
2.0
38.1K
Factorio: Space Age Icon Space Age Mod
Transportation Logistics Trains Combat Mining Fluids Logistic network Manufacturing Power Storage

g Krastorio 2 Spaced out and Ammo Range Frustration

13 days ago

I'm playing a modded game with Krastorio 2 Spaced out and another mod Modular turrets, I want to also put rampant biters on but before I do that I have noticed an issue with the ammo range being much shorter then the turret, in the cannon's case the ammo just makes the minimum distance so it's basically useless, is there a way to disable the ammo range modifier, I keep reading ppl saying to turn off Krastorio's 2 combat modifier but I have been looking at the mod setting and cant find it also I have been looking at mods but there is only one and its for non spaced out Krastorio so any help would be very appreciated.

Just want to add bullet ranges on the bullet are abit silly as the gun is the biggest factor in how far a ballistic travels ie: a 9mm bullet will travel faster and farther in a long barrel gun verse a pistol.

12 days ago

The settings you're looking for is realistic weapons. The range is assigned to bullets so there maybe be discrepancy.
Also rubia significantly increases ammo range to accommodate it's sniper turrets.

12 days ago

Thank you, I did turn that setting off before and the bullets are no longer range restricted but the cannon shells are still limited to a range of 50, was there another setting I needed to change?

11 days ago

is there any way I can edit my save or game files to edit the cannon shell range, I dont know the first thing about modding but if its as easy as editing a text file I could maybe make my own fix.

any help is appreciated

11 days ago

You can edit Krastorio 2 spaced out files if you want, the file where cannon shell range is changed is weapons-realistic.lua

11 days ago

Thank you very much, I will look in to doing that if I can, I'm hoping notepad++ will do the trick, will make a post if I'm able and show what I did if any one eles is in the same boat as I am :)

10 days ago
(updated 10 days ago)

First of all thank you so very much for taking the time to help me Polka_37, I'm kinda of a dummy and did not realise your the mod author until I was in factorio's mod manager and noticed your name was on Krastorio :P, so thanks again for helping me with this :)

I had some what of a learning curve as I have never modded factorio before and had some stumbles so I'm going to explain what I did in detail so if some one else wants to do this they can follow in my footsteps.

So I did find weapons-realistic.lua and with the find function in note pad I found the Cannon Range modifier and was able to change it all from 50 to 70, i tried saving my changes directly but windows would not let me as I was working with in an archive so, after making backup (yes I should have started with that) I unpacked the mod folder and made my edits to the file, there was a small issue when I repacked the mod folder as a .zip it broke then entire mod :P, so I got wise and copied the updated file right to the mod archive with out unpacking it and that did not break the mod.

Unfortunately when getting back in to my game I found nothing had changed Cannon Ammo was still at 50 range, I figured there was a value I missed so I started snooping the mod file and while looking around the folder I found another file: ammo.lua and figured I would take a look, and sure enough the Cannon Ammo Ranges were there too, figured this is what I was using because I turned off Realistic Weapons in the mod setting so I modified this file instead and restored the weapons-realistic.lua, upon relaunching the game I had success all my cannon ammo was now set to 70 range and in a test I lured some bugs to my walls and the shells were able to make the max range of the turret (65) which pleased me greatly.

So I am now thinking of modding weapons-realistic.lua and seeing if I can get the bullets to travel alittle farther with the cannon shells as I did like the realistic weapons that Krastorio came with but for now I'm going to stop while I am ahead before I really break something.

Thanks again Polka_37, this is the first time I'm playing Krastorio and I am very much enjoying it and your help with directing me was invaluable as I would have never figured this out on my own so thanks again.

I'm going to give a direct break down of what I did so if you want to do it too hopefully this helps:

Turn Off Realistic Weapons in Factorio's mod settings and exit the game

go to C:\Users*****\AppData\Roaming\Factorio\mods\ and find Krastorio2-spaced-out_1.6.18, make a new folder called backup and copy Krastorio2 in to it, unpack Krastorio2, then navigate to Krastorio2-spaced-out-1.6.18\prototypes\updates\base and edit ammo.lua in note pad, search Cannon until you get to this:

data.raw["ammo"]["cannon-shell"].ammo_type.action.action_delivery.max_range = 50
data.raw["ammo"]["explosive-cannon-shell"].ammo_type.action.action_delivery.max_range = 50
data.raw["ammo"]["uranium-cannon-shell"].ammo_type.action.action_delivery.max_range = 50
data.raw["ammo"]["explosive-uranium-cannon-shell"].ammo_type.action.action_delivery.max_range = 50

you now can change the ammo range from 50 to what ever you would like.

Now save the file and copy it, your going to go back to AppData\Roaming\Factorio\mods\ and now open the Krastorio2-spaced-out_1.6.18 archive with the widows explore, navigate to \prototypes\updates\base inside the archive, once there paste the modified version of ammo.lua and replace the original, launch Factorio and your cannon ammo should now reflect your changes.

This can be done for the realistic weapons no doubt but there is alot more variables if you want to modify the bullets too and I'm not sure what does what right now but the cannon shell ranges are laid out the same so should work the same for them there too.

Thanks for all the help and I hope this helps anyone down the road too.

EDIT: Just wanted to add I have this working for Realistic weapons too, the cannon ammo is the same, for bullets you just need to change the "rifle_range" value as everything references that

New response