How to setup a Stendhal webclient development environment
This article describes an experimental Websocket Environment. You are most likely lookingfor one of the articles linked from Configure a development environment (IDE) or Host a Stendhal Server instead.
The websocket support is very basic, hardly enough for a client used by people dealing with /support. You cannot play with it.
This is a quick guide assuming you are using Eclipse:
- Check out Marauroa, Branch perception_json into a new project
- Check out (or reuse) Stendhal into another project.
- Define a project from Stendhal to Marauroa
- Add all libraries *except* marauroa.jar to the classpath
- Add the project root folders of both Marauroa and Stendhal to the classpath
- Edit server.ini to add these lines, replacing "accountname" with the name of your account for testing:
<source lang="ini"> http_port=8080 debug_fake_web_username=accountname </source>
- Instead of starting "marauroa.server.marauroad", you need to configure "marauroa.server.net.web.WebSocketServer"
- Visit http://localhost:8080/stendhal-text.html or http://localhost:8080/stendhal.html
- You can add #charname to the end of the above urls. Note those characters must belong to the account name configured.