Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Official SBot Thread  () 3 Votes
Re: Official HL bot thread [message #216020 is a reply to message #215844] Tue, 29 August 2006 09:26 Go to previous messageGo to next message
SODPaddy is currently offline  SODPaddy
Messages: 232
Registered: August 2005
Location: Germany
Karma: 0
Recruit

Quote:

HL-Bot made by Daniel Astbury

Hi, thanks for testing this for me.

just put make sure all files in zip are in one folder. edit config.cfg.

fds_ip = The remote ip address FDS listens on eg: 127.0.0.1
fds_port = this is the port FDS listens on eg: 4848
fds_pass = this is your admin password for FDS eg: My_great_password
auto_secs = this is the number of seconds to wait till the next auto announce
Note: if this is set to somthing other than a number it wil probably crash the bot

edit rules.txt for the command !rules
edit auto.txt for the autoannounce 1 line = an announcement.

if you type in public chat "hi, hey" or "hello" the bot will reply to this.

Thanks to Cat998 for helping me get the UDP socket open.

as of 0.80 there is now plugin support!!! just create a dll with the function:

const char * dllparse(char * message)
{
//do somthing with message here
}




Website: www.Area54.eu

Once 54, Always 54.
(\__/)
(O.o )
(___)
Visit us at www.Area54.eu
Re: Official HL bot thread [message #216028 is a reply to message #215844] Tue, 29 August 2006 10:08 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
hmm, must of put an old readme in here. what made you think it was a plugin?

anyway here is a updated version of the readme:
http://www.help-linux.com/stuff/H-L_Bot-1.0.zip

Re: Official HL bot thread [message #216030 is a reply to message #215989] Tue, 29 August 2006 10:20 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
Nightma12 wrote on Tue, 29 August 2006 13:41

Quote:

plugins from brenbot would not work as the way that brenbot talks to them, if i knew how to make them myself i could make mine a little more universal.


it shouldnt b too hard to get NR plugins working in HL Bot?

all you would have to do would b to place the dlls in yor bot dir.. then call the right functions


unfortanetly the bot will only call dllparse function and send to the fds what it returned unless it is ""

[/quote]

meaning you edit the bot to call the right functions Razz

what would be nice would be some kind of universal plugin system across all the bots
Re: Official HL bot thread [message #216036 is a reply to message #215844] Tue, 29 August 2006 10:26 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
does anybody know any plugin tutorials for brenbot? i could make it universal to brenbot
Re: Official HL bot thread [message #216049 is a reply to message #215844] Tue, 29 August 2006 11:04 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
you would have some issues with that as you would need to be able to compile Perl....

NR plugins would just b a case of calling a few functions lol
Re: Official HL bot thread [message #216074 is a reply to message #215844] Tue, 29 August 2006 12:02 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
it is easy to compile perl, but it would have to be in a dll and it would also have to be wrapped.
Re: Official HL bot thread [message #216081 is a reply to message #215844] Tue, 29 August 2006 12:14 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
i dont see how you would b able to do that.... but give it a shot! Big Ups
Re: Official HL bot thread [message #216092 is a reply to message #215844] Tue, 29 August 2006 12:40 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
but first of all i need to know how to create them in the first place lol
Re: Official HL bot thread [message #216093 is a reply to message #215844] Tue, 29 August 2006 12:42 Go to previous messageGo to next message
AmunRa is currently offline  AmunRa
Messages: 574
Registered: September 2005
Location: Lilburn, Georgia
Karma: 0
Colonel

all brenbot really is is perl scripts compacted into an executable file. Therefore you cannot make a dll out of perl.
Re: Official HL bot thread [message #216100 is a reply to message #215844] Tue, 29 August 2006 12:57 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
ok, i had a thought. i could create a command system where the bot parses the commands eg:

Trigger = !help
Arguments = 0
send_to_fds = ppage <player_id> commands are: !help


or

Trigger = !help
Arguments = 1
if <Arguement 1> == help
then send_to_fds = ppage <player_id> this will display all the commands
else send_to_fds = ppage <player_id> command not found!


do you think this could be a good plugin routine?

Re: Official HL bot thread [message #216118 is a reply to message #215844] Tue, 29 August 2006 14:03 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
take a look at the NR plugin compabilities:


www.aohost.co.uk/NRplugin.dll.txt

^^^ that is a list of functions within NRplugin that can be used as hooks


and heres a list of functions within NRcore.dll that you are able to call from the plugin:

www.aohost.co.uk/NRcore.dll.txt

i also have an NRCommands.dll.txt and when you add a command into it it REALYL DOES feel as if it is really built into the bot... even the permission structure is easy to replicate with good documentation so the command even appears on the GUI....




thats basically the kind of thing that you would need to do to have a decent + powerful plugin system Smile

i really doubt any of your current systems would be sufficiant enough to create powerful plugins, although your commands system has potential, it would need alot of upgrades as your basically writing your own language... its best to stick inside dlls and stick with a language well known (eg, C++)
Re: Official HL bot thread [message #216129 is a reply to message #216118] Tue, 29 August 2006 15:11 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Nightma12 wrote on Tue, 29 August 2006 22:03


i really doubt any of your current systems would be sufficiant enough to create powerful plugins, although your commands system has potential, it would need alot of upgrades as your basically writing your own language... its best to stick inside dlls and stick with a language well known (eg, C++)


thanks for the advice! i am doing it in c++, i have a 2.0 with this implimented. it took a long time but i did it, well here it is: http://www.help-linux.com/stuff/H-L_Bot-2.0.zip

it is very small at the moment but i getting the hang of writing it. the code that parses plugin.txt is already capible of parsing multible things but i am tired and cannot think logically anymore.
i have included a sample plugin.txt, that impliments the !website command. enjoy!
Re: Official HL bot thread [message #216131 is a reply to message #215844] Tue, 29 August 2006 15:19 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
i had a look at those source files and i am no VN programmer, seriously(lol spelling) me and VB dont mix. i hate the syntax!

but nice programming, nightregulator is the best out yet. but i have a question, i see that there is a list of bad names, but what if someone actully has those names? like "gdi" or "nod" in fact there is a player called "nod" so he cannot join any server with NR running on it or am i just reading it wrong?
Re: Official HL bot thread [message #216138 is a reply to message #215844] Tue, 29 August 2006 15:53 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
im gonna learn vb to create a few plugins for NR. Smile

This is a signature. Reading this is wasting your time.
Re: Official HL bot thread [message #216139 is a reply to message #215844] Tue, 29 August 2006 15:53 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
Quote:

i see that there is a list of bad names, but what if someone actully has those names? like "gdi" or "nod" in fact there is a player called "nod" so he cannot join any server with NR running on it or am i just reading it wrong?


those names are their either coz of FDS exploits, or coz it fucks up the parseing on NR

if somebody join under the name NOD, it fucks up the game_info command, as renlog will output NOD: 23/32, but then the player could type things like 0/32 and NR would then think that nobody is on team NOD... so i make it auto-kick names that would screw something up


the server owner would either have to disable auto-kick malicious nicks on the NR Settings tab, or edit NRplugin.dll to remove the name


EDIT: some names are in there just so that someone dousnt join with a dodgey nickname too lol

[Updated on: Tue, 29 August 2006 15:54]

Report message to a moderator

Re: Official HL bot thread [message #216142 is a reply to message #215844] Tue, 29 August 2006 15:59 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
ah, i knew it would be somthing like that.

anyways, this is off topic but what do you think of the image in my sig? i am a first timer so go easy.
Re: Official HL bot thread [message #216143 is a reply to message #215844] Tue, 29 August 2006 16:00 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
it's good.

this is also off topic, but where can i get visual basic 6.0(yes, i used google to no luck)


This is a signature. Reading this is wasting your time.
Re: Official HL bot thread [message #216144 is a reply to message #215844] Tue, 29 August 2006 16:03 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
PM

EDIT: help-linux, and yeah, it could be better but for a first timer it looks pretty good! Smile

i know i couldnt do any better! Very Happy

[Updated on: Tue, 29 August 2006 16:03]

Report message to a moderator

Re: Official HL bot thread [message #216145 is a reply to message #215844] Tue, 29 August 2006 16:04 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
or that website i tolf you about begining with a "ph"
Re: Official HL bot thread [message #216147 is a reply to message #215844] Tue, 29 August 2006 16:06 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
i forgot about that.

but anyway, nightma, linked me to a download.

thanks again Smile


This is a signature. Reading this is wasting your time.
Re: Official HL bot thread [message #216152 is a reply to message #216144] Tue, 29 August 2006 16:45 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
Nightma12 wrote on Wed, 30 August 2006 00:03

PM

EDIT: help-linux, and yeah, it could be better but for a first timer it looks pretty good! Smile

i know i couldnt do any better! Very Happy



thanks!

i just realized, take a look at this: http://help-linux.com/stuff/HL.png

it looks like the letters are poping out of the screen.

[Updated on: Tue, 29 August 2006 16:48]

Report message to a moderator

Re: Official HL bot thread [message #216221 is a reply to message #215844] Wed, 30 August 2006 04:34 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
i have improved the parseing engine for plugin.txt and added a renegade server startup question at the begining.

http://www.help-linux.com/stuff/H-L_Bot-2.1.zip

looking forward to some coments.
Re: Official HL bot thread [message #216323 is a reply to message #215844] Wed, 30 August 2006 15:25 Go to previous messageGo to next message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
HL Bot 2.2 is here!: http://www.help-linux.com/stuff/H-L_Bot-2.2.zip

i was wondering weather i should add an installer, so you only download one file, an *.msi, should i?
Re: Official HL bot thread [message #216325 is a reply to message #215844] Wed, 30 August 2006 15:27 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
might as well, that way, users can configure it in one conveniant installer and also put icons in their start menu without haveing to manually do it.

This is a signature. Reading this is wasting your time.
Re: Official HL bot thread [message #216346 is a reply to message #215844] Wed, 30 August 2006 16:31 Go to previous messageGo to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
here is is then: http://www.help-linux.com/stuff/HL-Bot-2.20.msi

hope this is easyer
Previous Topic: [Resolved] Few SSGM questions
Next Topic: FDS and BrenBot
Goto Forum:
  


Current Time: Fri Sep 27 16:26:13 MST 2024

Total time taken to generate the page: 0.01865 seconds