Jump to content

Recommended Posts

If you refer to soldiers using the unarmed animation in combat, thats because you didnt set up the animations. The game automatically looks for an animations folder with the name of the weapon the soldier carries, ie. "weapon.rifle" folder contains animations/images for a soldier using a rifle.

Create a folder with "weapon.xxxxx" using the name of the weapon (in the weapons XML) in every armour folder. Then you need to decide wich stock weapon will represent your weapon and add the "soldier_spectre.xml" file of that folder to yours, so the game will look at your folder and use the chosen animations. You could render your own animations but that could be very work intensive.

The "soldier_spectre.xml" file is compressed and not usable, but seems there is a tool that can uncompress it or just say what file you want to use and I can upload it for you to get it.

If none of this looks clear to you (Im not the best explaining things specially not in my language) you can check this mod:

https://www.dropbox.com/s/1clhc8oh7sij4jo/Special%20Weapons%2018.51.zip

You dont need to install it, but it has everything you need to fully add a new weapon so you can take a look and see what you are missing.

Link to comment
Share on other sites

Which files have you adjusted so far?

There used to be a spectre_soldier.xml file required in the proper place in order for a new weapon to show up properly in the ground combat.

This was a long time ago when I created a new weapon, it could be different now.

Could try it and see if it works still.

In assets/units/xenonaut/ there is a list of armour types.

In each of those armours you needed to add a folder with the name you gave your weapon in weapons_gc.xml, following the naming convention of the other folders.

In that weapon folder you had to put a spectre file that directed the game to the proper animation for each action.

So if your new weapon was called weapon.NewRifle in weapons_gc.xml you would go into assets/units/xenonaut/armour.basic and create a folder named weapon.NewRifle with a soldier_spectre and any custom animations you wanted to use.

Or you could just direct the game to an existing set of animations using the spectre.

Sample spectre:

<?xml version="1.0" encoding="utf-8"?>

<spectre id="farmer" version="1">

<state id="default" name="robot" pivotX="36" pivotY="67" sortPoint="0.49">

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_w" anim="walk_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_e" anim="walk_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_n" anim="walk_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_s" anim="walk_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_nw" anim="walk_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_ne" anim="walk_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_sw" anim="walk_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/run_se" anim="walk_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_w" anim="idle_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_e" anim="idle_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_n" anim="idle_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_s" anim="idle_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_nw" anim="idle_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_ne" anim="idle_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_sw" anim="idle_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/idle_se" anim="idle_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_w" anim="death_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_e" anim="death_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_n" anim="death_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_s" anim="death_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_nw" anim="death_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_ne" anim="death_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_sw" anim="death_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/death_se" anim="death_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_w" anim="crouch_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_e" anim="crouch_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_n" anim="crouch_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_s" anim="crouch_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_nw" anim="crouch_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_ne" anim="crouch_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_sw" anim="crouch_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouch_se" anim="crouch_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_w" anim="crouchidle_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_e" anim="crouchidle_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_n" anim="crouchidle_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_s" anim="crouchidle_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_nw" anim="crouchidle_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_ne" anim="crouchidle_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_sw" anim="crouchidle_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchidle_se" anim="crouchidle_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_w" anim="up_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_e" anim="up_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_n" anim="up_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_s" anim="up_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_nw" anim="up_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_ne" anim="up_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_sw" anim="up_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/uncrouch_se" anim="up_DK"/>

<anim src="units/xenonaut/none/grenade_w" anim="grenade_NY"/>

<anim src="units/xenonaut/none/grenade_e" anim="grenade_K"/>

<anim src="units/xenonaut/none/grenade_n" anim="grenade_E"/>

<anim src="units/xenonaut/none/grenade_s" anim="grenade_D"/>

<anim src="units/xenonaut/none/grenade_nw" anim="grenade_ENY"/>

<anim src="units/xenonaut/none/grenade_ne" anim="grenade_EK"/>

<anim src="units/xenonaut/none/grenade_sw" anim="grenade_DNY"/>

<anim src="units/xenonaut/none/grenade_se" anim="grenade_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_w" anim="leanin_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_e" anim="leanin_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_n" anim="leanin_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_s" anim="leanin_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_nw" anim="leanin_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_ne" anim="leanin_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_sw" anim="leanin_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/lean_se" anim="leanin_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_w" anim="leanout_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_e" anim="leanout_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_n" anim="leanout_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_s" anim="leanout_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_nw" anim="leanout_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_ne" anim="leanout_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_sw" anim="leanout_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/unlean_se" anim="leanout_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_w" anim="leanidle_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_e" anim="leanidle_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_n" anim="leanidle_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_s" anim="leanidle_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_nw" anim="leanidle_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_ne" anim="leanidle_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_sw" anim="leanidle_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/leanidle_se" anim="leanidle_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_w" anim="injured_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_e" anim="injured_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_n" anim="injured_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_s" anim="injured_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_nw" anim="injured_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_ne" anim="injured_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_sw" anim="injured_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/injury_se" anim="injured_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_w" anim="singleshot_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_e" anim="singleshot_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_n" anim="singleshot_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_s" anim="singleshot_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_nw" anim="singleshot_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_ne" anim="singleshot_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_sw" anim="singleshot_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/singleshoot_se" anim="singleshot_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_w" anim="burstshot_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_e" anim="burstshot_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_n" anim="burstshot_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_s" anim="burstshot_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_nw" anim="burstshot_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_ne" anim="burstshot_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_sw" anim="burstshot_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/burstshoot_se" anim="burstshot_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_w" anim="crouchsingleshot_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_e" anim="crouchsingleshot_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_n" anim="crouchsingleshot_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_s" anim="crouchsingleshot_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_nw" anim="crouchsingleshot_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_ne" anim="crouchsingleshot_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_sw" anim="crouchsingleshot_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchsingleshoot_se" anim="crouchsingleshot_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_w" anim="crouchburstshot_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_e" anim="crouchburstshot_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_n" anim="crouchburstshot_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_s" anim="crouchburstshot_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_nw" anim="crouchburstshot_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_ne" anim="crouchburstshot_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_sw" anim="crouchburstshot_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/crouchburstshoot_se" anim="crouchburstshot_DK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_w" anim="vault_NY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_e" anim="vault_K"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_n" anim="vault_E"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_s" anim="vault_D"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_nw" anim="vault_ENY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_ne" anim="vault_EK"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_sw" anim="vault_DNY"/>

<anim src="units/xenonaut/armour.basic/weapon.sniper/vault_se" anim="vault_DK"/>

</state>

</spectre>

That is an old spectre, might work still if you want to try it but no promises.

Create a new text file, paste that text into it and save it as soldier_spectre.xml

If it was in a weapon folder as described above it should make that weapon use the precision ballistic rifle animations.

To use it for another armour type just find/replace armour.basic with armour.jackal and so on and put it in the proper folder.

Link to comment
Share on other sites

the sniper folder is empty, it uses the rifle animations. If you direct the game to the sniper folder in the soldier_spectre then theres nothing there to use.

Here you have a soldier_spectre for all armours using the rifle. Change the name of the folders to "weapon." and the name of your weapon and it will work using the rifle animations.

https://www.dropbox.com/s/vt5iq2k4mdr6dig/Soldier%20Spec.zip

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...