Difference between pages "Help:Frequently Asked Questions" and "Talk:Group string"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
(added words)
 
imported>Heeheehee
m
 
Line 1: Line 1:
{{TOCright}}
+
(Move from main page)
==Running Mafia==
 
;What / where are daily builds?
 
:Daily builds are revisions of KoLMafia that are released for testing new features and/or bugfixes. They can be found at http://builds.kolmafia.us/. These builds adapt to changes in KoL faster than the official release and are often preferred for that reason.
 
;These daily builds are .jar files!  They don't run in my OS!
 
:Yes they do, [http://www.wikihow.com/Run-a-.Jar-Java-File lookit].
 
;I found a bug! What should I do?
 
:Please double-check for user-error first. (No offense intended, but it happens a lot.) If you're fairly sure that you have a "real" Mafia bug (reproducible, describable, undesired, and not a script error), please post it in the [http://kolmafia.us/forumdisplay.php?24-Bug-Reports Bug Report Forum]. Make sure to list which version of KoLmafia you are using (which you can see by selecting the Help (menu) -> Copyright Notice). Also, list the operating system you are using, and a description of what to do to reproduce the bug, and any other helpful information.
 
;How can I synchronize Mafia across multiple computers using the same counters, scripts, builds, etc?
 
:The two most popular methods are to run it from a flash drive or use [http://www.dropbox.com/ Dropbox]. Please see our page about [[Dropbox]].
 
  
==Interface==
+
group(0) matches the entire expression. After that, group(n) matches the expression defined by the nth set of parentheses.--[[User:Heeheehee|Heeheehee]] 06:45, 3 March 2010 (UTC)
;How do I re-apply stickers?
 
:Go to the Gear Changer tab in the main interface. See those bottom three dropdown menus?
 
;How do I get mafia to reapply stickers automatically when they wear out?
 
:Put it in your mood as described below. You can change the stickers command to indicate whichever stickers you want to keep active.
 
:: '''Trigger On:''' Unconditional trigger
 
:: '''Check For:'''
 
:: '''Command:''' stickers unicorn, unicorn, unicorn
 
;Can I get Mafia to do something other than abort when my sugar equipment breaks?
 
:Go to the Adventure tab in the main interface. At the bottom are some more tabs. Click on the Choice Advs tab. Now click on the Item tab on the left hand side. Change the Breakable Equipment setting as desired.
 
:[[Image:Breakable equipment.jpg]]
 
;Is there a way to get mafia to stop auto-adventuring when a counter expires?
 
:Mafia will stop automating on most counters. Note that purely informational counters like he-boulder rays and hippy windchimes will not stop automation.
 
;Is there a way to get mafia to stop auto-adventuring when a hobo code or demon name is found?
 
:KoLmafia [[auto-stops]] on these adventures whenever you do not have any conditions set. Just adventure in the zone without conditions and those hobo codes or demon names become your condition. Easy-peasy.
 
  
==Scripts==
+
That's the function group(); this page is for group_string(). I know, it's hard to tell 'cause of how wikis handle page names, I'll make that a bit clearer! --[[User:StDoodle|StDoodle]] 15:45, 5 March 2010 (UTC)
;What do I do with a script?
 
:Download the ASH file to your [[mafia directories|/scripts directory]]. Either start mafia, or in the scripts menu at the top of the interface, click "refresh menu". Then select the script from the scripts menu.
 
;How do I edit/create an ASH script?
 
:Use a nonformatting text editor such as [http://notepad-plus.sourceforge.net/uk/site.htm Notepad++] -- word processors like Microsoft Word will not work. When finished, save the file with the extension *.ash.
 
;Where are these mafia directories to which I need to download scripts? They have names like /scripts and /data .
 
:This varies depending on your operating system. Look for your system at [[mafia directories]].
 
;I get an error when I try to run a script!
 
:Nine times out of ten the problem is having an outdated version of something.  If a script that you downloaded won't run, have a look at this handy list:
 
: 1) [http://builds.kolmafia.us/ Check that your version of mafia is current].  This doesn't mean "version X.X", it means "rXXXX" (that's a daily build, read above).  If you use Windows, [http://kolmafia.us/index.php?t=2856 this tool] will automatically keep your version of mafia cutting-edge current.
 
: 2) Check that you have the latest released version of the script you're trying to run (and whatever support scripts it includes).  Note that even scripts with version-checking can ''not'' notify you about updates if the error happens before the script starts to run.
 
: 3) Check that you don't have outdated data files (from using the "update data" command, which no one should ever use).  Type "update clear" to eliminate old data files.
 
: 4) Check the [[ASH Errors]] page for a description of your error and possible solutions.
 
: 5) If none of these solutions fix it -- ''then'' please report the error to the script author in the script thread.  The script author should be able to determine whether this is a script error or a mafia error, and deal with it appropriately.
 
;Help, my script aborts whenever [some function] returns false!
 
:By default, whenever an ASH function returns false, everything will abort ''unless'' you somehow capture the return value (i.e. assigning it to a variable or enclosing it in a control structure). For examples of how to do this, see [[Tips, Tricks and Workarounds#Capturing an Abort|Tips, Tricks and Workarounds]].
 
  
[[Category:New User Help]]
+
Perhaps this should be shifted down with the rest of the regex stuff? Even though it doesn't make use of their datatypes, it is a regex function. --[[User:StDoodle|StDoodle (#1059825)]] 06:19, 7 May 2010 (UTC)
 +
 
 +
* That ''is'' weird. It uses regexes, but not matchers. I'm not quite sure what to make of it. Since it doesn't need find or the other requirements that regex functions require it is rather stand alone, unlike those functions so I can see some reason to let it be separate from that bunch. --[[User:Bale|Bale]] 06:42, 7 May 2010 (UTC)
 +
 
 +
* I thought some more about the problem and I decided you definitely should not move this to the regex section. I'm going to be saying some things about how regex functions are used and none of that will apply to this function. It will be a glaring exception to several rules. However, on this page you can refer to the [[Regular Expressions]] page for information on creating a regex. --[[User:Bale|Bale]] 08:26, 7 May 2010 (UTC)
 +
 
 +
 
 +
==Category==
 +
 
 +
Ok, so Heeheehee recently moved group_string() down with the regex functions. This is what I was leaning towards in the first place (see above) but Bale noted that it wouldn't fit with the description for said functions. If this references [[Regular_Expressions#Using Regexes in KoLmafia|Using Regexes in KoLmafia]], I think we'd be better off making a note of group_string() being an exception to the "requires a defined matcher" rule rather than leaving it out of the regex section. Thoughts? --[[User:StDoodle|StDoodle (#1059825)]] 06:54, 5 July 2010 (UTC)
 +
: It's easier to locate this way. I mean, who expects group_string() to be up in the unclassified functions, as opposed to those that use regex? --[[User:Heeheehee|Heeheehee]] 17:43, 5 July 2010 (UTC)

Latest revision as of 17:43, 5 July 2010

(Move from main page)

group(0) matches the entire expression. After that, group(n) matches the expression defined by the nth set of parentheses.--Heeheehee 06:45, 3 March 2010 (UTC)

That's the function group(); this page is for group_string(). I know, it's hard to tell 'cause of how wikis handle page names, I'll make that a bit clearer! --StDoodle 15:45, 5 March 2010 (UTC)

Perhaps this should be shifted down with the rest of the regex stuff? Even though it doesn't make use of their datatypes, it is a regex function. --StDoodle (#1059825) 06:19, 7 May 2010 (UTC)

  • That is weird. It uses regexes, but not matchers. I'm not quite sure what to make of it. Since it doesn't need find or the other requirements that regex functions require it is rather stand alone, unlike those functions so I can see some reason to let it be separate from that bunch. --Bale 06:42, 7 May 2010 (UTC)
  • I thought some more about the problem and I decided you definitely should not move this to the regex section. I'm going to be saying some things about how regex functions are used and none of that will apply to this function. It will be a glaring exception to several rules. However, on this page you can refer to the Regular Expressions page for information on creating a regex. --Bale 08:26, 7 May 2010 (UTC)


Category

Ok, so Heeheehee recently moved group_string() down with the regex functions. This is what I was leaning towards in the first place (see above) but Bale noted that it wouldn't fit with the description for said functions. If this references Using Regexes in KoLmafia, I think we'd be better off making a note of group_string() being an exception to the "requires a defined matcher" rule rather than leaving it out of the regex section. Thoughts? --StDoodle (#1059825) 06:54, 5 July 2010 (UTC)

It's easier to locate this way. I mean, who expects group_string() to be up in the unclassified functions, as opposed to those that use regex? --Heeheehee 17:43, 5 July 2010 (UTC)