Raised This Month: $ Target: $400
 0% 

SpecBug JoinClass


Post New Thread Reply   
 
Thread Tools Display Modes
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-21-2014 , 07:03   Re: SpecBug JoinClass
Reply With Quote #31

Can you replicate the crash?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 07-21-2014 , 07:19   Re: SpecBug JoinClass
Reply With Quote #32

Quote:
Originally Posted by YamiKaitou View Post
Can you replicate the crash?
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "TM"
#define VERSION "0.1"
#define AUTHOR "Phantomas"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say /tm""clcmdtm"0)
}

public 
clcmdtm(id)
{
    
client_print(idprint_chat"You moved to spectators.")
    
cs_set_user_team(idCS_TEAM_SPECTATOR)
    return 
PLUGIN_CONTINUE


After I press 3 — server crashed (video stopped recording).
Phant is offline
Send a message via ICQ to Phant
AlexandruRO
BANNED
Join Date: Jul 2014
Location: Romania
Old 07-21-2014 , 07:44   Re: SpecBug JoinClass
Reply With Quote #33

can someone fix this problem?
AlexandruRO is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-21-2014 , 17:21   Re: SpecBug JoinClass
Reply With Quote #34

Well the crash with the plugin above is expected. This not an issue with AMXX itself nor an issue with the game really. About the game, function which handles appearance doesn't check if team is not CT/T, because well, at this point that's not possible to be spectator.
I would say here the issue is the coder/plugin to not make sure things are okay to be executed, more a lack of game knowledge.

Here, about cs_set_user_team(), you should check if player is not in appearance menu before sending it as spectator, if so, you force player choosing one.

Using the player menu, this should not happen as it forces joinclass if spectator is chosen.
__________________
Arkshine is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 07-24-2014 , 13:18   Re: SpecBug JoinClass
Reply With Quote #35

This does nothing to do with the game, AMX Mod X or Meta Mod.
Remove or edit the plugin.
__________________

Last edited by claudiuhks; 07-24-2014 at 13:18.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-24-2014 , 13:49   Re: SpecBug JoinClass
Reply With Quote #36

The bug still exists without any spec plugins. It even crash last version of hlds...
HamletEagle is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-24-2014 , 15:08   Re: SpecBug JoinClass
Reply With Quote #37

Then the concerned plugins should be updated.
__________________
Arkshine is offline
meTaLiCroSS
Gaze Upon My Hat
Join Date: Feb 2009
Location: Viña del Mar, Chile
Old 07-24-2014 , 15:44   Re: SpecBug JoinClass
Reply With Quote #38

Quote:
Originally Posted by YamiKaitou View Post
I still don't see a bug. Please explain what you expect to happen
So, you didn't get it?
  1. Join a team
  2. Before selecting your appearance, transfer you to spec.
  3. Select your skin
  4. Server crash
You just need to reset m_iMenu offset (if equals to 3 = skin selection) when transfering any player to spec team.
__________________
Quote:
Originally Posted by joropito View Post
You're right Metalicross
meTaLiCroSS is offline
Phant
Veteran Member
Join Date: Sep 2009
Location: New Jersey
Old 07-24-2014 , 15:52   Re: SpecBug JoinClass
Reply With Quote #39

Quote:
Originally Posted by Arkshine View Post
Then the concerned plugins should be updated.
Including default "plmenu" AMXX Plugin.
Phant is offline
Send a message via ICQ to Phant
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-24-2014 , 16:29   Re: SpecBug JoinClass
Reply With Quote #40

It has been already updated so far I know.

Code:
			if( destTeamSlot == 2 )
			{
				if ( g_fakemeta )
				{
					if( get_pdata_int(player, m_iMenu) == Menu_ChooseAppearance )
					{
						// works for both vgui and old style menus, and send menuselect could close other menus (and since get_user_menu fails to return VGUI and old style classes menus...)
						engclient_cmd(player, "joinclass", "6");
					}
				}
				else // force
				{
					engclient_cmd(player, "joinclass", "6");
				}
			}
__________________

Last edited by Arkshine; 07-24-2014 at 16:30.
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:03.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode