Okay, well that's good about the warning, although it does show that the weapons aren't loading since it's saying a secondary weapon isn't set. The spawning without weapons isn't intended, here's some snippets from the files/parts of the files I've added since it stopped working:
all_weapons.xml
Code:
<weapons>
<weapon file="thompson_1928.weapon" />
<weapon file="bar_1918.weapon" />
<weapon file="double_barrel.weapon" />
<weapon file="winchester_1897.weapon" />
<weapon file="m1_garand.weapon" />
<weapon file="m1903_springfield.weapon" />
<weapon file="johnson_lmg.weapon" />
<weapon file="m7_gl.weapon" />
<weapon file="m1919_browning.weapon" />
<weapon file="pipe_bomb_launcher.weapon" />
<weapon file="m1911.weapon" />
<weapon file="model_27.weapon" />
<weapon file="crates.weapon" />
</weapons>
mafia.xml (faction file)
Code:
<?xml version="1.0" encoding="utf-8"?>
<faction name="Mafia" color="0.2 0.2 0.2" firstnames_file="mafia_firstnames.txt" lastnames_file="mafia_lastnames.txt" chat_icon_filename="chat_icon_mafia.png" chat_icon_commander_filename="chat_icon_leader_mafia.png" campaign_completion_icon_filename="campaign_win_2.png">
<rank xp="0.0" name="Nobody">
<hud_icon filename="mafia_rank0.png" />
</rank>
<rank xp="0.05" name="Associate">
<hud_icon filename="mafia_rank1.png" />
</rank>
<rank xp="0.1" name="Goon">
<hud_icon filename="mafia_rank2.png" />
</rank>
<rank xp="0.2" name="Giovane D'Onore">
<hud_icon filename="mafia_rank3.png" />
</rank>
<rank xp="0.3" name="Goomba">
<hud_icon filename="mafia_rank4.png" />
</rank>
<rank xp="0.4" name="Wiseguy">
<hud_icon filename="mafia_rank5.png" />
</rank>
<rank xp="0.6" name="Picciotto">
<hud_icon filename="mafia_rank6.png" />
</rank>
<rank xp="0.8" name="Sgarrista">
<hud_icon filename="mafia_rank7.png" />
</rank>
<rank xp="1.0" name="Soldato">
<hud_icon filename="mafia_rank8.png" />
</rank>
<rank xp="1.2" name="Made Man">
<hud_icon filename="mafia_rank9.png" />
</rank>
<rank xp="1.4" name="Capodecina">
<hud_icon filename="mafia_rank10.png" />
</rank>
<rank xp="2.0" name="Caporegime">
<hud_icon filename="mafia_rank11.png" />
</rank>
<rank xp="5.0" name="Underboss">
<hud_icon filename="mafia_rank12.png" />
</rank>
<rank xp="10.0" name="Consigliere">
<hud_icon filename="mafia_rank13.png" />
</rank>
<rank xp="20.0" name="Boss">
<hud_icon filename="mafia_rank14.png" />
</rank>
<rank xp="50.0" name="Godfather">
<hud_icon filename="mafia_rank15.png" />
</rank>
<rank xp="100.0" name="Crime Lord">
<hud_icon filename="mafia_rank16.png" />
</rank>
<!-- -------------- -->
<!-- default group -->
<!-- -------------- -->
<soldier name="default" spawn_score="1.0">
<character filename="mafia.character" />
<ai filename="default.ai" />
<model filename="mafia_1a.xml" />
<model filename="mafia_1b.xml" />
<model filename="mafia_2a.xml" />
<model filename="mafia_2b.xml" />
<model filename="mafia_3a.xml" />
<model filename="mafia_3b.xml" />
<resources file="common.resources" />
<resources file="mafia_default_weapons.resources" />
<item_class_existence_config>
<!-- secondaries -->
<item_class_existence class="weapon" slot="1" probability="0.4" />
<!-- wearables -->
<item_class_existence class="carry_item" slot="1" probability="0.02" />
<!-- backpack -->
<item_class_existence class="carry_item" slot="0" probability="0.03" />
</item_class_existence_config>
<attribute_config class="rp">
<attribute weight="0.3" min="80.0" max="300.0" />
<attribute weight="0.7" min="0.0" max="0.0" />
</attribute_config>
<attribute_config class="xp">
<attribute weight="1.0" min="0.0" max="0.45" />
</attribute_config>
</soldier>
<!-- -------------- -->
<!-- heavy group -->
<!-- -------------- -->
<soldier name="heavy" spawn_score="0.05">
<character filename="mafia.character" />
<ai filename="default.ai" />
<model filename="mafia_heavy.xml" />
<resources file="mafia_heavy_weapons.resources" />
<item_class_existence_config>
<!-- secondaries -->
<item_class_existence class="weapon" slot="1" probability="1.0" />
<!-- wearables -->
<item_class_existence class="carry_item" slot="1" probability="1.0" />
<!-- backpack -->
<item_class_existence class="carry_item" slot="0" probability="1.0" />
</item_class_existence_config>
<attribute_config class="rp">
<attribute weight="0.3" min="80.0" max="300.0" />
<attribute weight="0.7" min="0.0" max="0.0" />
</attribute_config>
<attribute_config class="xp">
<attribute weight="1.0" min="0.0" max="1.0" />
</attribute_config>
</soldier>
<!-- -------------- -->
<!-- boss group -->
<!-- -------------- -->
<soldier name="boss" spawn_score="0.005" squad_size_xp_cap="0.5">
<character filename="mafia.character" />
<ai filename="elite.ai" />
<model filename="mafia_boss_a.xml" />
<model filename="mafia_boss_b.xml" />
<resources file="mafia_boss_weapons.resources" />
<item_class_existence_config>
<!-- primary -->
<item_class_existence class="weapon" slot="0" probability="0.02" />
<!-- secondaries -->
<item_class_existence class="weapon" slot="1" probability="1.0" />
<!-- wearables -->
<item_class_existence class="carry_item" slot="1" probability="0.0" />
<!-- backpack -->
<item_class_existence class="carry_item" slot="0" probability="1.0" />
</item_class_existence_config>
<attribute_config class="rp">
<attribute weight="1.0" min="500.0" max="500.0" />
</attribute_config>
<attribute_config class="xp">
<attribute weight="1.0" min="50.0" max="100.0" />
</attribute_config>
</soldier>
<!-- -------------- -->
<!-- elite group -->
<!-- -------------- -->
<soldier name="elite" spawn_score="0.002" squad_size_xp_cap="0.5">
<character filename="mafia.character" />
<ai filename="elite.ai" />
<model filename="mafia_elite_a.xml" />
<model filename="mafia_elite_b.xml" />
<model filename="mafia_elite_c.xml" />
<resources file="mafia_elite_weapons.resources" />
<item_class_existence_config>
<!-- secondaries -->
<item_class_existence class="weapon" slot="1" probability="1.0" />
<!-- wearables -->
<item_class_existence class="carry_item" slot="1" probability="1.0" />
<!-- backpack -->
<item_class_existence class="carry_item" slot="0" probability="1.0" />
</item_class_existence_config>
<attribute_config class="xp">
<attribute weight="1.0" min="0.5" max="0.8" />
<attribute weight="0.05" min="1.0" max="10.0" />
</attribute_config>
<attribute_config class="rp">
<attribute weight="1.0" min="500.0" max="500.0" />
</attribute_config>
</soldier>
</faction>
mafia_default_weapons.resources
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources clear_weapons="1">
<!-- Primary -->
<weapon file="thompson_1928.weapon" />
<weapon file="bar_1918.weapon" />
<weapon file="double_barrel.weapon" />
<weapon file="winchester_1897.weapon" />
<weapon file="m1_garand.weapon" />
<weapon file="m1903_springfield.weapon" />
<weapon file="johnson_lmg.weapon" />
<weapon file="m7_gl.weapon" />
<weapon file="m1919_browning.weapon" />
<!--
-->
<!-- Secondary -->
<weapon file="pipe_bomb_launcher.weapon" />
<weapon file="m1911.weapon" />
<weapon file="model_27.weapon" />
<weapon file="crates.weapon" />
<!--
-->
<!-- Tertiary -->
<weapon key="grenade_mkii.weapon" />
<!--
-->
<!-- Calls -->
<!--
<call key="example.call" />
-->
</resources>
mafia_heavy_weapons.resources
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources clear_weapons="1">
<!-- Primary -->
<weapon file="bar_1918.weapon" />
<weapon file="double_barrel.weapon" />
<weapon file="winchester_1897.weapon" />
<weapon file="johnson_lmg.weapon" />
<weapon file="m7_gl.weapon" />
<weapon file="m1919_browning.weapon" />
<!--
-->
<!-- Secondary -->
<weapon key="pipe_bomb_launcher.weapon" />
<weapon key="m1911.weapon" />
<weapon key="crates.weapon" />
<!--
-->
<!-- Tertiary -->
<weapon key="grenade_mkii.weapon" />
<!--
-->
<!-- Carry -->
<carry_item key='mafia_vest.carry_item' enabled="1" />
<!--
-->
<!-- Calls -->
<!--
<call key="example.call" />
-->
</resources>
mafia_boss_weapons.resources
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources clear_weapons="1">
<!-- Primary -->
<weapon key="bar_1918.weapon" />
<weapon key="double_barrel.weapon" />
<!--
-->
<!-- Secondary -->
<weapon key="model_27.weapon" />
<!--
-->
<!-- Tertiary -->
<weapon key="grenade_mkii.weapon" />
<!--
-->
<!-- Calls -->
<!--
<call key="example.call" />
-->
</resources>
mafia_elite_weapons.resources
Code:
<?xml version="1.0" encoding="utf-8"?>
<resources clear_weapons="1">
<!-- Primary -->
<weapon key="thompson_1928.weapon" />
<weapon key="winchester_1897.weapon" />
<weapon key="johnson_lmg.weapon" />
<weapon key="m7_gl.weapon" />
<!--
-->
<!-- Secondary -->
<weapon key="m1911.weapon" />
<weapon key="pipe_bomb_launcher.weapon" />
<!--
-->
<!-- Tertiary -->
<weapon key="grenade_mkii.weapon" />
<!--
-->
<!-- Carry -->
<carry_item key='mafia_vest.carry_item' enabled="1" />
<!--
-->
<!-- Calls -->
<!--
<call key="example.call" />
-->
</resources>
So based on what I thought and what you said, those SHOULD be the only files affecting this problem (without putting every single weapon file in here, but I'm pretty sure those are okay since it wasn't an error like I had before where I made a typo in one of them). It's probably something super simple that I'm missing, which usually happens when I do actual coding. Doesn't hurt to have an extra set of eyes look something over.
I really appreciate you taking the time to help us all out, pasik.