[Request] Mod to Clear Trade Queue in a Sector/Zone

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

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

SyberSmoke
Posts: 655
Joined: Sat, 11. Feb 12, 04:03
x4

[Request] Mod to Clear Trade Queue in a Sector/Zone

Post by SyberSmoke »

I have become faced with an issue, I dislike ships just lingering at a dock not doing anything. But in my efforts to clear these guys out...usually by capture or detonation. I have found one ship that I can not touch.

This ship is in Auspicious Excavation, the same place I started building a station. My efforts to build a station coupled with large amounts of traffic to the cell fab by Weapons Freighters has resulted in a freighter pileup of 20 freighters.

If this was not bad enough, there is an Energy Freighter sitting at the Cell Fab clogging up the works. The problem is, if I kill or capture the energy freighter the game crashes. My guess is that when that lone freighter is removed from the station queue...a flood of requests occurs and wham...crash.

So the request, I would like a mod that I can, in the game, use to clean out all of the queues in a given area. That way I can not only unlock the Energy Freighter, but can also wipe what I think is the cause of my crash.
User avatar
Sandalpocalypse
Posts: 4447
Joined: Tue, 2. Dec 03, 22:28
x4

Post by Sandalpocalypse »

Jey's trade script thing might work.

I would clean out or even just delete this ship in the savefile, though.
Irrational factors are clearly at work.
Jey123456
Posts: 259
Joined: Sat, 23. Nov 13, 09:48
x4

Post by Jey123456 »

my wip (and very soon mod) indeed greatly aleviate that, since large freighter use a parallel reservation system (separated from player reservation so player can still steal an ai route / see what the ai is going to trade).

Altho once the universe dry out of certain resources, the freighters related to those resources will end up stuck in waiting position for quite some time. Default behavior is for them to idle around randomly so that they look like they are doing something, but i disabled it in my mod so i could quickly see if something is wrong heh.
Jey123456
Posts: 259
Joined: Sat, 23. Nov 13, 09:48
x4

Post by Jey123456 »

as for your crash, i seen similar crash if you destroy a medium freighter while its docked for trade (the small ones that you cant dock in). I do not know of any way to fix it tho. Even a mod that attempt a full reset, cannot actually reset an ai from a stuck trade position.

You could try finding the captain of the ship in your save xml, and edit its blocking index to be +1 of what its now, to force it to jump to the next step, but be warned this could seriously **** up things since it will end up resuming from a blocking index different from the one it got in.
SyberSmoke
Posts: 655
Joined: Sat, 11. Feb 12, 04:03
x4

Post by SyberSmoke »

Actually I think I figured out the crash that was happening. Reverting to about 1.5 hours earlier, I got the station to kill the ship in dock...Go Go touchy station guns!! Any way just after the ship exploded I received a notice of a trade offer with a time of -600 minutes plus some.

I did the math and it looks like the energy trader was stuck there for the duration of the game. The freighter was also holding the trade offer some how and when the ship was killed...the offer was released. It was the release of the offer that crashed my game 20-50 seconds later...how I do not know...but the game did not like it being 10 hours older then it should have been.

Return to “X Rebirth - Scripts and Modding”