This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com
  1. This forum is obsolete and read-only. Feel free to contact us at support.keenswh.com

Get Ore Markers in the Programmable Block

Discussion in 'Modding API' started by DoubleCouponDay, Oct 12, 2016.

Thread Status:
This last post in this thread was made more than 31 days old.
  1. SiBaz Trainee Engineer

    Messages:
    17
    Did this mod ever progress? A lack of any means to programatically interact with an Ore Detector, always seemed a big flaw in the game to me. The most mundane un-fun part being the need to go out and find resources then get setup to mine them. A fun extension would have been to have automated fliers that could go out there and find resources. Did this every get into the main code, or get into a plugin?
     
  2. Malware Master Engineer

    Messages:
    9,867
    No. The great problem is that ore detectors run on the client in multiplayer, while scripts always run on the server. The ore detector is a rather demanding object, so running this on the server is undesirable.
     
  3. SiBaz Trainee Engineer

    Messages:
    17
    Presumably this does work server side, its just inefficient. So, the obvious solution is to cache the response and periodically invalidate the cache.
    Personally though I only play single user, so would be happy with this as is, as a plugin.
    I wasn't aware we could recompile the api side code like this. Are there current instructions somewhere? I don't have Visual Studio, just VS code, so not sure I can compile stuff out of the game. I normally use an opensource toolchain at work.
     
  4. SiBaz Trainee Engineer

    Messages:
    17
  5. Wicorel Senior Engineer

    Messages:
    1,263
    As Malware said, Ore detection and display is done on the Client (mainly for performance reasons).

    PB scripts run on the server. The server doesn't have the ore detection information
     
Thread Status:
This last post in this thread was made more than 31 days old.