netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Daemons/Self-Modifying Code : More memory than you should have

Open PesiTheWizard opened this issue 9 years ago • 5 comments

This was tested with Leprechaun and Self-Modifying Code.

1)Install Leprechaun normally. (=m-1) 2)Use ability on leprechaun to install a program from hand onto it, Pick Self-Modifying code. (=m-1) 3)Use Self-Modifying Code to install some program. This program is not hosted on leprechaun. (=m+1)

You have apparently been 'refunded' the memory on a program that never cost memory at all.

PesiTheWizard avatar Mar 24 '17 00:03 PesiTheWizard

Further testing:

Point 2) It makes no difference weather you install it directly onto the leprechaun or install it first normally, then have leprechaun host it.

This also happens when hosted on Djinn.

Other programs do not show this bug, be they self-trashing (Faerie), with a self-trashing activated ability(Deus X) or purge-trash viruses(clot). It seems to be specific to Self-Modifying Code.

PesiTheWizard avatar Apr 01 '17 09:04 PesiTheWizard

Is SMC the only program of those with a delayed completion? Ie. Choose stuff from a bunch of menus? I spent a while on this and made it worse. Licking my wounds

danhut avatar Apr 01 '17 11:04 danhut

The most recent Metropole Grid video as of this comment shows the bug in action exactly at the 2 hour mark. Schehereazade is hosting SMC, so it's not even limited to Daemons that have you ignore the memory cost. SMC has trashed itself when he is selecting the program to install. Memory has been refunded at this point. After he picks the program to install he gains 2 more memory.

PesiTheWizard avatar Apr 13 '17 03:04 PesiTheWizard

I don't know when SMC was given :delayed-completion, nor do I remember why. Regardless, I finally took a look at this. SMC is trashing itself both on line 694 and on line 707, so there's the problem.

EDIT: @danhut this change was made at d83eff1.

JoelCFC25 avatar Apr 19 '17 13:04 JoelCFC25

Nice one Joel. Fix one problem to cause another... I had just traced the problem back to myself

I guess this will fix #2508 too

danhut avatar Apr 20 '17 00:04 danhut