AssignToCommander.xml/Start_Default_Script vs assigning mining ship to station

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

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

Browser_ice
Posts: 488
Joined: Sun, 5. Feb 06, 17:15
x4

AssignToCommander.xml/Start_Default_Script vs assigning mining ship to station

Post by Browser_ice »

Hi, I noticed that when I assign a mining ship to a station (in this case a warehouse), the ship does nothing. I have invite/uninvite it a few times before it works or sometimes if it is already full of mining stuffs it can work. It seams very random.

I tried looking in the script for why and I came down to the MD script AssignToCommander.xml. Looking at it, no where does even assumes the ship can be a mining ship. I am trying to find out if this is the root of the problem (my free time is limited so having a bit of help would be nice).

Am I on the right track ?
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060
JESS 246
Posts: 574
Joined: Mon, 3. Jul 06, 03:24
x3

Post by JESS 246 »

HI Browser_ice i have had the same thing and with me it's all trade/miner ships assigned to warehouse there is another similar station affected in the same way sorry cant think of name.

I had posted about it sometime back all i got was negativity well at lease you're not alone by the way i don't build them station anymore and if i do i just leave them alone.
User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13486
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid »

IIrc then the warehouse is a special case since it doesn't produce anything.

If you assign a miner to the manager of a station then he will get a list of collectable (minerals, ice, gas etc.) resources required for any (interim) products of that station. If there aren't any such resources in range or if the station does not require anything then the miner will switch to "free trade" and do nothing.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
Browser_ice
Posts: 488
Joined: Sun, 5. Feb 06, 17:15
x4

Post by Browser_ice »

That is part of what I suspected.

But then that means that NPC mining vs stations was never coded. If was left out for some odd reason.
Ubuntu 24.04 playing with ProtonDB
Intel I7-12700K
32Gb Memory
Nvgidia RTX-3060

Return to “X Rebirth - Scripts and Modding”