Official Community Forums
 
HomeHome  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  RegisterRegister  Log in  The Wiki  Website  github Project  

Share | 
 

 Stop-multiverse...unknown command (Vista)

View previous topic View next topic Go down 
AuthorMessage
DaddyM0E
Experienced Newbie
Experienced Newbie


Posts : 13
Join date : 2011-09-25
Location : Crosby, Texas

PostSubject: Stop-multiverse...unknown command (Vista)   Sat 29 Oct - 14:40

I am running Vista, so the "taskill" command doesn't work because Vista uses "taskkill" instead. No problem.. just a simple find and replace, right?? not so easy. Modified to read..

echo Stopping combat server process ID %pid%
taskkill %pid%

but that gave error.....

Error: Invlaid syntax, value expected for /PID

So, I looked into it further and rewrote it to be....

taskkill /PID %pid%

but, that gives the error...
Error: invalid syntax. value expected for 'PID'

So.....this %pid% value...hmm.. what handles it??? If the old taskill command was outdated, then the file that creates or assigns the PID probably needs revamping.

Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Stop-multiverse...unknown command (Vista)   Tue 1 Nov - 1:08

I have only used the cygwin version (and it is now heavily modified and consequently the .bat version does not work with out me converting everything) but when you run start-multiverse.bat it should create a bunch of files in \MVHOME\run\%MV_WORLDNAME%\ like combat.bat I would guess that each one returns the pid of that agent since there is not just one but many multverse server agents. If you want to post the combat.bat I will take a look at it to see what needs to be changed.. but then we would still need to find what creates those bat files if we can modify it.

To be honest it would probably be easier to just use the cygwin version
Back to top Go down
DaddyM0E
Experienced Newbie
Experienced Newbie


Posts : 13
Join date : 2011-09-25
Location : Crosby, Texas

PostSubject: Re: Stop-multiverse...unknown command (Vista)   Tue 1 Nov - 16:25

It most probably is easier to use Cygwin, but I'm a hard-headed old fool. Very Happy

The PID line in "combat.bat" does change every time I start the server.

set pid=3632
set pid=4640

..are the results of the two launches. What sets them? hmm.. lemme check..

Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Stop-multiverse...unknown command (Vista)   Fri 11 Nov - 14:19

It looks like the code that actually outputs the pid's is in the underlying multiverse.jar which is in process of being released as open source.

And in case you were wondering the PID is the process id number that windows assigns to each process when it is run so each time you launch it it will likely be different. If you go to your task manager you will see a bunch of java entries those are the server agents running and you can add the pid as a column by clicking view select columns.

You can also look at each individual java process using jmx
Back to top Go down
Sponsored content




PostSubject: Re: Stop-multiverse...unknown command (Vista)   

Back to top Go down
 
Stop-multiverse...unknown command (Vista)
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Stop Animal Abuse Club
» Stop the shame! (The Recent U.S. 'Publicised' Shootings)
» Dota 2 Finding Unknown Items
» Command Centre on depths.
» older pc games and Vista

Permissions in this forum:You cannot reply to topics in this forum
 :: Development :: Getting Started-
Jump to: