Author Topic: Alliance ship cannot buy from alliance factories  (Read 104 times)

Gorbald

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    22
    • View Profile
on: August 24, 2019, 07:18:40 AM
Steps to reproduce:

(0. found an alliance)
1. Build a factory that belongs to your alliance (I tested this on turbine factory)
2. Put all the ingredients there, or wait for NPC traders to supply it with ingredients
3. Build an alliance ship that has a cargo bay, captain and trading system
4. Option A: Dock with the ship to the factory manually and try to buy some produced goods
     Option B: Order the ship to buy 1 produced good from the galaxy map view

Expected behavior:
Produced goods get bought (for free of course)
Actual behavior:
Option A: the buy button in trading menu looks as if it's being clicked, but does nothing
Option B: if the ship has transporter software and block, it flies to the factory and then just stands there. If not, then it repeats the blue and yellow "docking beam" animation (probably indefinitely).

Unfortunately no message appears in server or client logs when this happens.
This bug makes creating "production chains" very difficult, especially on servers that have fighters disabled or limited (cargo shuttles cannot be used instead of captain-flown ships that haul goods between factories)
« Last Edit: August 24, 2019, 07:28:55 AM by Gorbald »



Gorbald

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    22
    • View Profile
on: August 24, 2019, 10:16:06 AM
Unfortunately this is not deterministic. I reproduced it on a public server and in my own "creative mode" galaxy, but then on that public server it mysteriously started working again when I logged in after an hour or so. Sorry that I can't provide more useful info :/



Gorbald

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    22
    • View Profile
on: August 26, 2019, 08:23:57 AM
I now have several factories, and this behaviour is pretty much random. At one time buying from first factory works and from second factory does not work, and the next day it's the other way around. Hopefully you'll be able to reproduce it.



cepheni

  • Developer
  • *
  • Status:
    Offline
    Posts:
    374
    • View Profile
on: August 28, 2019, 05:19:01 PM
We were able to reproduce it and will look into it!



Gorbald

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    22
    • View Profile
on: September 01, 2019, 05:00:17 PM
Thanks! I think the culprits are the  "buy goods from others" and "sell goods to others" options in the factory settings. I noticed that if "sell goods to others" is turned on, then alliance ships buy the goods. I think there is some logical bug that causes the game to think that ships from the same alliance are "others".