Old posts that have not been replied to for several years.
L
Loveless
Post
by Loveless » Mon Sep 13, 2004 5:39 pm
I have written a poker module in C, which (most likely) works fine. The problem is that I cant figure out how to connect to it from a script.
Lets say the module is named dealer.mod, and I have two functions called OpenReg and JoinTable.
How do I "find" these functions from my dealer.tcl file? (the module loads fine with the bot)
KrzychuG
Master
Posts: 306 Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:
Post
by KrzychuG » Mon Sep 13, 2004 5:58 pm
You have to add tcl function into module. Take a look at server module, tclirc.c file. Check module_start (for add_tcl_commands(my_tcl_cmds); ) and module_close function (for rem_tcl_commands(my_tcl_cmds); )
Que?
L
Loveless
Post
by Loveless » Tue Sep 14, 2004 1:45 am
Ok, thanks I'll give that a check.