[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Bug reports
. . -> [Subject]  Error msg when closing mush 4.64

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Error msg when closing mush 4.64
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Broud   Netherlands  (10 posts)  [Biography] bio
Date Wed 10 Nov 2010 04:59 AM (UTC)  quote  ]
Message
Nick Gammon said:


Glad to hear that. Hope you got the LuaJSON problem sorted too.


I've run the 4.68 installationand everything is perfect. Thanks alot.
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Nov 2010 08:37 PM (UTC)  quote  ]
Message
Roberto actually defined the version like this:


#define VERSION		"0.10"


And the lpeg.version function:


static int version_l (lua_State *L) {
  lua_pushstring(L, VERSION);
  return 1;
}


So it's a string, not a number. However:


print ("0.10" > "0.9") --> false


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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Nov 2010 08:30 PM (UTC)  quote  ]
Message
Twisol said:

It's a variant, most likely. (Major).(Minor). It's just missing the (Patch) version, ...


An invalid variant, considering the wording "[it] MUST take the form X.Y.Z".

It doesn't say "it must look something along the lines of X.Y.Z".

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Tue 09 Nov 2010 07:35 PM (UTC)  quote  ]

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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Nov 2010 07:30 PM (UTC)  quote  ]
Message
Twisol said:

It's a fairly common versioning tactic, in fact. http://semver.org/


From that:


A normal version number MUST take the form X.Y.Z where X, Y, and Z are integers.


Well 0.10 is not in that format, eh?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Nov 2010 07:28 PM (UTC)  quote  ]
Message
I've released version 4.68 of MUSHclient which simply has an updated LuaJSON module. This was tested with GMCP on Aardwolf and seems to work OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Tue 09 Nov 2010 07:27 PM (UTC)  quote  ]
Message
Nick Gammon said:
Well it's not *that* naive - 0.10 is indeed less than 0.9.

A bit silly to use numeric version numbers and then go from 0.9 to 0.1, eh? But that wasn't the fault of the LuaJSON author.

It's a fairly common versioning tactic, in fact. http://semver.org/

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Nov 2010 07:04 PM (UTC)  quote  ]
Message
Broud said:

The good news however is that the errormsg when closing is fixed, as is my window lay out :)


Glad to hear that. Hope you got the LuaJSON problem sorted too.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Tue 09 Nov 2010 07:04 PM (UTC)  quote  ]
Message
Well it's not *that* naive - 0.10 is indeed less than 0.9.

A bit silly to use numeric version numbers and then go from 0.9 to 0.1, eh? But that wasn't the fault of the LuaJSON author.

I've updated LuaJSON to version 1.2.1 in version 4.68 of MUSHclient, and tested with my trivial JSON encode/decode script. Seems to work OK.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Twisol   USA  (2,229 posts)  [Biography] bio
Date Tue 09 Nov 2010 04:01 PM (UTC)  quote  ]
Message
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:

http://lua-users.org/lists/lua-l/2010-11/msg00047.html

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
[Go to top] top

Posted by Bast   (76 posts)  [Biography] bio
Date Tue 09 Nov 2010 02:13 PM (UTC)  quote  ]

Amended on Tue 09 Nov 2010 02:14 PM (UTC) by Bast

Message
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


Bast

Bast

Scripts: http://bastmush.googlecode.com
[Go to top] top

Posted by Broud   Netherlands  (10 posts)  [Biography] bio
Date Tue 09 Nov 2010 09:52 AM (UTC)  quote  ]

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.
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Mon 08 Nov 2010 05:29 AM (UTC)  quote  ]
Message
I've released version 4.67 - just try that to see if it fixes the problem.


http://www.gammon.com.au/forum/?id=10719

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Nick Gammon   Australia  (18,769 posts)  [Biography] bio   Forum Administrator
Date Mon 08 Nov 2010 04:49 AM (UTC)  quote  ]

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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Broud   Netherlands  (10 posts)  [Biography] bio
Date Mon 08 Nov 2010 04:43 AM (UTC)  quote  ]
Message
function sort(name, line, wildcards)
tempdelay = GetSpeedWalkDelay()
SetSpeedWalkDelay(125)
amsorting=1
EnableTriggerGroup("sortmain")
SendNoEcho("identify "..wildcards[1])
end

in a plugin named containersort.xml
[Go to top] top

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.


3,110 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]