summaryrefslogtreecommitdiff
path: root/tools
AgeCommit message (Collapse)AuthorFilesLines
2014-05-31Added Dastgir's item_*.txt -> item_db.conf converterHaru1-0/+624
- To be used in a follow-up commit. Signed-off-by: Haru <haru@dotalux.com>
2014-05-30Removed 3rdparty/cmake and item_db.pl (Suggested by Haruna)Shido1-116/+0
2014-05-30HPMHookGen compatibility update for doxygen 1.8.7Haru1-2/+0
2014-05-25Improved CFLAGS/CPPFLAGS handlingHaru1-0/+2
- Language extensions, such as _GNU_SOURCE are now enabled through CPPFLAGS by the configure script, rather than within the source code. - Moved some configure-time CFLAGS to CPPFLAGS, where appropriate. - Fixes bugreport:8211, thanks to Neoth http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux Signed-off-by: Haru <haru@dotalux.com>
2014-05-01Corrected an issue when calling hookStop() from a post-hookHaru1-0/+1
- Now hookStop() will do absolutely nothing if called from a post-hook, instead of causing unexpected effects on the next pre-hook execution. Signed-off-by: Haru <haru@dotalux.com>
2014-04-19Added support for enum bg_queue_types to the HPMHookGenHaru1-0/+2
- Fixes a HPM Hook generator warning in battlegrounds.c Signed-off-by: Haru <haru@dotalux.com>
2014-04-17Added sysinfo (System Information) functionalitiesHaru1-2/+4
- More informative messages are displayed during startup, to make it easier to identify what system and environment Hercules is running. - Git/SVN revision detection is improved, separating the source version (cached at compile time) from the runtime version, in case the user updated their working copy without recompiling the server. Git version detection is also more reliable, in case a non-default branch is used. - The get_revision script command has been removed (as it was useless to begin with, after the switch to git). An alternative will be provided later, for feature-probing purposes. - The patch was tested under Linux (Gentoo / gcc 4.7 on i686 and x86_64, Debian 6 / gcc 4.4 on i686, Raspbian / gcc 4.6 on armv6l, CentOS 5 / gcc 4.1 on i686, CentOS 6 / gcc 4.4 on x86_64, Linux Mint 15 / gcc 4.7 on x86_64, OS X Mountain Lion / clang 5.0 and gcc 4.8 on x86_64, Cygwin-NT-5.1/gcc 4.8 on i686, FreeBSD 8 / gcc 4.2 on i386, FreeBSD 9 / gcc 4.2 on amd64, FreeBSD 10 / clang 3.3 on amd64, NetBSD 5 / gcc 4.1 on i386, NetBSD 6 / gcc 4.5 on amd64, OpenBSD 5 / gcc 4.2 on amd64, Solaris 11 / gcc 4.5 on i86pc, Windows 7 / Visual Studio 2012 on x86, Windows 8 / Visual Studio 2010 on WOW64, Windows 8.1 / Visual Studio 2013 on WOW64. Signed-off-by: Haru <haru@dotalux.com>
2014-03-17Improved const pointer detection in the HPMHooking generatorHaru1-2/+2
- Fixes a HPMHooking compile error in d117462. Thanks to Potte. Signed-off-by: Haru <haru@dotalux.com>
2014-02-06Follow up d33469689ea8e671fa0d525d54bce6932dfe9107shennetsind1-2/+2
Fixed issue on windows that'd cause plugins to be rejected on loading. Thanks to Mhalicot Signed-off-by: shennetsind <ind@henn.et>
2014-02-03Updated HPMHookGen with a HPMDataCheck generatorHaru3-11/+93
- It will be used by an upcoming commit by Ind. - Added dummy HPMDataCheck.h, to test the API bot's capability to re-generate it. - Improved XML parser performance. Signed-off-by: Haru <haru@dotalux.com>
2013-11-20Added support for 'make plugin.pluginname' to compile only 'pluginname'Haru1-8/+8
- Various Makefile optimizations Signed-off-by: Haru <haru@dotalux.com>
2013-11-16Improved itemdb converter robustness in case of extra spacesHaru1-18/+18
- Thanks to GM.PiXeL for reporting the issue. Signed-off-by: Haru <haru@dotalux.com>
2013-11-15Added support for case-insensitive jobmasks to the itemdb converterHaru1-1/+1
- Fixes parsing failures due to lower- (or mixed-) case job masks. - Special thanks to ossi0110 for the report. Signed-off-by: Haru <haru@dotalux.com>
2013-11-15Added BindOnEquip to the item_db documentation and templatesHaru1-0/+1
- Special thanks to ossi0110, kyeme - Fixes bugreport:7821 http://hercules.ws/board/tracker/issue-7821-missing-item-dbconf-columne/ Signed-off-by: Haru <haru@dotalux.com>
2013-11-14Item DB overhaulHaru1-0/+194
http://hercules.ws/board/topic/2954-item-db-file-structure-overhaul - Item db was changed to libconfig format. - This new format is larger than the original format, but it's less subject to conflicts when some items are edited and the file gets updated. - It is no longer necessary to specify fields with no value, and only the actually used fields are specified. - Items scripts (especially the long ones) are made more readable by splitting them into multiple lines, with proper indentation. - A converter perl script is provided in the tools directory (and a link to the web-based version of the same script canbe found in the above forum topic) - All of this was made possible thanks to Ind, Yommy. Signed-off-by: Haru <haru@dotalux.com>
2013-11-05Follow-up to 97001710c06ed7053d18c8baaac602eb563b64b3Haru1-0/+151
- Added missing license note and error message to the script-checker bash script - Added Script-Checker.applescript. Open in Applescript Editor and save as .app bundle in order to use it. It's not pretty, but it works. Signed-off-by: Haru <haru@dotalux.com>
2013-11-04pc_groups interfacedshennetsind1-0/+3
The last file without a interface is now no more (date.h doesn't count :P). Modified the way permissions are stored in order to enable plugins to be able to create permissions ( pcg->add_permission("name") [returns permission key] ). Special Thanks to Haruna! Closes #121 Signed-off-by: shennetsind <ind@henn.et>
2013-10-16Merge branch 'master' of https://github.com/HerculesWS/Herculesshennetsind1-35/+0
2013-10-16Modified HPM Hook Cachingshennetsind1-1/+1
Dropped hard-coded indexes, will make updates of the file in the future be smaller and much more clear in content. Made Possible Thanks to Haruna <3 Signed-off-by: shennetsind <ind@henn.et>
2013-10-16Removed some unnecessary doxygen settings from the HPMHookGenHaru1-35/+0
Signed-off-by: Haru <haru@dotalux.com>
2013-10-09Added HPMHookGen tool, to re-generate hooks include filesHaru3-0/+889
- Slightly reformatted the include files (as produced by the new tool) - You normally won't need to use the generation tool, but in case you do, the software requirements are: * A Unix-compatible system (cygwin may work, or may not), capable to use the Hercules configure/make build system * perl (the perl executable must be in your $PATH) * doxygen (the command-line doxygen executable must be in your $PATH) - The generation tool was developed in collaboration with Ind (originally in php, the file here included is a tweaked version ported to perl) Signed-off-by: Haru <haru@dotalux.com>
2013-09-16Corrected line endings and BOM issues with several filesHaru1-1/+1
- Ensured final end-of-line character in every file. - Corrected cases of mixed line endings (mostly CR and CRLF within the same file.) - Removed extra BOM from some scripts, since it causes a parsing error. Signed-off-by: Haru <haru@dotalux.com>
2013-06-14Whitespace, TABs & SpellingsAkkarinage1-4/+4
Replaced indents using spaces with tabs, reducing file sizes and conforming to standards.
2012-11-25* Misc spelling fixesthatakkarin1-1/+1
* Added @lkami to list of current @kami variations in doc/atcommands.txt git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16967 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-24-Add tool/check-doc to verify if all script/atcommand are being documented. ↵glighta1-0/+28
thx to Trojal -Upd SC_ASH, make skill fail at 50% rate git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16964 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-11-09- Removed backup.pl (for TXT servers) and vs9-to-vs8.php (outdated versions);momacabu2-146/+0
- Merged @killmonster2 with @killmonster tid:73632; - Fixed bugreport:6764, auction code was misplaced; - Follow up to r16753 (bugreport:6523), fixed bugreport:6673, using Gravitational Field with Safety Wall would keep the character immobilized. Blame myself, thankyou Lunar for the fix; - Fixed bugreport:6514, @slaveclone wouldn't be targeted by monster. Thanks to zippy; - Fixed bugreport:6837, some code was duplicated; - Fixed bugreport:6768, removed some leftovers from TXT removal; - Fixed bugreport:6868, Unequipping a weapon with Incantation Samurai card will not kill you if you have less than 999 hp and are on a non-pvp map; - Fixed wrong bit field on ai field in mob_data structure. Credits to Ind. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16881 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-06-14Added attack column as string type on TXT2SQL item_db conversion tool for ↵greenboxal21-1/+1
renewal attack. (tid:65568) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16299 54d463be-8e91-2dee-dedb-b68131a5f0ec
2012-01-31 * Fixes and improvements related to MVP rewards (bugreport:1259):gepard19841-2/+1
- removed obsolete (since r1!) ExpPer column from mob_db - official way to drop MVP rewards (always starts from first slot) - added MAX_MVP_DROP as define for max possible MVP reward slots * Updated mob_db SQL scripts. * Removed some renewal only monsters from pre-RE mob_db (were commented out anyway). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15531 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-04-15* Fixed some `mob_db` columns being too small for currently used values ↵Gepard1-6/+6
(bugreport:4866, since r14727). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14794 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-03-01- Updated SQL item/mob databases to latest. (thanks Peter)brianluau2-0/+3
- Updated item/mob txt-to-sql converter scripts to append a blank line at EOF. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14727 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-02-06* Removed unnecessary getlogincount.pl, mapcheck.sh and mapchecker.sh tools ↵ai4rei3-212/+0
(topic:262934). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14693 54d463be-8e91-2dee-dedb-b68131a5f0ec
2011-01-13* Removed ladmin (remote administration tool), all related support code and ↵ai4rei1-85/+0
the checkversion.pl tool with it's support code, which was shared with ladmin (topic:262934, related bugreport:1147, bugreport:1889, r9408 and r9610). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@14667 54d463be-8e91-2dee-dedb-b68131a5f0ec
2009-07-27- Added svn:eol-style native for some conf/css/html/pl/sql/txt files.brianluau5-396/+396
- Added svn:executable property for several batch/shell scripts. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13972 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-16Added a mapreg txt->sql converter script to /tools, because the sql ↵ultramage1-0/+38
mapserver doesn't read the txt mapreg savefile anymore and people will most likely want to preserve their global variables. The script is php-based and requires the php_mysql module. The script produces a series of INSERT statements, ready to be imported to the database. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13086 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-16Another update to the vs9->vs8 converter, to use appropriate line endings.ultramage1-9/+12
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13084 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-15Adjusted the vs9-to-vs8 converter so that status messages won't mix with its ↵ultramage1-9/+9
converted output. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13082 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-04Attempt no.2 at svn:executable (followup to r13044)ultramage1-0/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13045 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-08-04Corrected project files / makefiles that were missing newly added .c file ↵ultramage1-0/+43
entries. Corrected a leftover _RJ setting in the vs6/vs7/vs8 txt login server project files. Reformatted the converters makefile. Added a crude vs9->vs8 project file converter to /tools. Synchronized vs8 project files using the converter tool. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13043 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-07-26Merged the /loginmerge branch (topic:192754)ultramage2-3997/+0
* the login server storage, ipban and logging systems have been abstracted and now provide a common interface; the rest has been merged into a single login server core (no more login/login_sql duplicity) * storage systems are now added via compiler options (WITH_SQL / WITH_TXT) * multiple storage engines can be compiled in at the same time, and the config option account.engine defines which one will be used. * due to MySQL autoincrement limitations, accounts with id '0' will not be supported; account IDs from this point on should start from '1'. * login_log() functions now again record IP addresses in dotted format, not as 4-byte integers (undo from r6868). * removed config options that defined column names in the login table * removed `memo` and `error message` columns from login db/savefile * moved `loginlog` table to the logs database * added sql files upgrade_svn12975.sql and upgrade_svn12975_log.sql * due to changes to the login table layout, I added an !optional! sql file (upgrade_svn12975_view.sql) that will provide a certain degree of backwards compatibility with existing software; read the instructions inside carefully! * moved third-party includes/libs to a separate directory * updated project files / makefiles Changed the way GM levels are handled * removed conf/gm_account.txt * added the gm level column to the txt savefile (after 'email' column) * gm level information is now transferred along with account data For open problems see bugreport:1889. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13000 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-04-04Replaced the TYPE keyword with ENGINE in all sql files, because this is the ↵ultramage2-2/+2
preferred alternative. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12480 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-30Added back the GRF_PATH_FILENAME variable and commandline parameter.ultramage1-15/+0
Removed confusing /tool/mapcache/ configuration directory, changed code to use /conf for this purpose. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12154 54d463be-8e91-2dee-dedb-b68131a5f0ec
2008-01-25Updated conversion tools for mob_db & item_dbtoms2-28/+29
Updated SQL Files (item & mobs) git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12138 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-04-06I'm still here!DracoRPG1-0/+15
Rewrote fame ranking lists- changed MAP_NAME_LENGTH to 12, now there's MAP_NAME_LENGTH_EXT at 16 for uses where there is / may be the .gat extension, code adjusted accordingly - moved map_normalize_name to mapindex_normalize_name so that everything handling map names uses the same extension-removing function - greatly enhanced the map cache generator, complete documentation on the tool and the map cache format can be found in doc/ - the map cache format changed a bit as a consequence, but of course a new valid one is included (contains latest Nameless Island maps) - fixed a duplicate entry in map index git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10167 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-03-13Mapcache update, should polish off remaining bugsDracoRPG2-660/+0
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10003 54d463be-8e91-2dee-dedb-b68131a5f0ec
2007-02-28Added experimental new mapcache generatorDracoRPG2-0/+660
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9928 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-19- Reverted the mob ThinkTime update, that field is again aDelay as it ↵skotlex1-1/+1
apparently should be. - Fixed one small compilation error. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9522 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-12-06- Updated the mob_db converter to rename the ADelay column to ThinkTime.skotlex1-1/+1
- Updated the mob_db sql files to have this change as well. - Updated mob_db2.sql git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9425 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-11-05Updated sql filestoms1-1/+1
Updated perl files acording to rev 9135 git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@9139 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-09-11Added D-Kalck's fix of the TXT -> SQL converterPlaytester1-1/+7
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8702 54d463be-8e91-2dee-dedb-b68131a5f0ec
2006-07-25- Added Toms's perl scripts item_db.pl and mob_db.pl (they are in tools/), ↵skotlex2-0/+257
they convert the txt databases into sql. - Usage: "script" < "input file" > "output file". eg: ./tools/item_db.pl < db/item_db.txt > sql-files/item_db.sql - Updated the sql files since now it's easy :D git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7879 54d463be-8e91-2dee-dedb-b68131a5f0ec