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 |
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
|
|
|
|
|
co-op server
By: jnz on Sun, 17 September 2006 15:45
|
|
|
Re: co-op server
By: Ivan275 on Sun, 17 September 2006 16:24
|
|
|
Re: co-op server
By: jnz on Sun, 17 September 2006 16:35
|
|
|
Re: co-op server
By: Ivan275 on Sun, 17 September 2006 18:29
|
|
|
Re: co-op server
By: jnz on Sun, 17 September 2006 23:38
|
|
|
Re: co-op server
By: Ivan275 on Mon, 18 September 2006 00:10
|
|
|
Re: co-op server
By: Babekida on Mon, 18 September 2006 01:56
|
|
|
Re: co-op server
By: Ivan275 on Mon, 18 September 2006 02:02
|
|
|
Re: co-op server
By: Babekida on Mon, 18 September 2006 02:04
|
|
|
Re: co-op server
By: Ivan275 on Mon, 18 September 2006 02:11
|
|
|
Re: co-op server
By: Babekida on Mon, 18 September 2006 02:25
|
|
|
Re: co-op server
By: Ivan275 on Mon, 18 September 2006 02:41
|
|
|
Re: co-op server
By: Babekida on Mon, 18 September 2006 02:48
|
|
|
Re: co-op server
By: sycar on Mon, 18 September 2006 03:03
|
|
|
Re: co-op server
By: LR01 on Mon, 18 September 2006 08:35
|
|
|
Re: co-op server
By: jnz on Mon, 18 September 2006 10:31
|
|
|
Re: co-op server
By: dead6re on Mon, 18 September 2006 10:37
|
|
|
Re: co-op server
By: jnz on Mon, 18 September 2006 10:39
|
|
|
Re: co-op server
By: dead6re on Mon, 18 September 2006 10:44
|
|
|
Re: co-op server
By: jnz on Mon, 18 September 2006 16:04
|
|
|
Re: co-op server
|
|
|
Re: co-op server
By: jnz on Tue, 19 September 2006 00:02
|
|
|
Re: co-op server
By: Ivan275 on Tue, 19 September 2006 01:22
|
|
|
Re: co-op server
By: jnz on Tue, 19 September 2006 08:19
|
|
|
Re: co-op server
By: reborn on Tue, 19 September 2006 03:39
|
|
|
Re: co-op server
By: jnz on Tue, 19 September 2006 08:07
|
Goto Forum:
Current Time: Mon Dec 23 16:10:00 MST 2024
Total time taken to generate the page: 0.01256 seconds
|