It is currently Sun Apr 28, 2024 12:52 am

RUNNING WITH RIFLES Multiplayer

test

Game servers 42 List provided by EpocDotFr | Players online 35


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Fri Jun 17, 2016 2:21 am 
Offline

Joined: Thu May 26, 2016 8:30 pm
Posts: 9
Hey all,

I'm having another problem. I just finished my third faction and I'm getting some weird errors in the log.

I don't THINK I did anything wrong, it could be a typo somewhere, but there's so many freaking files I've created/edited that it's going to take way more time than I have to possibly find something I may have done wrong.

So I figured if anyone can point me in the right direction as to which type of file (weapons, factions, loadouts, etc), it would save me a lot of time and I can get more work done on the mod faster.

So the main thing is this: Everyone in this faction is spawning without any weapons, and there are no weapons in the armory to buy other than universal weapons/items shared by all factions. The warning is as follows in rwr_game.log:

Code:
22:08:24: Setting init data, machine id = 0
22:08:24: init data set done
22:08:24: WARNING, spawning person at start, secondary weapon not set


Then the WARNING repeats a million times, sometimes instead of "spawning person at start" it's "simulate" or "devirtualize", the latter usually comes before/after the warning:

Code:
22:08:33: Can't assign material _missing_material_ to SubEntity of Ogre/MO524 because this Material does not exist. Have you forgotten to define it in a .material script?

where MO524 is varies (Always MO###). Not sure why there would be a material error, because I haven't touch .material files or edited anything that uses .material files to my knowledge. I worked this faction basically the same way as the other 2 I made, using them as a template and just editing to make life easier.

I assume it's something with a weapon I defined as a secondary, such as a pistol or rocket launcher, but I can't find anything wrong with the .weapon files for those weapons. If anyone could shed light on where the problem may have originated I'd be super grateful!



TLDR I'm getting the error "WARNING, spawning person at start, secondary weapon not set" where sometimes "spawning person at start" is "simulate" or "devirtualize".

Thanks,
TrIggA64


Top
 Profile  
 
PostPosted: Fri Jun 17, 2016 8:18 am 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
Those warnings you probably don't have to worry about too much. There was a time when secondary weapons were required by the implementation, so the first warning is likely a leftover from those times. The second warning is something we can't avoid and is coming from Ogre3D, the graphics engine RWR uses; the material is replaced at a later time.

I'll remove the secondary weapon warnings.

Is it intentional for the mod that the factions are spawning without weapons?

If not, you should look into your faction xml files. You probably have a list of weapons and other items (or a resource file reference) for every <soldier> you have defined. Odds are there's something wrong or missing around there. You could post some of the files for us to see, too.


Top
 Profile  
 
PostPosted: Fri Jun 17, 2016 6:00 pm 
Offline

Joined: Thu May 26, 2016 8:30 pm
Posts: 9
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.


Top
 Profile  
 
PostPosted: Tue Jun 21, 2016 8:35 pm 
Offline
Site Admin

Joined: Mon Jun 27, 2011 11:59 am
Posts: 2856
All right, one issue is around here:
Code:
<resources clear_weapons="1">

  <!-- Primary -->
    <weapon file="bar_1918.weapon" />
...


The .resources files expect the items to be referenced with keys rather than filenames. So <weapon key="bar_1918.weapon" /> is what you'd want to have here (assuming you followed the vanilla way of naming the keys inside weapon files same as filenames). Seems you have it correct with some cases tho, so this might not explain everything about missing weapons.

Another thing, might not be much of an issue yet, is here
Code:
     <resources file="common.resources" />
      <resources file="mafia_default_weapons.resources" />

Whatever weapons common.resources includes, mafia_default_weapons.resources clears with clear_weapons="1". Could be intended or not.


Top
 Profile  
 
PostPosted: Wed Jun 22, 2016 12:09 am 
Offline

Joined: Thu May 26, 2016 8:30 pm
Posts: 9
Oh, right, because at the top of the files it clears the weapons. I forgot about that, not intended so thanks for catching that.

I'll check out the other issue with the keys as well. Thanks again.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group