[Help] Creating new licences

The place to discuss scripting and game modifications for X Rebirth.

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

Clownmug
Posts: 419
Joined: Wed, 11. Dec 13, 02:39
x4

[Help] Creating new licences

Post by Clownmug »

Today I thought of an idea for new licences to add to the game but I've run into a problem.

There's a variable for the "type" of licence but it's restricted to the predefined values of police, military, intoxicants, etc. I don't see any way to make a new licence type. The debug says it's invalid if I omit the variable or input something else.

So, how do I create a new type of licence? Or, how can I create new licences without reusing a predefined type?
Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp »

No idea, but I support this product and/or service.

Some kind of police license for DV would be pretty cool. They keep thanking me for popping the Rievers but I want some cold hard dosh too :)
Clownmug
Posts: 419
Joined: Wed, 11. Dec 13, 02:39
x4

Post by Clownmug »

Adding a police licence for Republic of Cantera should be possible already but I want to add a completely new type of licence as well, something like a "Stock Broker" licence.

Now I'm wondering if there's a way to edit the factions.xsd. I've seen other mods include xsd files but I don't know how that works compared to just doing xml patching.

Here's the part that I think I need to change/add to:

Code: Select all

  <xs:simpleType name="licencelookup">
    <xs:restriction base="xs:string">
      <xs:enumeration value="hazardousmaterials" />
      <xs:enumeration value="intelligence" />
      <xs:enumeration value="intoxicants" />
      <xs:enumeration value="military" />
      <xs:enumeration value="pharmaceuticals" />
      <xs:enumeration value="police" />
      <xs:enumeration value="protectedspecies" />
    </xs:restriction>
  </xs:simpleType>
solntcev
Posts: 357
Joined: Thu, 27. Jun 13, 18:33
x4

Post by solntcev »

You can remove one of existing licenses from XSD file and test, if it used in actual game.
It will crash, or remove one of licenses in game if it used.

Return to “X Rebirth - Scripts and Modding”