How do i change the animation of the security guard npc?

The place to discuss scripting and game modifications for X Rebirth.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Skeeter
Posts: 3712
Joined: Thu, 9. Jan 03, 19:47
x3

How do i change the animation of the security guard npc?

Post by Skeeter »

I have extracted the 02 cat file etc and found in assets/characters character_components.xml

At the end is 2 entrys im interested in. 1 is the holo dancer and one is the security guard.

I want to make the security guard dance like the holo girl just for laughs and to learn modding so a quick flick of some data i thought would be easy enough to do.

Im not sure i understand exactly what i need to put in the extensions area of what is changed.

What i have in extensions folder is a basic contents xml file with name of mod etc and in that folder i have a assets folder and then a characters folder with the file character_components.xml in with this in it.

Code: Select all

<diff>
  <!--  securityguardnpc -->
  <replace name="character_deco_security_guard_01" class="npc"> 
   <animations>
            <animation name="dancing01" ref="assets/characters/argon/animations/anim_decoration_dance" />
      </animations>
   <transitions>
            <transition start="standing" end="standing" animation="dancing01" />
          </transitions>
 </replace>
</diff>
I thought that would change the sec guards data from what it was into what the holo girls stuff was mainly the dancing01 and the anim_decoration_dance things. But its not working the sec guards still just standing there.

What am i doing wrong per say?

Edit - Think ive noticed a error but still having issues.

Code: Select all

<diff>
  <!--  securityguardnpc -->
  <replace sel="character_*\component[@name='character_deco_security_guard_01']\animation[@name='decoration01']\transition[@animation='decoration01']">
  
        <animation name="dancing01" ref="assets/characters/argon/animations/anim_decoration_dance" />
      
              
        <transition start="standing" end="standing" animation="dancing01" />
          
        
		</replace>
</diff>
Still doesnt work i think im doing it almost right but still not sure, any help?[/code]
[ external image ]
7600x cpu 5.4ghz 32gb DDR5 5600mhz 6700XT 32" 1440p mon
MarcusX3
Posts: 34
Joined: Sun, 26. Nov 06, 22:09
x4

Post by MarcusX3 »

No idea, but it might be as I have seen before that the use of the
"-usesinglefiles" starting parameter has any bearing... possibly, it's used with unfinished mods? The extracted assets I think take less preference than cats... I could be mistaken.. someone correct me if im wrong.
'Endless money forms the sinews of war' cicero
Vim Razz
Posts: 1842
Joined: Tue, 2. Nov 10, 02:20
x4

Post by Vim Razz »

quick note: Skeeter did eventually figure this out finish the mod.
and it's awesome. :D -- http://forum.egosoft.com/viewtopic.php?t=354349
MarcusX3
Posts: 34
Joined: Sun, 26. Nov 06, 22:09
x4

Post by MarcusX3 »

are there more animations in the file other then dance1?, perhaps theres a weapon ready or salute?
'Endless money forms the sinews of war' cicero

Return to “X Rebirth - Scripts and Modding”