Heh, been there done that. :)
Make sure you change EVERY instance of any language code in all the files. And make sure you changed it all in mud.h too. Let me whip out my code here and find some places that might need to be changed.
Note: My codebase might have it in different spots then yours.
Alright, now, all I did is search for the languages I've got.
grep -i "LANG_SENTRAN" *.c *.h
act_comm.c:int const lang_array[] = { LANG_COMMON, LANG_SUNRUNNER, LANG_SENTRAN, LANG_NEVEKIAN, LANG_CLAN, LANG_UNKNOWN };
build.c: int valid_langs = LANG_COMMON | LANG_SUNRUNNER | LANG_SENTRAN | LANG_NEVEKIAN;
const.c: "Sentran", 0, 1, 4, 1, 6, -1, -1, 0, 0, 15, 0, 0, 0, 0, LANG_SENTRAN
[odis@percy src]$ grep -i "LANG_SENTRAN" *.c *.h
act_comm.c:int const lang_array[] = { LANG_COMMON, LANG_SUNRUNNER, LANG_SENTRAN, LANG_NEVEKIAN, LANG_CLAN, LANG_UNKNOWN };
build.c: int valid_langs = LANG_COMMON | LANG_SUNRUNNER | LANG_SENTRAN | LANG_NEVEKIAN;
const.c: "Sentran", 0, 1, 4, 1, 6, -1, -1, 0, 0, 15, 0, 0, 0, 0, LANG_SENTRAN
mud.h:#define LANG_SENTRAN BV02 /* Sentrans */
mud.h:#define VALID_LANGS ( LANG_COMMON | LANG_SUNRUNNER | LANG_SENTRAN | LANG_NEVEKIAN )
Note: I would suggest not changing LANG_COMMON, that could lead to some nasty problems.
So by the looks of it, you need to change mud.h so that you have each one defined right, the VALID_LANGS so it has every one that you need. Make sure all races on const.c have the right language set to it. Make sure you change it in build.c so you can set your mob's correctly. And then you've already changed act_comm.c, so just recheck everything. For simplicity in my code, I made all valid_lang's and lang_array (mud.h/build.c/act_comm.c) follow the same order (common/sunrunner/sentran/nevekian). Don't forget that you must NOT delete LANG_CLAN and LANG_UNKOWN. They are vital to the whole language process. Anyways, hope that helpped, if that didn't I'll just explain the entire process on how to change languages in SWR 1.0. Also make sure you change the for loops in comm.c to fit your mud, not just whats described here. |