Helldivers 2 - AR-23 Liberator

Downloads1,720
Views5,356
Publish Date1 year ago
Last Updated1 month ago by
Version5.01
Members
Comments
So 3 weeks ago, as a response to the flooding of the home page by a new game that got added to the site, I changed the default sorting on the home page to popular (daily), this has been also an experiment to see if we should set it as the default sorting on the home page for good.
Vote here: https://strawpoll.com/3RnYXjKqBye
Vote will close in 3 days.
This mod is good but....
It's weird to me, I found that the code you wrote in weapontweakdata.lua misses a ), which causes this file not run.
I fixed it myself, but even so, the code in HD2LiberatorDiscardMagOnReload.lua still never run.
Is it intended? or you just copied some code and didn't check if they work? What are these codes for?
Doesn't matter anyway.....
My true questions that wanna asked about this mod:
The code in the
weapontweakdata.lua
runs fine. All it does is add a function calleddiscard_ammo_from_magazine
, which is then added in themain.xml
.HD2LiberatorDiscardMagOnReload.lua
ALSO runs just fine, it makes you discard the remaining ammo in the magazine when partially reloading the weapon, which is a ported mechanic from Helldivers 2.As for the questions:
No, I did not. And no, I have not done it for the mod.
I'm not sure why that happens, could be a conflict or something else.
@hyhylie

I rly don't think that these files run fine, at least not for what u uploaded here. (I just checked the files by re-downloading again)
cuz apparently you missed a ')' here, I found it because the BLT log was outputting FATAL ERROR.
I'm not sure if Beardlib has any auto correct mechanic, but they didn't run on my side anyway
I've investigated further and noticed that the function doesn't need
weapontweakdata.lua
's code and runs fine without it (as it's already referenced in the main.xml)So, I'd suggest either adding the bracket manually, or completely deleting the file (and also deleting the node in the main.xml to prevent crashes). I'll release an update later which will completely remove the hook from the mod.
@lr_daring 代码大佬🥹