header
Welcome Guest to ServerDoc - Auto Restart crashed servers and programs (game www ftp servers) with remote control panel
ServerDoc

· About ServerDoc
· Download/Purchase
· Getting Started
· User Guide
· Forums
· Feedback/Suggestion
· Mailing List
· Link To Us
· Your Account
· Linux


ServerDoc - Auto Restart crashed servers and programs (game www ftp servers) with remote control panel: Forums

Serverdoc :: View topic - Question about remote file editing
Question about remote file editing

 
Post new topic   Reply to topic    Serverdoc Forum Index -> Serverdoc
View previous topic :: View next topic  

Author Message
Dust



Joined: Jan 26, 2007
Posts: 20

PostPosted: Sun Jan 28, 2007 5:47 pm    Post subject: Question about remote file editing Reply with quote

Hello,
I got a question about the remote file editing. It works good but I wanted to know if that was possible to change the path of the files from the html page.

It would be sumthing like that :

Code:
editfile myfile .\*SDCOMMANDLINE3=rocmod*\*SDCOMMANDLINE2=sof2*.cfg
editfile myfile2 .\**SDCOMMANDLINE3=rocmod*\sof2mp.cfg
RUN .\server\SoF2MP.exe +set fs_game *SDCOMMANDLINE3=rocmod* +set dedicated 2  +exec *SDCOMMANDLINE2=sof2*.cfg +set rconpassword *SDCOMMANDLINE=123azerty* +set g_password "" +set sv_maxclients 20 +set net_port 20501


In this exemple and by default :
myfile is : .\rocmod\sof2.cfg
myfile2 is : .\rocmod\sof2mp.cfg

Atm I can change the mod and the files to be executed (both in command line).

Basically the files I want to be edited are located in the mod folder. When mod is changed, files' path changes too. Thats why I would like to make it change when mod is changed.

I tried to be clear, I hope u ll understand Smile

Sy for the crap english
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Author Message
Dust



Joined: Jan 26, 2007
Posts: 20

PostPosted: Tue Jan 30, 2007 7:14 pm    Post subject: Reply with quote

Already another question (dont mind I search in forums be4 asking Smile) :

Is it possible to set a limit to the commands sent via remote html? Like for exemple no more than 3 restarts per hour.

Thx for help
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1832

PostPosted: Tue Jan 30, 2007 10:33 pm    Post subject: Reply with quote

I believe you want this:

Quote:
Serverdoc V89b
Added *SDCEV-keyword* to editfile, replaced with command line keyword value.
With this you can always edit the correct server.cfg in mod folder, example your command line is
hlds.exe -console -game *SDGameMod=cstrike*
editfile is
editfile servercfg *sdcev-sdgamemod*\server.cfg
*sdcev-sdgamemod* is replaced with gamemod setting (ie the correct folder!!)


And no there is no limit but if you enable softstart the CPU load effect will be better on startup.
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Dust



Joined: Jan 26, 2007
Posts: 20

PostPosted: Thu Apr 05, 2007 2:59 am    Post subject: Does not wirk :s Reply with quote

Well i did that :


editfile sof2hostname .\RPMPro\RPM.cfg ? set sv_hostname
editfile sof2rcon RPMPro\RPM.cfg ? set rconpassword
editfile sof2timelimit .\RPMPro\RPM.cfg ? set timelimit
editfile sof2scorelimit *sdcev-sdgamemod*\*sdcev-sdexecfile1* ? set scorelimit

ANd my command line includes :

+set fs_game *sdgamemod=RPMPro* +exec *sdexecfile1=RPM.cfg*

And when i get on my web control panel all works excepted the scorelimit saying "unable to open file"

I tried to fix it but i didnt find how to...

Do you see where is my mistake?
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1832

PostPosted: Fri Apr 06, 2007 6:05 pm    Post subject: Reply with quote

Not missing a .\ ?
editfile sof2scorelimit .\*sdcev-sdgamemod*\*sdcev-sdexecfile1* ? set scorelimit
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Dust



Joined: Jan 26, 2007
Posts: 20

PostPosted: Sat Apr 07, 2007 3:51 am    Post subject: Reply with quote

No, i tried it too and didnt work. I dont see what is wrong in my config...

As soon as I use:
editfile sof2scorelimit .\RPM\RPMPro ? set scorelimit
it works, but with :
editfile sof2scorelimit .\*sdcev-sdgamemod*\*sdcev-sdexecfile1* ? set scorelimit
it says "unable to open file"

Btw could it come from a bad update of my serverdoc.exe? I think i did it good but i might be wrong.
I stopped all servers, replaced serverdoc.exe and sdcontrol.exe then restarted all servers.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Author Message
sanderso
Site Admin


Joined: Jan 17, 2003
Posts: 1832

PostPosted: Sat Apr 07, 2007 5:33 am    Post subject: Reply with quote

Give this a go:
editfile sof2scorelimit .\*SDCEV-gamemod*\*SDCEV-execfile1*
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
Author Message
Dust



Joined: Jan 26, 2007
Posts: 20

PostPosted: Sun Apr 08, 2007 1:47 pm    Post subject: Reply with quote

It works, ty so much Razz
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Serverdoc Forum Index -> Serverdoc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group
Version 2.1 by Nuke Cops 2003 http://www.nukecops.com
TBlue by DR Designs © 2004

Forums ©
footer
Copyright 2004 serverdoc.com

Web site engine code is Copyright 2003 by PHP-Nuke All Rights Reserved PHP-Nuke is Free Software released under the GNU/GPL license