kickbattle V2
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

kickbattle V2

Started by plop, 10 June, 2004, 05:13:19

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

plop

instead of counting the contesters now need 2 type x words.
1 word per line otherwise it's considered cheating, which offcourse is punished.
it needs external word files, 1 word per line.
for this you can for exampl use the files from wombat's word jumble, or you can download the files from my website (word jumble word files can be found there 2).

download here

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

bastya_elvtars

GJ again, plop, as usual :D
Everything could have been anything else and it would have just as much meaning.

Cp6uja

Hi All !!!

plop nice work  :]

imby

amazing script. by far the best i've seen. plop or someone else. could you please implement these things for me? :

when kicked a user gets the default time ban.

like in the old script, a setting for when a user enters the hub with too many hubs, they get auto added as a ball?

maybe not sent as much txt to the main chat? condense the pictures somewhat?

make it more apparent to general users, that they're actually kicking someone.

maybe by rewording "[02:03] <-KickBattle-> x has scored. His/Her's current score is: 2"

to something along the lines of 'x has successfully kicked (cheating/faking users nick) from the hub' or something. my brain isnt working at the moment, but you get the idea.

Also, i'm getting the following syntax errors:

"No syntax errors in script file texter4.5.lua
Syntax error: attempt to call global `Save' (a nil value)
stack traceback:
   1:  function `Main' at line 63 [file `... - Games\ptokax 15.25\scripts\kickbattle_v2.lua']

Syntax error: attempt to concat global `cmd' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 367 [file `...rams - Games\ptokax 15.25\scripts\texter4.5.lua']

Syntax error: attempt to concat global `cmd' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 367 [file `...rams - Games\ptokax 15.25\scripts\texter4.5.lua']

Syntax error: attempt to concat global `cmd' (a nil value)
stack traceback:
   1:  function `DataArrival' at line 367 [file `...rams - Games\ptokax 15.25\scripts\texter4.5.lua']"

am using txter. seems something to do with txter but this error only happened when i added kickbattle. what it means or how to solve?

plop

kickbattle V2.1 is on my website try if it happens on that version.
i never saw that error on my hub, i reguarly run them side by side myself.

i removed the hub check as we (yep3 and me) came up with the idea 2 use CDM with a raw command 2 controll it.
so users can get release there stress on fakers. lol

download titmouse from the tools section of my website.
all the text which is shown in purple can be changed 2 your wishes.
just leave the " " round it.
small hint 2 avoid you from pulling out your hair, don't use ctrl-c.
that closes the file.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

thanks, will try what you said tomorrow and report back if need extra help. one thing though, checked your website. the link for v2 and 2.1 are exactly the same.

oh, and i thought that syntax info would give an inidication of what was causing it. dont know very much about scripting at all :)

plop

QuoteOriginally posted by imby
thanks, will try what you said tomorrow and report back if need extra help. one thing though, checked your website. the link for v2 and 2.1 are exactly the same.

oh, and i thought that syntax info would give an inidication of what was causing it. dont know very much about scripting at all :)
you found a bug in the CMS i made for my website.
the .1 was removed because of an error in a strfind.
thx.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

thx, the link to titmouse also seems dead.

tryed the new version. "Syntax error: bad argument #2 to `random' (interval is empty)
stack traceback:
   1:  function `random' [C]
   2:  function `GetWords' at line 194 [file `... Games\ptokax 15.25\scripts\kickbattle_v2.1.lua']
   3:  function `Commands' at line 317 [file `... Games\ptokax 15.25\scripts\kickbattle_v2.1.lua']
   4:  function `DataArrival' at line 374 [file `... Games\ptokax 15.25\scripts\kickbattle_v2.1.lua']"

still no chance in implementing the normal time ban for a kick? when kicked the users reconnect and enter the hub again within a minute. seems to only disconnect them. maybe a message to their client why they've kicked would also be nice, but haven't checked if that's implemented yet.

imby

"i removed the hub check as we (yep3 and me) came up with the idea 2 use CDM with a raw command 2 controll it. "

adding users who enter the hub who are in too many hubs would be a wonderful feature. because people would still be added as balls even when ops aren't around. or when ops are too lazy to add people all the time. an option to have it turned on or off in the next version would make you a god :D but i can appreciate why you'd not want to implement it if made more for personal use.  :))

plop

QuoteOriginally posted by imby
"i removed the hub check as we (yep3 and me) came up with the idea 2 use CDM with a raw command 2 controll it. "

adding users who enter the hub who are in too many hubs would be a wonderful feature. because people would still be added as balls even when ops aren't around. or when ops are too lazy to add people all the time. an option to have it turned on or off in the next version would make you a god :D but i can appreciate why you'd not want to implement it if made more for personal use.  :))
V2.2 is on my site.
------ V2.2
-- fixed error on random.
-- added, hub check can nominate ball's again.

enjoy

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

woohoo, thanks,  :D but still no temp ban for those kicked. just a disconnection. so those kicked rejoin again within a minute. if you don't want it there, maybe you or someone can show me what function to add to the script?

plop

QuoteOriginally posted by imby
woohoo, thanks,  :D but still no temp ban for those kicked. just a disconnection. so those kicked rejoin again within a minute. if you don't want it there, maybe you or someone can show me what function to add to the script?
change:
vix:Disconnect()

for
vix:TempBan()

line 304 in the DoGame function.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

been testing.
downloaded v2.2 fresh and removed other scripts so i could see what was going on.

upon: !addwords : Syntax Error: attempt to concat global `tScoresFolder' (a nil value)

Upon: !delwords : Syntax Error: attempt to concat global `tScoresFolder' (a nil value)

Next, implemented vix:TempBan() . feature works perfectly. no more errors to add, but the same errors specified are still there. max hub kick works fine also.

Set up as follows:

In folder scripts\kickbattle_v2.2.lua
              scripts\public_kick\kickbattle[E].txt
              scripts\public_kick\kickbattle.lua (made itself)

that's all the files associated.

plop

replace the SaveWords function for this 1:
function SaveWords()
   writeto(fScoresFolder.."/"..fLangFile)
   for i=1,getn(tGame.tBWords) do
      write(tGame.tBWords[i].."\n")
   end
   writeto()
end
small spelling error.
tScoresFolder should be fScoresFolder.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

(UK)Ridaz

Hiya Plop,

Im getting this error report
Syntax error: attempt to call global `Save' (a nil value)
stack traceback:
   1:  function `Main' at line 82 [file `... Debug\Ptokax Debug\scripts\kickbattle_v2.2.lua']

Could it be something im doing wrong?

imby

i got the same error. odd. i tested it on ptokax 4.99 and it worked perfectly. added it to 15.25 and got that error.

plop

version 2.3 is uploaded 2 my site.
again a stupid error, haven't been really here with my head the last weeks.
forgot 2 change Save() to SaveScores() on function Main().

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

(UK)Ridaz

QuoteOriginally posted by plop

change:
vix:Disconnect()

for
vix:TempBan()

line 304 in the DoGame function.

plop


Cheers again plop, i had to change the quoted line above in version 2.3 and now me and my users are  happy.

Keep them coming.

Ridaz

imby

yep, thanks a lot plop. gonna test it fully tonight. think i found a few minor errors. consider me your beta tester.  :D  dunno if my error reports are useful to you or irritating. i suspect the latter, but anyway, thanks for your patience and time. it's really appreciated.

plop

QuoteOriginally posted by imby
yep, thanks a lot plop. gonna test it fully tonight. think i found a few minor errors. consider me your beta tester.  :D  dunno if my error reports are useful to you or irritating. i suspect the latter, but anyway, thanks for your patience and time. it's really appreciated.
the only bug reports which are anoying are like "it doesn't work". lol
any detailed report with the msg's from the ptokax console and posible with the typed command are most welcome.
as i need those 2 be able 2 find the bug.
your bug reports are great.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby

ah, glad i'm not such a pest :)

error 1: if nominated ball itself types the magic words, not only does it stop him/her from being kicked, it seems to halt the script altogether. no errors seen in ptokax but seems mildy serious.

*goes back to testing*

imby

update: if nominated user types ANYTHING in the main chat at all, it cancels out the script completely. need a 'restart scripts' to get it working again. with the exception of that, can't find one other error. :D almost there.

plop

works fine here tho.
[02:40] <-KickBattle-> plop has been named the ball by [TGA-OP]plop in kick soccer for the following reason: test 
[02:40] <-KickBattle-> The magic words are: the / affectionately / typed 
[02:40]  the 
[02:40]  typed 
[02:40] *** Disconnected

[02:41] <-KickBattle-> plop has been named the ball by [TGA-OP]plop in kick soccer for the following reason: test
[02:41] <-KickBattle-> The magic words are: point / keyboards / end
[02:41]  point
[02:41]  point
[02:41]  end
[02:41]  keyboards
 
[02:42] <-KickBattle-> plop has been named the ball by [TGA-OP]plop in kick soccer for the following reason: test 
[02:42] <-KickBattle-> The magic words are: pretty / known / as 
[02:42]  pretty 
[02:42]  known 
[02:42] *** Disconnected

[02:43] <-KickBattle-> plop has been named the ball by [TGA-OP]plop in kick soccer for the following reason: test
[02:43] <-KickBattle-> The magic words are: god / online / through
[02:43]  balh
[02:43]  da
[02:43]  re
[02:43]  fsfg
[02:43]  ga
[02:43]  e
[02:43]  re
[02:43]  rwet
[02:44]  qtv
[02:44] <[TGA-OP]plop> god
[02:44] <[TGA-OP]plop> online
[02:44] <[TGA-OP]plop> through
[02:44] <-KickBattle-> [TGA-OP]plop has scored. His/Her's current score is: 25
[02:44] <-KickBattle-> No more balls left. Game ended!
plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

imby


imby

#24
never mind. did it myself with careful testing.
i'll delete if possible the script i pasted to save space.

pin pointed the error exactly. it wasn't something i did, added your script, then a user in too many hubs entered. if the user entered in too many hubs types the words it halts the script. then upon user in too many hubs rejoin: Syntax Error: `for' table must be a table.

i dunno if that helps.

SMF spam blocked by CleanTalk