Jump to content

  •  

OnNplay

Member Since 17 May 2013
Offline Last Active Jul 26 2014 03:12 PM
*****

Topics I've Started

StarGames Control Panel for Hercules 3rd Job

30 July 2013 - 02:14 PM

http://herc.ws/board...creenshot&id=29

File Name: StarGames Control Panel for Hercules 3rd Job
File Submitter: OnNplay
File Submitted: 30 Jul 2013
File Category: Web Resources

StarGames Control Panel is a Control Panel used for Private Ragnarok Online Servers.
It's integrated with it's very own Community Board System, Self Locking System, Server Status, and a Bug Report / Contact System.

Before installing Stargames Control Panel on your webhost, you need to make sure your webhost provider offers you:

* PHP 5.2
* PDO and PDO-MYSQL extensions for PHP5 (including PHP_MYSQL support)
* MySQL 5
* GD2 (for guild emblems and registration CAPTCHA)
* Tidy (for cleaner HTML output)
* Optional: mod_rewrite support for UseCleanUrls feature

You can view this demo by going to this link: http://sgcp.hostei.c...dex.php?act=idx

Click here to download this file

Confusing client_version_to_connect:

24 July 2013 - 08:20 AM

I hope some one can crystal clear my understanding.

 

What is the relation between "#define PACKETVER" in "src/common/mmo.h" and <version> in "sclientinfo.xml" that refer to "conf/login-server.conf" at line "client_version_to_connect:" ?


How about drop Pre Renewal from Hercules ?

24 July 2013 - 01:04 AM

Maybe I am the one that really one to see Hercules focus in developing renewal.

Also maybe others have a better views that may convince me to agree with pre renewal too.

Those day developer team in rathena drop text and continuing sql.

So lets try to drop pre renewal.


[ tutorial ] Preparing database ragnarok for pre-compiled Hercules

17 July 2013 - 10:46 AM

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 "[font="'courier new', courier, monospace;"]command here;[/font]". 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 "[font="'courier new', courier, monospace;"]use mysql;[/font]" and you should see "Database changed".
Command "UPDATE user SET password=PASSWORD('newpassword') WHERE user='root';".

Type "[font="'courier new', courier, monospace;"]update user set password=password('w4mps3rv3r') where user='root';[/font]" 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 "[font="'courier new', courier, monospace;"]flush privileges;[/font]" and press Enter.
 
 
5. Now you should test the new root's password. Type "[font="'courier new', courier, monospace;"]quit;[/font]" 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 "[font="'courier new', courier, monospace;"];[/font]" 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 "[font="'courier new', courier, monospace;"]use mysql;[/font]" and press Enter.

Next type "[font="'courier new', courier, monospace;"]create database ragnarok;[/font]" and press Enter.
Check the existence of your database, type "[font="'courier new', courier, monospace;"]use mysql; show databases;[/font]" 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 "[font="'courier new', courier, monospace;"]create user 'ragnarok'@'localhost' identified by 'ragnarok';[/font]" and press Enter.

Next you should do step no.4.
To check the existence of user "ragnarok", type "[font="'courier new', courier, monospace;"]use mysql; select user from mysql.user;[/font]" 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 "[font="'courier new', courier, monospace;"]grant all privileges on ragnarok.* to 'ragnarok'@'localhost';[/font]" and press Enter.

Next you should do step no.4.
 
 
9. You should test the user "ragnarok". Type "[font="'courier new', courier, monospace;"]quit;[/font]" 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 "[font="'courier new', courier, monospace;"]mysql -uragnarok -p[/font]" and press Enter.
You should see "Enter password:". Now type "[font="'courier new', courier, monospace;"]ragnarok[/font]" 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 "[font="arial, helvetica, sans-serif;"]source [/font]" 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 "[font="'courier new', courier, monospace;"]use ragnarok;[/font]" and press Enter. You should see "Database changed".
Next inside the console, copy and paste "[font="'courier new', courier, monospace;"]source C:UsersOnnplayDesktopHerculestrunksql-filesitem_db.sql[/font]" 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 "[font="'courier new', courier, monospace;"]show tables;[/font]" 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 "[font="'courier new', courier, monospace;"]quit;[/font]" [color=rgb(40,40,40);font-family:helvetica, arial, sans-serif;] and press Enter [/color]to close the MySQL console.

Hercules Win32 for Ragexe 20130703

16 July 2013 - 09:16 PM

File Name: Hercules Win32 for Ragexe 20130703
File Submitter: OnNplay
File Submitted: 16 Jul 2013
File Category: Pre-Compiled Server

This is a ready to go Hercules for Windows 7 32 Bit and 64 Bit.
Compiled using Visual Studio Ultimate 2012 in Windows 7 Ultimate 64 Bit.
File is packed using 7zip (Ultra) for just 9.71MB. (normal size = 61.70MB)

1. Ragexe source.

2. Svn repository.


3. Tutorial preparing database ragnarok.

Click here to download this file