Tested it and doesn't crash. Kudos for putting the "drone_search_radius" in right away :D
However, I had to reduce the range from 400 to 50. 400 is too much because drones from the west side of the base will fly to fences/towers on the east side of the base, and they're way too slow to arrive in time.
I play with the Ambient Attacks mod, which causes repeated attacks and with drones flying across the base, the fences and towers don't get repaired between attacks on higher waves ^^
definitely encourage people to put it to whatever range they like. i like having sort of a central repair block of towers that sorta handle everything.
the idea originally was only to solve for those annoying hailstorms that hit like every part of your base.
I am new to the game, I have stuttering per 3 seconds only if there are a lot of buildings around the large range of repair tower. I fix it by reducing the repair tower number, or you may lower the range of the tower in the mod, and rebuild some(some is enough) repair tower in game until the stutter is gone. Save before you do so, so you may go back.
For anyone looking to get this working again. Glenn below posted a fix (But missing a step for lvl 1 towers)
---- I replaced the "search_radius" in the drone_repair_facility.ent and the "heal_radius" in both the drone_repair_facility2 and *3 with drone_search_radius. Then loaded the game again and built a lvl 2 tower. No crash (so far) ----
To fix level 1 repair towers as well, simply open the drone repair facility file without a 2/3 after it, and just look for "Radius" and replace it with drone_search_radius as well and you're all set.
I cannot find anything called search_radius in repair_facitlity.ent have a few with radius but that like max_radius and radius in luadesc. Some help please.
You have to grab the original file under 05_win_data.zip repair_facility.ent then add the additional lines to the mod. There are two lines you have to add. I can't add them here due to the weird coding so you have to copy paste from the .ent files yourself, but they look something like this. They're around line 62.
Add the following line above drone_blueprint.>string:"units/drones/drone_repair_facility_lvl_1" drone_search_radius.>float:"25" (Change the float number to what it is on your mod)
Add the following line below drone_per_spot.>int:"1" drone_visible_on_spot.>int:"0"
The mod crashes every time I build a repair tower. Something about float missing for drone_search_radius.
Since I am a total noob when it comes to modding, does anyone have an idea what I should be doing to correct this? I have made no changes whatsoever to the mod and it worked before. Don't know if this is something to do with an update or what not.
I`ve got a new Problem. After i fixed the Drone search radius like suggested in the comments, the mod works again. Now, it crashes eevery time i try to build a repair tower because the LUA script for the drones and the repair facility is missing. i got the same problem with the mod "stronger attack drones" there is the LUA Script missing to and it crashes. anybody knows a fix for this?
Edit: Never Mind XD i was just editing the wrong radius. now it works again XD
?I found the repair mod seems not working with the latest campaign, and it crashs every time I launch it. The link below is the log. Just for reporting and see if anyone have the same experience.
It looks like one of the keys changed in drone_repair_facility.ent and repair_facility*.ent from search_radius to drone_search_radius. The crash error for me was complaining about the search_radius key.
I also ended up copying the game versions of repair_facility*.ent and making the same changes in the original mod as it looked like those files had changed a bit more. I found the latest original versions of those in Riftbreaker/packs/06_win_data.zip.
Is this on the main version of the game or experimental still?
I'm not sure I will keep up on making updates every time the dev's patch the game but I might be able to do it once after the latest patch and get it working again.
The patch dropped today. I started playing the game after and it ran fine until I built a new repair tower.
Then I got a crash with this: "There is no float value for key: `drone_search_radius"
I fixed it, I think. I replaced the "search_radius" in the drone_repair_facility.ent and the "heal_radius" in both the drone_repair_facility2 and *3 with drone_search_radius. Then loaded the game again and built a lvl 2 tower. No crash (so far)
Causes heavy slowdown despite un-maxed CPU/GPU, when a number of them are deployed. Somehow during some weather events it doesn't happen.
Think it has to do with the amount of buildings they're each checking constantly for damage, causing a memory leak type situation. Maybe a single tower has one or a few processing threads, making handling much larger than original radius a drain.
EDIT:
I made a version with 100 range instead of 400. Really helped the slowdown. And it's more ideal since the time drones take to reach target, is better.
According to comments in the modding section on the official riftbreaker discord the gamepass version doesn't currently support mods as of yesterday 10/22/21. :(
I've played for many hours now with this mod and it hasn't crashed once. I didn't even remove all the repair towers before installing the mod, the ones that were already there just didn't have the extended range, but no problems whatsoever. It might cause lag like someone else pointed out, but weirdly enough the game runs smoother after a hailstorm when all the drones are flying around and doing their thing.
Thanks for making the mod! Its the best, cause those hailstorm sucked bigtime
Thanks for this mod! Could you please consider making a new mod that gives ALL buildings a passive slow 1health/sec regeneration? This is mostly to slowly repair damage done by map-wide weather but without changing the Repair towers themselves.
27 comments
I just tested locally and mine is working so download the new files and give it a go.
Enjoy
However, I had to reduce the range from 400 to 50. 400 is too much because drones from the west side of the base will fly to fences/towers on the east side of the base, and they're way too slow to arrive in time.
I play with the Ambient Attacks mod, which causes repeated attacks and with drones flying across the base, the fences and towers don't get repaired between attacks on higher waves ^^
the idea originally was only to solve for those annoying hailstorms that hit like every part of your base.
enjoy!
I fix it by reducing the repair tower number, or you may lower the range of the tower in the mod, and rebuild some(some is enough) repair tower in game until the stutter is gone.
Save before you do so, so you may go back.
Glenn below posted a fix (But missing a step for lvl 1 towers)
----
I replaced the "search_radius" in the drone_repair_facility.ent and the "heal_radius" in both the drone_repair_facility2 and *3 with drone_search_radius. Then loaded the game again and built a lvl 2 tower. No crash (so far)
----
To fix level 1 repair towers as well, simply open the drone repair facility file without a 2/3 after it, and just look for "Radius" and replace it with drone_search_radius as well and you're all set.
Add the following line above drone_blueprint.>string:"units/drones/drone_repair_facility_lvl_1"
drone_search_radius.>float:"25" (Change the float number to what it is on your mod)
Add the following line below drone_per_spot.>int:"1"
drone_visible_on_spot.>int:"0"
The mod crashes every time I build a repair tower.
Something about float missing for drone_search_radius.
Since I am a total noob when it comes to modding, does anyone have an idea what I should be doing to correct this?
I have made no changes whatsoever to the mod and it worked before. Don't know if this is something to do with an update or what not.
Thanks in advance
Edit: Never Mind XD i was just editing the wrong radius. now it works again XD
Great thanks.
https://drive.google.com/file/d/1f9QaCRGH5vPK3Ll3VxGyYpaUKljAubv1/view?usp=sharing
Doesn't work with the experimental branch (Nov 8th 2021). Causing the game to crash.
I also ended up copying the game versions of repair_facility*.ent and making the same changes in the original mod as it looked like those files had changed a bit more. I found the latest original versions of those in Riftbreaker/packs/06_win_data.zip.
I'm not sure I will keep up on making updates every time the dev's patch the game but I might be able to do it once after the latest patch and get it working again.
Then I got a crash with this: "There is no float value for key: `drone_search_radius"
I fixed it, I think. I replaced the "search_radius" in the drone_repair_facility.ent and the "heal_radius" in both the drone_repair_facility2 and *3 with drone_search_radius. Then loaded the game again and built a lvl 2 tower. No crash (so far)
Somehow during some weather events it doesn't happen.
Think it has to do with the amount of buildings they're each checking constantly for damage, causing a memory leak type situation.
Maybe a single tower has one or a few processing threads, making handling much larger than original radius a drain.
EDIT:
I made a version with 100 range instead of 400. Really helped the slowdown. And it's more ideal since the time drones take to reach target, is better.
https://mega.nz/file/fjpy2B6B#76ZZTun_zc-hjdtJiErFUN1K8rtWxFuf9no85Wa53pQ
Feel free to use it, OP. I could've uploaded it as a mod but didn't want to rip off your mod, and make multiple.
Thanks for making the mod! Its the best, cause those hailstorm sucked bigtime
Could you please consider making a new mod that gives ALL buildings a passive slow 1health/sec regeneration?
This is mostly to slowly repair damage done by map-wide weather but without changing the Repair towers themselves.