Descriptions?! That's a great idea! Why isn't I think of that? Thanks for the idea icon.why is there no descriptions?
Yes, as heeheehee mentioned, all credit for delete functionality being included goes to him. I just didn't like the checkboxes for delete and having to have column headers to explain things so I overhauled the implementation.I really like the delete functionality.
For improved usability I'd suggest a three-column table (documentation in the third column) and a smaller font for the setting names. I also like the idea of a "show more" link after the first n characters of the description, rather than "show/hide".
Sounds great. I'm to the point where I'm ready to start testing the submission of documentation editing anyways.If you don't mind Ninja, I'll whip up the server-side script and then post a modified version of this script with that functionality added. You can then incorporate that functionality as you like. If you have any implementation issues after that, feel free to ask for changes in the server/script interaction.
Here's the old section version Bale. I'll remove it again in about a week.
View attachment 3281
3) Which script uses adv_value? There is a mafia property "valueOfAdventure" which should be used instead.
Unexpected error, debug log printed.
CCS set to default
(but battle action is currently set to attack with weapon)
The zlib version doesn't do this.
I am curious as to what may be causing this.
Well, if it's printing a debug log... what does that debug log say? Can you post it here?
and for my log, same:Unexpected error, debug log printed.
CCS set to default
Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
at net.sourceforge.kolmafia.request.RelayRequest.pseudoResponse(RelayRequest.java:443)
at net.sourceforge.kolmafia.request.RelayRequest.sendLocalFile(RelayRequest.java:673)
at net.sourceforge.kolmafia.request.RelayRequest.handleSimple(RelayRequest.java:1448)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:1463)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:73)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.visit_url(RuntimeLibrary.java:1744)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.visit_url(RuntimeLibrary.java:1696)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
[NORMAL] <- void
Entering function check_version
switch
Value: get_property()
Param #1: "_version_prefMan"
[NORMAL] <- "_version_prefMan"
Entering function get_property
Function get_property returned:
[NORMAL] <-
test: version
[NORMAL] <- v0.2
test:
[NORMAL] <-
Eval: create_matcher()
Param #1: "<b>KoLmafia Preference Manager (.+?)</b>"
[NORMAL] <- "<b>KoLmafia Preference Manager (.+?)</b>"
Param #2: visit_url()
Param #1: download
[NORMAL] <- ""
Entering function visit_url
Unexpected error, debug log printed.
class java.lang.NullPointerException: null
java.lang.NullPointerException
at net.sourceforge.kolmafia.request.RelayRequest.pseudoResponse(RelayRequest.java:443)
at net.sourceforge.kolmafia.request.RelayRequest.sendLocalFile(RelayRequest.java:673)
at net.sourceforge.kolmafia.request.RelayRequest.handleSimple(RelayRequest.java:1448)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:1463)
at net.sourceforge.kolmafia.RequestThread.postRequest(RequestThread.java:73)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.visit_url(RuntimeLibrary.java:1744)
at net.sourceforge.kolmafia.textui.RuntimeLibrary.visit_url(RuntimeLibrary.java:1696)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sourceforge.kolmafia.textui.parsetree.LibraryFunction.execute(LibraryFunction.java:119)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:166)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:104)
at net.sourceforge.kolmafia.textui.parsetree.Assignment.execute(Assignment.java:101)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:451)
at net.sourceforge.kolmafia.textui.parsetree.Switch.execute(Switch.java:153)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:451)
at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:129)
at net.sourceforge.kolmafia.textui.parsetree.FunctionCall.execute(FunctionCall.java:166)
at net.sourceforge.kolmafia.textui.parsetree.BasicScope.execute(BasicScope.java:451)
at net.sourceforge.kolmafia.textui.parsetree.UserDefinedFunction.execute(UserDefinedFunction.java:129)
at net.sourceforge.kolmafia.textui.Interpreter.executeScope(Interpreter.java:265)
at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:198)
at net.sourceforge.kolmafia.textui.Interpreter.execute(Interpreter.java:191)
at net.sourceforge.kolmafia.KoLmafiaASH.getClientHTML(KoLmafiaASH.java:110)
at net.sourceforge.kolmafia.KoLmafiaASH.getClientHTML(KoLmafiaASH.java:77)
at net.sourceforge.kolmafia.request.RelayRequest.handleSimple(RelayRequest.java:1435)
at net.sourceforge.kolmafia.request.RelayRequest.run(RelayRequest.java:1463)
at net.sourceforge.kolmafia.webui.RelayAgent.readServerResponse(RelayAgent.java:453)
at net.sourceforge.kolmafia.webui.RelayAgent.performRelay(RelayAgent.java:143)
at net.sourceforge.kolmafia.webui.RelayAgent.run(RelayAgent.java:120)
Function visit_url returned:
[NORMAL] <- ""
Entering function create_matcher
Function create_matcher returned: <b>KoLmafia Preference Manager (.+?)</b>
Set: <b>KoLmafia Preference Manager (.+?)</b>
[NORMAL] <- "<b>KoLmafia Preference Manager (.+?)</b>"
I was trying out relay_pref_manager.ash and it all seemed to work perfectly. Very handy ! Thanks.
Looks like it might be the implementation of check_version
if(def == "false" || def == "true")
set_property(setting, write_check(get_property(setting).to_boolean(), setting, "").to_string());
else{
attr("size=50");
set_property(setting, write_field(get_property(setting), setting, ""));
}
if(def == "false" || def == "true")
set_property(setting, write_check(get_property(setting).to_boolean(), setting, "").to_string());
else if(setting != "customCombatScript"){
attr("size=50");
set_property(setting, write_field(get_property(setting), setting, ""));
}