March 19, 2019, 07:59:35 AM

Author Topic: [Crash] Removeweapon Command  (Read 2039 times)

Offline Existenz

  • Level 4 Intermediate
  • ****
  • Posts: 87
  • Country: fr
  • <3 WCS :)
[Crash] Removeweapon Command
« on: September 28, 2014, 03:10:36 PM »
Hello,

Recently my wcs server (linux) crash, looking closer each time the server bug that was because of a race or an ultimate have the command "es wcs removeweapon".

Like this in blackout ultimate :

Code: [Select]
es wcs removeweapon server_var(wcs_userid) 1

 Is it possible to have a fix for this problem?

Sincerely Existenz.
« Last Edit: September 28, 2014, 04:31:14 PM by Existenz »

Offline xines

  • Level 7 Expert
  • *****
  • Posts: 342
  • Country: dk
  • Wcs FTW <33 - - - - - - - but still doing ur mom!
    • Dark WCS
Re: [Crash] Removeweapon Command
« Reply #1 on: September 28, 2014, 04:37:52 PM »
Why not just replace it with "wcs drop" command?
i know its not "removed" but i think it would work and do the job in most of the cases ::)
Xines Making people laugh on WCS!



Offline Teller

  • Level 7 Expert
  • *****
  • Posts: 273
  • Country: dk
  • #FIXYOURRACE
Re: [Crash] Removeweapon Command
« Reply #2 on: September 28, 2014, 06:46:18 PM »
I guess you could find a sourcemod command for it or something

This is the best wcs server i've ever seen.
Check it out ! http://warcraft-source.com/board/index.php?topic=16799.0

Offline Eareland

  • Retarded retired
  • Level 7 Expert
  • *****
  • Posts: 712
  • Country: fi
  • Most honest is to be without a word of a lie
    • FSSM
Re: [Crash] Removeweapon Command
« Reply #3 on: September 28, 2014, 06:49:44 PM »
removeweapon used to work on Linux server.

That's weird.

There probably is some replacement.

Have you tested it that it's just "removeweapon 1" command and not ex. "removeweapon knife"

Code: [Select]
es wcs removeweapon server_var(wcs_userid) knife
« Last Edit: September 28, 2014, 06:53:34 PM by Eareland »


Offline Existenz

  • Level 4 Intermediate
  • ****
  • Posts: 87
  • Country: fr
  • <3 WCS :)
Re: [Crash] Removeweapon Command
« Reply #4 on: September 28, 2014, 07:02:02 PM »
On certains races removeweapon work but on another it makes the server crash.

@Xinez: For some I replaced by a "wcs drop".

@Eareland : But sometimes this command is not used for a specified weapon.

Anyway I do not understand why it does not work all the time: /
« Last Edit: September 28, 2014, 07:07:08 PM by Existenz »

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1061
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Crash] Removeweapon Command
« Reply #5 on: September 28, 2014, 10:36:22 PM »
On certains races removeweapon work but on another it makes the server crash.

@Xinez: For some I replaced by a "wcs drop".

@Eareland : But sometimes this command is not used for a specified weapon.

Anyway I do not understand why it does not work all the time: /

Well if you want the player to drop his weapon you can just do like this:

For primary weapons:
Code: [Select]
es wcs drop event_var(userid) 1
For secondary weapons:
Code: [Select]
es wcs drop event_var(userid) 2
For the knife:
Code: [Select]
es wcs drop event_var(userid) 3
and so on :p

But as mentioned previously in the post
This will of course not remove the weapon from the map, it'll simply just drop it and be accessible to other players as well as the player who dropped it, which may not be the intention.

But if it's very important that the weapon gets removed.. Well then I'm sorry to say it, but you'd have to go with crashy mac crashyson command:
Code: [Select]
es wcs removeweapon event_var(userid) 1
Regarding the crashes not always happening and so, it's not always that the codes results in a crash, I know a lot of people on the forum will most likely lynch me for stating this, but that's the case atleast based on my experiences and analyzis.

Despite I haven't been able to provide you with a solution that solved the problem I still hope this piece of information can be useful to you.

Sincerely
- Manifest
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Existenz

  • Level 4 Intermediate
  • ****
  • Posts: 87
  • Country: fr
  • <3 WCS :)
Re: [Crash] Removeweapon Command
« Reply #6 on: September 29, 2014, 08:31:23 PM »
Ok. Thanks manifest. I will replace all by that.

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1061
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Crash] Removeweapon Command
« Reply #7 on: September 29, 2014, 11:58:21 PM »
Ok. Thanks manifest. I will replace all by that.

No problem Existenz.
Just remember changing all of the drops to removeweapon may result in ruining the gameplay on some of the races as they'll now be able to pick up the weapons. :)
So you should probably consider on which races it may be worth running the risk of a server crash, if it ruins the race completely. That is, if you want to keep the race on your server of course.

Sincerely
- Manifest
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Lukas320

  • Level 7 Expert
  • *****
  • Posts: 472
  • Country: be
  • <3 WCS :)
Re: [Crash] Removeweapon Command
« Reply #8 on: October 01, 2014, 01:41:32 AM »
And what about 'es wcs strip', doesn't that strip your weapons?

Offline Manifest

  • Race & effect creator
  • Moderator
  • Level 7 Expert
  • *****
  • Posts: 1061
  • Country: dk
  • Content creator for the new WCS version by Kami.
Re: [Crash] Removeweapon Command
« Reply #9 on: October 01, 2014, 08:44:02 AM »
And what about 'es wcs strip', doesn't that strip your weapons?

It's a nice suggestion Joe. :)

However there are a little problem to it. If Existenz wants to only remove one, or two weapons then wcs strip will not fit in the majority of the cases, mainly due to the command wcs strip removes all the client weapons and not just not one specified weapon or specified slot.
Therefore replacing removeweapon with wcs strip will not give the same results, e.g. if a race uses removeweapon to disable a client from a using that weapon weapon for e.g. 5 seconds, then if you're using the  wcs strip command instead, it'll mean the client will have no weapons at all for 5 seconds.

I hope it makes sense, it may be quite clumsy formulated by me, so my apolegies, please bare with me :p

Sincerely
- Manifest
"BRAVORA: Bruh it is fucking operation crystal night when you are approving races."


Offline Kami

  • Developer
  • Level 7 Expert
  • *****
  • Posts: 888
  • Country: de
  • Pokemon Master!
Re: [Crash] Removeweapon Command
« Reply #10 on: October 01, 2014, 03:51:38 PM »
Create a new removeweapon command that does the following:

1. Get player weapons (primary, secondary, knife, grenades)

2. Strip player

3. Give back all weapons that shouldnt have been removed.

4. ?????.

5. Profit.

Offline Existenz

  • Level 4 Intermediate
  • ****
  • Posts: 87
  • Country: fr
  • <3 WCS :)
Re: [Crash] Removeweapon Command
« Reply #11 on: October 01, 2014, 04:54:42 PM »
I'll try but I do not know how to create a new order. I'll search . Thank you