No description
Find a file
malufett 9e4e11e764 Merge branch 'master' of https://github.com/HerculesWS/Hercules into SCConfigRedesign
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-04-20 05:14:39 +08:00
3rdparty Fixed some improper grammar. 2014-12-14 22:29:56 -05:00
cache Fixed typos on cache/. 2014-05-30 10:36:16 +08:00
conf Add channels.conf option irc_channel_autojoin for auto joining irc channel. 2015-03-30 01:36:43 +03:00
db Merge branch 'master' of https://github.com/HerculesWS/Hercules into SCConfigRedesign 2015-04-20 05:14:39 +08:00
doc Merge branch 'master' of https://github.com/HerculesWS/Hercules into SCConfigRedesign 2015-04-20 05:14:39 +08:00
Hercules.xcodeproj Moved the Hercules Channel System to its own file/interface 2015-01-24 14:37:25 +01:00
npc Merge branch 'master' of https://github.com/HerculesWS/Hercules into SCConfigRedesign 2015-04-20 05:14:39 +08:00
plugins Corrected line endings and BOM issues with several files 2013-09-16 11:52:16 +02:00
sql-files ItemDB SQL Sync 2015-04-14 15:40:35 +02:00
src Merge branch 'master' of https://github.com/HerculesWS/Hercules into SCConfigRedesign 2015-04-20 05:14:39 +08:00
tools Minor channel system refactoring 2015-01-24 14:37:25 +01:00
vcproj-9 Moved the Hercules Channel System to its own file/interface 2015-01-24 14:37:25 +01:00
vcproj-10 Fixed HPMHooking release build in MSVC 10-12 2015-03-14 04:14:28 +01:00
vcproj-11 Fixed HPMHooking release build in MSVC 10-12 2015-03-14 04:14:28 +01:00
vcproj-12 Fixed HPMHooking release build in MSVC 10-12 2015-03-14 04:14:28 +01:00
.gitattributes
.gitignore Added some vim-related files to gitignore 2014-04-19 22:35:06 +02:00
.travis.yml Moved validationinterfaces.py call to travis.sh 2014-11-11 00:51:08 +01:00
athena-start
AUTHORS Added Chilly to AUTHORS 2014-03-08 16:19:00 -08:00
char-server.bat Removed executable flag from some files that don't require it 2014-03-10 03:09:13 +01:00
char-server.sh
configure Add battle config option check_occupied_cells. 2015-02-23 23:36:19 +03:00
configure.in Enable warning format-security. 2015-01-12 22:57:39 +03:00
db2sql.bat Added Windows batch file for 'db2sql' plugin. 2013-12-02 05:51:24 -08:00
dbghelp.dll
Hercules-9.sln HPM: Hooking! 2013-10-04 16:12:09 -03:00
Hercules-10.sln Follow-up to 1d0452110f 2014-10-31 22:09:57 +01:00
Hercules-11.sln Follow up to 1d0452110f 2014-10-31 16:03:56 +01:00
Hercules-12.sln Follow-up to 1d0452110f 2014-10-31 15:43:08 +01:00
libmysql.dll
LICENSE
login-server.bat Removed executable flag from some files that don't require it 2014-03-10 03:09:13 +01:00
login-server.sh
mac.start.scpt
Makefile.in Removed redundants 2014-05-30 09:20:03 +08:00
map-server.bat Removed executable flag from some files that don't require it 2014-03-10 03:09:13 +01:00
map-server.sh
pcre3.dll
README.md Corrected line endings and BOM issues with several files 2013-09-16 11:52:16 +02:00
run-server.bat Removed executable flag from some files that don't require it 2014-03-10 03:09:13 +01:00
script-checker Added sysinfo (System Information) functionalities 2014-04-17 06:09:49 +02:00
script-checker.bat Added --load-script commandline argument 2014-03-16 23:21:08 +01:00
serv.bat Removed executable flag from some files that don't require it 2014-03-10 03:09:13 +01:00
sysinfogen.sh Added sysinfo (System Information) functionalities 2014-04-17 06:09:49 +02:00
travis.sh Moved validationinterfaces.py call to travis.sh 2014-11-11 00:51:08 +01:00
zlib1.dll

Hercules

Build Status: Build Status

Table of Contents

  • 1 What is Hercules?
  • 2 Prerequisites
  • 3 Installation
  • 4 Troubleshooting
  • 5 Helpful Links
  • 6 More Documentation
  1. What is Hercules?

Hercules is a collaborative software development project revolving around the creation of a robust massively multiplayer online role playing game (MMORPG) server package. Written in C, the program is very versatile and provides NPCs, warps and modifications. The project is jointly managed by a group of volunteers located around the world as well as a tremendous community providing QA and support. Hercules is a continuation of the original Athena project.

  1. Prerequisites

Before installing Hercules there are certain tools and applications you will need. This differs between the varying operating systems available, so the following is broken down into Windows and Linux prerequisites.

  1. Installation

This section is a very brief set of installation instructions. For more concise guides relevant to your Operation System, please refer to the Wiki (links at the end of this file).

  • Windows

    • Install prerequisites
    • Create a folder to download Hercules into (e.g. C:\Hercules)
    • Right click this folder and select "Git Clone".
    • Paste the GIT URL into the box: https://github.com/HerculesWS/Hercules.git
    • Open MySQL Workbench and create an instance to connect to your MySQL Server
    • Create a database (hercules), a user (hercules), give permissions (GRANT SELECT,INSERT,UPDATE,DELETE) and then login using the new user
    • Use MySQL Workbench to run the .sql files in /sql-files/ on the new Hercules database
  • Linux

    • (For CentOS)

      • Step 1: yum install gcc make mysql mysql-devel mysql-server pcre-devel zlib-devel
    • (For Debian/Others)

      • Type: apt-get install git make gcc libmysqlclient-dev zlib1g-dev libpcre3-dev
    • Type: mysql_secure_installation

    • Start your MySQL server

    • Setup a MySQL user:

        	CREATE USER 'hercules'@'localhost' IDENTIFIED BY 'password';
      
    • Assign permissions:

        	GRANT SELECT,INSERT,UPDATE,DELETE ON `hercules\_rag`.* TO 'hercules'@'localhost';
      
    • Type: git clone https://github.com/HerculesWS/Hercules.git ~/Hercules

    • Insert SQL files: mysql --user=root -p hercules_rag < trunk/sql-files/main.sql (and others)

    • Type: cd trunk && ./configure && make clean && make sql

    • When you're ready, type: ./athena-start start

  1. Troubleshooting

If you're having problems with starting your server, the first thing you should do is check what's happening on your consoles. More often that not, all support issues can be solved simply by looking at the error messages given.

Examples:

  • You get an error on your map-server_sql that looks something like this:

      [Error]: npc_parsesrcfile: Unable to parse, probably a missing or extra TAB in 
      	file 'npc/custom/jobmaster.txt', line '17'. Skipping line...
      	* w1=prontera,153,193,6 script
      	* w2=Job Master
      	* w3=123,{
      	* w4=
    

    If you look at the error, it's telling you that you're missing (or have an extra) TAB. This is easily fixed by looking at this part of the error: * w1=prontera,153,193,6 script If there was a TAB where it's supposed to be, that line would have prontera,153,193,6 at w1 and 'script' at w2. As there's a space instead of a TAB, the two sections are read as a single parameter.

  • You have a default user/password warning similar to the following:

      	[Warning]: Using the default user/password s1/p1 is NOT RECOMMENDED.
      	[Notice]: Please edit your 'login' table to create a proper inter-server user/pa
      	ssword (gender 'S')
      	[Notice]: and then edit your user/password in conf/map-server.conf (or conf/impo
      	rt/map_conf.txt)
    

    Relax. This is just indicating that you're using the default username and password. To fix this, check over the part in the installation instructions relevant to the login table.

  • Your Map Server says the following:

      	[Error]: make_connection: connect failed (socket #2, error 10061: No connection
      	could be made because the target machine actively refused it.
      	)!
    

    If this shows up on the map server, it generally means that there is no Char Server available to accept the connection.

  1. Helpful Links

The following list of links point to various help files within the GIT, articles or pages on the Wiki or topics within the Hercules forum.

  1. More Documentation

Hercules has a large collection of help files and sample NPC scripts located in /doc/

  • Scripting It is recommended to look through /doc/script_commands.txt for help, pointers or even for ideas for your next NPC script. Most script commands have a usage example.

  • @commands In-game, Game Masters have the ability to use Atcommands (@) to control players, create items, spawn mobs, reload configuration files and even control the weather. For an in-depth explanation, please see /doc/atcommands.txt

  • Permissions The Hercules emulator has a permission system that enables certain groups of players to perform certain actions, or have access to certain visual enhancements or in-game activity. To see what permissions are available, they are detailed in /doc/permissions.txt

There are more files in the /doc/ directory that will help you to create scripts or update the mapcache, or even explain how the job system and item bonuses work. Before posting a topic asking for help on the forums, we recommend that all users take the time to look over this directory.