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 18 May, 2008, 13:17:35

Title: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Rincewind on 18 May, 2008, 13:17:35
New version of Trivia cut from Rincewind's Grimoire v5.0.2 available here (http://www.darknexus.co.uk/scripts/download.php?view.362)
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Hades on 19 December, 2008, 01:59:07
Hi m8!

Every time someone types +scores -scores or ! scores script crashes with error:

?:0: attempt to index field 'tGuessTheNumber' (a nil value)

Im using trivia 2.0.4 standalone ver - can this b fixed?

PS.
Im running PX 4.1.1 lua 5.1.3 on ubuntu linux.
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Rincewind on 19 December, 2008, 13:15:29
Hi,

I'll see about getting this fixed (at work at the moment but will investigate once I am at home).
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Rincewind on 21 December, 2008, 13:25:49
I have tested this and can;t get it to error.

What is in your tSwitches table?
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: ATAG on 21 December, 2008, 21:22:36
I've tried it out on debian.. the script works for me without any modification.
Quote[21:20:15] <?GamesBot?> Question 1 of 15. Music:Name the Artist/Band that recorded this song: Motorbreath (Hetfield)?
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Hades on 29 December, 2008, 08:09:31
What's tswitches table?
Im running on ubuntu - still get error everytime -scores is used
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Rincewind on 29 December, 2008, 13:40:57
Apologies, from memory I thought tSwitches existed in the Trivia settings but it seems it does not.

When did you download the file? I checked the one up there now and it worked fine (as it did for ATAG)?
Title: Re: Rincewind's Trivia v2.0.4 Lua 5.1 API2 Edition
Post by: Hades on 05 January, 2009, 21:56:29
downloader right now again from this post link - your 1st post with a link also tried from your website but get this error now:


0.4.1.1\scripts\Rincewind's Trivia.lua:8: attempt to index global 'Core' (a nil value)

What else: From r click menu when clicking on Trivia 2.0.4 information script fails with error:

?:0: attempt to index field 'tGuessTheNumber' (a nil value)     - i have no guess the number game at all something is wrong here!