Compile, configure, and run ryzom core (server/client) on Windows (x86)

Source: Internet
Author: User
Tags mysql command line

InWindows(X86) To compile, configure, and runRyzom Core

 

Http://dev.ryzom.com/wiki/7/EverythingWindows:

This tutorial is verified on the following platforms
Windows 7x64 ultimate
Windows Vista x64 Home Premium SP2
Windows XP SP3

List of software to be downloaded and installed

  • Tortoisehg
  • DirectX SDK
  • External_stlport
  • Qt
  • XAMPP
  • Apache
  • MySQL
  • Visual c ++ 2008
  • Visual c ++ 2008 SP1
  • PHP

Xpeng Note: QT is required for tool compilation. Apache and MySQL do not actually need to be downloaded and installed separately. You can download XAMPP for installation according to the tutorial requirements, for the domestic situation vs 2008 SP1, it is generally no problem, just one step in place.

ObtainRyzomSource code
Download and install tortoisehg-http://tortoisehg.bitbucket.org/download/index.html
Create a code root directory (in this tutorial, we useX:/ryzom
For example ).

 

Go to the directory you just created, right-click it, and selectTortoisehgAnd then selectClone(Clone ).

 

In the tortoisehg clone windowSourece pathFill in the edit box: http://ryzom.hg.sourceforge.net: 8000/hgroot/ryzom, note that the destination path editing box now defaults to the path you right click, keep all options by default click at the bottomCloneButton.

 


ConfigurationVisual c ++ 2008

  • First install DirectX SDK (February 2010)-http://www.microsoft.com/downloads/details.aspx? Familyid = 2c7da5fb-ffbb-4af6-8c66-651cbd28ca15 & displaylang = en
  • Then install visual c ++ 2008 (90 day trial)-http://download.microsoft.com/download/8/1/d/81d3f35e-fa03-485b-953b-ff952e402520/VS2008ProEdition90dayTrialENUX1435622.iso
  • Then install visual c ++ 2008 SP1-http://www.microsoft.com/downloads/thankyou.aspx? Familyid = 27673c47-b3b5-4c67-bd99-84e525b5ce61 & displaylang = en


Now, you create a new folder named X:/external (X is your drive letter)

Download this file: Ghost.
Decompress the content to the external directory you just created, which contains support for x86 and x64. For x86 compilation, you only need "bin ", "include" and "lib" directories.

 

Copy the File Code \ tool \ visual_studio_macros \ autoexp. dat to the C: \ Program Files \ Microsoft Visual Studio 9.0 \ common7 \ packages \ debugger directory.

 

 

Download and install qt sdk: http://qt.nokia.com/downloads/windows-cpp-vs2008
Open the Start menu on the desktop, right-click my computer, and open the properties page. Set the environment variables in the advanced options set by the system (the setting interface on Windows XP may be different ):

 

 

 

Create an environment variable named qtlib pointing to the \ lib directory under your QT installation path, for example, C: \ QT \ 4.6.2 \ Lib

 

 

Note: you may need to restart your computer to make these configurations take effect.

Configure the compilation Project
Now, go to the code pathCode \ nel \Directory, double-clickNel. sln. The project will be opened in Visual C ++.

 

In the options menu of Vs, SetProjects and SolutionsAndVC ++ Directories.

 

 

Set the include path as follows (note that your drive letter and path may be different ):
X: \ external \ include \ stlport
X: \ external \ include
X: \ external \ bin
X: \ ryzom \ code \ nel \ SRC
X: \ ryzom \ code \ nel \ include

 

Now set the library path:
C: \ Program Files \ Microsoft DirectX SDK (February 2010) \ Lib \ x86
X: \ external \ Lib
X: \ ryzom \ code \ nel \ Lib
* Note that the "\ code \ nel \ Lib" directory appears only after you have compiled the Nel. Although this library directory has no effect on the compilation of the Nel, but it is required to compile the ryzom client.

 

Click OK to exit the configuration page.

CompileNel,Nel tools,Client/ServerAndRyzom tools
OpenNel. sln, Compiled according to the release version (you can press F7 to start ).
If you are interested in the world editor, you can compile the Nel tools. In the Code \ net \ tools directory, double-click all. sln and follow the above steps to compile the entire project.
Now let's compile the client and server:
In the Code \ ryzom \ Server Directory, compile server. sln in release version, which is a very long process.
In the Code \ ryzom \ Client Directory, compile client. sln in the release version
Compile all. sln with release in the Code \ ryzom \ tools directory
Note: In the current code library, ryzom tools has some projects that cannot be compiled. This is normal. You can ignore it. For more information, see http://dev.ryzom.com/boards/17/topics/2666.

SetApache/PHP
To simplify the operation, we use a software package named XAMPP lite, which has built-in Apache, MySQL, PHP, and phpMyAdmin, so that you can easily configure the MySQL server.
Download and install it: http://www.apachefriends.org/download.php? Xampplite-win32-1.7.3.exe
After the installation is complete by default, go to the xampplite \ apache \ conf \ extra directory (note that you need to operate in administrator mode in Vista or win7) and open it in the text editor.Httpd-vhosts.conf, Add the following text at the end:

Listen 40916.
<Virtualhost *: 40916>
<Directory "X:/source/code/ryzom/tools/Server/">
Options-indexes followsymlinks Multiviews
Indexoptions fancyindexing foldersfirst namewidth = *
AllowOverride all
Order allow, deny
Allow from all

Addtype text/html. php. PHPs
Addhandler application/X-httpd-PHP. php
Addhandler application/X-httpd-PHP-source. PHPs
</Directory>
Serveradmin admin @ localhost
DocumentRoot "X:/source/code/ryzom/tools/Server/www"
Servername localhost
</Virtualhost>
<Virtualhost *: 80>
<Directory "X:/source/code/ryzom/tools/Server/">
Options-indexes followsymlinks Multiviews
Indexoptions fancyindexing foldersfirst namewidth = *
AllowOverride all
Order allow, deny
Allow from all

Addtype text/html. php. PHPs
Addhandler application/X-httpd-PHP. php
Addhandler application/X-httpd-PHP-source. PHPs
</Directory>
Serveradmin admin @ localhost
DocumentRoot "X:/source/code/ryzom/tools/Server/admin"
Servername localhost
</Virtualhost>

Note that the path should be changed to your own appropriate path.
Save the file, start the XAMPP control panel, and clickApacheNextStartButton.

Then, set neltool_sitebase to your server address in the X:/source/code/ryzom/tools/Server/admin/config. php file, and set neltool_systembase to your corresponding path.
Create a directory: X:/source/code/ryzom/Server/save_shard/rrd_graphs /.
In the X:/source/code/ryzom/tools/Server/www/login/config. php file, change the value of $ logrelativepath to 'logs/', that is:
$ Logrelativepath = 'logs /';
Create the directory X:/source/code/ryzom/tools/Server/www/login/logs/

SetMySQL
Open the XAMPP control panel again and click Next to MySQL.StartButton to start it. Now you can clickAdminButton to start the browser to enter the phpMyAdmin site.
It should be displayed on the top of the homepage of the phpMyAdmin site.MySQL localhost, In the middle ofCreate new databaseEnterNelThen clickCreateButton. Click againServer: localhostReturn to the home page and create it in the same wayNel_toolAnd then createRing_openLibrary.
Next, you need to create user and user permissions for these databases. Note: "shard" is used as the default user name in the configuration file under the Code/ryzom/Server Directory. By default, there is no password. If you want to configure other users in MySQL, in these. cfg file.
Follow these steps to configure phpMyAdmin:

  • At the top of the page, clickServer: localhostGo to the homepage
  • InLocalhostBelow, FindPrivilgesAnd click itAnd then you will see a table showing the user account
  • ClickSQL
  • Now you can see a large edit box with the titleRun SQL query/queries on server "localhost ":@. Enter the following text:

Grant all on Nel. * To shard @ localhost;

 

Grant all on nel_tool. * To shard @ localhost;

 

Grant all on ring_open. * To shard @ localhost;

 

  • ClickGoButton
  • Now you can see the message "Your SQL query has been executed successfully..." on the homepage ..."
  • Find the nameReload privileges
    And then click it
  • Now you will return to the home page again with the information: "The privileges were reloaded successfully ..."

So far, you have created users and permissions in the ryzom database. Note that you can also directly use the MySQL command line for this purpose. This is written on the English link and you can check it yourself.

AboutMySQLGlobal variableSQL _modeProblems
If SQL _mode contains the strict_trans_tables value, you must remove it.
Open my. INI file (usually under XAMPP \ xampplite \ mysql \ bin), find the "SQL-mode =" line (if not, add one under [mysqld ), change to SQL-mode = "no_auto_create_user, no_engine_substitution.
Restart the MySQL server

Import default database data
Go to the code/ryzom/tools/Server/SQL directory and do the following:

  • OpenRyzom_admin_default_data. SQLFile (I am using UE), find/Home/nevrax/code/ryzom/Server/save_shard/rrd_graphsAnd changedYour own code path, suchX:/source/code/ryzom/Server/save_shard/rrd_graphsTo save the file.
  • OpenRyzom_default_data. SQLFileChange all open.ryzom.com to the address of your machine (such as 192.168.0.1 or 127.0.0.1), but do not change the port numbers (such as 4999 ).


Copy the code/ryzom/tools/Server/admin/templates/default file to code/ryzom/tools/Server/admin/templates/default_c.

Next, go to the phpMyAdmin page and do the following:

  • ClickNel
  • Click Import on the top tab.
  • InFile to importClickChoose File(Browsing)Button. Browse to code pathCode/ryzom/tools/Server/SQLThen selectFileRyzom_tables. SQLOpen later
  • Click nowGoButtonImport this file
  • Now returnNelImport the database again on the import page.Ryzom_default_data. SQLFile
  • Return to the nel_tool database for import.Ryzom_admin_default_data. SQLFile


After importing the database file, you need to modify some content. Use phpMyAdmin as follows:

  • EnterNel_toolDatabaseOn the page, selectNeltool_domainsTable, Locate a record whose domain_id is 12
  • Click the pen icon to edit the record.Domain_as_host
    Set the Domain value to your server address


Edit configuration file
Once the database is created, you need to modify the. cfg file in the code/ryzom/Server Directory:

  • Open a file in a text editorCode/ryzom/Server/frontend_service.cfgThen locate the fslistenhost item (add this item if no one exists)
  • Set fslistenhost to your server address (for example, 192.168.0.1 or 127.0.0.1)


StartRyzomServer
So far, you should be able to start the ryzom server and execute the shard_start.bat file under the Code/ryzom/Server Directory.
Multiple consoles will appear. After a period of time when all servers are started, you can start your client to link your self-built server.
Client running see http://ryzomcn.5d6d.com/thread-20-1-1.html

Client logon Problems
If an error is reported when the client connects to the server, refer to http://dev.ryzom.com/wiki/ryzom/clientconnecterrors.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.