Jump to content

Help with adding a unit into the armory


Nider001

Recommended Posts

I tried to add an advent stun lancer m3 without the sword (xlancer) by using this guide: https://www.reddit.com/r/xcom2mods/comments/45rwal/how_to_add_aliens_to_the_armory_tutorial/

The unit works, if I spawn it manually on the map, but refuses to appear in the armory. I spent about 5 hours trying to solve this problem with my limited knowledge without any results. Can someone please help me? Here's the mod: https://drive.google.com/file/d/0B77IVckNKXhFWlBCanVaOVAzblk/view?usp=sharing

Also, is it possible to actually enable the sword for lancer? Because currently he spawns without one.

Link to comment
Share on other sites

I'm not sure if the person who wrote that guide is the same person who made this mod:

http://www.nexusmods.com/xcom2/mods/163/

But the mod works, and I was able to modify that mod to add a viper:

http://forums.nexusmods.com/index.php?/topic/3825375-playable-mecs-help-requested/

The author is actively working on more, and so am I. I would like to have the viper spit and bind. But, I don't know how long it will take me to figure out.

 

Regarding your mod, I find it hard to look through another mod to find out what may be missing. Are you able to get the example weapon mod working? You can add `log statements to your files, and run the game with the -log option, to make sure your functions are being called.

 

What is the particular console command you are using to spawn your soldier? I wasn't aware of that one; for testing my mod, it would be quicker than waiting in the strategy layer for a mission to come up.

Link to comment
Share on other sites

I used "dropunit" to spawn a unit. As I said, the unit itself works normally, so there's someting wrong with the add-to-armory thing. (I don't really understand what's going out in this file.) And yes, I tried to copy the file from that MEC mod. Still nothing. Haven't tested the example weapon mod yet

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...