Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Night Regulator
Re: Night Regulator [message #226239 is a reply to message #226131] Thu, 12 October 2006 02: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)
danpaul88 wrote on Wed, 11 October 2006 22:01

Has it ever occured to you that more features is not nessicaraily better?


i agree, i try with the SBot to make it as fast and reliable as possible. it is a regulator which means it should be automatic, like on sod gaming servers.

but also it should be interactive, without too many commands as it is hard to remeber them and the help command is retarded
Re: Night Regulator [message #226289 is a reply to message #225740] Thu, 12 October 2006 08: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
Quote:

NR had no way around(that im aware of) of making mods log in to get thier status.


do you mean auto-login? if so... ive explained this time and time again, its a BIG security issue Razz


Quote:

NR can't regulator the amount of text it is sending to the IRC server.


yes you can... you can disable it on the Advanced Settings tab (disable what gets outputted)

Quote:

Your limited to talking the irc owner into giving your bot irc op status or using nightmas irc server. Which is kinda stupid as well.


or disable some of the output options, or bitch to unreal to make a better "fake-lag" feature Razz


Quote:

NR does also have alot of useless commands, especially on servers where the mods are totally ignorant.


ya dont like them, disable them! Razz

i will have them disabled by default on 3.5

Quote:

The problem I have with NR is inefficent routines, if you ever get to see some of the coding, you will see this.


and lol, NR was my first ever program, take a look at some of the things that were coded recently, compared to the things that were coded first

[Updated on: Thu, 12 October 2006 08:42]

Report message to a moderator

Re: Night Regulator [message #226506 is a reply to message #226289] Fri, 13 October 2006 15: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)
Nightma12 wrote on Thu, 12 October 2006 16:20

have them disabled by default on 3.5

Quote:

The problem I have with NR is inefficent routines, if you ever get to see some of the coding, you will see this.


and lol, NR was my first ever program, take a look at some of the things that were coded recently, compared to the things that were coded first


tell me about it, if Cat998 saw the source for the SBot he would screem Blush
Re: Night Regulator [message #226507 is a reply to message #225740] Fri, 13 October 2006 15:37 Go to previous messageGo to next message
Cat998
Messages: 1081
Registered: January 2004
Location: Austria, Vienna
Karma: 0
General (1 Star)
Moderator/Captain

would I, why

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter then "Yes"

Programming is like sex: one mistake and you have to support it for the rest of your life

Want the best answers? Ask the best questions!

"So long, and thanks for all the fish."
Re: Night Regulator [message #226511 is a reply to message #225740] Fri, 13 October 2006 15:52 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)
here is a snippet from the parse function


else if(command == "!gameover")
	{
		ostringstream pID_s;
		pID_s << obj->Player_Name;
		if(is_admin(pID_s.str()) == 1)
		{
			oss << "msg Gameover in 5 seconds!";
			Send_Message((char *)oss.str().c_str(), IP2Long(IP), (short)atoi(Port.c_str()));
			Sleep(5000);
			oss.str();
			Send_Message("gameover", IP2Long(IP), (short)atoi(Port.c_str()));
		}
		else
		{
			LOG("get_player_id called on line 535. parse.cpp\n");
			string pID = get_player_id((char *)obj->Player_Name.c_str());
			string id, playername;
			splitstring(pID, ": ", id, playername);
			oss << "ppage " << id << " you need to be an admin to perform this command";
			Send_Message((char *)oss.str().c_str(), IP2Long(IP), (short)atoi(Port.c_str()));
		}	
	}


the reason
LOG("get_player_id called on line 535. parse.cpp\n");
is there is because i have a bug i am trying to ger rid of
Re: Night Regulator [message #226566 is a reply to message #225740] Fri, 13 October 2006 23:54 Go to previous messageGo to next message
dead6re is currently offline  dead6re
Messages: 602
Registered: September 2003
Karma: 0
Colonel
Use? Means you can turn debugging on easily.

#define DEBUG
#ifndef DEBUG


Let all your wishes be granted except one, so you will still have something to strieve for.
Re: Night Regulator [message #226588 is a reply to message #225740] Sat, 14 October 2006 04:47 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)
yeah. i was going to do that, i dont see why i didn't.
Re: Night Regulator [message #226613 is a reply to message #225740] Sat, 14 October 2006 11:01 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

You could make yourself an DEBUGLOG macro or whatever, which does nothing in release builds and logs a message including file and line on a debug build... Then you don't have to type those anymore, you will have cleaner code and you will have no overhead in release builds. Smile

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: Night Regulator [message #226615 is a reply to message #226613] Sat, 14 October 2006 11: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)
StealthEye wrote on Sat, 14 October 2006 19:01

You could make yourself an DEBUGLOG macro or whatever, which does nothing in release builds and logs a message including file and line on a debug build... Then you don't have to type those anymore, you will have cleaner code and you will have no overhead in release builds. Smile


LOG is a function, but i can do it anyway. good idea Satisfied
Re: Night Regulator [message #226729 is a reply to message #225740] Sun, 15 October 2006 04:50 Go to previous message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
after considering this topic, ive created this: http://aohost.co.uk/php/viewtopic.php?p=7550

guests are allowed to post Smile

- Happy Bitching Very Happy
Previous Topic: BlackIntel.dll Requests/Future
Next Topic: NEED HELP ON FDS!!!
Goto Forum:
  


Current Time: Wed May 08 16:31:35 MST 2024

Total time taken to generate the page: 0.00733 seconds