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

Share | 
 

 Server Load Testing

View previous topic View next topic Go down 
Go to page : Previous  1, 2
AuthorMessage
tichfuie
Super Contributor
Super Contributor
avatar

Posts : 257
Join date : 2013-02-07
Location : NA

PostSubject: Re: Server Load Testing   Wed 10 Apr - 4:19

great finding,

so by moving the /server/src/multiverse/simpleclient/runplayerclients.sh
to:
/server/bin/runplayerclients.sh
and run it from there?
but do you have to run the /server/bin/simpleclient.sh too to login first?

so atm you got 1 bot to login at move around in the world, right?
Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Server Load Testing   Wed 10 Apr - 4:27

You dont need to run simpleclient.sh first (if you look in the script it uses simpleclient so I would recommend getting that working first)
You dont have to move it to bin I did for consistency you can easily leave it where it is and run it from there, but if you do move it you will need to change the mv_home property to reflect that.

And yes I have one of my already created players logged in and moving around as a bot.
Back to top Go down
tichfuie
Super Contributor
Super Contributor
avatar

Posts : 257
Join date : 2013-02-07
Location : NA

PostSubject: Re: Server Load Testing   Wed 10 Apr - 5:25

Delurin wrote:
Ok I got it to login...I havent tested it past this point yet
Basically I copied the master private key to the simpleclient.py and added it just like it is in master.py so that I can bypass the master server for authentication (it still uses it to look up the world information)


i dont have master.py in my default MV repo download

i do have master_server.py

but the oly code in it is:
Code:

from multiverse.server.engine import *
from multiverse.server.util import *

ms = MasterServer.getMasterServer()
#ms.setTCPPort(9005)
#ms.setRDPPort(9010)

# Uncomment if you want to set a log level for this process
# that is different from the server's default log level
#Log.setLogLevel(1)
privKey = """====PUT MASTER PRIVATE KEY HERE===="""

SecureTokenManager.getInstance().initMaster(Base64.decode(privKey))



but then i found the code you talked about:
Code:

// send token id - string
      MVByteBuffer buffer = new MVByteBuffer(32);
      buffer.putInt(0);      // message length
      buffer.putInt(LoginPlugin.MSGCODE_CHARACTER_REQUEST);
      buffer.putString("1.5");  // client version
            buffer.putInt(4);      // auth code; this is a string in the
            buffer.putInt(userToken);  // protocol, so this is a hack

i found this on /server/src/multiverse/simpleclient/SimpleClient.java


so am a little bit puzzled now.
Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Server Load Testing   Wed 10 Apr - 5:32

The code change is in the java files. and then you need to reexport it.

The master key is put into the simpleclient.py

basically I just added this to the simpleclient.py
Code:
privKey = """====PUT MASTER PRIVATE KEY HERE===="""

SecureTokenManager.getInstance().initMaster(Base64.decode(privKey))


Are you using a master server? If so you should have replaced the put master private key with the actual private key. And sorry I forgot that it was master_server.py
Back to top Go down
tichfuie
Super Contributor
Super Contributor
avatar

Posts : 257
Join date : 2013-02-07
Location : NA

PostSubject: Re: Server Load Testing   Wed 10 Apr - 6:59

thanks,

yeah, am using master server and replaced with my private key.


so got it to work with your instructions. thanks.


now , what determines the bot behavior?

i see it running in random directions then stops then start running, where is this behavior at?
it even entered the house region portal and got teleported to the bigbrother instance, lol
i just cant get the bot back to sampleworld now, lol
Back to top Go down
Delurin
Head of Platform Development


Posts : 424
Join date : 2011-08-03

PostSubject: Re: Server Load Testing   Wed 10 Apr - 7:04

I believe it has to do with what arguments you set in playerclient.py in config/common
You can also see the actual playerclient in the java files.
Back to top Go down
Sponsored content




PostSubject: Re: Server Load Testing   

Back to top Go down
 
Server Load Testing
View previous topic View next topic Back to top 
Page 2 of 2Go to page : Previous  1, 2
 Similar topics
-
» .^f2F-.Swemmei Recruting in server 1
» Lag playing in Taiwan server from Shanghai
» Proxy Server Taiwan: How To.
» WoW "Development" Server
» Omnos (( Maybe another name depending on server)) Sunbearer

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