PtokaX forum

Archive => Archived 5.0 boards => Request for scripts => Topic started by: Jacksons_Xone on 27 April, 2005, 11:06:27

Title: Phrase-O-Rama
Post by: Jacksons_Xone on 27 April, 2005, 11:06:27
Hey yall! First of all, Thanks to all lua cracks in here. This forum has helped me a lot in setting  up my hub and in understand the lua language. You guys rock.



Now here my request:


Can someone convert the phrase-o-rama script to lua5? I've tried with the converter and it's not working anymore. So I've just kept the txt files on my machine and deleted the lua.
I seem to not be able to find the original one. So if someone still has it, and would be so kind to convert it to lua5, that'll be awesome. The users in my Jacksons Hub loved it, since I modified it to only Jackson Family questions.

Thanks heaps in advance :)
NKM
Title:
Post by: Dessamator on 27 April, 2005, 12:58:48
done !!!

download here::Phrase-O-Rama (http://mznetwork.mozdesigners.com/i/forum_files/Phrase-O-Rama%20lua5.rar)
Title:
Post by: Jacksons_Xone on 27 April, 2005, 13:48:27
Wow!! Awesome, that's what i call light-fast :)
Title:
Post by: Dessamator on 27 April, 2005, 14:42:24
yw, i think it took 5 mins max,  the lua5 2 5 converter did most of the work, :D
Title:
Post by: Jacksons_Xone on 27 April, 2005, 22:11:08
hmmm.. after 10 - 15 min phrase-o-rama run time, robocop crashes.

This is the message i get:
Robocop\TableFunctions.lua:78: attempt to index local `hFile' (a nil value)

Robocop lua is completly turned off after it and needs a restart :( When phrase-o-rama is off, that error don't happens.
Title:
Post by: Jacksons_Xone on 28 April, 2005, 11:46:51
wow Mutor, your version keeps running without crashing Robocop 10.01c. Thanks

I was really clueless. The other one kept crashing Robocop all the time ......

Thanks to both of you :)
Title:
Post by: Herodes on 28 April, 2005, 11:50:04
That ver from what I see is a patched-up-for-Lua-5 version..
it doesn't take advantage of all the aspects of 5... io could benefit heavily.
many global vars could go local and some procedures could be rationalised, thus making the mem,cpu strain even more affordable ;)
Title:
Post by: Dessamator on 28 April, 2005, 12:23:36
QuoteOriginally posted by Herodes
That ver from what I see is a patched-up-for-Lua-5 version..
it doesn't take advantage of all the aspects of 5... io could benefit heavily.
many global vars could go local and some procedures could be rationalised, thus making the mem,cpu strain even more affordable ;)

indeed, mayb you could do it ;)
Title:
Post by: Herodes on 28 April, 2005, 21:58:25
QuoteOriginally posted by Dessamator
QuoteOriginally posted by Herodes
That ver from what I see is a patched-up-for-Lua-5 version..
it doesn't take advantage of all the aspects of 5... io could benefit heavily.
many global vars could go local and some procedures could be rationalised, thus making the mem,cpu strain even more affordable ;)

indeed, mayb you could do it ;)
working on it already ..
Title:
Post by: Jacksons_Xone on 30 April, 2005, 10:43:48
Hmm this is mean, after i added about 50 other lists to it, it gives me now another error. I just restarted and now it's fixed for some minutes. The error is not dramatic, the game keeps running but still it's an error.

The error message is:

Syntax C:\Ptokax\scripts\PoR 1.0b L5.lua:191: bad argument #2 to `random' (interval is empty)


I didn't changed nothing down on line 191
Title:
Post by: Dessamator on 30 April, 2005, 11:39:34
QuoteOriginally posted by Jacksons_Xone
Hmm this is mean, after i added about 50 other lists to it, it gives me now another error. I just restarted and now it's fixed for some minutes. The error is not dramatic, the game keeps running but still it's an error.

The error message is:

Syntax C:\Ptokax\scripts\PoR 1.0b L5.lua:191: bad argument #2 to `random' (interval is empty)


I didn't changed nothing down on line 191

maybe when herodes releases his optimized version that will be solved!!
Title:
Post by: Jacksons_Xone on 30 April, 2005, 12:39:56
thanks :)