On Tue, 2 Dec 1997, Chuck Reed wrote: >Brandon from this list mailed me asking for help in reverting from 210 >levels back to 66 since he used my levels doc from the circlemud page. He >is running a win95 circlemud and is experiencing a wierd problem that we >couldn't conquer in about an hour. When he tries to run the executable, it >quits initializing the game at the line: byte level; /* PC / NPC's level */ byte (if signed) = -128 <-> 127 You have a couple different options: 1) Make the 'char' type default to unsigned (not recommended) 2) Change the 'byte' to 'ubyte'. (0-255 levels) 3) Change 'byte' to 'int' (-32768-32767 levels) (pfile wipe) 4) Have only 127 levels or less. In my own mud I changed the 'byte' to 'int' and didn't worry about things after the player file wipe. Your 'int' may vary though, I get -2.1 billion to 2.1 billon on Linux since int == long int. -- George Greer - Me@Null.net | Genius may have its limitations, but stupidity http://www.van.ml.org/~greerga | is not thus handicapped. -- Elbert Hubbard +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST