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.15 (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
#1
When the new PowerCell is produced, calling
Code:
radar(PowerCell);
doesn't return it.

I have written small program to demonstrate this behaviour:
Code:
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, "");
    grab();
    goto(pPlant.position);
    drop();
    
    // detect PowerCell in PowerPlant only
    pCell = radar(PowerCell, 0, 360, 0, 5);
    while (pCell == null)
    {
        message("Waiting for power cell.");
        
        wait(3);
        pCell = radar(PowerCell, 0, 360, 0, 5);
    }
    
    // never happens, since the new PowerCell remains undetectable
    message(pCell.id);
}

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,
Virzen

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)