|
You last visited: Today at 04:03
Advertisement
[RELEASE] In-game ban command for GMs
Discussion on [RELEASE] In-game ban command for GMs within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.
04/29/2013, 17:32
|
#16
|
elite*gold: 84
Join Date: Dec 2012
Posts: 2,463
Received Thanks: 644
|
This is great
Thanks
Mfg
|
|
|
04/29/2013, 17:32
|
#17
|
elite*gold: 0
Join Date: Oct 2010
Posts: 115
Received Thanks: 14
|
Compile & Debug & Release!
btw Thanks alot!
|
|
|
04/29/2013, 17:37
|
#18
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by EpicG4m3r
Its not working
Code:
******************************************************
* Universal Elements extension library *
* made by ricky92 *
* Version 1.0.0 *
******************************************************
[*] Module "Ban command" loaded.[*] Module "Command Extensions" loaded.
Command registered: "ban" (early initialization)
[COLOR="DarkRed"]Can not open [CONFIG][/COLOR]
Ingame I type in:
And he starts dancing ^^
|
You need to make the start script load the game file with the library injected in it. You're probably just executing the command I wrote, but you have to make sure it's the "start" script which executes that, with the correct path and all. Otherwise, it won't work.
As for the crash, I guess it's caused by the disconnect feature. Quite strange, actually, since I'm executing exactly the same code that "/dc" has.
|
|
|
04/29/2013, 19:36
|
#19
|
elite*gold: 100
Join Date: Jun 2009
Posts: 168
Received Thanks: 711
|
Quote:
Originally Posted by ricky92
As for the crash, I guess it's caused by the disconnect feature. Quite strange, actually, since I'm executing exactly the same code that "/dc" has.
|
You can't directly crash "yourself", you must use a event_timer for that otherwise the game crashes (try using DESC::DelayedDisconnect instead of DESC_MANAGER::DestroyDesc)
If the game crashes when you're trying to disconnect another player (with destroydesc or not) then... the do_ban is slightly bugged °°
|
|
|
04/29/2013, 20:44
|
#20
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by lollo_9_1
You can't directly crash "yourself", you must use a event_timer for that otherwise the game crashes (try using DESC:  elayedDisconnect instead of DESC_MANAGER:  estroyDesc)
If the game crashes when you're trying to disconnect another player (with destroydesc or not) then... the do_ban is slightly bugged °°
|
It's not, I added that check and, in fact, the first thing that came to my mind was that I hadn't compiled the right version XD But well, I tried it on my server and it works, so I have no idea what his problem is. To everyone who's experiencing that problem: try redownloading the file, maybe you downloaded an old version.
Update: someone asked via PM to have the source of the ban function. While it's not a problem for me to post that, it would be to post the source for my whole library. So, I'm posting this just for reference, to let people see how it works (and also check if there is any bug, why not). You probably won't be able to compile the source as it is, if you don't have the right header files XD
|
|
|
04/30/2013, 16:32
|
#21
|
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
|
Quote:
Originally Posted by ricky92
It's not, I added that check and, in fact, the first thing that came to my mind was that I hadn't compiled the right version XD But well, I tried it on my server and it works, so I have no idea what his problem is. To everyone who's experiencing that problem: try redownloading the file, maybe you downloaded an old version.
Update: someone asked via PM to have the source of the ban function. While it's not a problem for me to post that, it would be to post the source for my whole library. So, I'm posting this just for reference, to let people see how it works (and also check if there is any bug, why not). You probably won't be able to compile the source as it is, if you don't have the right header files XD

|
Thanks man i am working with C and C# , c++ so i will try soon to make my own function .. anyway good work more releases like this on epvp will be very nice  Bad that i cant give u more than thanks
btw: So yea like someone said when i use the function core will shutdown o.O
|
|
|
04/30/2013, 20:19
|
#22
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by [The]Domco
Thanks man i am working with C and C# , c++ so i will try soon to make my own function .. anyway good work more releases like this on epvp will be very nice  Bad that i cant give u more than thanks
btw: So yea like someone said when i use the function core will shutdown o.O
|
Hmm you are right, it crashes. I recompiled it with some other options (no idea why this changed anything, but it works now), you can redownload it and it should work for you too
|
|
|
05/01/2013, 20:58
|
#23
|
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
|
Quote:
Originally Posted by ricky92
Hmm you are right, it crashes. I recompiled it with some other options (no idea why this changed anything, but it works now), you can redownload it and it should work for you too 
|
Nice man now it works  btw : source too reuploaded ?
|
|
|
05/01/2013, 21:31
|
#24
|
elite*gold: 0
Join Date: Jan 2013
Posts: 64
Received Thanks: 3
|
o_O good work, I am going to test
|
|
|
05/01/2013, 23:16
|
#25
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by [The]Domco
Nice man now it works  btw : source too reuploaded ?
|
Good to know  And well, the source has not changed, as I said it was a problem of compiler optimizations... it was just a matter of recompiling it
|
|
|
05/01/2013, 23:50
|
#26
|
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
|
Quote:
Originally Posted by ricky92
Good to know  And well, the source has not changed, as I said it was a problem of compiler optimizations... it was just a matter of recompiling it 
|
And if i want to make some changes how to compile correctly ? ( g++ ) ?
|
|
|
05/02/2013, 00:22
|
#27
|
elite*gold: 0
Join Date: Jun 2010
Posts: 75
Received Thanks: 58
|
@Up
can`t without his headers.
|
|
|
05/02/2013, 00:44
|
#28
|
elite*gold: 0
Join Date: Apr 2009
Posts: 121
Received Thanks: 780
|
Quote:
Originally Posted by [The]Domco
And if i want to make some changes how to compile correctly ? ( g++ ) ?
|
As xDeStRuCtx said, you can't without my headers and library structure... And I'm sorry, but I won't release it :\
|
|
|
05/02/2013, 13:40
|
#29
|
elite*gold: 45
Join Date: Mar 2011
Posts: 253
Received Thanks: 238
|
Quote:
Originally Posted by ricky92
As xDeStRuCtx said, you can't without my headers and library structure... And I'm sorry, but I won't release it :\
|
I can buy PM ?
|
|
|
05/02/2013, 18:30
|
#30
|
elite*gold: 0
Join Date: May 2011
Posts: 213
Received Thanks: 29
|
when we inject this library, we cannot use mijago's mysql commands. is there any solution?
|
|
|
Similar Threads
|
Server command from outside the game
10/21/2012 - Aion Private Server - 8 Replies
How i can send a command from outside the game?
For example, change the //weather without having to be in the game.
Thanks!
|
A game small command
09/15/2009 - General Coding - 0 Replies
Delete this since no1 can help, Thanks
|
[Release] a new command
07/16/2009 - CO2 PServer Guides & Releases - 8 Replies
ok this is the /pet command ok its not hard to do and i thank it will only work if u have the summon guard working becaz i us its atk type or u can edit it if u want but ul hafe to fix it up so it wont atk its self if u do that well any way here u go
find wear u put commands in and put this
if (Splitter == "/pet")
{
// /pet HP atk name mech lvl
...
|
[Release]-- New Command --
12/10/2008 - CO2 PServer Guides & Releases - 7 Replies
GOT That Damianpesta
_1_
|
All times are GMT +1. The time now is 04:03.
|
|