OK, what I found out so far is, it looks like the table is not initiaziled (got NIL) for some reason when picking up a weapon from the ground.
The fix I mentioned earlier is not really helpfull.
What I try to do is to put the table initialize procedure when the weapon is issued and not when the weapon is used first time.
Hi, Loner. Yes I am still working on this, but the new Invasion Mod is having a higher priority.
Brief status update on the Mag Mod:
- Update procedure: Now the mag table array will be initialized when the weapon is in actors inventory instead of initializing on first use.
Same for ammo. Me to say, when actor is having a weapon without ammo and he gets ammo for this weapon, the mags will be initialized.
I had also a discussion with SacriPan and because of his ideas for the mag sys, I think, I will rework the whole system based on his ideas.
The bug reported by Racemate is fixed.
But there are still some minor issues which annoying me.
Like the last magazine available has to be loaded twice.
Luckyly it is not ctd anymore.
If someone can help me to fix the remaining bugs, would be very appreciated.
I think I got it done. All the remaining bugs I could find are fixed finally.
Half of the script has changed.
Because the magazine system is part of my mod, I have to extract it from the mod to put it as a stand alone.
As soon as is extracted and no more issues coming up, I will upload the revised version by this week.