New guns via XML/FLMM issue... SOLVED
Howdy folks... Argh here, with another pain-in-the-rear problem.
It should be very simple: I need to create custom weapons for my mod. I've already developed the custom weapons, their behavior and sounds, etc., in previous versions, using the good ol' Liberty Justices. But now it's time to get rid of the old weapons (not coincidentally, removing Cloak and about 400 other useless entries in weapon_equip.ini, that I don't plan to use in the mod, along with all of the Loadouts I don't want... but that's after I figure out what's going wrong here)
First off, here's the error message I'm getting:
E:\FL\Scratch\Source\Common\Archetype.cpp(60) : *** ERROR: ArchDB::Get(3164109194) failed
E:\FL\Scratch\Source\Common\Archetype.cpp(60) : *** ERROR: ArchDB::Get(30) failed
At one point, I was even getting CTD, but I cleaned everything up, and now I don't get that... just a stubborn refusal to cooperate and play nice. I can *buy* this new weapon, and it works just fine in the game... but if I try to put it in an AI aircraft's Loadout... it fails to appear, and FLServer spits that error message up every time an aircraft armed with that weapon is spawned. It'll appear if I *buy* it, mind you- but putting it there as an equip = operation doesn't work, period.
Worse, putting it into the player's Loadout doesn't work right, either. So obviously this error isn't minor or ignorable, and I've gotta conquer it before I go on my wild looting spree among the Loadouts and weapon_equip.ini, cleaning out the deadwood.
Now, here's the code I'm using to implement the "test weapon", both as a weapon and as a Good:
<script>
<data file="DATA\EQUIPMENT\weapon_equip.ini" method="append">
<source>
[Munition
nickname = 30_cal_ammo
....more code went here, but is no longer needed, as this is where the problem was.
Oh yeah.. and I should note, for the record... it's NOT the custom CMP file I'm using, or the sounds, or any of that. All of those have been functioning flawlessly for the last 3 Alphas. It's definately a coding issue here...
Edited by - Argh on 12/3/2004 2:55:07 AM