How to increase damage dealt by trains to bugs?

Place to get help with not working mods / modding interface.
Skyshrim
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Aug 25, 2018 1:18 am
Contact:

How to increase damage dealt by trains to bugs?

Post by Skyshrim »

I'm hoping to prevent the annoying issue of trains being stopped and destroyed by biters, but I am very new to modding. If there is a way to increase the damage dealt by train collisions or give bugs a negative resistance to impact damage I would love to know about it. I think the game would be greatly improved if you didn't have to worry about a couple green bugs stopping your 100+ ton trains dead in their tracks.
Koub
Global Moderator
Global Moderator
Posts: 7955
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: How to increase damage dealt by trains to bugs?

Post by Koub »

Damage inflicted and the loss of momentum when a train hits a biter is proportional to the trains's speeed, and its mass.
Koub - Please consider English is not my native language.
Skyshrim
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Aug 25, 2018 1:18 am
Contact:

Re: How to increase damage dealt by trains to bugs?

Post by Skyshrim »

Koub wrote:Damage inflicted and the loss of momentum when a train hits a biter is proportional to the trains's speeed, and its mass.
Exactly. I would like to modify the equation.
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5405
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: How to increase damage dealt by trains to bugs?

Post by Klonan »

Skyshrim wrote:
Koub wrote:Damage inflicted and the loss of momentum when a train hits a biter is proportional to the trains's speeed, and its mass.
Exactly. I would like to modify the equation.
Change `energy_per_hit_point` in the train prototype, lower deals more damage
Skyshrim
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Aug 25, 2018 1:18 am
Contact:

Re: How to increase damage dealt by trains to bugs?

Post by Skyshrim »

Change `energy_per_hit_point` in the train prototype, lower deals more damage
This is a promising start, but doesn't seem to do the job all on its own. It allows trains to plow right through cars and tanks at low speed, but enemies still have no trouble stopping them.


EDIT: After a bunch of fiddling I think I've found a good balance of increased weight, power, breaking power, and efficiency to go along with the lower energy_per_hit_point so that the trains feel about the same as unmodded, but have a LOT more momentum and deal arbitrarily high amounts of damage. I think I'll do some more testing and finalize the numbers soon before posting the mod. Thanks for the help!
Skyshrim
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sat Aug 25, 2018 1:18 am
Contact:

Re: How to increase damage dealt by trains to bugs?

Post by Skyshrim »

Well, I finished my mod and it works just as planned, but for whatever reason I am unable to upload it to the mod portal. It just gives me an "Unknown Error" no matter what I've tried changing. Is there a period of time that new accounts have to wait or am I just screwed?


Here it is on Github since I can't upload it to the portal: https://github.com/Skyshrim/Skyshrim-s- ... _0.0.1.zip
Post Reply

Return to “Modding help”