VisualGuideToInstallingStendhalStep4: Difference between revisions

Content deleted Content added
imported>Javydreamercsw
imported>Javydreamercsw
Line 1:
==Step 4. Configure marauroa to access the MySQL database==
--[[User:Javydreamercsw|Javydreamercsw]] 09:35, 5 March 2008 (PST) (Update: eliminated the screens no longer used by marauroa while creating ini file)
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.
 
Line 6 ⟶ 7:
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration01.png
 
Cdcd to ''marauroa/libs'' folder (that contains ''marauroa.jar'')
 
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration02.png
Line 12 ⟶ 13:
At prompt, copy from here:
 
java -cp marauroa.jar;stendhal-server-0.6XXX.jar games.stendhal.server.core.engine.GenerateINI
 
which is Case SenSiTivE! And remember to change the 0.6XXX to whatever version you have. (the photos below are outdated so they look a little different - don't worry!)
 
Now USE your mouse and right-click anywhere inside the window and choose paste.
Line 25 ⟶ 26:
 
'''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).
 
When prompted for the name of the *.ini file:
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration05.png
 
just press <tt>enter</tt> and this way you accept the default ''marauroa.ini''
 
When prompted for the name of the database:
Line 66 ⟶ 62:
 
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]].
 
When prompted for the number of the UDP port used by the database you have to use the UDP port that is the default when running the client (if it is easy why complicate it...). So copy from here:
 
32160
 
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt>
 
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration11.png
 
When prompted for the name of the game (yes, you just intended to install Stendhal server after all... I haven't forgot that) obviously, copy from here:
 
stendhal
 
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt>
 
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration13.png
 
When prompted for the number of the turn time (Ok, I confess I don't really understand the message that has appeared but.. who cares? Not me!) Copy from here:
 
300
 
and USE your mouse and right-click anywhere inside the window and choose paste. Then press <tt>enter</tt>
 
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration14.png
 
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 path for logs:
http://arianne.sourceforge.net/wiki_images/visual_guide_server/Step4MarauroaConfiguration/Step4MarauroaConfiguration15.png
 
Press <tt>enter</tt> to accept default
 
Also when Prompted for the path for statistics press <tt>enter</tt> to accept default.
 
When prompted for the size for the RSA key: