Don't get me wrong, I understand what you are saying about the version strings. However without the third digit (eg. 0.9.0) you are entitled to do a straight comparison.
And therefore 0.10 is a lower version than 0.9, comparing strings or numbers.
Amended on Tue 09 Nov 2010 07:36 PM (UTC) by Twisol
Message
It's a variant, most likely. (Major).(Minor). It's just missing the (Patch) version, which is either added when needed (and assumed to be zero) or conflated into the minor version.
No, it's not precisely what semver.org describes, but you get my point. It's not intended to be a decimal number, but a period-separated list of decreasing-in-magnitude versions.
Bast said: It is because json checks lpeg to be < .9 which .10 is even though it is a new version.
Must be the (quote) "naive" version-handling I heard about on the mailing list. The author created a new version recently that fixes that, perhaps Nick can update the version MUSHclient ships with:
It is because json checks lpeg to be < .9 which .10 is even though it is a new version.
change lua/json/decode/object.lua to look like this
Line 67:
-- BEGIN LPEG < 0.9 SUPPORT
-- if DecimalLpegVersion < 0.9 then
-- objectItems = buildItemSequence(objectItem / applyObjectKey, ignored)
-- objectItems = lpeg.Ca(lpeg.Cc(false) / initObject * objectItems)
-- -- END LPEG < 0.9 SUPPORT
-- else
objectItems = buildItemSequence(lpeg.Cg(objectItem), ignored)
objectItems = lpeg.Cf(lpeg.Ct(0) * objectItems, rawset)
-- end
Line 24
--if DecimalLpegVersion < 0.9 then
-- function initObject()
-- return {}
-- end
-- function applyObjectKey(tab, key, val)
-- tab[key] = val
-- return tab
-- end
--end
-- END LPEG < 0.9 SUPPORT
Amended on Tue 09 Nov 2010 09:56 AM (UTC) by Broud
Message
installed 4.67. now my gmcp_handler won't load.
Run-time error
Plugin: GMCP_handler (called from world: Aardwolf)
Immediate execution
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: attempt to call field 'Ca' (a nil value)
stack traceback:
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: in function 'buildCapture'
...\Program Files\MUSHclient\lua\json\decode\object.lua:92: in function 'load_types'
C:\Program Files\MUSHclient\lua\json\decode.lua:84: in function 'buildDecoder'
C:\Program Files\MUSHclient\lua\json\decode.lua:97: in main chunk
[C]: in function 'require'
C:\Program Files\MUSHclient\lua\json.lua:5: in main chunk
[C]: in function 'require'
[string "Plugin"]:1: in main chunk
[WARNING] C:\Program Files\MUSHclient\worlds\plugins\GMCP_handler.xml
Line 79: Error parsing script (Cannot load)
[WARNING] C:\Program Files\MUSHclient\worlds\Aardwolf\Aardwolf.MCL
Line 2081: Error in file "C:\Program Files\MUSHclient\worlds\plugins\GMCP_handler.xml" (Not loaded)
MUSHclient mapper installed, version 2.0
Plugin 'GMCP_handler' not installed. Attempting to install it...
Run-time error
Plugin: GMCP_handler (called from world: Aardwolf)
Immediate execution
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: attempt to call field 'Ca' (a nil value)
stack traceback:
...\Program Files\MUSHclient\lua\json\decode\object.lua:70: in function 'buildCapture'
...\Program Files\MUSHclient\lua\json\decode\object.lua:92: in function 'load_types'
C:\Program Files\MUSHclient\lua\json\decode.lua:84: in function 'buildDecoder'
C:\Program Files\MUSHclient\lua\json\decode.lua:97: in main chunk
[C]: in function 'require'
C:\Program Files\MUSHclient\lua\json.lua:5: in main chunk
[C]: in function 'require'
[string "Plugin"]:1: in main chunk
[WARNING] C:\Program Files\MUSHclient\worlds\plugins\GMCP_handler.xml
Line 79: Error parsing script (Cannot load)
--------------------------------------------------------------------------------
Plugin 'GMCP_handler' not installed. Please download and install it.
It is required for the correct operation of the Aardwolf_GMCP_Mapper plugin.
--------------------------------------------------------------------------------
The good news however is that the errormsg when closing is fixed, as is my window lay out :)
Thanks for all this btw.
Amended on Mon 08 Nov 2010 04:53 AM (UTC) by Nick Gammon
Message
What a guess, eh?
Well just to confirm, comment out that line, and try closing MUSHclient*. See if the problem goes away.
function sort(name, line, wildcards)
tempdelay = GetSpeedWalkDelay()
-- SetSpeedWalkDelay(125)
amsorting=1
EnableTriggerGroup("sortmain")
SendNoEcho("identify "..wildcards[1])
end
(Make sure that is the only place - it seems strange he is getting the current delay time and not putting it back).
[EDIT]
* You will need to reload the plugin for the change to take effect, so either do a "reinstall" from the plugins list, or you will have to restart MUSHclient twice - the first time to get the reloaded plugin, and the second time to see if the problem goes away.
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.