PtokaX forum

Lua 5.3/5.2/5.1 Scripts (for PtokaX 0.4.0.0 and newer) => Finished Scripts => Topic started by: Rincewind on 27 March, 2008, 19:44:19

Title: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Rincewind on 27 March, 2008, 19:44:19
Here (http://www.darknexus.co.uk/scripts/download.php?view.342) for download is Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition cut from Rincewind's Grimoire v5.0.0 Lua 5.1 API2 Edition

CHANGES
----------------------
• near total rewrite of script and GUI
• added option to play Trivia in PM
• added option to trivia to only show first hint [requested by Skelletona]
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Hades on 27 April, 2008, 02:56:48
I get this sometimes after script runs for a few minutes:



?:0: attempt to index field 'tGuessTheNumber' (a nil value)
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Rincewind on 27 April, 2008, 14:42:44
Hi Hades,

I've released a new version of the script would should resolve your problem, plus a couple others. You can get it here (http://www.darknexus.co.uk/scripts/download.php?view.351)
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Hades on 27 April, 2008, 18:15:52
 ;D
Updated script here still getting some errors:
 


    attempt to concatenate field '?' (a nil value)

Every once a while:(
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Rincewind on 28 April, 2008, 19:33:08
I'vbe been running this script in my test hub since yesterday and recevied no errors.

Can you identify any type of user joining hub or commands being used?
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: rEALx on 28 April, 2008, 19:54:26
Yes, the script works fine now.
I was also getting the error before.. but in the latest Rincewind's Trivia v2.0.0 Lua 5.1 API2 version, that error message is no more, works fine.

But when i try to clear the scores i am getting msg : "bad argument #1 to 'find' (string expected, got nil)"
I had added my nick to the authorized nick list to clear scores.

What may be the problem ?

thx for the nice script.

rEALx
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Rincewind on 29 April, 2008, 20:00:05
It's a bug. You can download version 2.0.2 here (http://www.darknexus.co.uk/scripts/download.php?view.352)
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Hades on 01 May, 2008, 23:03:37
ok when typing +quiz error appears :?:0: attempt to index field 'tGuessTheNumber' (a nil value)

version 2.0.2 error shows cant open folder ricewinds trivia or something grrr
Title: Re: Rincewind's Trivia v2.0.0 Lua 5.1 API2 Edition
Post by: Rincewind on 04 May, 2008, 09:15:15
My apologies for v2.0.2. I had the wrong product flag set.

Give 2.0.3 (http://www.darknexus.co.uk/scripts/download.php?view.353) a try