Page 1 of 8 1 2 3 ... LastLast
Results 1 to 10 of 79

Thread: Spacegate access badge

  1. #1
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,161

    Default Spacegate access badge

    This looks like it could be fantastic. Not that I've used mine, yet, but G_D discussion is enthusiastic.

    (So far. I have not yet seen the inevitable whining that "this is not useful for speed runs".)

    Code:
    9404	Spacegate access badge	977103521	sgbadge.gif	usable	t	0
    # Item Spacegate access badge: Unlocks billions of strange alien worlds
    Item	Spacegate access badge	Free Pull
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  2. #2
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,273

    Default

    (So far. I have not yet seen the inevitable whining that "this is not useful for speed runs".)
    Originally Posted by Veracity View Post
    Because it is useful for speed runs. The only question is how useful. Merely unlocking the once per day buffs is useful. (That's how easy it is to eliminate the whining.) Jury is still deliberating on the usefulness of planets.

    The following items are not yet in KoLmafia v17.6 r17941
    Code:
    --------------------
    Spacegate Fabrication Facility	buy	1000	portable Spacegate	ROW947
    --------------------
    --------------------
    9465	portable Spacegate	313840046	portablesg.gif	usable	t	0
    # Item portable Spacegate: Provides one day's access to a random Spacegate planet
    --------------------
    --------------------
    9406	exo-servo leg braces	857487934	radipants.gif	pants	q	0
    exo-servo leg braces	10	none
    # Item exo-servo leg braces: Allows you to move normally in high gravity environments
    Item	exo-servo leg braces	Lasts Until Rollover
    --------------------
    --------------------
    9411	alien rock sample	196471263	spelrock.gif	none	d	10	alien rock samples
    # Item alien rock sample: Worth 3 pages of Spacegate Research
    --------------------
    --------------------
    9416	alien plant fibers	876928996	plantfibers.gif	none	d	5
    # Item alien plant fibers: Worth 1 page of Spacegate Research
    --------------------
    --------------------
    9415	edible alien plant bit	306788819	plantbit.gif	food	t,d	4
    edible alien plant bit	1	1	good	0	0	0	0	Unspaded
    # Item edible alien plant bit: Gives 5 Adventures of a random positive effect
    --------------------
    --------------------
    9413	geological sample kit	512153322	briefcase.gif	offhand	q	0
    geological sample kit	0	none
    # Item geological sample kit: Increases the yield of Spacegate geology operations
    Item	geological sample kit	Lasts Until Rollover
    --------------------
    --------------------
    9414	botanical sample kit	216275865	briefcase.gif	offhand	q	0
    botanical sample kit	0	none
    # Item botanical sample kit: Increases the yield of Spacegate botany operations
    Item	botanical sample kit	Lasts Until Rollover
    --------------------
    --------------------
    9409	high-friction boots	294528920	wtbboots.gif	accessory	q	0
    high-friction boots	0	none
    # Item high-friction boots: Allows you to move normally on extremely windy planets
    Item	high-friction boots	Single Equip, Lasts Until Rollover
    --------------------
    --------------------
    9422	zoological sample kit	313682924	briefcase.gif	offhand	q	0
    zoological sample kit	0	none
    # Item zoological sample kit: Increases the yield of Spacegate zoology operations
    Item	zoological sample kit	Lasts Until Rollover
    --------------------
    --------------------
    9408	gate transceiver	900860541	sgcompass.gif	accessory	q	0
    gate transceiver	0	none
    # Item gate transceiver: Allows you to negotiate magnetic storms without losing your way
    Item	gate transceiver	Single Equip, Lasts Until Rollover
    --------------------
    --------------------
    9407	rad cloak	530478383	smokecloak.gif	container	q	0
    rad cloak	0	none
    # Item rad cloak: Protects against harmful radiation on alien worlds
    Item	rad cloak	Lasts Until Rollover
    --------------------
    --------------------
    9405	filter helmet	312851719	sghelmet.gif	hat	q	0
    filter helmet	10	none
    # Item filter helmet: Provides protection against toxic alien atmospheres
    Item	filter helmet	Lasts Until Rollover
    --------------------
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


  3. #3
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,161

    Default

    Unsurprisingly, there is a daypass, which we know about on day one, unlike Gingerbread City. Nice heads up that we need to have (at least) two preferences controlling whether you have access.

    Since it gives access to "a random Spacegate planet", I wonder if you can use another one after using one day's worth of turns from the first one?
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

  4. #4
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,273

    Default

    No, you cannot. The Spacegate Terminal readout says:

    Spacegate Energy remaining: 0 Adventures
    There's actual information on how many turns of adventuring remain! (And no way to reset it. You're just out of energy.)

    HTML Code:
    <Center><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>Spacegate Terminal</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td>Current planet: Planet Name: Beta Brooks V<br>Coordinates: FELUDJW<br><p>Environmental Hazards:<Br>&nbsp;&nbsp;&nbsp;high gravity<br>&nbsp;&nbsp;&nbsp;nasty gasses<br>Plant Life: primitive<br>Animal Life: none detected<br>Intelligent Life: none detected<br><p>Spacegate Energy remaining: <b><font size=+2>0 </font></b>Adventures<p><Center>

  5. #5

    Default

    Some more unknown items as of r17944

    Code:
    --------------------
    9423 alien meat 672000286 alienmeat.gif food t,d 8
    alien meat 1 1 good 0 0 0 0 Unspaded
    # Item alien meat: Gives 5 Adventures of a random positive effect
    --------------------
    --------------------
    9441 spant chitin 689199719 spantchitin.gif none t,d 3
    # Item spant chitin
    --------------------
    --------------------
    9442 spant tendon 684936831 string.gif none t,d 7
    # Item spant tendon
    --------------------
    --------------------
    9448 murderbot power cell 301843276 wbattery.gif none t,d 11
    # Item murderbot power cell
    --------------------
    --------------------
    9450 murderbot monofilament 431837846 string.gif none t,d 22
    # Item murderbot monofilament
    --------------------
    --------------------
    9449 murderbot component casing 785447051 clsheet.gif none t,d 15
    # Item murderbot component casing
    --------------------

  6. #6

    Default

    Some more after today's adventuring:

    Code:
    --------------------
    9454 murderbot spring injector 232320098 pill.gif usable t,d 40
    Item murderbot spring injector Effect: "Spring Training", Effect Duration: 20
    --------------------
    --------------------
    9447 spant spear 860697539 tinyspear.gif weapon d 120
    spant spear 100 Mus: 20 1-handed spear
    Item spant spear Muscle Percent: +10, Mysticality Percent: +10, Moxie Percent: +10, Weapon Damage Percent: +25
    --------------------
    --------------------
    130 Spant Armor spantat.gif spant spear
    Outfit Spant Armor Damage Absorption: +200
    --------------------
    --------------------
    9474 alien sandwich 264675078 sammich.gif food t,d 44
    alien sandwich 2 4 awesome 0 0 0 0 Unspaded
    # Item alien sandwich: Gives 10 Adventures of a random positive effect
    --------------------
    --------------------
    2283 Spring Training spring.gif 6bde966f3414c20ad674c6caef5c85a4 use 1 murderbot spring injector
    Effect Spring Training Initiative: +100
    --------------------

  7. #7
    Senior Member AlbinoRhino's Avatar
    Join Date
    May 2008
    Posts
    707

    Default

    Some more found with r17944:

    Code:
    --------------------
    9420    alien plant goo    538908723    plantgoo.gif    spleen, usable    t,d    15
    alien plant goo    1    1    crappy    0    0    0    0    Unspaded
    Item    alien plant goo    Effect: "Celestial Mind", Effect Duration: 40
    --------------------
    --------------------
    2279    Celestial Mind    realbrain.gif    f31647391d032e601aa31d5daa0ccae7    chew 1 alien plant goo
    Effect    Celestial Mind    Spell Damage Percent: +100, Spell Critical Percent: +20
    --------------------

  8. #8
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,273

    Default

    KoLmafia v17.6 r17944

    Code:
    --------------------
    9433	primitive alien salad	129944437	salad.gif	food	t,d	23
    primitive alien salad	1	1	good	0	0	0	0	Unspaded
    # Item primitive alien salad
    --------------------
    --------------------
    9423	alien meat	672000286	alienmeat.gif	food	t,d	8
    alien meat	1	1	good	0	0	0	0	Unspaded
    # Item alien meat: Gives 5 Adventures of a random positive effect
    --------------------
    --------------------
    9424	alien toenails	191705518	alientoenails.gif	none	d	5
    # Item alien toenails: Worth 1 page of Spacegate Research
    --------------------
    --------------------
    9420	alien plant goo	538908723	plantgoo.gif	spleen, usable	t,d	15
    alien plant goo	1	1	crappy	0	0	0	0	Unspaded
    Item	alien plant goo	Effect: "Celestial Mind", Effect Duration: 40
    --------------------
    --------------------
    2279	Celestial Mind	realbrain.gif	f31647391d032e601aa31d5daa0ccae7	chew 1 alien plant goo
    Effect	Celestial Mind	Spell Damage Percent: +100, Spell Critical Percent: +20
    --------------------
    --------------------
    9428	alien animal goo	432889167	blankoutglob.gif	spleen, usable	t,d	30
    alien animal goo	1	1	crappy	0	0	0	0	Unspaded
    # Item alien animal goo
    --------------------

  9. #9

    Default

    The following ash code dropped in choice.ash parses and tracks the various characteristic of your current planet. Posting here to hopefully save someone time building regexes. Haven't tested with multiple environmental hazards yet, or in the response right when you first choose the planet; will verify those tomorrow.

    Code:
    buffer spaceterminal(buffer page) {
    	string trim( string text ) {
    		while( text.starts_with(" ") ) text = text.substring(1);
    		while( text.ends_with(" ") ) text = text.substring(0, text.length() - 1);
    		return text;
    	}
    	
    	matcher m = "<td>Current planet: Planet Name: ([^<]+)<br>".create_matcher(page);
    	if( m.find() ) {
    		print("Planet name: " + m.group(1));
    		set_property("_spacegatePlanetName", m.group(1).trim());
    	}
    	m = "<br>Coordinates: ([^<]+)<br>".create_matcher(page);
    	if( m.find() ) {
    		print("Coordinates: " + m.group(1));
    		set_property("_spacegateCoordinates", m.group(1).trim());
    	}
    	m = "<br><p>Environmental Hazards:<Br>(.*)<br>Plant Life:".create_matcher(page);
    	if( m.find() ) {
    		string hazards = m.group(1).replace_string("&nbsp;","").replace_string("<br>","|").trim();
    		print("Hazards: " + hazards);
    		set_property("_spacegateHazards", hazards);
    	}
    	m = "<br>Plant Life: (<font color=\\w+>)?([^<]+)(</font>)?(<font color=\w+>(\\(hostile\\))</font>)?<br>".create_matcher(page);
    	if( m.find() ) {
    		if( m.group(3) != "" )
    			set_property("_spacegatePlantLife", m.group(2) + m.group(5));
    		else
    			set_property("_spacegatePlantLife", m.group(2).trim());
    		print("Plant Life: " + get_property("_spacegatePlantLife") );
    	}
    	m = "<br>Animal Life: (<font color=\\w+>)?([^<]+)(</font>)?(<font color=\w+>(\\(hostile\\))</font>)?<br>".create_matcher(page);
    	if( m.find() ) {
    		if( m.group(3) != "" )
    			set_property("_spacegateAnimalLife", m.group(2) + m.group(5));
    		else
    			set_property("_spacegateAnimalLife", m.group(2).trim());
    		print("Animal Life: " + get_property("_spacegateAnimalLife") );
    	}
    	m = "<br>Intelligent Life: (<font color=\\w+>)?([^<]+)(</font>)?(<font color=\w+>(\\(hostile\\))</font>)?<br>".create_matcher(page);
    	if( m.find() ) {
    		if( m.group(3) != "" )
    			set_property("_spacegateIntelligentLife", m.group(2) + m.group(5));
    		else
    			set_property("_spacegateIntelligentLife", m.group(2).trim());
    		print("Intelligent Life: " + get_property("_spacegateIntelligentLife") );
    	}
    	m = "<b>Spant</b>".create_matcher(page);
    	if( m.find() ) {
    		print("Spant chemical signature detected");
    		set_property("_spacegateSpant", true);
    	} else {
    		print("No spant chemical signature detected");
    		set_property("_spacegateSpant", false);
    	}
    	m = "<b>Murderbot</b>".create_matcher(page);
    	if( m.find() ) {
    		print("Murderbot chemical signature detected");
    		set_property("_spacegateMurderbot", true);
    	} else {
    		print("No Murderbot chemical signature detected");
    		set_property("_spacegateMurderbot", false);
    	}
    	m = "<br>ALERT: ANCIENT RUINS DETECTED<br>".create_matcher(page);
    	if( m.find() ) {
    		print("Ancient ruins detected");
    		set_property("_spacegateRuins", true);
    	} else {
    		print("No ancient ruins detected");
    		set_property("_spacegateRuins", false);
    	}
    	m = "<p>Spacegate Energy remaining: <b><font size=\\+2>(\\d+) </font>".create_matcher(page);
    	if( m.find() ) {
    		print("Spacegate turns left: " + m.group(1));
    		set_property("_spacegateTurnsLeft", m.group(1));
    	} else {
    		print("No spacegate turns left?");
    		set_property("_spacegateTurnsLeft", "0");
    	}
    	return page;
    }
    edit: Prior regexes didn't account for (hostile) entities as I hadn't seen them yet, fixed now.

    edit 2: Prior regexes didn't work for the different font coloring for "anomalous", fixed now.. again..
    Last edited by Smelltastic; 04-15-2017 at 04:47 AM. Reason: fix regexes again after second update

  10. #10
    Developer Veracity's Avatar
    Join Date
    Mar 2006
    Location
    The Unseelie Court
    Posts
    11,161

    Default

    I very much like that - except I want it in KoLmafia itself, printing to the gCLI and session log, as well as setting _ properties, as you did.

    I still have not yet used my IOTM - do we track permanent/one-day availability yet? - but I will tomorrow. After looking at all the data people were putting in the G_D thread, I thought "I want that data saved in my session log."
    Ph'nglui mglw'nafh Cthulhu
    R'lyeh wgah-nagl fhtagn.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •