Skip to main content

Automated clients

1 reply [Last post]
jagwire
Offline
Joined: 2008-06-21
Points: 0

Hey,

As of the last community test in january, I remember there being an automated client that was being used for benchmark testing. Has this code been released? I'm so much interested in a scripted NPC but rather a client that can just connect and appear in world and do "nothing" without needing a seperate computer to operate. Has anyone come across this?

thanks,
jW

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kaplanj
Offline
Joined: 2004-07-13
Points: 0

The benchmark client is in the wonderland source in the test/harness directory. You will also need to install the testharness-usersim module from wonderland-modules/unstable.

I think the most interesting code is in WebstartClientWrapper. It shows that if you use Java Web Start with the following options, it will start a no-graphics test client:

[code]
# javaws -Xnosplash -open "-b -username -userdir " http://:8080/wonderland-web-front/app/Wonderland.jnlp
[/code]

What happens is that the "-b ..." options are passed in to JMEClientMain, where they are parsed to force the test client. So this command will create a user that just stands at the origin.