Maintenance mode

Annie, same.

atcommand.c: In function 'atcommand_maintenance':atcommand.c:9403: warning: format '[^' expects type 'char *', but argument 6 has type 'const char **'
dirty methodhttp://upaste.me/9e3531

can you tell how you compile your server ?

attachicon.gif
test_server.png

[info]: Compiled with Microsoft Visual C++ 2010 (v1600)
I compile using 'Debian GNU/Linux 6.0.5

i'll try your dirty method
default_smile.png
Thanks Annie!

 
Please check on the server online return date .

@maintenance 99 22 10 Backup

run on Sep 23, 2014 (Tuesday) 6:38AM but i got this message.  It should be "Server will come back up on Tuesday, 7:10 AM"

maitenance1.JPG


 
@maintenance 99 22 10 Backup

run on Sep 23, 2014 (Tuesday) 6:38AM but i got this message.  It should be "Server will come back up on Tuesday, 7:10 AM"
can't reproduceyou should type @time to get real server actual time, not by your house clock

from what I see, your server clock has -12 time zone different

 
@maintenance 99 22 10 Backup

run on Sep 23, 2014 (Tuesday) 6:38AM but i got this message.  It should be "Server will come back up on Tuesday, 7:10 AM"
can't reproduceyou should type @time to get real server actual time, not by your house clock

from what I see, your server clock has -12 time zone different
tried @time and server time is same with my time zone.
default_sad.png


 
try this on your SQL

Code:
select now();
select from_unixtime ( unix_timestamp( now() ) );
both should return your server time

if its different, sorry I dunno how to fix it

 
Last edited by a moderator:
Hello annie i find this quite useful command for some rush maintenance, however is it possible not to get the vendors kick? i am always using vending persistency?

 
apparently when I test it, at'er doesn't get kick by clif->authfail_fd, but get kick by clif->GM_kick

.

ACMD(test) { clif->authfail_fd( sd->fd, 1 ); return true;}#test ennyenny still continue vend

@kick enny

enny got kick

.

since my script using clif->authfail_fd, auto-traders doesn't get kick

I just made 1.3 just now, just taking this chance to rewrite the script

nothing much change, actually

other than make the patch more understandable for napster to convert to rathena

 
Last edited by a moderator:
Hi AnnieRuru thanks for this wonderful plugin, its very useful
default_biggrin.png
  I only get this warning during compile.  Can you check if you have time?  thanks! /no1

maintenance.c: In function ‘buildin_maintenance’:
maintenance.c:429: warning: format not a string literal and no format arguments
maintenance.c: In function ‘buildin_maintenanceoff’:
maintenance.c:490: warning: format not a string literal and no format arguments
  PLUGIN  maintenance
 
Tried to use this plugin, but im having an error during making it.

xZ1bV4T.png


@@AnnieRuru malloc.h no longer exist, how to fix this? please help
default_wub.png

I really like your plugin, please do update this.
Thanks in advance!
default_happy.png


 
Last edited by a moderator:
malloc.h to memmgr.h

 
I think this plugin needs a little revamp

now that plugin can also hook login server, its better to hook login->authok this time

during that time plugin can only hook to map-server, but now all 3 can

 
@@AnnieRuru @@Dastgir

hello i got a problem and i need some help

this is my first time inserting a plugin on my server

i dont know if i need to debug or release so i tried both

in debug i got this

1>------ Build started: Project: maintenance, Configuration: Debug Win32 ------
1>  maintenance.c
1>d:developingserversidechaos roherculessrcmappc.h(8): fatal error C1083: Cannot open include file: 'map/battle.h': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

in release i got this

1>------ Rebuild All started: Project: maintenance, Configuration: Release Win32 ------
1>  maintenance.c
1>..srcpluginsmaintenance.c(545): warning C4013: 'GET_SYMBOL' undefined; assuming extern returning int
1>..srcpluginsmaintenance.c(545): warning C4047: '=' : 'clif_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(546): warning C4047: '=' : 'timer_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(547): warning C4047: '=' : 'intif_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(548): warning C4047: '=' : 'strlib_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(549): warning C4047: '=' : 'sql_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(550): warning C4047: '=' : 'mapit_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(551): warning C4047: '=' : 'map_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(552): warning C4047: '=' : 'script_interface *' differs in levels of indirection from 'int'
1>..srcpluginsmaintenance.c(553): warning C4047: '=' : 'malloc_interface *' differs in levels of indirection from 'int'
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:DevelopingServersideChaos ROHerculesmaintenance..pluginsmaintenance.dll) does not match the Linker's OutputFile property value (D:DevelopingServersideChaos ROHerculesmaintenance_WINDLL). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(990,5): warning MSB8012: TargetPath(D:DevelopingServersideChaos ROHerculesmaintenance..pluginsmaintenance.dll) does not match the Linker's OutputFile property value (D:DevelopingServersideChaos ROHerculesmaintenancePCRE_SUPPORT). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(991,5): warning MSB8012: TargetExt(.dll) does not match the Linker's OutputFile property value (). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(maintenance) does not match the Linker's OutputFile property value (_WINDLL). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets(992,5): warning MSB8012: TargetName(maintenance) does not match the Linker's OutputFile property value (PCRE_SUPPORT). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1> Creating library ..pluginsmaintenance.lib and object ..pluginsmaintenance.exp
1>maintenance.obj : error LNK2001: unresolved external symbol _GET_SYMBOL
1>_WINDLL;PCRE_SUPPORT; : fatal error LNK1120: 1 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========


 

 
Last edited by a moderator:
@@xlaws27

Annie is going to revamp it a little?

Also this plugin is not compatible with new Hercules yet..

 
update to new format 1.4

seriously ... can members please register better names ?

somebody names @@Maintenance here, and make my post broken

anyways

I tested both things, both doesn't work

1. it seems I can't add SERVER_TYPE_LOGIN, because each server use their own variables

for example, the int aaa = 0; means aaa is declare to both SERVER_TYPE_MAP and SERVER_TYPE_LOGIN, they will initialize the value

but if SERVER_TYPE_MAP modify the value, SERVER_TYPE_LOGIN isn't updated, since they run in different server

I still have no idea how to pass a variable from map-server to login-server

2. 2nd problem is, if I add a configuration for kick autotraders

when the player wants to login for the 1st time, client hang

but when login for the 2nd time, its fine

and the weird thing is, it doesn't remove the list from autotrader sql ... its a bug (in this plugin)

 
1) pass packets for communication between map/login server...

 
1) pass packets for communication between map/login server...
exactly, and I need an example ...
I got a feeling it has to do with something call ... getFromSession ... let me test

 
Last edited by a moderator:
i wanna ask if this new version of plugin is needed to patch or just put the plugin file into my plugin folder? im having trouble when i manualy added the patch,

 
version 1.5 is just plugin

no patch needed

that previous patch about addtomobdata was already merge some time ago

 
Back
Top