Jump to content

Omniface

Members
  • Content Count

    11
  • Joined

  • Last visited


Reputation Activity

  1. Upvote
    Omniface reacted to OnNplay in [ tutorial ] Preparing database ragnarok for pre-compiled Hercules   
    Working around in MySQL console for database ragnarok.     This tutorial is mainly to support the release of pre-compiled Hercules for Win32 by me, OnNplay. Never-the-less it also closer to linux command line instead of using phpMyAdmin, HeidiSQL, Navicat, MySQL Workbench and other MySQL GUI client program. Hopefully, you will getting more confident to use PuTTY when you subscribe service such as VPS or dedicated server.     Lets do our first mysql database "ragnarok" and also our first mysql user "ragnarok". To state the command I used quote character "command here;". Please ignore it when you type or select and copy.     1. Download, install WAMP Server and start it. On desktop taskbar near the clock, click WAMPSERVER - server Online > MySQL > MySQL console .     2. Now active MySQL console window is open asking you to "Enter password:". By default WAMP Server logging into MySQL console as "root" and no password. So just press Enter. Now you in the MySQL service enviroment. You should see "Welcome" followed by some texts ending with line "mysql>".     3. You need to change your user "root" password. Type "use mysql;" and you should see "Database changed". Command "UPDATE user SET password=PASSWORD('newpassword') WHERE user='root';". Type "update user set password=password('w4mps3rv3r') where user='root';" and press Enter.
    The "newpassword" is at your own wish. After pressing Enter, you should see "Query OK," followed by some texts ending with line "mysql>".     4. For the change to take effect on MySQL service, you need to type "flush privileges;" and press Enter.     5. Now you should test the new root's password. Type "quit;" and press Enter. MySQL console window will close. Do step no.1. Enter your new root's password and press Enter. After the line of "mysql>" appear, MySQL service enviroment is ready to execute mysql's commands. When you type a wrong or incomplete command, console will response with "->".  What you need to do is just type ";" and press Enter.     6. Now you going to create a database to be used by Hercules emulator. By default Hercules will connecting to IP "127.0.0.1" port "3306" on database "ragnarok". Command "CREATE DATABASE database-name;". For deleting database, command "DROP DATABASE database-name;". Type "use mysql;" and press Enter.
    Next type "create database ragnarok;" and press Enter. Check the existence of your database, type "use mysql; show databases;" and press Enter.     7. Now you going to create one mysql user for Hercules to use. Do not let Hercules to use user "root". By default Hercules used mysql user "ragnarok" and it's password also "ragnarok". Command "CREATE USER 'user-name'@'host-name/IP' IDENTIFIED BY 'password';".For deleting user, command "DROP USER user-name;". Now type "create user 'ragnarok'@'localhost' identified by 'ragnarok';" and press Enter.
    Next you should do step no.4. To check the existence of user "ragnarok", type "use mysql; select user from mysql.user;" and press Enter.     8. You already create database "ragnarok" and user "ragnarok" in MySQL service. MySQL user can't simply access database without permission. Now you as a user "root" need to allow user "ragnarok" to access database "ragnarok". Command "GRANT ALL PRIVILEGES ON database-name.table-name TO 'user-name'@'host-name/IP';".For removing user to acces any database, command "REVOKE ALL PRIVILEGES ON *.* FROM 'user-name'@'host-name/IP';". Now type "grant all privileges on ragnarok.* to 'ragnarok'@'localhost';" and press Enter.
    Next you should do step no.4.     9. You should test the user "ragnarok". Type "quit;" and press Enter. MySQL console window will close. Now open folder where WAMP Server is installed and find where is file "mysql.exe" is located. During the making of this tutorial "mysql.exe" appear as "mysql" is located in "C:wampbinmysqlmysql5.6.12bin". Do not select any file inside the folder, if any one of the files is selected clear the select by clicking area after column "Size". Point arrow inside the folder, hold down the Shift key and at the same time do a right-click. Click "Open command window here". Type "mysql -uragnarok -p" and press Enter. You should see "Enter password:". Now type "ragnarok" and press Enter.     10. Here you going to prepare a text file for later use. Find and open folder "sql-files" which come with Hercules package. All the required files are with an extension ".sql" and can be read using Notepad++. Don't waste your time now to read it. Those files are containing default tables for database preparation. To get the full path of each file is by hold down the Shift key and do a right-click on the file, click "Copy as path". Next paste it in Notepad or Notepad++. Alternatively you also able to select all files and "Copy as path" too. The full path will come with quote character " " at beginning and ending. Delete it. Before file full path, add "source " with one space after it. Prepare file full path line by line so it easy for you to select and copy. Maybe you named the text file as "hercules-source-sql.txt".   Before "C:UsersOnnplayDesktopHerculestrunksql-filesmob_skill_db.sql""C:UsersOnnplayDesktopHerculestrunksql-filesmob_skill_db_re.sql""C:UsersOnnplayDesktopHerculestrunksql-filesmob_skill_db2.sql""C:UsersOnnplayDesktopHerculestrunksql-filesitem_db.sql""C:UsersOnnplayDesktopHerculestrunksql-filesitem_db_re.sql""C:UsersOnnplayDesktopHerculestrunksql-filesitem_db2.sql""C:UsersOnnplayDesktopHerculestrunksql-filesitem_db2_re.sql""C:UsersOnnplayDesktopHerculestrunksql-fileslogs.sql""C:UsersOnnplayDesktopHerculestrunksql-filesmain.sql""C:UsersOnnplayDesktopHerculestrunksql-filesmob_db.sql""C:UsersOnnplayDesktopHerculestrunksql-filesmob_db_re.sql""C:UsersOnnplayDesktopHerculestrunksql-filesmob_db2.sql"  
    After source C:UsersOnnplayDesktopHerculestrunksql-filesmob_skill_db.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesmob_skill_db_re.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesmob_skill_db2.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesitem_db.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesitem_db_re.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesitem_db2.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesitem_db2_re.sqlsource C:UsersOnnplayDesktopHerculestrunksql-fileslogs.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesmain.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesmob_db.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesmob_db_re.sqlsource C:UsersOnnplayDesktopHerculestrunksql-filesmob_db2.sql  
    11. Now you going to fill up database "ragnarok" with default tables. Back to step no.9 and file "hercules-source-sql.txt" opened for select and copy. Type "use ragnarok;" and press Enter. You should see "Database changed". Next inside the console, copy and paste "source C:UsersOnnplayDesktopHerculestrunksql-filesitem_db.sql" and press Enter. You should see many "Query OK," running till "mysql>" appear again. Repeat with other full path of your sql files. After filling up database "ragnarok", you may check how many tables are created. Type "show tables;" and press Enter. Total row is a total table in database. During the making of this tutorial, Hercules is at Revision 12214 supplied with 12 sql files producing total of 52 tables.     12. If you follow correctly this tutorial, Hercules emulator can run smoothly by now. Type "quit;"  and press Enter to close the MySQL console.
  2. Upvote
    Omniface reacted to Shakto in 2013 Ragexe and Diff (Up to date 2013-08-07)   
    2013 Ragexe
     
     
    ( Thanks to Yommy for all the scripts and the great help
      Thanks to MStream for his help to the project and for adding patches
      Thanks to k3dt for unpacking all the exe )
     
    Things you have to do to make it works
    Open your clientinfo.xml
    Search <servertype></servertype>Set it to primarySearch <langtype></langtype>Set it to 0   
    src/common/mmo.h
    Search #define PACKETVER YYYYMMDDAnd match it with the date version you choosed for your clientex : #define PACKETVER 20130522Clean and re-build the solution of your emulator after it !!!  
    Those patchs has been removed : Restore Login Window - Disable rag1&sak1 - Skip Service Select bug for a lot of people, please don't use it if it's not for testing purpose and use that software :
    Loki Launcher (It's a ro launcher : you have to use it to log in the game)
    http://herc.ws/b...-loki-launcher/
    or
    R.O.L.e.X : http://herc.ws/b...opic/930-rolex/
     
    Ragexe (thx to k3dt) - The patchs support version of Ragexe >= 2013 03 20
    http://k3dt.eu/Ragexe/unpacked/
     
    Diff Patcher v2
    http://www.mediafire...fibc47gzvdshp8o
     
    Data folder
    If you have some problem with your lua files, please delete your old data/luafiles514 folder
    And put those files in your ragnarok folder : https://subversion.a...de-translation/
    Finally, change all lua extension to lub extension, place this script in your data/luafiles514 folder
    Windows :
    http://www.mediafire...jvtac0j8f6m604v
    Linux :
    http://www.mediafire...r72dz8mpk83dvsr
     
    If you still have trouble with lub files, you can use my own luafiles514 folder (delete your own luafiles514 folder before !!!)
    http://www.mediafire...uudw9u0siwnycwz
     
    Diff files :
    http://k3dt.eu/Ragexe/unpacked/Diffs/
     
    Packets :
    2013-03-20  -  Packets -  Encryption keys
    2013-05-15  -  Packets -  Encryption keys
    2013-05-22  -  Packets -  Encryption keys
    2013-05-29  -  Packets -  Encryption keys
    2013-06-05  -  Packets -  Encryption keys
    2013-06-12  -  Packets -  Encryption keys
    2013-06-18 -  Packets -  Encryption keys
    2013-06-26  -  Packets -  Encryption keys
    2013-07-03  -  Packets -  Encryption keys
    2013-07-10  -  Packets - Encryption keys
    2013-07-17  -  Packets -  Encryption keys
    2013-07-24  -  Packets -  Encryption keys
    2013-07-31  -  Packets - Encryption keys
    2013-08-07  -  Packets -  Encryption keys

    Any error ? Look this Support Topic first
     
    Working :@ Chat FixAllow Chat Flood (X lines)Allow Space In Guild NameArial on All LangtypesChange Gravity Error HandlerChat Color GMChat Color GuildChat Color MainChat Color Party OtherChat Color Party YouChat Color Player OtherChat Color Player YouCustom Window TitleDisable 4 letter charname limitDisable 4 letter username limitDisable 4 letter password limitDisable Nagle AlgorithmDisable Ragexe Filename CheckDisable rag1&sak1Disable Hallucination Wavy ScreenDisable HShieldDisable Packet EncryptionDisable Quake Skill EffectDisable Swear FilterEnable AsciiEnable Custom 3D BonesEnable Multiple GrfEnable Official Custom FontsEnable Title Bar MenuEnable 64k HairstyleEnable DNS SupportEnforce Official Login BackgroundExtended Chat BoxExtended Chat Room BoxExtended Npc BoxExtended PM BoxFix Camera Angles (Full, Less, Recommended)HKLM to HKCUIncrease Headgear View ID to 5000Increase Zoom Out (50% - 75% - Max)Increase Screenshot QualityIgnore Missing File ErrorIgnore Missing Palette ErrorKorea Service XML FixOnly First Login BackgroundOnly Second Login BackgroundPackets Keys ChangeRead Data Folder FirstRead lua before lub (ItemInfo.lub)Read msgstringtable.txtRead questid2display.txtRemove GM SpritesRemove Gravity AddsRemove Gravity LogoRemove Hourly AnnonceRemove Serial DisplayRestore Login WindowShared Body PalettesShared Head PalettesSkip Licence ScreenSkip Ressurection ButtonTranslate Client in EnglishUse Custom Aura SpritesUse Normal Guild BracketsUse Plain Text DescriptionsUse Ragnarok IconUse SSO login packet for all LangtypeMissing (todo) :Disable Multplie Windows 
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.