Banner
Helldivers 2 - AR-23 Liberator
Thumbnail
Downloads1,358
Views4,360
Publish Date9 months ago
Last Updated3 months ago by
Version4
Avatar

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:

  1. Did you intend to do a tactical reload for it? well I mean....have u done it in this mod? (sry I didn't take a close look at it and I don't know beardlib stuffs much)
  2. When I use a mod that also gives this gun a tactical reload with auto reload, this gun reloads twice when it's empty (0→45→46). It is rly weird and because of my complex mod environment, I rly wanna communicate with you on maybe steam or discord. Could u plz allow me asking more questions there?
Avatar

The code in the weapontweakdata.lua runs fine. All it does is add a function called discard_ammo_from_magazine, which is then added in the main.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:

  1. No, I did not. And no, I have not done it for the mod.

  2. I'm not sure why that happens, could be a conflict or something else.

Avatar

@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.
pic

I'm not sure if Beardlib has any auto correct mechanic, but they didn't run on my side anyway

Avatar

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.

58 1050