VisualGuideToInstallingStendhalStep5: Difference between revisions

Content deleted Content added
imported>Oslsachem
No edit summary
imported>Hendrik Brummermann
added navigation menu
 
(196 intermediate revisions by 7 users not shown)
Line 1:
{{Navigation for Stendhal Top|Building & Hosting}}
==Step 5. Install Stendhal server==
 
Now==Step let's5. installInstall and run the Stendhal serverclient thatto willplay runin overyour thelocal marauroaStendhal server.==
 
Note: if you have already installed the client to connect to the official server, you can use it if it is the same version. However, '''this time''' you have to connect to '''Server name:''' ''localhost'' and create a new account there.
Go to arianne website and download Stendhal server binary:
[http://prdownloads.sourceforge.net/arianne/stendhal-server-0.47.1.zip?download Stendhal-server-0.47.1]
Unzip the stendhal-server-0.47.1.zip file.
 
To run the client:
===Step 5.1. Move binary server files to marauroa folder===
Copy the 3 server binary ''*.jar'' files:
*''stendhal-maps-0.47.1.jar''
*''stendhal-server-0.47.1.jar''
*''stendhal-xmlconf-0.47.1.jar''
 
Go to arianne website and download the [http://sourceforge.net/project/platformdownload.php?group_id=1111&sel_platform=410 Stendhal client zip file]
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step51MoveServerFiles/Step51MoveServerFiles01.png
 
[[File:InstallStendhalClient01.png]]
inside the marauroa-1.31 folder.
 
Unzip the folder that you get, wherever you choose.
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step51MoveServerFiles/Step51MoveServerFiles02.png
 
[[File:InstallStendhalClient02.png]]
===Step 5.2. Edit the marauroad.bat file===
Edit the marauroad.bat file by including in the path the name of the stendhal-server file, version included
 
Double-click the ;''stendhal-server-0.47.1{{version}}.jar'' file in the client.
 
[[File:InstallStendhalClient03.png]]
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step52EditMarauroadBatFile/Step52EditMarauroadBatFile01.png
 
Create a new account (because your new local Stendhal server doesn't have any player account yet).
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step52EditMarauroadBatFile/Step52EditMarauroadBatFile02.png
 
[[File:InstallStendhalClient04.png]]
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step52EditMarauroadBatFile/Step52EditMarauroadBatFile03.png
 
Type as '''Server name:''' ''localhost'' instead of the default server.
Edit the marauroad.bat file by removing the version in the name of the ''marauroa-1.31.jar'' file.
 
[[File:InstallStendhalClient05.png]]
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step52EditMarauroadBatFile/Step52EditMarauroadBatFile04.png
 
And the same '''every time you log in to the game''' in your local server.
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step5StendhalServerInstall/Step52EditMarauroadBatFile/Step52EditMarauroadBatFile05.png
 
[[File:InstallStendhalClient06.png]]
'''Warning:''' Check that, as indicated in a previous step, ''marauroa-1.31.jar'' filename has been changed to ''marauroa.jar''
 
Choose the ''localhost'' server.
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step3MarauroaInstall/Step3MarauroaInstall03.png
 
[[File:InstallStendhalClient07.png]]
Note for the future: If you choose:
*not to rename ''marauroa-1.31.jar'' file to remove the version from its filename and
*not to edit the ''mararoad.bat'' file
 
Then, when you want to recompile Stendhal, you will really need to do it or you will have to edit ''build.xml'' file (don't count on me for that, at least for now).
 
==How to set up a player account as admin==
Note for the future: If you choose:
*to rename ''stendhal-server-0.47.1'' file to remove the version from its filename and
*edit the ''mararoad.bat'' file consequently
 
There's a folder called ''data'' inside the Stendhal server folder.
Then, everytime you recompile Stendhal, the version suffix will be generated again , so it is more comfortable and faster leaving it.
 
Go into ''data''
Go to [[VisualGuideToInstallingStendhalStep6|Step 6. Run MySQL as a service (if it is not running already)]]
 
[[File:SetUpPlayerAdmins01.png]]
 
Go into ''conf''
 
[[File:SetUpPlayerAdmins02.png]]
 
Edit the ''admins.txt'' file with your favourite text editor, e.g. Notepad.
 
[[File:SetUpPlayerAdmins03.png]]
 
Add the player names to the list and hit [enter] at the end of the last one. Save this file.
 
[[File:SetUpPlayerAdmins04.png]]
 
Now restart your server, and it will read the names from ''admins.txt'' and give them [[Stendhal:Administration|adminlevel]] 5000!
 
 
<br>
<br>
<br>
----
[[VisualGuideInstallingStendhal|Back to Visual Installation Guide Step-By-Step]]<br>
[[Stendhal | Back to stendhal main wiki page]]