Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » can someone test this please?
Re: can someone test this please? [message #213010 is a reply to message #213008] Sun, 13 August 2006 08:13 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
dead6re wrote on Sun, 13 August 2006 16:10

Why do you need a decent compiler for PHP, you don't compile PHP. You use the PHP.exe to run the script.


I was going to say that, but I assumed he meant something like PAR for Perl, which creates a .exe file of the Perl scripts, including all the nessicary code to run the Perl scripts (so they can be used on machines without Perl installed). I am not aware of any PHP equivilent, but I am sure there will be several available, try looking on google.


http://steamsignature.com/card/1/76561197975867233.png
Re: can someone test this please? [message #213028 is a reply to message #212438] Sun, 13 August 2006 10:36 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
The Renegade Engine can handle MP3's via a seperate command also part of BHS.dll

Looks in the always.dat to find the MP3's it has.


Let all your wishes be granted except one, so you will still have something to strieve for.
Re: can someone test this please? [message #213042 is a reply to message #212438] Sun, 13 August 2006 11:58 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)
yes, for the compiler for php i wanted something like par but i couldn't even get that to work Sarcasm .

the command in the fds for .mp3's(in clients always.dat) is musica.

just so you know(unless you know already) the startup sound is a sequence of sounds from always.dat so all players can hear it.
Quote:


i need to know if it is a good idea to use the hooks in scripts.dll to get infomation about the game, if i did, it would use alot less memory and would be faster but you would have to replace your scripts.dll in server directory for it to work. ideas?



what do you think?

Re: can someone test this please? [message #213074 is a reply to message #212438] Sun, 13 August 2006 15:45 Go to previous messageGo to next message
futura83
Messages: 1285
Registered: July 2006
Location: England
Karma: 0
General (1 Star)
Viva la Resistance!
so...would coding a bot in PHP only require the php to be in a *.php file or would it need to be able to run as an *.exe


(btw, dan, if you add plug-in support id be happy to code a few commands)


This is a signature. Reading this is wasting your time.
Re: can someone test this please? [message #213107 is a reply to message #213074] Sun, 13 August 2006 19:49 Go to previous messageGo to next message
chat is currently offline  chat
Messages: 34
Registered: August 2006
Karma: 0
Recruit
deleted

[Updated on: Sun, 13 August 2006 19:52]

Report message to a moderator

Re: can someone test this please? [message #213119 is a reply to message #212438] Mon, 14 August 2006 00:50 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)
you should be able to write it as as .php file. but i think you will need to download php.exe could i could not find it on my computer.

i have 2 questions,

1st: if someone joins my server when it was empty then i join they get an ID of 1 and i get 2 what happens when they leave? do i still have 2?

the 2nd one: should i use the hooks in scripts.dll?
Re: can someone test this please? [message #213139 is a reply to message #212438] Mon, 14 August 2006 04:11 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
1) I think your Game ID sticks with your per session. It isn't affect by people leaving and joining.

2) If you made your own scripts.dll, the usage of RenegadeServer.exe would increase because it still spits out all the other data.


Let all your wishes be granted except one, so you will still have something to strieve for.
Re: can someone test this please? [message #213141 is a reply to message #212438] Mon, 14 August 2006 04:17 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Also, if player ID 1 leaves when there are 4 players in the server, and then joins again a few minutes later (BEFORE the map changes) they will still be on ID 1, as the server reconnects them to their existing session (thats how you get your money back when you rejoin).

Sessions are only cleared when the map ends, so if ID 1 did not join before gameover then ID 1 would then be free for someone else to take on the next map.


http://steamsignature.com/card/1/76561197975867233.png
Re: can someone test this please? [message #213155 is a reply to message #212438] Mon, 14 August 2006 05:06 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)
yes that is what i thought... and hoped.
Re: can someone test this please? [message #213406 is a reply to message #212438] Tue, 15 August 2006 14:20 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)
after a few days of programming i have finally done somthing i thought would take me alot longer. but with the way i have done it can it be tested on a server with more than 4 poeple please.

the only command i have added is: !playerid it will get the id of any player from a string.

i will be adding polls next. and maby a ladder, but if not next it will be the one after.

all you will need to do (if you have downloaded the 0.60 version if replace the exe.

[Updated on: Tue, 15 August 2006 14:22]

Report message to a moderator

Re: can someone test this please? [message #213530 is a reply to message #212438] Wed, 16 August 2006 05: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)
I have finaly got plugins working! i have been working on it for a few days now, well here it is!

will be looking forward to a few comments...
it is easy to create them, just a dll with an exported function in the form:

const char * dllparse(char * message)
{
    //blabla
    return some_const_char_star;
}



remember to export and return "" if you cannot parse anything or it will be sent the the FDS!
Re: can someone test this please? [message #214398 is a reply to message #212438] Mon, 21 August 2006 17:53 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 a new version that has:

1) pollkick.
2) mods and admins.
3) some memory leakes cleared up.
4) a new engine to read files

note in any of the .txt files please make sure the last line is just a newline otherwise the last line will have random chars in it when read.

here it is: http://www.help-linux.com/stuff/H-L_Bot-0.90.zip

Re: can someone test this please? [message #215786 is a reply to message #212438] Mon, 28 August 2006 11:49 Go to previous messageGo to next message
trooprm02 is currently offline  trooprm02
Messages: 3266
Registered: August 2005
Location: Canada
Karma: 0
General (3 Stars)
How is it diff from other bots?

Does it take less resources?

Does it require IRC?

I think people would like a bot that doesn't need IRC, no installation (just a .exe), has built in RG, and the ablility to have plugins like in game ranks etc, and still be low-resource Huh

Maybe it is impossible, but that would be something very interesting Big Grin


Re: can someone test this please? [message #215827 is a reply to message #212438] Mon, 28 August 2006 14:15 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 doesn't need IRC it supports plugins. i am working on 9.0 to get a ladder as said. RG after that. then just add commands. it uses less resources than any bot that i have tested. but at the moment it has a memory leak that i canot find do after 10 hours it uses 2MB more.
Re: can someone test this please? [message #215906 is a reply to message #212438] Mon, 28 August 2006 21:56 Go to previous messageGo to next message
trooprm02 is currently offline  trooprm02
Messages: 3266
Registered: August 2005
Location: Canada
Karma: 0
General (3 Stars)
oMGZ?@Q?!}u ha4xwer1/!

ok, I was just like making up wild dreams not thinking any of that was possible Big Grin

This is looking like a really promising project Thumbs Up


Re: can someone test this please? [message #216029 is a reply to message #215906] Tue, 29 August 2006 10:11 Go to previous message
jnz is currently offline  jnz
Messages: 3396
Registered: July 2006
Location: 30th century
Karma: 0
General (3 Stars)
trooprm02 wrote on Tue, 29 August 2006 05:56

oMGZ?@Q?!}u ha4xwer1/!

ok, I was just like making up wild dreams not thinking any of that was possible Big Grin

This is looking like a really promising project Thumbs Up



Thank You.

it will have IRC support but can be disabled. and also it is diferent from other bots because this one *will* be much more cusomisable of course not yet.
Previous Topic: FDS Fixes & Patches
Next Topic: night regulator plugins
Goto Forum:
  


Current Time: Thu May 09 09:59:15 MST 2024

Total time taken to generate the page: 0.00969 seconds