  | | | arcmod.zip | arcmod.zip 2005-03-09 - By Edward Langenback
Back -- --BEGIN PGP SIGNED MESSAGE-- -- Hash: RIPEMD160
A *Long* time later i'm taking another shot at getting the aarchon code to work. ( http://www.mudmagic.com/codes/code_data/1178/ )
I've run into a problem that I have not been able to find a reference to anywhere in google and for some reason, the rom archives seem to have moved from where they used to be.
anywho.. given this definition in merc.h
struct class_type { char * name; /* the full name of the class */ char who_name [4]; /* Three-letter name for 'who' */ sh_int attr_prime; /* Prime attribute */ sh_int attr_second[2]; /* Secondary attributes */ sh_int stat_priority[MAX_STATS-3 (See http://ATS-3.ora-code.com)]; /* NOT EXPLAINED! */ sh_int weapon; /* First weapon */ sh_int guild[MAX_GUILD]; /* Vnum of guild rooms */ sh_int skill_adept; /* Maximum skill level */ sh_int thac0_00; /* Thac0 for level 0 */ sh_int thac0_32; /* Thac0 for level 32 */ sh_int hp_min; /* Min hp gained on leveling */ sh_int hp_max; /* Max hp gained on leveling */ bool fMana; /* Class gains mana on level */ char * base_group; /* base skills gained */ char * default_group; /* default skills gained */ };
given the class type... how do I get the class table working?
I have ***NO*** idea what needs to be in the class table in const.c for stat_priority[MAX_STATS-3 (See http://ATS-3.ora-code.com)] I assume it has to do with how stats are applied to functions... but there is not much of a clue in the source aside from the author's readme
Here's my aborted attempt thus far..
const struct class_type class_table[MAX_CLASS] = { { "mage", "Mag", STAT_INT, STAT_DIS, {1,2,3}/*???*/, OBJ_VNUM_SCHOOL_DAGGER, {3018, 9618}, 75, 20, 6, 6, 8, TRUE, "mage basics", "mage default" },
and here's where the compiler pukes...
gcc -c -Wall -O -ggdb -Dunix -DOLD_RAND -DNOCRYPT const.c const.c:758: warning: missing braces around initializer const.c:758: warning: (near initialization for `class_table[0].attr_second') const.c:759: warning: braces around scalar initializer const.c:759: warning: (near initialization for `class_table[0].attr_second[1]') const.c:759: warning: excess elements in scalar initializer const.c:759: warning: (near initialization for `class_table[0].attr_second[1]') const.c:759: warning: excess elements in scalar initializer const.c:759: warning: (near initialization for `class_table[0].attr_second[1]') const.c:760: warning: braces around scalar initializer const.c:760: warning: (near initialization for `class_table[0].stat_priority[1]' ) const.c:760: warning: excess elements in scalar initializer const.c:760: warning: (near initialization for `class_table[0].stat_priority[1]' ) const.c:761: invalid initializer const.c:761: (near initialization for `class_table[0].guild')make: *** [const.o] Interrupt
I get the distinct idea that i'm missing something REALLY obvious but I've no idea what.
- -- Note: If this email does not have a *VALID* PGP signature you should contact me to verify the content. Anyone sending me email is encouraged to encrypt that email with one of my PGP Public keys pgp2.6.? users should use RSA Key ID: 0x72A69CD5 and pgp 5 and higher users can use DH/DSS Key ID: 0xB9E76C70 Both are on public keyservers. - -=-=-=-=-=-=-=-=-=-=-= *Christ is >NOT< Jesus' last name!* http://peculiar.wcw.net/ps23v1.shtml The beginning of a verse by verse study
/ \ \ / Join the ASCII-Ribbon Campaign to Stamp Out HTML Email ! X / \
-- --BEGIN PGP SIGNATURE-- -- Version: N/A
iQA/AwUBQizrAbcY6Vy552xwEQODAQCfSRRkw3t2o7e/VMe5lnU2G++UzswAn0X4 XMdA5L/gQC1f7YGI4HkPYeRu =IDK8 -- --END PGP SIGNATURE-- --
-- ROM mailing list ROM@(protected) http://www.rom.org/cgi-bin/mailman/listinfo/rom
|
|
 |