Hello, im making a mod that aim at changing bitters visual to Starshiptroopers Arachnids, the mod is in alpha but works with base game and visual are work in progress. I would like to make it compatible with Rampant. Unfortunatly im not a coder, im an resourceful artist with good logic and managed to put together this code from looking here and there and calling for help on some discord/forums. I looked at your code and i saw in BiterUtils.lua and UnitUtils.lua the few code line that could make it work. But im not sure how i could use the data.raw function to replace visuals since your functions are local and within rampant files. I never coded in lua and learning on the fly, if you would be so inclined to have the time and energy to show me the right way that would be awesome!
I think i could start with replacing either ( BiterUtils.lua ) " local biterrunanimation = unitUtils.biterrunanimation " or ( UnitUtils.lua ) have a custom option in your code similar as armored mod. Im just not sure how to do that.
" function unitUtils.biterrunanimation(scale, tint1, tint2, altBiter)
if (altBiter == "armored") and mods["ArmouredBiters"] then
return armoredRunBiter(scale, tint1, tint2)
else
return vanillaRunBiter(scale, tint1, tint2)
end
end "
my mod:
https://mods.factorio.com/mod/Arachnids
thank's for your time ; )