[Script] Station Manager v1.11 (March 27)

The place to discuss scripting and game modifications for X³: Reunion.

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

Detritis Max
Posts: 34
Joined: Fri, 6. Feb 04, 17:51
x4

Post by Detritis Max »

I was wondering if it would be possible to add the option to check which wares the traders are trading in to the individual trader instead of having to go through the station add/remove menu and getting a list of what all the traders attaced to the station are trading.
Nanook
Moderator (English)
Moderator (English)
Posts: 28247
Joined: Thu, 15. May 03, 20:57
x4

Post by Nanook »

Burianek wrote: - traders will unload all of the wares (products and resources) whenever docking with their homebase.
Can you foresee a situation where the returning ship has more product in it's cargohold than the station has space? If so, what happens?
Have a great idea for the current or a future game? You can post it in the [L3+] Ideas forum.

X4 is a journey, not a destination. Have fun on your travels.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

That's already built in. It could already happen when you had more than one trader bringing in resources to the factory.

If that happens, the trader unloads as much of the ware as it can. The rest sits in the cargo bay. It will then not attempt to buy any more of the ware if it's a resource. If it's a product, then it's just going to sit in the cargo bay as the ship makes the rounds, trading other wares. If the opportunity to sell it ever comes up, it will sell it.

Traders always attempt to deal with wares on board as the highest priority. If they're carrying resources, they always try to bring them home. If they're carrying products they always try to sell them. If that's not possible, then they'll look for other wares to trade, and the excess will be transferred to the station if possible, if not, it will just sit in the cargo bay until it can be dealt with.

Can you think of a better way to handle it?
Cheers.
"Nature's first green is gold" . . . stay golden.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

Detritis Max wrote:I was wondering if it would be possible to add the option to check which wares the traders are trading in to the individual trader instead of having to go through the station add/remove menu and getting a list of what all the traders attaced to the station are trading.
It's certainly possible, but I don't want to take up any more of the ship command slots. There are a limited number of them, and those are in high demand. I already feel guilty using two of them.
"Nature's first green is gold" . . . stay golden.
Naffarin
Posts: 481
Joined: Sat, 3. Dec 05, 09:49
x3

Post by Naffarin »

*hint* The topic in the german forum is still at 1.08, might be better to change it to the current version.
User avatar
JuanCudz
Posts: 91
Joined: Mon, 6. Sep 04, 13:59
x3

Post by JuanCudz »

I'm really looking forward to using this, my first x3 script, soon but had a query. The readme in the zip file ver 1.09 mentions a /scripts and /t folder in the zip file but I couldn't see one. Trying to remember my x2 experience I suspect that the two files with numeric starts (4xxxx.xml) belong in one folder and the rest in the other? :?
"I had an Alfredo Garibaldi under my command during the Dilgar invasion. Excellent soldier."
"That's my dad."
"So much for genetics."
-- General Richard Franklin and Garibaldi in Babylon 5:"GROPOS"
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

If you didn't see a /scripts or /t directory in the zip file, you've downloaded the wrong thing.
"Nature's first green is gold" . . . stay golden.
dwgh
Posts: 120
Joined: Wed, 6. Nov 02, 20:31
x4

Post by dwgh »

Try extacting the files to a temporary directory - it doesn't always list the sub-directories in the archive.
User avatar
arcana75
Posts: 2165
Joined: Tue, 2. Dec 03, 09:28
x3tc

Post by arcana75 »

I installed 1.09 and switched it on for my 5xcrystal complex last nite. I restricted 1 freighter to trade in rastar and chelt only (the intermediates), presumably to help buy intermediate stock or sell excess.

Both intermediates were at less than 20% max (2xL).

The freighter proceeded to load all chelt into its freight (~1000 units) and sat there loading chelt as they were made, causing the station complex to blink as the raster oil fabs need chelt to make oil.

Is this the right behaviour?
User avatar
JuanCudz
Posts: 91
Joined: Mon, 6. Sep 04, 13:59
x3

Post by JuanCudz »

dwgh wrote:Try extacting the files to a temporary directory - it doesn't always list the sub-directories in the archive.
Cheers dwgh, that got it :)
"I had an Alfredo Garibaldi under my command during the Dilgar invasion. Excellent soldier."
"That's my dad."
"So much for genetics."
-- General Richard Franklin and Garibaldi in Babylon 5:"GROPOS"
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

arcana75 wrote:I installed 1.09 and switched it on for my 5xcrystal complex last nite. I restricted 1 freighter to trade in rastar and chelt only (the intermediates), presumably to help buy intermediate stock or sell excess.

Both intermediates were at less than 20% max (2xL).

The freighter proceeded to load all chelt into its freight (~1000 units) and sat there loading chelt as they were made, causing the station complex to blink as the raster oil fabs need chelt to make oil.

Is this the right behaviour?
That's not what I thought it would do. Complexes aren't supported yet, so I can't guarantee the behavior. I'd have thought that they'd treat intermediate products the same as resources right now. That's the way I thought we had them set up. But I guess we'll have to take a closer look at them before we officially support complexes. Any feedback about how they're behaving for you is welcome. It will give us things to test when we officially support complexes.
Thanks.
"Nature's first green is gold" . . . stay golden.
haelduksf
Posts: 4
Joined: Tue, 3. Jan 06, 20:42
x3

Post by haelduksf »

This script is a work of genius...almost :)

Ever since I installed it, trading's been much much easier. Problem is, the "dock at" command no longer works at all if I/my ship is in the same sector as the station I/it want(s) to dock at. Manual docking works fine, but the autopilot just doesn't start if I ask it to dock (though it plays the "docking granted, autopilot on" message), and if I order one of my other ships to dock at a station in-sector, it just stops there.

This is the only script I have installed. I installed the new version of A*, but overwrote it with this script when I realized that it didn't do what I wanted.
AalaarDB
Posts: 2282
Joined: Thu, 29. Jan 04, 08:19
x3tc

Post by AalaarDB »

Both A* and Station Manager have been changed to use the XScript Installer.
Redownload the new version of both scripts and you shouldn't have any conflicts.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

arcana75:

I'm betting you have your complex parameter screen set to 'buy&sell' for intermediate products? or simply 'sell'?

Right now complexes are only partially supported. The traders will always attempt to buy intermediate products. This will get fixed in a later version. In the meantime, if you want to use station manager with a complex you need to set that parameter for intermediate products to 'buy'. Then it should work correctly.

Right now, the trader starts to leave your station to buy chelt meat but says, 'hey, i have some right here I can buy' so it buys it from your complex. Then it 'returns home' to your complex to unload it. Then it buys it again, and then unloads it, etc. If you have your complex set to only buy int products, your trader won't attempt to buy chelt from yuor complex anymore.

Complexes should get sorted in the next release. We have to wait for the next Egosoft patch for a few new script commands I think.

Make sense?
Cheers.
"Nature's first green is gold" . . . stay golden.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

Nope, looked into it a little bit more. That's not it.

This is a structural problem due to the fact that the script editor does not contain the correct function calls to support complexes.

You'll have to wait for the next version for complexes to work correctly, sorry.

I think 1.3.1 is supposed to come out soon, and I think people have mentioned that there are a few new complex commands in there, so I think it should work then.

Cheers.
"Nature's first green is gold" . . . stay golden.
User avatar
arcana75
Posts: 2165
Joined: Tue, 2. Dec 03, 09:28
x3tc

Post by arcana75 »

Actually for that particular complex, it was set to YES/NONE... I thought those 2 settings only applied to AI traders :?

aalaardb sent me a fix via PM, I'm not sure what the chronology is here but I'll take a look at that trader again then try the fix.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

Yeah, we think we figured out why it's doing that. You get to be the guinea pig. If it works better for you, the fix will go in when we release the version that officially supports complexes.
Cheers.
"Nature's first green is gold" . . . stay golden.
User avatar
arcana75
Posts: 2165
Joined: Tue, 2. Dec 03, 09:28
x3tc

Post by arcana75 »

Hmm. I manually unloaded its cargo and set command to None then back to Continue a few times. Now it seems it's flying off to buy something instead of doing the load unload thing.

I didn't install the fix yet. I'll monitor and revert.
User avatar
Burianek
Posts: 2981
Joined: Mon, 29. Dec 03, 03:29
x3tc

Post by Burianek »

That's probably because your comples no longer has the lowest buy price. Or the station thinks there's something more important to trade rather than buying chelt meat.

The load / unload thing happens because your trader is getting confused and thinking that your complex (its homebase) is an acceptable station to buy chelt meat from. So it buys it and then 'takes it home to unload' (doesn't move). That's why it appears to be just sitting there.

The fix aalaardb sent you will stop it from considering your complex an ok place to buy from. However, note that complexes still aren't really supported yet, as complexes will only attempt to buy intermediate wares. Once we get the new script commands you'll be able to set if you want to buy or sell them.

Hope this makes sense.
Cheers.
"Nature's first green is gold" . . . stay golden.
User avatar
arcana75
Posts: 2165
Joined: Tue, 2. Dec 03, 09:28
x3tc

Post by arcana75 »

I applied the fix and this is what happened to my Drone Complex and Crystal Complex in Rhonkar's Clouds:

- All Station Manager ships disappear from the sector map (!). The Owned Ships screen says Outbound Rhonkar's Clouds which is the sector of the complex itself. I check but it's not to be seen. RC is NavSat'ed gate to gate.

- Station Manager ships now refuse to do anything, even if its assigned goods have reached 0. eg my SPP-XL carries ~49000 12cr ecells, yet the trader won't buy those cells in the same sector, again Rhonkar's Clouds.

- Some Station Manager ships (like the unload/load TS in prev posts) just fly out empty and return empty instead of doing the load/unload jig. It even goes to a station that doesn't even carry the goods they're assigned (to RC's Trading Dock).

Discoveries were all made within 90mins of installing the fix.

:(

Return to “X³: Reunion - Scripts and Modding”