VisualGuideToInstallingStendhalStep5: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Kymara reminder not to look at photo |
imported>Hendrik Brummermann added navigation menu |
||
| (81 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{Navigation for Stendhal Top|Building & Hosting}} |
|||
==Step 5. Configure marauroa to access the MySQL database== |
|||
Now you will generate a marauroa *.ini file so that marauroa knows where and how to access the database with the user accounts and other info. |
|||
==Step 5. Install and run the Stendhal client to play in your local Stendhal server== |
|||
Open a command prompt window. |
|||
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. |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration01.png |
|||
To run the client: |
|||
cd to ''marauroa/'' folder |
|||
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/Step4MarauroaConfiguration/Step4MarauroaConfiguration02.png |
|||
[[File:InstallStendhalClient01.png]] |
|||
At prompt, copy from here: |
|||
Unzip the folder that you get, wherever you choose. |
|||
java -cp marauroa-x.x.jar;stendhal-server-0.XX.jar games.stendhal.server.core.engine.GenerateINI |
|||
[[File:InstallStendhalClient02.png]] |
|||
which is Case SenSiTivE! And remember to change the 0.XX to whatever version you have as well as the marauroa version. (the photos below are outdated so they look a little different - don't worry!) |
|||
Double-click the ''stendhal-{{version}}.jar'' file in the client. |
|||
Now USE your mouse and right-click anywhere inside the window and choose paste. |
|||
[[File:InstallStendhalClient03.png]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration03.png |
|||
Create a new account (because your new local Stendhal server doesn't have any player account yet). |
|||
Then press <tt>enter</tt> |
|||
[[File:InstallStendhalClient04.png]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration04.png |
|||
Type as '''Server name:''' ''localhost'' instead of the default server. |
|||
'''REMINDER use what is written in the text NOT this outdated photo!''' |
|||
'''Warning:''' depending on how you have copied it maybe there's no need to press <tt>enter</tt> this time after you paste (you might have copied the <tt>enter</tt> character too). |
|||
[[File:InstallStendhalClient05.png]] |
|||
When prompted for the name of the database: |
|||
And the same '''every time you log in to the game''' in your local server. |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration06.png |
|||
[[File:InstallStendhalClient06.png]] |
|||
Press enter to accept the default or write your own. |
|||
Choose the ''localhost'' server. |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration07.png |
|||
[[File:InstallStendhalClient07.png]] |
|||
Then press <tt>enter</tt> |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration08.png |
|||
==How to set up a player account as admin== |
|||
When prompted for the name of the database host, this time you can safely press <tt>enter</tt> to accept the default localhost |
|||
There's a folder called ''data'' inside the Stendhal server folder. |
|||
<span id="ConfigureMarauroa_EnterUserPassword"></span>'''Warning:''' When prompted for the name of the database user you have to write exactly the same user you chose earlier when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. So copy from here: |
|||
Go into ''data'' |
|||
stendhal_user |
|||
[[File:SetUpPlayerAdmins01.png]] |
|||
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt> |
|||
Go into ''conf'' |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration09.png |
|||
[[File:SetUpPlayerAdmins02.png]] |
|||
'''Warning:''' When prompted for the name of the database user password you have to write exactly the same password you chose earlier when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. So copy from here: |
|||
Edit the ''admins.txt'' file with your favourite text editor, e.g. Notepad. |
|||
stendhal_passwd |
|||
[[File:SetUpPlayerAdmins03.png]] |
|||
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt> |
|||
Add the player names to the list and hit [enter] at the end of the last one. Save this file. |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration10.png |
|||
[[File:SetUpPlayerAdmins04.png]] |
|||
Here, like I have just done, it reminds you that you should have granted all permissions to access the marauroa database to the user ''stendhal_user'' with password ''stendhal_passwd''. And that is precisely what we have just done already when [[VisualGuideToInstallingStendhalStep2#CreateMySQLDatabase_SetUserPassword|creating the database at Step 2]]. |
|||
Now restart your server, and it will read the names from ''admins.txt'' and give them [[Stendhal:Administration|adminlevel]] 5000! |
|||
Note: Depending on the power and memory of your PC you can get warnings (later in the server window) of turn time overflow (I do) if you set it this value or lower but that does not hurt (I think). |
|||
When prompted for the size for the RSA key: |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration16.png |
|||
Press <tt>enter</tt> to accept default |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration17.png |
|||
I think this key is used for users' passwords encryption inside the database. |
|||
For the use we are going to make of it I do not think we need this security measure so I would write 0 or 1, but to be on the safe side, let's press <tt>enter</tt> to accept the default (512) and wait a while or longer to finish. |
|||
Roughly estimated time (one Mississippi, two Mississippi...) on my computer: 45 seconds (who knows if more, who knows if less) |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration18.png |
|||
Close the window: |
|||
Type exit or simply click on the X (yes, I will be declared a genius for this sentence) |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration19.png |
|||
Go to [[VisualGuideToInstallingStendhalStep6|Step 6. Run MySQL as a service (if it is not running already)]] |
|||
<br> |
<br> |
||