PtokaX forum

Archive => Archived 4.0 boards => Finished Lua 4 scripts => Topic started by: c h i l l a on 30 January, 2004, 22:36:03

Title: Vier Gewinnt
Post by: c h i l l a on 30 January, 2004, 22:36:03
yepp its done first version,

but had to compile it, its just too great...

Phatty if you want to take a look just let me know ;).



VG 0.02 (http://fdw.ath.cx/p.scripts/VG-V.02.rar)
Title:
Post by: pHaTTy on 30 January, 2004, 23:07:13
QuoteOriginally posted by c h i l l a
yepp its done first version,

but had to compile it, its just too great...

Phatty if you want to take a look just let me know ;).



VG 0.02 (http://fdw.ath.cx/p.scripts/VG-V.02.rar)

ok thx, i got few questions first, what does name mean, what is it, and what it do? :p

lolol :) just having probs with me hub so cant test it yet ;)
Title:
Post by: HaL on 30 January, 2004, 23:28:02
hi chilla

very nice script ,i like it ;-)
Title:
Post by: pHaTTy on 30 January, 2004, 23:33:37
how to use it?
Title:
Post by: c h i l l a on 31 January, 2004, 12:29:14
Nd thanks Phatty for telling me that its Connect4 in english.

Hal, I still couldn't do your request but I solved some errors, and some other stuff...  and added cool scores
And you need the Folder in the rar also in your scripts folder

just type  help in a PM to the bot

VG-0.3 (http://fdw.ath.cx/p.scripts/VG-V.0.3.rar)
Title:
Post by: HaL on 02 February, 2004, 11:50:01
tach Chilla ;)

whats about a chess -bot? lol

the 4 connect script is very good !

gru? HaL
Title:
Post by: c h i l l a on 03 February, 2004, 16:41:07
game has been updated


   *** CONNECT 4 - 4 GEWINNT ***
   by chill

type help in Main or help to the bot in a PM.

   *** CHANGELOG ***

 - 3.2.04 - V.042
1. Added command, newgame, when game has ended and you want to play another one.

 - 2.2.04 - V.041
1. Added Chat to each other. when playing. (Timeout of 5 min, after Game has ended.)
2. Added Gametimeout between 50 and 60 minutes.
3. Added DisconnectCheck for Players.
Title:
Post by: MrBuitenhuizenJunior on 04 February, 2004, 18:12:48
Hello,

I've tested the latest version. It is fun playing the game. Very nice script  :D


[NL]MrBuitenhuizen
Title:
Post by: c h i l l a on 04 February, 2004, 18:34:19
thx :),

I will try to create something like connect6 or so, but adjustable...  if i get it.
Title:
Post by: ??????Hawk?????? on 04 February, 2004, 23:00:27
kewl script m8


anychance of a couple of changes

the invite dosnt say   connect4 ( or maby does in a different language )

<-Connect4-> ???.Hawk.??? invites you to a session of Vier Gewinnt, Type: Accept or Deny.


also can you shorten main chat commands to   something like  

     Main Chat
   -----------------------------------
   invite con4    - Invite a user
   topscore con4    - Shows the top scorers
   myscore con4    - Shows your score
   help con4    - Shows you this help


and add a description to the user list " type 'help con4' for commands"
Title:
Post by: c h i l l a on 05 February, 2004, 09:23:08
sure hawk,
just actually you can set the botname yourself, and then all you have to do it like

type  invite
Title:
Post by: ??????Hawk?????? on 05 February, 2004, 19:02:02
Hi   chilla   thx for your reply  i should have checked first but after reading your first post

Quoteyepp its done first version,
but had to compile it, its just too great...


i never tried to load it in to an editor

lol


Thx for a great script m8

also thx for TicTacToe   :]
Title:
Post by: c h i l l a on 05 February, 2004, 19:41:47
thx hawk... :)
yepp stoped to compile it, don't think anyone can just copy paste funcs anyways :).

Well and here is connect X
With an adjustable matrix :),
what ever you like 100x200 ;), and adjustable connects,
like 7 or so,
 but only viewed with
Text styles as


--Best Viewed with Font (recommended):
--   Courier
--   Courier New
--   Fixedsys
--   Lucida Console
--   MS Mincho
--   OCR A Extended
--   SimSun
--   TeleText   
--   TeleTextDH
--   Terminal
--   WST

also in the LUA file




Connect X V.01 (http://www.blue-lagoon.dk/dl_engine//files/Connect.X-V.01.rar)
Title:
Post by: ??????Hawk?????? on 05 February, 2004, 22:49:18
hi Chilla

i seem to have some errors when running on a live hub.

everything seem'd to work ok running a hub over lan  but get this when i added it to my hub:-

Syntax error: attempt to index a nil value
stack traceback:
   1:  function `ResetChat' at line 162 [file `...wks-world ptokax\scripts\Connect.Four-V.042.lua']
   2:  function `Play4G' at line 340 [file `...wks-world ptokax\scripts\Connect.Four-V.042.lua']
   3:  function `DataArrival' at line 131 [file `...wks-world ptokax\scripts\Connect.Four-V.042.lua']


i set the bots name to   connect4

and the nicks trying to use it were:-

???.Hawk.???  and  PO-Puggles


any clues m8  ???


[Edit]

btw i am refering to the earlier connect4 script
Title:
Post by: c h i l l a on 05 February, 2004, 23:25:10
you only wanted to play right?
was it right after the invitation ?
I will check it out, could be the nick, but I'll check.

And doesn't matter, there are no updates on the chat.
Title:
Post by: ??????Hawk?????? on 05 February, 2004, 23:58:52
Hi Chill


Quoteyou only wanted to play right?
was it right after the invitation ?

sorry  i dont  know  the hub runs on a server so didnt know when the errors occured.

we manage  3 moves  and then it stopped responding

so i quit  the game and invited him again  and  managed 2 moves before it stopped.

could it be   he was too long in responding abt  20-30 secs( whats the timeout before it quits itself ?)

thx m8
Title:
Post by: c h i l l a on 06 February, 2004, 14:11:12
I couldn't recall the error, sorry,
well you nick is fine, and the other one should be too.

just keep on trying..


but its anyways still in testing mode,

and here is  another one where the players decide over the size of their matrix and number of connects :)
But I bet still some bugs in it.

   *** CHANGELOG ***

 - 6.2.04 - V.03
1. Added possibility to create your own matrix for each game. check help

 - 5.2.04 - V.02
1. Tweaking of the Check for Win Function, as tweaking of build Matrix.

Connect X V.03 (http://www.blue-lagoon.dk/dl_engine//files/Connect.X-V.03.rar)
Title:
Post by: c h i l l a on 07 February, 2004, 13:12:39
fixed one error,
but else it runs okey.

connect x v.031 (http://www.blue-lagoon.dk/dl_engine//files/Connect.X-V.031.rar)

   *** CHANGELOG ***

 - 7.2.04 - V.031
1. Some changes, faster Play4G() handling.
2. Fixed, Scores were nil when ending even. thx, wenjon.
Title: Error
Post by: B@B? on 27 February, 2004, 13:35:30
Hi Chill ;-)

I use the Script from your HP - Vers. 042

I got this Error, everytime, i do something...?

Maybe YOU can fix it...

Syntax Error: bad argument #1 to `strlen' (string expected, got nil)

and sometimes:

Syntax Error: malformed pattern (missing `]')

In PtoKax 3.2.4 TD 4 Hub-Soft i do not have any Error while checking, ONLY! if i start the game...

Than it seems to work great but one Error (see above) after another is shown me by Hub-Soft...I can game but the script doesn?t save the Scores correctly...

Thx
Title:
Post by: c h i l l a on 27 February, 2004, 23:04:45
I will look into it, but you can also download connect x,

its a litle more advanced, and you need to set different font, such as courier new.
Title:
Post by: B@B? on 27 February, 2004, 23:12:20
Repair the 0.42...;-)

That would be  nice! Thank YOU!

Our Font is allways Comic Sans...

Maybe you can bind it?
Title:
Post by: B@B? on 29 February, 2004, 13:34:08
So what?  

I?m waiting...*g* (http://board.univ-angers.fr/images/smilies/biggrin.gif)
Title:
Post by: c h i l l a on 29 February, 2004, 20:58:05
can you help, me?

what do you do, when you get the errors, cause I don't get any.
Title:
Post by: B@B? on 01 March, 2004, 13:49:13
Like this:

QuoteOriginally posted by B@B?
Hi Chill ;-)

I use the Script from your HP - Vers. 042

I got this Error, everytime, i do something...?

Maybe YOU can fix it...

Syntax Error: bad argument #1 to `strlen' (string expected, got nil)[/u]

and sometimes:

Syntax Error: malformed pattern (missing `]')[/u]

In PtoKax 3.2.4 TD 4 Hub-Soft i do not have any Error while checking, ONLY! if i start the game...

Than it seems to work great but one Error (see above) after another is shown me in Hub-Soft...I can game! but the script doesn?t save the Scores correctly...

Thx

So i do nothing but Start...

Like >>> invite Peter (example)

With the first Order cames the first Error...

Later, after an while cames the second.

Saving is only given by restart the Script...

THX! 4 now...;-)
Title:
Post by: c h i l l a on 01 March, 2004, 18:58:58
try this one, it is the same version but maybe it will help.
Cause I get no errors with this version.

c4 (http://www.blue-lagoon.dk/dl_engine//files/Connect.Four-V.042.rar)
Title:
Post by: B@B? on 01 March, 2004, 22:00:52
OK, thx!

I?ll test it tomorrow in the morning...;-)

Than i give you an reply...