View Single Post
Old 03-02-2008, 01:02 AM   #1
Shoie13
Member
 
Join Date: Feb 2008
Location: The Shell
Home MUD: Star Wars: Galactic Insights
Posts: 46
Shoie13 is an unknown quantity at this point
Send a message via AIM to Shoie13 Send a message via MSN to Shoie13 Send a message via Yahoo to Shoie13
Languages and Races and Extending Bitvectors

This topic involves races and languages and bitvectors, and how to extend them. I'm using a modified version of SWRFUSS.

Anyway, I wanted to extend races and languages so I could have more than 32, since bitvectors stop at 32. I tried putting them in a typedef enum table, and while it seemed to work for races, languages had several problems, such as not showing up on the LANGUAGES command, and mobs reporting that they were trying to speak a null language.

I think the problem originated somewhere around LANG_UNKNOWN.


Here's how it originally looks:
Here is how I had it:
[/font]

I also tried commenting out the define for LANG_UNKNOWN and tried putting it in the table:
That stopped most of the bug spam about null languages, although most mobs then spoke several languages, and one mob was still reporting a null language, and my ch->speaking and ch->speaks was negative. Anyway, my question is, is there any other way to easily extend the bitvectors so I can have virtually unlimited race and language creation abilitites, or a way to fix the languages to work in a typedef enum table? Thanks in advance.
Shoie13 is offline   Reply With Quote