[MOD] Reduced Masstraffic V0.3 (Now with alternative 3/4 reduced version)

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

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

User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

kuplo wrote:I'd really like to try this with a 99% reduction as I don't see any performance gain with the current reduction.

Is it just a matter of changing the following tag in the jobs.xml file:
<quota sector="15"/>

To a lower number?
Essentially, yes.
Thanatos00
Posts: 15
Joined: Tue, 2. Feb 10, 18:19
xr

Post by Thanatos00 »

I had a clear performance increase (~20 FPS before, 30 with the mod near the same station). But yea after some seconds poof all the small ships traffic reappear suddenly and fps drops again (ReducedMasstraffic_V0.2).

Keep it up, thanks enenra :)
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

Hmm, can someone please test the problem where masstraffic suddenly reappears by starting a new game alltogether?
Thurmonator
Posts: 205
Joined: Thu, 4. Dec 03, 21:07
x2

Post by Thurmonator »

Testing .2 - the traffic did not appear until a few seconds after dropping you into the game. Until then it is smooth, but then when the traffic appears it is a lot slower . When I disable the mod, the traffic is there right when you drop into the ship and it is smoother than with the mod enabled.

Update : tested a few more times and the 3/4 version doesnt seem to work also. There doesn't seem to be a reduction in traffic volume for me.
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

enenra wrote:
kuplo wrote:I'd really like to try this with a 99% reduction as I don't see any performance gain with the current reduction.

Is it just a matter of changing the following tag in the jobs.xml file:
<quota sector="15"/>

To a lower number?
Essentially, yes.
Okay so I reduced all the quota sector = number from what you provided to 90% less (e.g. 1500 down to 150 and 800 down to 80 and 200 down to 20 etc) but I'm just not seeing a noticeable performance increase. Not at all sure why others are and it seems to me that even reducing the numbers to 90% less I'm seeing far too many of the small ships still in their conga line than they should be. I suppose I could even reduce it by 90% over and take things like 80 to only 8 and see if it reduces the amount of ships proportionately.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

kuplo wrote:
enenra wrote:
kuplo wrote:I'd really like to try this with a 99% reduction as I don't see any performance gain with the current reduction.

Is it just a matter of changing the following tag in the jobs.xml file:
<quota sector="15"/>

To a lower number?
Essentially, yes.
Okay so I reduced all the quota sector = number from what you provided to 90% less (e.g. 1500 down to 150 and 800 down to 80 and 200 down to 20 etc) but I'm just not seeing a noticeable performance increase. Not at all sure why others are and it seems to me that even reducing the numbers to 90% less I'm seeing far too many of the small ships still in their conga line than they should be. I suppose I could even reduce it by 90% over and take things like 80 to only 8 and see if it reduces the amount of ships proportionately.
This is why this is experimental. :)

I cannot guarantee it works. It seems to for some but not for others which is really weird. Could you try starting a new game with the mod enabled from the beginning?
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Yes, tried starting a new sandbox game (since you start in a large station with lots of traffic) and even after I made the reductions down to (things like 200 down to 20) there is a buttload of traffic and no performance increase.

I'm thinking the way to test this might be to reduce all of the numbers in the jobs.xml file down to 0 and see if any of these conga lines persist.

Will try that after dinner.
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Ok, couldn't wait until after dinner. I reduced all numbers to 0 and started new sandbox game but same amount of ships are in the conga lines, should logically be 0 of them so maybe there is something else that needs to be changed someplace in some other file.

Here is screenshot after reducing all quota's to 0
http://steamcommunity.com/sharedfiles/f ... =196542261
Hornet108
Posts: 347
Joined: Thu, 15. Nov 12, 13:46
x4

Post by Hornet108 »

Try a non zero value like 1. Often, zero is an exception case and will default to a known good value. It may be impossible to turn them off all together.

I would say these might trade in-sector with other stations in the same zone for *some* realism, but I think we would gain a lot more by turning these off and turning the number of actual (non-capital) traders right up, might seriously affect the viability of the X:R economy
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Okay, so here's what I've found... Reducing to 0 might be a bad idea as in the uidata.xml file it's full of page after page after page of errors related to this mod, I list just a couple of lines below:

Code: Select all

__CORE_DEBUGLOG_LOG = {
["version"]=2.000000,
["data"]={
[3385.000000]={
["timestamp"]=1384912234.000000,
["message"]="Error: Cannot match path '/jobs/job/[@id='masstraffic_albion_crystal_refinement']' in patch file 'extensions\\ReducedMasstraffic_99percent\\libraries\\jobs'. Skipping node.",},
[818.000000]={
["timestamp"]=1384900453.000000,
["message"]="Error: Cannot match path '/jobs/job/[@id='masstraffic_albion_small_ships_yard']' in patch file 'extensions\\ReducedMasstraffic_V0.2\\libraries\\jobs'. Skipping node.",},
[4986.000000]={
["timestamp"]=1384921448.000000,
["message"]="Error: Cannot match path '/jobs/job/[@id='masstraffic_omicron_sector08_smuggler']' in patch file 'extensions\\ReducedMasstraffic_99percent\\libraries\\jobs'. Skipping node.",},
I'll redownload the mod from this topic and try it with the OP's values to see if any more of these errors show up in the debug log.
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Okay, so using the original 3/4 reduction file and looking in the debug log at uidata.xml I still see tons of this:

Code: Select all

["timestamp"]=1384900453.000000,
["message"]="Error: Cannot match path '/jobs/job/[@id='masstraffic_albion_small_ships_yard']' in patch file 'extensions\\ReducedMasstraffic_V0.2\\libraries\\jobs'. Skipping node.",},
Don't know what it actually means about skipping node, could that mean it's defaulting back to default numbers and not doing anything at all? That might explain why I'm not seeing a reduction in the conga line traffic.

In the uidata file it's found a total of 210 times (lines) searching on ReducedMasstraffic_V0.2 (which in the grand scheme of the uidata file is nothing compared to the total of 29,643 lines in that file)
But that's in my uidata.xml file, it could be more or less in everybody elses. Just seems like "skipping node" might not be a good thing.
MutantDwarf
Posts: 716
Joined: Tue, 20. Jun 06, 02:29
x4

Post by MutantDwarf »

The file as-is won't work; the XML code for replacing looks off. Instead, it should be:

Code: Select all

  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_civilian']/quota/">
      <quota sector="525"/>
  </replace>
And so on.

Specifically, there should be no '/' after 'job' and it should have '/quota/' at the end.

Try that and see how it works.

EDIT: Just tried it out and it seems to work, though it still has the odd 'mass traffic pops into existence after a while for no discernible reason' problem, though when it appears it's now at the reduced levels.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

MutantDwarf wrote:The file as-is won't work; the XML code for replacing looks off. Instead, it should be:

Code: Select all

  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_civilian']/quota/">
      <quota sector="525"/>
  </replace>
And so on.

Specifically, there should be no '/' after 'job' and it should have '/quota/' at the end.

Try that and see how it works.

EDIT: Just tried it out and it seems to work, though it still has the odd 'mass traffic pops into existence after a while for no discernible reason' problem, though when it appears it's now at the reduced levels.
Thanks, I'll look into it. The strange thing is that it seems to work for some people and for others it doesn't.

EDIT: There we go, first potentially fixed version. Could someone please test this?
https://dl.dropboxusercontent.com/u/233 ... c_V0.3.zip

The alternative version will be made as soon as I have confirmation that this works.
X3AP2ea6ea3b
Posts: 1
Joined: Sun, 29. Sep 13, 19:08
x4

Post by X3AP2ea6ea3b »

Im about to test this latest version ill let you know what happens.
User avatar
enenra
Posts: 7150
Joined: Fri, 8. Apr 05, 19:09
x4

Post by enenra »

X3AP2ea6ea3b wrote:Im about to test this latest version ill let you know what happens.
Awesome, thanks!
User avatar
LiveAus
Posts: 74
Joined: Wed, 21. Mar 07, 20:59

Post by LiveAus »

Just tried the 0.3 version and for me the mass traffic still spawns after about 1min :( pesky buggers! :evil:
Argnu beef.. now with 30% less Boron!
Thanatos00
Posts: 15
Joined: Tue, 2. Feb 10, 18:19
xr

Post by Thanatos00 »

MutantDwarf wrote: EDIT: Just tried it out and it seems to work, though it still has the odd 'mass traffic pops into existence after a while for no discernible reason' problem, though when it appears it's now at the reduced levels.
Yea in fact it's possible that the first seconds there isnt any "mass traffic ship" at all, then these small ships appear suddenly. But for me, when they appear it's clearly not at a reduced level (just tried with the mod v0.3, firstly with the game version 1.12, then with the last 1.14 update).
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Thanatos00 wrote:
MutantDwarf wrote: EDIT: Just tried it out and it seems to work, though it still has the odd 'mass traffic pops into existence after a while for no discernible reason' problem, though when it appears it's now at the reduced levels.
Yea in fact it's possible that the first seconds there isnt any "mass traffic ship" at all, then these small ships appear suddenly. But for me, when they appear it's clearly not at a reduced level (just tried with the mod v0.3, firstly with the game version 1.12, then with the last 1.14 update).
Unfortunately, it's the same thing over here.

At first I thought it worked (v0.3) because I only saw a couple ships in the conga line but then I turned my ship around and they all suddenly popped into view and there is no visible reduction of ships that I can detect.

Not complaining, just want to let you know what I've seen, and this is on a new sandbox world/save
MutantDwarf
Posts: 716
Joined: Tue, 20. Jun 06, 02:29
x4

Post by MutantDwarf »

enenra wrote:
MutantDwarf wrote:The file as-is won't work; the XML code for replacing looks off. Instead, it should be:

Code: Select all

  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_civilian']/quota/">
      <quota sector="525"/>
  </replace>
And so on.

Specifically, there should be no '/' after 'job' and it should have '/quota/' at the end.

Try that and see how it works.

EDIT: Just tried it out and it seems to work, though it still has the odd 'mass traffic pops into existence after a while for no discernible reason' problem, though when it appears it's now at the reduced levels.
Thanks, I'll look into it. The strange thing is that it seems to work for some people and for others it doesn't.

EDIT: There we go, first potentially fixed version. Could someone please test this?
https://dl.dropboxusercontent.com/u/233 ... c_V0.3.zip

The alternative version will be made as soon as I have confirmation that this works.
You need to get rid of the "<job id=" stuff, too. Otherwise, what this code is doing is trying to replace a <quota> line with a <job> line.

Here's the code for the version I tested that seemed to work:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <!-- Masstraffic | Cluster -->
  <replace sel="/jobs/job[@id='masstraffic_albion_cluster_civilian']/quota">
      <quota cluster="1"/>
  </replace>

  <!-- Masstraffic | Sector: 4 | Zones: 7 | Stations: 20 -->
  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_police_pmc']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector04_police_hoa']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Sector: 5 | Zones: 8 | Stations: 22 -->
  <replace sel="/jobs/job[@id='masstraffic_albion_sector05_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector05_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector05_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector05_police_pmc']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector05_police_hoa']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Sector: 6 | Zones: 8 | Stations: 21 -->
  <replace sel="/jobs/job[@id='masstraffic_albion_sector06_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector06_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector06_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector06_police_pmc']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector06_police_hoa']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Sector: 7 | Zones: 10 | Stations: 23 -->
  <replace sel="/jobs/job[@id='masstraffic_albion_sector07_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector07_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector07_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector07_police_pmc']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_sector07_police_hoa']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Stations -->
  <replace sel="/jobs/job[@id='masstraffic_albion_big_shipyard']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_cattle_ranch']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_cell_refinery']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_constructionmaterial_production']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_crystal_refinement']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_drone_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_drone_factory']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_farm_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_food_production_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_food_production_plant']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_fuel_station']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_high_energy_construction']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_high_tech_construction']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_laboratory']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_medical_supplies']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_metal_works']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_small_ships_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_small_ships_yard']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_solar_power_plant']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_spice_farm']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_tech_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_water_distillery']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_weaponry_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_weaponry_production']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_wheat_farm']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_albion_pmc_north']/quota">
      <quota station="1"/>
  </replace>

  <!-- DEVRIES | Sectors: 4 | Zones: 25 -->

  <!-- Masstraffic | Cluster -->
  <replace sel="/jobs/job[@id='masstraffic_devries_cluster_civilian']/quota">
      <quota cluster="1"/>
  </replace>

  <!-- Masstraffic | Sector: 18 | Zones: 9 | Stations: 10 -->
  <replace sel="/jobs/job[@id='masstraffic_devries_sector18_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_devries_sector18_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_devries_sector18_criminal']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Stations -->
  <replace sel="/jobs/job[@id='masstraffic_devries_shipyard']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_devries_solar_power_plant']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_devries_water_distillery']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_devries_wheat_farm']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_devries_spp_xl']/quota">
      <quota station="1"/>
  </replace>

  <!-- OMICRON LYRAE | Sectors: 4 | Zones: 31 -->

  <!-- Masstraffic | Cluster -->
  <replace sel="/jobs/job[@id='masstraffic_omicron_cluster_civilian']/quota">
      <quota cluster="1"/>
  </replace>

  <!-- Masstraffic | Sector: 8 | Zones: 7 | Stations: 14 -->
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector08_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector08_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector08_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector08_police']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Sector: 9 | Zones: 7 | Stations: 16 -->
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector09_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector09_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector09_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector09_police']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Sector: 10 | Zones: 9 | Stations: 16 -->
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector10_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector10_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector10_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector10_police']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Sector: 11 | Zones: 8 | Stations: 15 -->
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector11_civilian']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector11_smuggler']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector11_criminal']/quota">
      <quota sector="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_sector11_police']/quota">
      <quota sector="1"/>
  </replace>

  <!-- Masstraffic | Stations -->
  <replace sel="/jobs/job[@id='masstraffic_omicron_bofu_plant']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_cell_refinery']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_constructionmaterial_production']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_crystal_refinement']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_drone_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_drone_factory']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_farm_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_high_energy_construction']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_high_tech_construction']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_laboratory']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_medical_supplies']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_metal_works']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_plankton_tank']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_shipyard']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_small_ships_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_small_ships_yard']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_solar_power_plant']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_soy_farm']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_spacefuel_production']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_spice_farm']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_spice_farm']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_tech_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_weaponry_complex']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_weaponry_production']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_water_distillery']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_omicron_orbital_l']/quota">
      <quota station="1"/>
  </replace>

  <!-- MAELSTROM -->

  <!-- Masstraffic | Cluster -->
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_cluster_civilian']/quota">
      <quota cluster="1"/>
  </replace>

  <!-- Masstraffic | Stations -->
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_megafarmlands']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_split_lostcolony_macro']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_xenon_water_l']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_xenon_water_m']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_xenon_water_xl']/quota">
      <quota station="1"/>
  </replace>
  <replace sel="/jobs/job[@id='masstraffic_maelstrom_xenon_water']/quota">
      <quota station="1"/>
  </replace>
</diff>

EDIT: Hrm. Just tried reducing all of the quotas to 1 and it didn't change anything. Maybe I was wrong about it working before. Bah:/

Still stand by my position that this is the correct format, though.

EDIT2: Tested a few version and figured out the problem. It can't have the '/' at the end of 'quota'.

The code I posted effectively removed mass traffic from the universe.
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Wish I knew why it won't work for me. I've still got those conga lines of ships in a new game (sandbox) that I started after pasting your code in place of the existing code in the jobs.xml file.

Return to “X Rebirth - Scripts and Modding”