Difference between pages "Talk:ASH Errors" and "Help:To Do List"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>StDoodle
 
imported>Bale
(→‎Missing Stuff: test CLI command)
 
Line 1: Line 1:
Is this like were things like <font color="#ff7000">Script parsing error (X.ash, line Y)</font> are listed?--[[User:Icon315|Icon315]] 22:33, 14 April 2010 (UTC)
+
{{TOCright}}
  
:It's where they WILL be listed, once they are listed. --[[User:Bale|Bale]] 22:52, 14 April 2010 (UTC)
+
== "To Do" List ==
  
What Bale said. Also, I changed that to orange; I kept trying to click on it. :( --[[User:StDoodle|StDoodle (#1059825)]] 00:35, 15 April 2010 (UTC)
+
This is a list of stuff that is missing from the wiki or else needs major work. Please help!
  
Also, if anyone's feeling particularly ambitious, https://kolmafia.svn.sourceforge.net/svnroot/kolmafia/src/net/sourceforge/kolmafia/textui/Parser.java should help. Just look for all the instances of parseException. (Speaking of which, would it be useful if these were presented in the order that they're checked?) --[[User:Heeheehee|Heeheehee]] 00:17, 17 April 2010 (UTC)
 
  
I think alphabetical order would be better: this page is going to be excellent for first-time ASH scripters to understand what's wrong with their script. --[[User:Slyz|Slyz]] 10:41, 17 April 2010 (UTC)
+
If you need tips for editing the wiki, find that here: [[Help:Editing]].
  
Should we add the correct examples? Or are the fixes clear enough?
+
*CLI Commands are usually only added to the [[CLI Reference]]. Only very complicated commands require their own page.
--[[User:Slyz|Slyz]] 08:36, 18 April 2010 (UTC)
 
  
If anything particularly complicated shows, we can give both. But so far, if you can't follow as written, I'm not sure you ever will. (That's the hypothetical "you," not the specific "hey Slyz what's wrong with you, you"). --[[User:StDoodle|StDoodle (#1059825)]] 23:35, 19 April 2010 (UTC)
+
*ASH commands need to be listed on their category page as well as on the [[Ash Functions]] list.
 +
**It is not necessary to always create a code sample, although it is preferred.
 +
**If you don't add a code sample, please remember to add '''needscode=yes|''' to the page.
 +
 
 +
 
 +
== Missing Stuff ==
 +
r9181, 9183, 9184 & r9190: '''moods''' per slyz's summary here: http://kolmafia.us/showthread.php?8852-Composable-Moods
 +
 
 +
r11707: Experimental ASH feature: the main() function of imported scripts can now be
 +
invoked, under the alternate name main@filename()
 +
(where 'filename' can be overridden by a 'script' directive, any ".ash"
 +
suffix is dropped, and non-alphanumeric characters are replaced by
 +
underscores). Note that no spaces are allowed around the @, the whole thing
 +
is a single token.
 +
 
 +
r12062: add ASH '''get_outfits()''' and '''get_custom_outfits'''()
 +
 
 +
13213: Add "debug ash on" and "debug ash off" to turn on and off ASH script tracing
 +
ASH tracing goes into ASH_datestamp.txt
 +
 
 +
13222: Add preference banishedMonsters to track banishes. Add ash command '''is_banished($monsterName[name])'''
 +
 
 +
r14729: add fixedThreadPoolSize pref - diagnostic/fine tuning for limiting the threadpool size.
 +
 
 +
r8628 http://kolmafia.us/showthread.php?4750-Master-Relay-Override&p=34367&viewfull=1#post34367
 +
string '''get_path_full'''() Returns the full URL that was submitted.
 +
string '''get_path'''()Returns just the page name of the URL that was submitted.
 +
string '''get_path_variables'''() Returns just the variables after the "?" in the URL that was submitted.
 +
 
 +
r11198: Add naive implementation of to_json() for all types
 +
It has no special checking, so don't use this on something that can't actually be converted directly into JSON
 +
(so an aggregate type that doesn't use non-simple keys) or it'll return a gibberish string that JSON parsers will choke on.
 +
string '''to_json'''( null )
 +
http://kolmafia.us/showthread.php?10513-JSON-data-exporting
 +
It is intended to be given an aggregate as an input.
 +
 
 +
test CLI commands:
 +
 +
r14764: add "'''test xpath'''" to, well, test xpath expressions
 +
r14767: Expose an xpath function that relay scripts can use after they've invoked visit_url().
 +
http://kolmafia.us/showthread.php?16722-the-DOM-regex-scalability-and-other-jargony-words
 +
http://kolmafia.us/showthread.php?16764-xpath-primer
 +
 +
r14967: Add "'''test mchat'''" command which can be used after "test load JSONFILE"
 +
 
 +
== Needs Major Work ==
 +
 
 +
[[Proxy Records]] is only slightly better than a placeholder.
 +
 
 +
In r10047, the adventure tab interface was altered. Fix SinginSally's guide on pages...
 +
 +
http://wiki.kolmafia.us/index.php?title=KoLmafia_Guide:_Attack_Script
 +
http://wiki.kolmafia.us/index.php?title=KoLmafia_Guide:_Custom_Combat_Script
 +
http://wiki.kolmafia.us/index.php?title=KoLmafia_Guide:_Goal-Oriented_Adventuring
 +
 
 +
Information on moods calling other moods: http://kolmafia.us/showthread.php?8852-Composable-Moods&p=66468&viewfull=1#post66468
 +
 
 +
== Needs Code Samples ==
 +
 
 +
There is a list of all pages that require code samples: [[:Category:Needs_Code_Sample|Category:Needs Code Sample]]
 +
 
 +
Information on how to create a code sample: [[Template:CodeSample]]
 +
[[Category:Contributing]]

Revision as of 04:58, 22 November 2014

"To Do" List

This is a list of stuff that is missing from the wiki or else needs major work. Please help!


If you need tips for editing the wiki, find that here: Help:Editing.

  • CLI Commands are usually only added to the CLI Reference. Only very complicated commands require their own page.
  • ASH commands need to be listed on their category page as well as on the Ash Functions list.
    • It is not necessary to always create a code sample, although it is preferred.
    • If you don't add a code sample, please remember to add needscode=yes| to the page.


Missing Stuff

r9181, 9183, 9184 & r9190: moods per slyz's summary here: http://kolmafia.us/showthread.php?8852-Composable-Moods
r11707: Experimental ASH feature: the main() function of imported scripts can now be
invoked, under the alternate name main@filename()
(where 'filename' can be overridden by a 'script' directive, any ".ash"
suffix is dropped, and non-alphanumeric characters are replaced by
underscores). Note that no spaces are allowed around the @, the whole thing
is a single token.
r12062: add ASH get_outfits() and get_custom_outfits()
13213: Add "debug ash on" and "debug ash off" to turn on and off ASH script tracing 
ASH tracing goes into ASH_datestamp.txt
13222: Add preference banishedMonsters to track banishes. Add ash command is_banished($monsterName[name])
r14729: add fixedThreadPoolSize pref - diagnostic/fine tuning for limiting the threadpool size.
r8628 http://kolmafia.us/showthread.php?4750-Master-Relay-Override&p=34367&viewfull=1#post34367
string get_path_full() Returns the full URL that was submitted.
string get_path()Returns just the page name of the URL that was submitted.
string get_path_variables() Returns just the variables after the "?" in the URL that was submitted.
r11198: Add naive implementation of to_json() for all types
It has no special checking, so don't use this on something that can't actually be converted directly into JSON 
(so an aggregate type that doesn't use non-simple keys) or it'll return a gibberish string that JSON parsers will choke on.
string to_json( null )
http://kolmafia.us/showthread.php?10513-JSON-data-exporting
It is intended to be given an aggregate as an input.
test CLI commands:

r14764: add "test xpath" to, well, test xpath expressions
r14767: Expose an xpath function that relay scripts can use after they've invoked visit_url().
http://kolmafia.us/showthread.php?16722-the-DOM-regex-scalability-and-other-jargony-words
http://kolmafia.us/showthread.php?16764-xpath-primer

r14967: Add "test mchat" command which can be used after "test load JSONFILE"

Needs Major Work

Proxy Records is only slightly better than a placeholder.

In r10047, the adventure tab interface was altered. Fix SinginSally's guide on pages...

http://wiki.kolmafia.us/index.php?title=KoLmafia_Guide:_Attack_Script
http://wiki.kolmafia.us/index.php?title=KoLmafia_Guide:_Custom_Combat_Script
http://wiki.kolmafia.us/index.php?title=KoLmafia_Guide:_Goal-Oriented_Adventuring
Information on moods calling other moods: http://kolmafia.us/showthread.php?8852-Composable-Moods&p=66468&viewfull=1#post66468

Needs Code Samples

There is a list of all pages that require code samples: Category:Needs Code Sample

Information on how to create a code sample: Template:CodeSample