Can you give an example of using the script? Also, how do you disable using this so it continues to use the normal spells file? From reading the changelog, it sounds like it is supposed to use this table by default. I am guessing that means it will ignore the spells file unless you disable this feature? Or, will it use the spells file if it can't find the table?
BTW, your code box in your export script post says "import", not "export" for usage.
So, to import spells into the database, I would do this?:
Code:
/utils/import_spells.pl -c /home/eqemu/server/eqemu_config.xml -s /home/eqemu/server/spells_us.txt -t spells_new -d
And to export the table, I would do this?:
Code:
/utils/export_spells.pl -c /home/eqemu/server/eqemu_config.xml -t spells_new -s /home/eqemu/server/spells_us.txt
EDIT: Just tried to run this, but I haven't ran a .pl file before and it doesn't seem to run just from a terminal window. Is there something else I need to do to run it?
Code:
eqemu@muse:~/source/EQEmuServer2/utils$ ls
0.6.1-upgrade.sql items-0.6.0-DR2-0.6.1-DR1-convert.sql ppskillfix
apathing itemtablechanges.sql schema.xml
asmtools load_13thfloor_items.pl serialize_items.pl
azone Makefile spell_explorer.cpp
azone2 opcodes.conf sql
charmove patch_6.2.conf struct_fields.sh
cleanipc.cpp patch_Anniversary.conf TaskMaster
defaults patch_Live.conf throwpackets.pl
export_spells.pl patch_Titanium.conf wr_update.sql
hexvis perlxs ZONECFG.SQL
import_showeq ppconvert
import_spells.pl ppreader.pl
eqemu@muse:~/source/EQEmuServer2/utils$ import_spells.pl -h bash: import_spells.pl: command not found
eqemu@muse:~/source/EQEmuServer2/utils$ ./import_spells.pl -h
bash: ./import_spells.pl: /usr/bin/perl^M: bad interpreter: No such file or directory
eqemu@muse:~/source/EQEmuServer2/utils$