Jump to content

Uchiki

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Uchiki

  1.  

    local Distance = range + station.radius - ship.radius

    If you put that formula into line 416 of your haulgoods.lua, your ship shouldn't try to crash into the stations, but it should be able to dock and do business then.

    BTW: That's the formula I'm using in 0.10.0alpha4 now...

     

     

    Although it worked better than before, if the station is very long, it stopped short of approaching the station.

     

    So I tested the formula as follows.

    local Distance = range - ship.radius

     

    In this case, as far as I tested a little, the problems such as stopping and colliding on the way did not occur.

  2. I fixed station.name and tested it with a 2.5 km transporter.

    The ship was ported to Uenhzauz and stacked after selling the goods.

    The ship has not moved from Uenhzauz.

     

    It is the error code at that time.

    : BuyGoods Data: 214 Steel size 1 requested. Updated to 214 and 0 in the cargobay, room for 526 more. Decided to buy 214 more.
    : Sold 214 Steel
    : Finished trade from Yi'now to Uenhzauz
    : haulGoodsGetRoute (Stage 1) finished. Starting to transport 11900 Oxygen from Moyouwua to Nouwrie
    : ERROR: Can't dock to Moyouwua using Transporters. Calculated Distance is -2257.4322414398 meters.
    : ERROR: Can't dock to Moyouwua using Transporters. Calculated Distance is -2257.4322414398 meters.
    : ERROR: Can't dock to Moyouwua using Transporters. Calculated Distance is -2257.4322414398 meters.
    

     

    I am looking forward to 0.10.0alpha4.

  3. Thanks for the mod.

    I tested 0.10.0-alpha2. And in the case without Transporters it did a nice operation.

    Improved dispatchers are great.

    However, it seems that the ship with Transporters is stuck when leaving the station.

     

    The part considered to be the log at that time is below.

    Execution Context (inner to outer):
    #0: updateServer data/scripts/entity/ai/haulgoods.lua
    
    could not execute function 'updateServer' in '"data/scripts/entity/ai/haulgoods.lua"':
    
    data/scripts/entity/ai/haulgoods.lua:425: attempt to concatenate local 'station' (a userdata value)
    stack traceback:
         data/scripts/entity/ai/haulgoods.lua:425: in function 'haulGoodsMoveToStation'
         data/scripts/entity/ai/haulgoods.lua:576: in function <data/scripts/entity/ai/haulgoods.lua:548>
    

     

×
×
  • Create New...