Author Topic: Expanded NPC Ships  (Read 3513 times)

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Expanded NPC Ships
« on: September 22, 2014, 01:01:15 pm »
UPDATE
It's been a while since I updated this, but I've decided to take it a step further:
This mod now adds more than just some variety to the traders, but also adds faction patrols!


This mod is developed for version 1.2.1 of VoidExpanse, and may be  incompatible with any upcoming versions of the game.

Title: Expanded NPC Ships
Author(s): Flessen

Description:

Adds variety to the NPCs flying around the VoidExpanse.
This mod allows other mods to utilise this feature.

Mod version: 1.3.1
Game version: 1.2.0

Game mode: Singleplayer/Multiplayer


Detailed Description:


This mod changes the script for how traders are spawned from the hardcoded freighter to a randomly picked npc using a similar algorithm to how Pirates are picked. This allows traders to fly more ships than just the Freighter hull.

Also, the same is done for faction "patrols" who wander the galaxy, they will only spawn in their factions territory, or neutral territory. The ships used by these patrols is also picked in the same way.

Other modders can add their custom hulls to the list that these NPCs spawn in.

On its own, this mod adds a chance for traders to spawn in an Endeavor hull, Order patrols to spawn in a Fang, Freedom patrols to spawn in a Stingray, and Fanatics patrols to spawn in an Avalanche Mk II.

Info for modders

To utilise this mod, all you need to do is create an npc (data/npcs) similar to the human_tradership, and put this code inside the data tag:

Code: [Select]
<!-- special info for automatic spawning -->
<spawning>
<tags>trader</tags> <!-- trader, OrderPatrol, FreedomPatrol, FanaticsPatrol -->
<level_from>0</level_from>
<level_to>100</level_to>
<max_in_group>0</max_in_group>
<chance>75</chance> <!-- chance that the NPC will spawn in this hull -->
</spawning>

Simple as that. If the mod user doesn't have this mod installed, they won't see the NPCs, but it won't break their game.

Load order:

Make sure this mod is high in the load order, but after any overhaul mods

Download:
http://www.nexusmods.com/voidexpanse/mods/4/?
http://steamcommunity.com/sharedfiles/filedetails/?id=419995540

Changes:

1.3.2
 - Updated to conform with Version 1.2.1 of VE
1.3.1
 - Updated to conform with Version 1.2.x of VE
 - Expanded the mod to include NPC patrols
 - Added faction hulls for the patrols

1.2.0
 - Updated to conform with Version 1.0.x of VE

1.1.0
 - Updated to conform with Version 0.15.x of VE
« Last Edit: April 07, 2015, 03:27:47 pm by FlessenGreendart »

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Expanded Trader Ships
« Reply #1 on: September 24, 2014, 12:15:17 pm »
Updated to match today's release

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Expanded Trader Ships
« Reply #2 on: October 03, 2014, 03:22:01 pm »
Updated to match 0.10.3

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Expanded Trader Ships
« Reply #3 on: December 26, 2014, 04:38:52 pm »
Updated to match 0.15.3

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Expanded Trader Ships
« Reply #4 on: February 04, 2015, 01:30:13 pm »
Updated for version 1.0.1 (and maybe 1.0.2, will check once it becomes stable)

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Expanded NPC Ships
« Reply #5 on: April 05, 2015, 04:22:30 am »
Finally got around to updating this.
I've also expanded to spawn Faction Patrol NPCS! ;D

FlessenGreendart

  • Full Member
  • ***
  • Posts: 206
    • View Profile
Re: Expanded NPC Ships
« Reply #6 on: April 07, 2015, 03:28:19 pm »
Updated to work with Version 1.2.1 of VE.