Jump to content

EarnestErnest

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by EarnestErnest

  1. What's wrong with the shipyard captain currently?

     

    If you use the normal shipyard you can buy a captain for 160 Credits on the shipyard so i fix this in my mod.

    Because a Captain costs 7500 on hiring pools.

     

    I think that with the 10.5 update that gets solved

  2. To those that also encountered the problem:

     

    Background: When you order a ship to guard your position, it just stops and refuses to do any other orders

    Problem: This seems to happens because it is trying to index a nil value to a ship variable. The function OnGuardButtonPressed is  not successful.

    Possible Solution: A local ship variable is used in the function and it was never instantiated before. I instantiated it after CheckCaptain evaluation to store the craft entity of the Player(me). After that, the error message doesn't appear when ordering to guard the position and the targeted ship effectively guards where you were at the moment of giving the order

     

    Ill upload the new craftorder.lua version with the correction.. beware that it will overwrite any effect that any mod had on that file before. You have to place this file in "\data\scripts\entity"

     

    If you want to modify it yourself instead: Just add the following in craftorder.lua inside the OnGuard Function, after "if checkCaptain() then" (see image below)

     

     

    local ship = Player().craft

     

     

    2017-03-02_03_00_50-ERROR_AVORION_-_Paint.jpg.eb6313f6f18c6105f71577435d07f788.jpg

    craftorders.zip

×
×
  • Create New...