Trivia-Ex-V.0.681_5.1.3 - Page 2
 

Trivia-Ex-V.0.681_5.1.3

Started by [NL]Daddy-Bear?, 08 March, 2008, 15:31:02

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ATAG

Don't forget to enable the scripting interface in the settings...

Hades

Its on.
I have selfreg,rolling tropic and hubmenu up and running at the moment but trivia crashes with error code:

Trivia-Ex-V.0.681_5.1.3.lua:157: attempt to index global 'Core' (a nil value)

thats after editing

In line #157 change
Code:

TrivEx._Sets.folder = "TRIVIA"

to
Code:

TrivEx._Sets.folder = Core.GetPtokaXPath().."scripts/TRIVIA"

ATAG

Then i've got no idea   :-\

Hemarr

awesome job you have done with this script [NL]Daddy-Bear. Thanks to scriptwriters like you This great script keeps on ticking

Hades

Any idea how to make this script work on unix?
I got ptokax 4.1.1 running on Ubuntu and cant get it to work:(

[NL]Daddy-Bear?

Sorry Hades i've got no idea.  ???
???????????? Lets enjoy our Hobby ??????????

dchub://daddys-friends-association.no-ip.org:4106

take a peek you are welcome :D

Daywalker?

Dunno for sure but the lua is the same i think, it's the Path to the files that makes it not working imo  the \  \\  /  //  issue ^^

Hades

So can i rfeplace the path with acctual path like for example
path = /home/PtokaX/scripts/triviaquestions.txt??
What's the code to replace?

Daywalker?

i don't know much about linux but if you use it you should now where to find the triviaquestions.txt file and how the path must be created :)

Hades

Whats the lua syntax for creating a path?
I have no clu about coding?

CE3AM

Hi ! I have a problem to Add &Start new questions...Some ideas ?!
Regards

CE3AM

TrivEx._Scores = {
   ["scorpio"] = {
      ["Streak"] = 1,
      ["Score"] = 29,
      ["AvTime"] = {
         [1] = 88.01,
         [2] = 3,
         [3] = 29.34,
      },
   },
}



There is something wromg :( Cannot be loadet  ! Mesech:Syntax cannot open TRIVIA/Trivia ExScores.txt No such file or directory . Cannot play new loaded questions ?!
Regards
CE3AM

Hemarr

If you backtrack a bit on this thread your question has been already answered you need to change where it looks for files



In line #157 change
Code:

TrivEx._Sets.folder = "TRIVIA"

to
Code:

TrivEx._Sets.folder = Core.GetPtokaXPath().."scripts/TRIVIA"

Annie

#38
Quote from: Hades on 19 December, 2008, 08:34:28
Thanx ATAG but didn't work now i'm getting

\scripts\Trivia-Ex-V.0.681_5.1.3.lua:157: attempt to index global 'Core' (a nil value)

instead.  :(

line 157 I changed to

TrivEx._Sets.folder = "scripts/TRIVIA"

and I have no errors then :)


Ive set this up and its working, but.....   I cant answer the questions it wont accept any answer, Is there something I have done wrong?

the-master

make sure trivia is above al scripts that check mainchat, perhaps on top at ptokax scripts
keep on sharing :)

SMF spam blocked by CleanTalk