[MOD] Various NPCs

The place to discuss scripting and game modifications for X4: Foundations.

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

Bifidus
Posts: 15
Joined: Sat, 1. Dec 18, 22:38
x4

[MOD] Various NPCs

Post by Bifidus »

WIP
Goal of the mod is to increase the variety of npc appearing on stations.
I was tired of those "we need pilots with this skill and that skill" missions types so this mod aims to adress that by spawning a lot of different NPCs with various skills on stations.

Ideally it would be station-type dependent : Managers on production stations, better pilots on defence stations, traderpilots on trading stations etc... and with a greater number of them to make the stations feels more lively.

https://www.nexusmods.com/x4foundations/mods/27/

If you have any suggestions I'd be glad to hear them
Last edited by Bifidus on Tue, 4. Dec 18, 00:10, edited 1 time in total.
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [MOD] Various NPCs

Post by alexalsp »

Lost tag

Code: Select all

  </character>
 </add>
</diff>
VariousNPCs\libraries\characters.xml

Why are you replacing the whole md?
Have you made a lot of changes to it?
Bifidus
Posts: 15
Joined: Sat, 1. Dec 18, 22:38
x4

Re: [MOD] Various NPCs

Post by Bifidus »

alexalsp wrote: Mon, 3. Dec 18, 22:16 Lost tag

Code: Select all

  </character>
 </add>
</diff>
VariousNPCs\libraries\characters.xml

Why are you replacing the whole md?
Have you made a lot of changes to it?
Thanks I'll correct the tag !
It's my first mod and I don't really know how to replace a specific <library> in a file that big...
For now I just changed the weights and roles of npcs in lines 1047 and 1094, but I wanted to create exceptions for other stations (there's only defence for now) types so I ended up replacing everything while I figure out how to do it properly lol
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [MOD] Various NPCs

Post by alexalsp »

Code: Select all

<add sel="/characters">

not this

<add sel="characters/">
Bifidus
Posts: 15
Joined: Sat, 1. Dec 18, 22:38
x4

Re: [MOD] Various NPCs

Post by Bifidus »

alexalsp wrote: Mon, 3. Dec 18, 23:20

Code: Select all

<add sel="/characters">

not this

<add sel="characters/">
Corrected as well !
I added managers npcs and fixed another mistake or two
User avatar
alexalsp
Posts: 1896
Joined: Fri, 18. Jul 14, 05:28
x4

Re: [MOD] Various NPCs

Post by alexalsp »

Lost tags

</character>

copy this cod its fixed.

Code: Select all

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

<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > 

<add sel="/characters">
<!-- Pilot characters -->
 <character id="pilot_argon_random_rookie" group="argon.pilot">
    <category tags="[crew, pilot, rookie]" faction="[argon, antigone, scaleplate, hatikvah, alliance, faction.player]" race="argon"/>
    <skills>
      <skill type="piloting" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="management" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[argon, antigone]"/>
  </character>
 <character id="pilot_teladi_random_rookie" group="teladi.pilot">
    <category tags="[crew, pilot, rookie]" faction="[teladi, ministry, scaleplate, hatikvah, alliance, faction.player]" race="teladi"/>
    <skills>
      <skill type="piloting" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="management" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[teladi]"/>
  </character>
  <character id="pilot_paranid_random_rookie" group="paranid.pilot">
    <category tags="[crew, pilot, rookie]" faction="[paranid, holyorder, scaleplate, hatikvah, alliance, faction.player]" race="paranid"/>
    <skills>
      <skill type="piloting" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="management" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[paranid]"/>
  </character>
  <character id="pilot_split_random_rookie" group="split.pilot">
    <category tags="[crew, pilot, rookie]" faction="[scaleplate, alliance, faction.player]" race="split"/>
    <skills>
      <skill type="piloting" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="management" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[scaleplate, alliance]"/>
  </character>
 <!-- Manager characters -->
  <character id="manager_argon_random_rookie" group="argon.manager">
    <category tags="[crew, manager, officer, rookie]" faction="[argon, antigone, scaleplate, hatikvah, alliance, faction.player]" race="argon"/>
    <skills>
      <skill type="management" min="4" max="10"/>
      <skill type="morale" max="5"/>

      <skill type="engineering" max="1"/>
      <skill type="piloting" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[argon, antigone]"/>
   </character>
<character id="manager_teladi_random_rookie" group="teladi.manager">
    <category tags="[crew, manager, officer, rookie]" faction="[teladi, ministry, scaleplate, hatikvah, alliance, faction.player]" race="teladi"/>
    <skills>
      <skill type="management" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="piloting" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[teladi]"/>
  </character>
  <character id="manager_paranid_random_rookie" group="paranid.manager">
    <category tags="[crew, manager, officer, rookie]" faction="[paranid, holyorder, scaleplate, hatikvah, alliance, faction.player]" race="paranid"/>
    <skills>
      <skill type="management" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="piloting" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[paranid]"/>
  </character>
  <character id="manager_split_random_rookie" group="split.manager">
    <category tags="[crew, manager, officer, rookie]" faction="[scaleplate, alliance, faction.player]" race="split"/>
    <skills>
      <skill type="management" min="1" max="3"/>
      <skill type="morale" max="3"/>

      <skill type="engineering" max="1"/>
      <skill type="piloting" exact="0"/>
      <skill type="boarding" exact="0"/>
    </skills>
    <owner list="[scaleplate, alliance]"/>
  </character>
 </add>
</diff> 
Bifidus
Posts: 15
Joined: Sat, 1. Dec 18, 22:38
x4

Re: [MOD] Various NPCs

Post by Bifidus »

Oh yeah I copypasted wrong ahah
Thanks :)
Kadatherion
Posts: 1021
Joined: Fri, 25. Nov 05, 16:05
x4

Re: [MOD] Various NPCs

Post by Kadatherion »

Be also very careful of not adding too many npcs to any single station type. From my experience, crowded platforms are the main reason why some of them tank *everyone's* FPS to almost half their common max. The engine probably draws the npcs from too far away, and no matter how undetailed and ugly they may look, their models are probably badly optimized.
But overall, a mod such as this is surely one of the first we need to make platforms feel a little less shallow, populated 99% by crewmen alone, no pilots, (almost) no marines et cetera. Have fun, and welcome to modding :wink:
Bifidus
Posts: 15
Joined: Sat, 1. Dec 18, 22:38
x4

Re: [MOD] Various NPCs

Post by Bifidus »

Kadatherion wrote: Tue, 4. Dec 18, 14:57 Be also very careful of not adding too many npcs to any single station type. From my experience, crowded platforms are the main reason why some of them tank *everyone's* FPS to almost half their common max. The engine probably draws the npcs from too far away, and no matter how undetailed and ugly they may look, their models are probably badly optimized.
But overall, a mod such as this is surely one of the first we need to make platforms feel a little less shallow, populated 99% by crewmen alone, no pilots, (almost) no marines et cetera. Have fun, and welcome to modding :wink:
I didn't get to this part yet but I'll keep it in mind ! The models truely are ugly, the colors, clothes selection and faces are all subpar and don't fit well into the universe or with each other, so when I'm done with the actual spawning I'll definitely look into retexturing some of the worse ones (suits and shirts comes to mind)

I'm glad I wasn't the only one shocked by how sad the platforms feels ! Thanks ! It's much more complicated than I thought it would be (always is, ahah) but I have a lot of free time currently :wink:
liam92
Posts: 49
Joined: Thu, 13. Oct 11, 01:28
x3tc

Re: [MOD] Various NPCs

Post by liam92 »

I dunno, I kinda like Argon Streetwear Guy.


I'll try this once I get home, thanks!
XTC0R
Posts: 401
Joined: Sat, 1. Dec 18, 19:58
x4

Re: [MOD] Various NPCs

Post by XTC0R »

I like the idea to have various looks for pilots, managers, engineers and Marines. But still able see what profession they have.
E.g. Marines all look very military ( weapons, Camouflage) but not all the same.
docwho83
Posts: 168
Joined: Mon, 15. Jun 09, 23:10
x4

Re: [MOD] Various NPCs

Post by docwho83 »

All in all i love this mod. Can get crew almost anywhere now. Only place I have not seen anyone yet was my PHQ that I just built. have 3 habitats built but no food or meds on site yet. so I only have about 11 population out of the 2800 I could have so that could be why I do not see any NPC walking around my PHQ. Was wondering if anyone else has seen any?
My Mods
RepairLasers Player controlled drone Also on steam
[Minefield] fell affliction minefield removed Also on steam
[Buildmodule] add research for buildmodule leak steals
docwho83
Posts: 168
Joined: Mon, 15. Jun 09, 23:10
x4

Re: [MOD] Various NPCs

Post by docwho83 »

Bifidus wrote: Tue, 4. Dec 18, 16:16
Kadatherion wrote: Tue, 4. Dec 18, 14:57 Be also very careful of not adding too many npcs to any single station type. From my experience, crowded platforms are the main reason why some of them tank *everyone's* FPS to almost half their common max. The engine probably draws the npcs from too far away, and no matter how undetailed and ugly they may look, their models are probably badly optimized.
But overall, a mod such as this is surely one of the first we need to make platforms feel a little less shallow, populated 99% by crewmen alone, no pilots, (almost) no marines et cetera. Have fun, and welcome to modding :wink:
I didn't get to this part yet but I'll keep it in mind ! The models truely are ugly, the colors, clothes selection and faces are all subpar and don't fit well into the universe or with each other, so when I'm done with the actual spawning I'll definitely look into retexturing some of the worse ones (suits and shirts comes to mind)

I'm glad I wasn't the only one shocked by how sad the platforms feels ! Thanks ! It's much more complicated than I thought it would be (always is, ahah) but I have a lot of free time currently :wink:
Sadly this is an Egosoft issue. Platforms seam to be a great idea but not to the point that we want to play on them all the time. While I am happy that they stand by there games I came in to the X world on X3:TC 2.0 But still had a crap load of mods I run to make the game more fun and less work to play. Then we got X:R which I like other than the whole plot line. One ship not be able to change out and fly at the world another way.
My Mods
RepairLasers Player controlled drone Also on steam
[Minefield] fell affliction minefield removed Also on steam
[Buildmodule] add research for buildmodule leak steals
User avatar
FalconGrey
Posts: 440
Joined: Thu, 22. Apr 04, 01:53
x4

Re: [MOD] Various NPCs

Post by FalconGrey »

Since installing, I've noticed on Argon equipment docs and Warfs there are now NPCs anymore. Not sure if this is the result of this mod being installed or just coincidence as they were scarce on those huge things to begin with but usually were a few to be seen.... It's like a ghost town now.... and I STILL can't find the casino!
It's not if we win or lose that matters, it's that we stood and faced it.
argon_emperor
Posts: 1225
Joined: Mon, 12. Dec 05, 07:41
x4

Re: [MOD] Various NPCs

Post by argon_emperor »

FalconGrey wrote: Sat, 15. Dec 18, 19:45 Since installing, I've noticed on Argon equipment docs and Warfs there are now NPCs anymore. Not sure if this is the result of this mod being installed or just coincidence as they were scarce on those huge things to begin with but usually were a few to be seen.... It's like a ghost town now.... and I STILL can't find the casino!
Try using it in conjunction with More NPC's. Work great together, and your landing pads will look alive again

https://www.nexusmods.com/x4foundations/mods/96
[ external image ]
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
User avatar
FalconGrey
Posts: 440
Joined: Thu, 22. Apr 04, 01:53
x4

Re: [MOD] Various NPCs

Post by FalconGrey »

argon_emperor wrote: Sat, 15. Dec 18, 20:02
Try using it in conjunction with More NPC's. Work great together, and your landing pads will look alive again

https://www.nexusmods.com/x4foundations/mods/96
Ah!!! Ok! I thought it had something like this in it already! Thanks!
It's not if we win or lose that matters, it's that we stood and faced it.
docwho83
Posts: 168
Joined: Mon, 15. Jun 09, 23:10
x4

Re: [MOD] Various NPCs

Post by docwho83 »

FalconGrey wrote: Sat, 15. Dec 18, 19:45 Since installing, I've noticed on Argon equipment docs and Warfs there are now NPCs anymore. Not sure if this is the result of this mod being installed or just coincidence as they were scarce on those huge things to begin with but usually were a few to be seen.... It's like a ghost town now.... and I STILL can't find the casino!
I found the bar but it is almost not worth it. It is a scan mission out side the station. I been using Signal Leak Hunter to find the audio leaks which leads to bar.
My Mods
RepairLasers Player controlled drone Also on steam
[Minefield] fell affliction minefield removed Also on steam
[Buildmodule] add research for buildmodule leak steals

Return to “X4: Foundations - Scripts and Modding”