VisualGuideToBuildingStendhalStep5: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
imported>Oslsachem No edit summary |
imported>Hendrik Brummermann No edit summary |
||
| (31 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
==Step 5. |
==Step 5. Build the Stendhal distribution using Ant== |
||
Move the ''AntDist'' file inside the ''stendhal'' folder which is inside the ''projects'' folder, or wherever you have the ''stendhal'' folder that you checked out from Git. |
|||
Look for the 3 client and 3 server generated files at the ''C:\development\stendhal\lib\'' folder |
|||
'''Warning:''' I really mean ''C:\development\stendhal\lib\'' and not ''C:\development\libs\'' |
|||
[[File:Step5BuildStendhalWithAnt01.png]] |
|||
Generated server files: |
|||
*''stendhal-xmlconf-0.47.jar'' |
|||
*''stendhal-maps-0.47.jar'' |
|||
*''stendhal-server-0.47.jar'' |
|||
To be sure that you are in the right ''stendhal'' folder, you should see a file named ''build.xml'', which will be used by Ant to build the Stendhal distribution. |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step5MoveCompiledFiles/Step5MoveCompiledFiles01.png |
|||
[[File:Step5BuildStendhalWithAnt02.png]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step5MoveCompiledFiles/Step5MoveCompiledFiles02.png |
|||
Select the ''AntDist'' file and press the [enter] key (↵). |
|||
Generated client files: |
|||
*''stendhal-data-0.47.jar'' |
|||
*''stendhal-0.47.jar'' |
|||
*''stendhal-sound-data-0.47.jar'' (this file is not strictly necessary to play the game, only to hear sounds) |
|||
A command prompt window will appear and the building process will begin: |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step5MoveCompiledFiles/Step5MoveCompiledFiles01.png |
|||
[[File:Step5BuildStendhalWithAnt03.png]] |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/Step5MoveCompiledFiles/Step5MoveCompiledFiles03.png |
|||
After quite some time, when the text BUILD SUCCESSFUL is displayed, the process will be finished. |
|||
'''Copy''' the 3 server files to ''C:\marauroa-1.31\'' folder |
|||
[[File:Step5BuildStendhalWithAnt04.png]] |
|||
'''Copy''' the 3 client files (or 2 without ''stendhal-sound-data'') to ''C:\stendhal-0.47\'' folder (the client folder) |
|||
You can press any key to close this window. |
|||
'''Warning:''' Copy these files and don't remove them from ''/lib'' because this way the next time you recompile Stendhal with <tt>ant</tt>, the compiler will only generate the changed files and not all the 6 files everytime, spending much less time in the process. |
|||
Go to [[VisualGuideToBuildingStendhalStep6|Step 6. Locate the built server and client zip files]] |
|||
==How to become admin== |
|||
Go to ''C:\Development\stendhal\data\conf\'' folder |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin01.png |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin02.png |
|||
Edit ''admins.list'' file: |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin03.png |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin04.png |
|||
Add your user name there: |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin05.png |
|||
Save the changes: |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin06.png |
|||
Copy this file to ''C:\Development\stendhal\build_server\data\conf'' |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin07.png |
|||
http://arianne.sourceforge.net/wiki_images/visual_guide_build/HowToBecomeAdmin/HowToBecomeAdmin08.png |
|||
Recompile, move the new generated binary files to their appropiate place, run the server and client and behold! That user has admin superpowers! |
|||
Latest revision as of 21:30, 21 January 2016
Step 5. Build the Stendhal distribution using Ant
Move the AntDist file inside the stendhal folder which is inside the projects folder, or wherever you have the stendhal folder that you checked out from Git.
To be sure that you are in the right stendhal folder, you should see a file named build.xml, which will be used by Ant to build the Stendhal distribution.
Select the AntDist file and press the [enter] key (↵).
A command prompt window will appear and the building process will begin:
After quite some time, when the text BUILD SUCCESSFUL is displayed, the process will be finished.
You can press any key to close this window.


