No results detected

JGefell

New member
I'm looking to make hi meins automatically, and I've come across a problem when making scrumdiddlyumptious solutions. I get an "Aborting, no results detected" error, although mafia still shows the new items in my session results and they show up in inventory.

How do I get keep mafia from aborting on me?

I'm not looking for anything fancy or a critique on my code, I know it's messy, but that will improve with time. For now I just want something that works, and I want to know why it's not working in the first place so I don't make the same mistake again. Snippet of code below:

Code:
if (hi_meins < 3){
	buy(3-hi_meins-item_amount($item[delectable catalyst])-item_amount($item[scrumdiddlyumptious solution]), $item[delectable catalyst]);
	buy(3-hi_meins-item_amount($item[scrumptious reagent])-item_amount($item[scrumdiddlyumptious solution]), $item[scrumptious reagent]);
	use(item_amount($item[scrumptious reagent]), $item[delectable catalyst]);

Thanks.
 
Are you sure
Code:
3-hi_meins-item_amount($item[delectable catalyst])-item_amount($item[scrumdiddlyumptious solution])
is greater than 0?

EDIT: nope, that wouldn't cause an error.

Could you post all your code and a gCLI output with the error?
 
Last edited:
Also, is it supposed to blend the usage between the reagent and catalyst without checking that you have enough catalysts for the reagents? Seems like if for some reason you had more reagents then catalysts, that might provide exactly that error. I'd suggest changing the use line to something like:
PHP:
	use(min(item_amount($item[scrumptious reagent]),item_amount($item[delectable catalyst])), $item[delectable catalyst]);
 
I've fixed it, thank you.

The issue was that I forgot to take into account that I had far more scrumptious reagents than I wanted to use so I just changed the last line to
Code:
use(3-item_amount($item[scrumdiddlyumptious solution]), $item[delectable catalyst]);
 
He was telling it to use (sample number) 30 delectable catalysts instead of 3. He bought the 3 DC, he'd made 30 SR from prior days.

Basically,
PHP:
use(item_amount(item1), item2);
 
Oh, he didn't have enough ingredients? That explains it I guess. Since it's not technically a concoction, from Mafia's point of view, the error message is vague.

Next time, a gCLI output would help, I think.
 
Yeah... using 30 DC when you only have 3 isn't likely to work too well. :) Not going to get 'results' from that.
 
Back
Top