Bug - Cannot Reproduce Cannot create drinks due to odd pricing issue

Winterbay

Active member
My logout script decides which SHC-drink that costs the most in the mall and tries to create up to 5 of those when I log out. Yesterday and today I've had a problem with this. Yesterday I didn't notice it until mafia failed to really log out but today I ran the logout script manually and it tries to buy a gin and tonic for 120k which failes because I only have 1k (I want it to use basic materials and the still).
I have no idea why it tries to buy soemthign at 120k and I also do not know why it doesn't continue iterating down the recipe-tree to see if more basic items are cheaper.

Code:
> ash historical_price($item[gin and tonic])

Returned: 5300

> create 1 gimlet

Verifying ingredients for gimlet (1)...
Searching for "gin and tonic"...
Search complete.
Stopped purchasing gin and tonic @ 120,000.

> ash mall_price($item[gin and tonic])

Returned: 5300

> create 1 gimlet

Verifying ingredients for gimlet (1)...
Searching for "gin and tonic"...
Search complete.
Stopped purchasing gin and tonic @ 120,000.

Looking at the mall the 9th price is 120k if that has any effect on things.

Edit: Hmm... I just manually bought a bottle of gin and lo and behold it now creates the Gimlet:
Code:
> acquire 1 bottle of gin

Searching for "bottle of gin"...
Search complete.
Purchasing bottle of gin (1 @ 117)...
You acquire an item: bottle of gin
Purchases complete.

> acquire 1 gimlet

Verifying ingredients for gimlet (1)...
Verifying ingredients for gin and tonic (1)...
Verifying ingredients for bottle of Calcutta Emerald (1)...
Creating bottle of Calcutta Emerald (1)...
You acquire an item: bottle of Calcutta Emerald
Successfully created bottle of Calcutta Emerald (1)
Verifying ingredients for tonic water (1)...
Searching for "soda water"...
Search complete.
Purchasing soda water (1 @ 70)...
You acquire an item: soda water
You spent 70 Meat
Purchases complete.
Creating tonic water (1)...
You acquire an item: tonic water
Successfully created tonic water (1)
Creating gin and tonic (1)...
You acquire an item: gin and tonic
Successfully created gin and tonic (1)
Creating gimlet (1)...
You acquire an item: gimlet
Successfully created gimlet (1)

But creating one more after that does not work, again with the same error as before.
 
Last edited:

Winterbay

Active member
Problem persisting today. I've worked around it for now by buying 50 of each basic booze which seems to make things work as intended. Still no idea why.
Would making a debuglog from before the create-call to after the failure help diagnosing the problem?
 

Theraze

Active member
Could try using debugcreate 1 gimlet to see what it's doing... which, interestingly, found me a bug in debugcreate. :)
 

Veracity

Developer
Staff member
Could try using debugcreate 1 gimlet to see what it's doing... which, interestingly, found me a bug in debugcreate. :)
Care to tell us about the bug, rather than just giving us a smiley?

I'm a DB with access to the still, but no more usages today. With no gin or soda water (both of which I'd have to use the still to upgrade):

> ingredients gimlet

gimlet: fermenting powder (0/1), juniper berries (0/1), little paper umbrella, soda water (0/1)

> debugcreate 1 gimlet

- gin and tonic limited to 0 by bottle of Calcutta Emerald
- gimlet limited to 0 by gin and tonic
gimlet.canMake(1) => 0

With whiskey and an orange in inventory (again, both requiring the still):

> ingredients Divine

Divine: bottle of whiskey, little paper umbrella, orange

> debugcreate Divine

- whiskey bittersweet limited to 0 by bottle of Domesticated Turkey
- Divine limited to 0 by whiskey bittersweet
Divine.canMake(1) => 0
 

Theraze

Active member
<coughs> Sorry, I popped open a window for the bug board and had forgotten why by the time I finished reading the other threads. :( I'll make that post now.
 

Winterbay

Active member
Thanks for that command, not that it helped since today everything is working fine. It still complains that it can't buy a gin and tonic for 120k but then it continues with cheaper ingredients just as it should. No idea what changed if anything so this should probably be closed off due to non-reproducibility.
 

Winterbay

Active member
So, I've managed to run into this again. This time I knew abotu debugcreate so used that. I also did a debuglog for all three commands listed in the snippet below (attached).
Code:
> debugcreate 1 gimlet

- fermenting powder limited to 14 by price 70
- bottle of gin limited to 14 by fermenting powder
- bottle of gin limited to 0 by juniper berries
- bottle of Calcutta Emerald limited to 0 by bottle of gin
- gin and tonic limited to 0 by bottle of Calcutta Emerald
- gimlet limited to 0 by gin and tonic
gimlet.canMake(1) => 0

> create 1 gimlet

Verifying ingredients for gimlet (1)...
Searching for "gin and tonic"...
Search complete.
Stopped purchasing gin and tonic @ 120,000.

> acquire 1 gimlet

Verifying ingredients for gimlet (1)...
Using cached search results for gin and tonic...
Stopped purchasing gin and tonic @ 120,000.
Searching for "gimlet"...
Search complete.
Desired purchase quantity not reached (wanted 1, got 0)
You need 1 more gimlet to continue.

My character has 1k meat on hand atm and enough garners to do more than 10 drinks so "all" that is needed is to buy the base stuff which it normally does just fine. Mall_price() currently returns 5250 for a gin&tonic.

Edit: Somehow my hippy store setting had gotten nullified (should be hippy, was none) but that shouldn't do this surely though? Or? I mean the juniper berries are in the mall, and also I think buying a bottle of gin is probably cheaper anyway.

autoSatisfyWithMall is "true" (as are NPC and Coinmaster)
 
Last edited:
Top