Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Official SBot Thread  () 3 Votes
Re: Official SBot Thread [message #248704 is a reply to message #215844] Wed, 07 March 2007 22:15 Go to previous messageGo to next message
Fifaheld is currently offline  Fifaheld
Messages: 349
Registered: October 2005
Karma: 0
Recruit
How long is he now please beta? Dont Get It

[Updated on: Wed, 07 March 2007 22:17]

Report message to a moderator

Re: Official SBot Thread [message #248705 is a reply to message #215844] Wed, 07 March 2007 22:31 Go to previous messageGo to next message
Tunaman
Messages: 1189
Registered: January 2005
Karma: 2
General (1 Star)
Sbot Status: Getting closer to the official BETA release.

That's from his signature.^
So I'm guessing it will probably be sometime soon, noone knows for sure. Smile


http://img694.imageshack.us/img694/9055/tunamanlmao.png

[Updated on: Wed, 07 March 2007 22:31]

Report message to a moderator

Re: Official SBot Thread [message #248713 is a reply to message #215844] Thu, 08 March 2007 01:10 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)
This will be a public bot. im wouldn't of made this thread otherwise. As soon as the testers can run it for more then 5 days with no problems. everything works. i wil release the BETA publicly.

if i released it now, i would have so many negative questions and comments. there is a bug atm if the FDS crashed i would get EG: "if the FDS crashes or shutsdown. the Sbot starts spamming me with messages".
Re: Official SBot Thread [message #248716 is a reply to message #215844] Thu, 08 March 2007 01:51 Go to previous messageGo to next message
Fifaheld is currently offline  Fifaheld
Messages: 349
Registered: October 2005
Karma: 0
Recruit
comes sbot with his own scripts.dll???
Re: Official SBot Thread [message #248744 is a reply to message #215844] Thu, 08 March 2007 08:41 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)
The server side part of Sbot is a SSGM plugin. The client can then be run anywhere.
Re: Official SBot Thread [message #248746 is a reply to message #215844] Thu, 08 March 2007 10:16 Go to previous messageGo to next message
Fifaheld is currently offline  Fifaheld
Messages: 349
Registered: October 2005
Karma: 0
Recruit
nice...please can i test him Blush
Re: Official SBot Thread [message #248749 is a reply to message #215844] Thu, 08 March 2007 10:42 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)
im not sure yet. i don't know how much testing its going to need. i finally finished the login / logout thing on the Access Levels. i made a video, im just uploading. it just shows what you can do with the panel.

the only mandatory access level you must have is Public. This stores all the commands the public can use.

if you create a access level say "Admin" then add a user to it. untill they login they have Public access level commands. when they do, they have their own set of commands. this means you can disable commands for admins that the public can use.

on the video, im sorry if i go a bit fast Razz i had to retake tha a few times because i kept putting my actual password in Blush

i hope you like it Razz

EDIT: http://dansprojects.co.uk/Sbot_Login_Logout/ you will have to wait a long time for the video to load.

[Updated on: Thu, 08 March 2007 10:44]

Report message to a moderator

Re: Official SBot Thread [message #248885 is a reply to message #215844] Fri, 09 March 2007 03: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)
Update:

Finished !donate
Changed the commands edittor. so you can use !playername! !accesslevel! and !commands!.

!playername! - will convert to thename of the player that called the command.
!accesslevel! - access level of this player. if it as a mod or admin, but they are logged out; it will display as Public.
!commands! - commands that this player has permission to use.

example for !help.

!accesslevel! commands are: !commands!
would translate to (if i was Admin and logged in)
Admin commands are: !help !ahelp !kick etc etc...
Re: Official SBot Thread [message #248886 is a reply to message #215844] Fri, 09 March 2007 04:05 Go to previous messageGo to next message
Fifaheld is currently offline  Fifaheld
Messages: 349
Registered: October 2005
Karma: 0
Recruit
waiting time is a bad time Blush
Re: Official SBot Thread [message #248889 is a reply to message #215844] Fri, 09 March 2007 05:09 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)
im sorry about the waiting time, i thought this project was going to be easier than i thought. alot of the time consuming is because i have to think of the logic on how to do something.

take the swear filter for example. the commands were easy. but at the moment i can't think how i can get the Sbot to "remeber" if someone has said something bad. actully detecting something bad is easy. i an use if(Message->Contains("swear word")). i might have this feature finished today.

another thing is, i have been working on this for at least 3 hours a day. for a few months. sometimes i just don't want to do it. motivating myself to do this is becomming increesing harder.

Stuff still todo:

!vote
!swearfilteron
!swearfilteroff
!setmusic
!rank
!getip
!getusednames

make admin / mod commands work in IRC.

I will have done today:

!getip
!getusednames
!setmusic
!swearfilteron }mabe
!swearfilteroff }
Re: Official SBot Thread [message #249161 is a reply to message #215844] Sat, 10 March 2007 14:18 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)
Update:

Ok, IRC. What i am going to do is, use the same engine that parses the players in game. However, if someone logs-in in-game; someone in IRC with the same name will have the commands. EG:

i am roshambo in-game.
someone in IRC is also called roshambo.

i !login in-game.
the person in IRC will have the same commands i have. so, in my server it will be an admin. i suggest that you make a password for your in-game nick on the IRC channel.


Now that i am dealing with access levels. it would be nice if someone could crash course me in how to make someone have an "@" or "~" prefixed the their name; and what they mean.

Sbot is coming along pretty well, I'm just creating the !vote command, cleaning up. finishing IRC script. Then sending off to BETA testers.

After the testers have cleaned up all of the bugs for me with the most powerful bug spray they have to offer, i will release publicly. Smile

Don't expect it to come with loads of Uber features because it wont. its capable of directly communicating with scripts.dll, this makes it very powerful. Remember if there is a feature you wont in a next release just say, or talk to me on msn. Don't ask untill the first publicly available release is out Wink
Re: Official SBot Thread [message #249184 is a reply to message #249161] Sat, 10 March 2007 16:28 Go to previous messageGo to next message
Whitedragon is currently offline  Whitedragon
Messages: 831
Registered: February 2003
Location: California
Karma: 1
Colonel
gamemodding wrote on Sat, 10 March 2007 16:18

Update:

Ok, IRC. What i am going to do is, use the same engine that parses the players in game. However, if someone logs-in in-game; someone in IRC with the same name will have the commands. EG:

i am roshambo in-game.
someone in IRC is also called roshambo.

i !login in-game.
the person in IRC will have the same commands i have. so, in my server it will be an admin. i suggest that you make a password for your in-game nick on the IRC channel.


Major security risk. Do it another way.


Black-Cell.net
Network Administrator (2003 - )

DragonServ, Renegade's first IRC interface bot
Creator and lead coder (2002 - )

Dragonade, Renegade's first server side modification
Lead coder (2005 - )
Re: Official SBot Thread [message #249188 is a reply to message #215844] Sat, 10 March 2007 17:05 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)
:/ 10x harder, meh. Stern

just as a small update:
all the commands that work in-game now work in IRC. commands like !buy just return the error "You cannot use this command in IRC".

in IRC, you will have to !login (by paging the Sbot) before you can use your userlevel commands. It doesn't matter if you have logged in, in-game, you will still have to !login.

Re: Official SBot Thread [message #249242 is a reply to message #215844] Sun, 11 March 2007 04:09 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)
Update:

Finished voting engine. just need to add some actul votes, any suggestions? so far i have gameover and kick.

ToDo:

!swearfilteron
!swearfilteroff
!setmusic

clean up code, remove all the try-catch blocks and add proper error catching system.


Re: Official SBot Thread [message #249336 is a reply to message #215844] Sun, 11 March 2007 19: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)
I have been working on the IRC part for a bit and deicded to impliment another class into Sbot. This just stores infomation, for any programing nubs out there.

and so, i was messing around. in engine.h looking in The_Game-> and Commands-> to see what infomation about the game i could find. so i make this class.

ref class GameInfo
{
public:
	String ^MapName;
	double TimeRemaining;
	int PlayerCount;
	int NodPlayerCount;
	int GDIPlayerCount;
	double NodScore;
	double GDIScore;
	int MineLimit;
	String ^SpawnCharNod;
	String ^SpawnCharGDI;
	int GDIProxyC4;
	int NodProxyC4;
	int GDIRemoteC4;
	int NodRemoteC4;
	int NodVehicleCount;
	int GDIVehicleCount;
	String ^ Is_Nod_Powered;
	String ^ Is_GDI_Powered;
	String ^ Can_Nod_Generate_Vehicles;
	String ^ Can_GDI_Generate_Vehicles;
	String ^ Can_Nod_Generate_Soliders;
	String ^ Can_GDI_Generate_Soliders;
};


these are all the variables i have to play with. this whole class is updated every 5 seconds. if you know of anything else i should have here, say; and how to get the info from scripts.dll. for some reason i couldn't get the timed c4 count :/

index.php?t=getfile&id=2989&private=0


this ^^ is !gameinfo (!gi) in IRC ^^

it automaticly displays this every 5 miniuts. im going to do a gameover one as well.


also to some non-programming nubs. i used String instead of bool because it was throwing an error when trying to convert. its was odd really :/
  • Attachment: gameinfo.png
    (Size: 4.14KB, Downloaded 350 times)
Re: Official SBot Thread [message #249345 is a reply to message #215844] Sun, 11 March 2007 20:23 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)
:/

how many ways is it possible to win on rene? for some reason:
The_Game()->WinType


goes up to 4 starting at 0. i found that:

0 == server shutdown
1 == dunno
2 == time limit
3 == base destruction
4 == beacon on ped.

so what the hell is #1 ??? Whats That Huh Dont Get It Angry Crazy Stern Shocked Eh Sly Shocked Evil or Very Mad Twisted Evil Nervous Idea Question
Re: Official SBot Thread [message #249348 is a reply to message #215844] Sun, 11 March 2007 21:07 Go to previous messageGo to next message
Fifaheld is currently offline  Fifaheld
Messages: 349
Registered: October 2005
Karma: 0
Recruit
same points on gdi and nod? a draw??? or a points win...

[Updated on: Sun, 11 March 2007 21:09]

Report message to a moderator

Re: Official SBot Thread [message #249349 is a reply to message #215844] Sun, 11 March 2007 21:28 Go to previous messageGo to next message
Tunaman
Messages: 1189
Registered: January 2005
Karma: 2
General (1 Star)
There are no draws in Renegade.

http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Official SBot Thread [message #249358 is a reply to message #215844] Sun, 11 March 2007 22:09 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Are you sure?

<YorkBot> [NR] Gameover, Game Was A Draw! With A Joint Score Of 0. The Next Map Will Be: C&C_City_Flying.mix...


-Jelly Administrator
-Exodus Administrator
Re: Official SBot Thread [message #249361 is a reply to message #215844] Sun, 11 March 2007 22:18 Go to previous messageGo to next message
Tunaman
Messages: 1189
Registered: January 2005
Karma: 2
General (1 Star)
The NR bot reads it as a draw but it is not. It will have said GDI won that game, and anyways the likelyhood of an actual draw is extremely(and I mean extremely) unlikely. This is because there are actually fractions of points that you can get that aren't shown because the points are only shown in integers.
Go ahead and load up a 1 v 1 LAN game and play as nod, and you'll see that your team score is below GDI's while you have 0 score. Now, go shoot the outside of a GDI building with your pistol and you'll see that the Nod score jumps over the GDI score while the score does not seem to change... This is because you got an extremely small fraction of a point when you shot the building with your pistol.


http://img694.imageshack.us/img694/9055/tunamanlmao.png
Re: Official SBot Thread [message #249367 is a reply to message #215844] Sun, 11 March 2007 22:36 Go to previous messageGo to next message
raven
Messages: 595
Registered: January 2007
Location: Toronto, Ontario
Karma: 0
Colonel
Makes sense Smile

-Jelly Administrator
-Exodus Administrator
Re: Official SBot Thread [message #249391 is a reply to message #215844] Mon, 12 March 2007 01:16 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)
Thanks for the replys. On the picture, it shows Sbot displaying the "fraction". My Questions stil remain.

1) How do i set up user levels in IRC?
2) Some suggested voting styles.

Re: Official SBot Thread [message #249398 is a reply to message #215844] Mon, 12 March 2007 02:34 Go to previous messageGo to next message
CarrierII is currently offline  CarrierII
Messages: 3804
Registered: February 2006
Location: England
Karma: 0
General (3 Stars)

Could #1 be the console command "win" ? Or could it be something that wasn't finished by Westwood, like team 0 (AKA 0wned or Forgotten) winning?


Renguard is a wonderful initiative
Toggle Spoiler
Re: Official SBot Thread [message #249434 is a reply to message #215844] Mon, 12 March 2007 08: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)
win destroys all the buildings in the game, so it triggers #3. fogive me for correcting you, 0 == Nod. 2 == Mutant team(This team was here for a purpose. if you look at one of the missions the mutents turn on you and the nod AI).

the format for gameover will be as follows:

The Game was won by <insert reason here EG: base destruction>.
<insert the same info that !gi does>
The most valuable player was: <insert a player> with <insert points>

This should be enough info i would say Razz
Re: Official SBot Thread [message #249436 is a reply to message #215844] Mon, 12 March 2007 09:15 Go to previous messageGo to previous message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

As far as I know the mutant team id is -3... Unless it was just made inconsistently and the mutant team has multiple ids. Razz

The complete list as found in the LFDS code:

-4: Spectator
-3: Mutant
-2: Neutral
-1: Renegade
0: NOD
1: GDI


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Previous Topic: [Resolved] Few SSGM questions
Next Topic: FDS and BrenBot
Goto Forum:
  


Current Time: Mon May 13 14:08:23 MST 2024

Total time taken to generate the page: 0.02275 seconds