Hey, Great mod, thanks for the help in the comments so far. I'm just wondering if you can explain step-by-step whether this is correct?
I placed the mod in the 'extensions folder'. So the path looks like this:
extensions/More NPC/md
in the "More NPC" folder, there is a file called "content.xml". I did not touch this file.
in the "md" folder, there is "NPC_installation.xml". In this file, I replaced the text with:
<!-- must explicitly be of this faction --> <replace sel="//set_value[@name='this.$RemainingAmount' and @exact='[(this.$AllSlots.count * 0.85f * player.chardensity)i - this.$CurrentNPCs.count, 0].max']"> <set_value name="this.$RemainingAmount" exact="50"/> </replace>
I do not feel that there is any difference in NPC number on stations. Did I do something wrong? I noticed the old file has </diff> as the last line. Do I need that? Should I use the text that's currently in the downloaded mod, or the 5.10? I'm running the latest version of X4.
I was just testing this mod with it on and off, starting a new game like that, and the mod appears to not be working. It makes no difference. Some stations might have less npc's than they had without the mod, but maybe that was just a coincidence.
<!-- must explicitly be of this faction --> <replace sel="//set_value[@name='this.$RemainingAmount' and @exact='[(this.$AllSlots.count * 0.85f * player.chardensity)i - this.$CurrentNPCs.count, 0].max']"> <set_value name="this.$RemainingAmount" exact="50"/> </replace>
Nicely done. I've used this for the last couple of years and have a little over 600 hours of game time with this installed.
I recently started a new playthrough, as a Yaki Pirate this time, and noticed that your mod doesn't seem to affect the Yaki bases. All others work fine, but the Yaki bases are devoid of any additional NPC's.
Hella nice work with this, Shamon! As far as I can tell...seems to be working as advertised with current game v4.20! I followed an older comment posted below, about changing a variable in the xml file, from 100 to 50, and I noticed a difference more than when it was set to 100 (and flying to another sector also helped in noticing the change)!
Also, I noticed that the folder to be extracted and placed into the extensions folder is named 'More NPC'...now I don't know if it makes a difference with the naming structure, but I noticed that no other mods ever have spaces in their folder names...furthermore, within the xml file, I noticed the ID name for the mod is 'More_NPC'...again, don't know if this matters...but just to be sure, I renamed the 'More NPC' folder to 'More_NPC'.
Stations feel more alive with more npcs! Thank you for this! Endorsed!!
find the file named 'NPC_Instantiation.xml' in this mod's archive ...change 100 to whatever you want, but keep in mind that higher numbers might break the game (or not, who knows, lol!)
44 comments
Is this working for anyone in 7.5?
Right now it does not work for me for some reason
The version there for "More NPC" mod is 1.3.1
I placed the mod in the 'extensions folder'. So the path looks like this:
extensions/More NPC/md
in the "More NPC" folder, there is a file called "content.xml". I did not touch this file.
in the "md" folder, there is "NPC_installation.xml". In this file, I replaced the text with:
<!-- must explicitly be of this faction -->
<replace sel="//set_value[@name='this.$RemainingAmount' and
@exact='[(this.$AllSlots.count * 0.85f * player.chardensity)i -
this.$CurrentNPCs.count, 0].max']">
<set_value name="this.$RemainingAmount" exact="50"/>
</replace>
I do not feel that there is any difference in NPC number on stations. Did I do something wrong? I noticed the old file has </diff> as the last line. Do I need that? Should I use the text that's currently in the downloaded mod, or the 5.10? I'm running the latest version of X4.
Thanks again!
<!-- must explicitly be of this faction -->
<replace sel="//set_value[@name='this.$RemainingAmount' and @exact='[(this.$AllSlots.count * 0.85f * player.chardensity)i - this.$CurrentNPCs.count, 0].max']">
<set_value name="this.$RemainingAmount" exact="50"/>
</replace>
Btw do i need to delete everything inside that XML and replace it with this or only some part of it and keep something ?
Or you are using mods that cause conflict.
I recently started a new playthrough, as a Yaki Pirate this time, and noticed that your mod doesn't seem to affect the Yaki bases. All others work fine, but the Yaki bases are devoid of any additional NPC's.
<?xml version="1.0" encoding="utf-8" ?>
<diff>
<replace sel="//set_value[@name='this.$RemainingAmount' and @exact='(this.$AllSlots.count * 0.85f * player.chardensity)i']">
<set_value name="this.$RemainingAmount" exact="50"/>
</replace>
</diff>
Also, I noticed that the folder to be extracted and placed into the extensions folder is named 'More NPC'...now I don't know if it makes a difference with the naming structure, but I noticed that no other mods ever have spaces in their folder names...furthermore, within the xml file, I noticed the ID name for the mod is 'More_NPC'...again, don't know if this matters...but just to be sure, I renamed the 'More NPC' folder to 'More_NPC'.
Stations feel more alive with more npcs! Thank you for this! Endorsed!!
У меня не осталось старых файлов для сравнения.
<?xml version="1.0" encoding="utf-8" ?>
<diff>
<replace sel="//set_value[@name='this.$RemainingAmount' and @exact='(this.$AllSlots.count * 0.85f * player.chardensity)i']">
<set_value name="this.$RemainingAmount" exact="50"/>
</replace>
</diff>