The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.12 (Linux)
File Line Function
/showthread.php 906 errorHandler->error

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PowerCell can't be found using radar() while in PowerPlant
When the new PowerCell is produced, calling
doesn't return it.

I have written small program to demonstrate this behaviour:
extern void object::GetPowerCell()
    object pPlant, pCell;
    // place PowerPlant nearby
    produce(flatspace(position, 0), 0, PowerPlant, "");
    pPlant = radar(PowerPlant);
    // grab Titanium
    produce(position, 0, Titanium, "");
    // detect PowerCell in PowerPlant only
    pCell = radar(PowerCell, 0, 360, 0, 5);
    while (pCell == null)
        message("Waiting for power cell.");
        pCell = radar(PowerCell, 0, 360, 0, 5);
    // never happens, since the new PowerCell remains undetectable

Although it is possible to retrieve the PowerCell by grabing blindly while near PowerPlant, IMO it feels very counerintuitive, especially since retrieving Titanium as above works as expected.

I think fixing this would make the game less confusing for beginner players (like me).

Best regards,

PS I didn't post it as issue on GitHub, because I don't know the game well and I account for the possibility this is inteded behaviour.

Messages In This Thread
PowerCell can't be found using radar() while in PowerPlant - by Virzen - 11-08-2015, 09:47 PM

Forum Jump:

Users browsing this thread: 1 Guest(s)