Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » co-op server
Re: co-op server [message #220363 is a reply to message #220360] Tue, 19 September 2006 01:22 Go to previous messageGo to previous message
Ivan275 is currently offline  Ivan275
Messages: 41
Registered: August 2006
Karma:
Recruit
yes std::string killer(Get_Player_Name(shooter)) is what crashes the server. You can't get the name of the bot with Get_Player_Name.

A supper easy Fix 1 in ssaow.ini find ShowPlayerKillMessage=1 and change to ShowPlayerKillMessage=0 no more server crashes.


If you actualy need some kill message then you can do Easy fix 2 in aow.cpp file find M00_GrantPowerup_Created::Killed about 30 lined later find std::string killer(Get_Player_Name(shooter)) replace with std::string killer("BOT") then just build scripts. This will only work if your server is coop only.


now if for some reason you need to know what kind of bot killed the palyer you can do Fix 3 in aow.cpp file find M00_GrantPowerup_Created::Killed and find
			else if (!Is_Soldier(shooter))
			{
				char KillMsg[512];
				sprintf(KillMsg,"The %s killed %s (%s)",Translate_Preset(shooter),Get_Player_Name(obj),Get_Preset_Info(obj));
				FDSMessage(KillMsg,"_PLAYERKILL");
			}
			else
			{
				std::string killer(Get_Player_Name(shooter)),

and replace with
			else if (!Is_Soldier(shooter))
			{
				char KillMsg[512];
				sprintf(KillMsg,"The %s killed %s (%s)",Translate_Preset(shooter),Get_Player_Name(obj),Get_Preset_Info(obj));
				FDSMessage(KillMsg,"_PLAYERKILL");
			}
			else if (Get_Player_ID(shooter)==-1)
			{
				char KillMsg[512];
				sprintf(KillMsg,"The %s killed %s (%s)",Translate_Preset(shooter),Get_Player_Name(obj),Get_Preset_Info(obj));
				FDSMessage(KillMsg,"_PLAYERKILL");
			}
			else
			{
				std::string killer(Get_Player_Name(shooter)),
then add all the bots names on your maps to ssaow.ini [Translated_Preset] sercion and replace your bots stupid names with something you like berre ex. Nod_RocketSoldier_2SF_LaserRifle="BlackHand Laser Chaingunner"

[Updated on: Tue, 19 September 2006 01:29]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: new scripts.dll feature planned for 3.0, feedback wanted
Next Topic: CnC Reborn : Titan Version 2
Goto Forum:
  


Current Time: Mon Dec 23 16:10:00 MST 2024

Total time taken to generate the page: 0.01256 seconds