[Javamud-developers] Re: Project developers
Status: Beta
Brought to you by:
u_davis
From: <da...@ni...> - 2003-09-30 06:48:17
|
Hi! So... let me start at the beginning :)) First of all the current design was made keeping the Linux filesystem in mind, meaning that the directory separator char is "/", but in Windows is not the case.Yes, i know, Java provides the java.io.separatorChar, which overcomes this inconvenience, but there is another design flaw :) E.g. When an object or monster is displayed, when they are sent to the player's object they are encoded using special characters. \lib/guild/guard#100 is standing here. "\" is the character that tells the living.transform_str() that this word should be transformed to the monster's real name, the "lib/guild/guard#100" is the ID of the object (consisting of the pathname and a unique counter - this is how LPMuds are constructing the id's). So the problem was (i hope) that under windows the path separator was "\", so the transform_str() function was receiving this kind of strings: \lib\guild\guard#100 is standing here. This way the output was all messed up. I changed that the backslashes in the ID are converted to slashes and now it seems to work (but i did only superficial tests - the truth is that i didn't really had the time and energy to test on windows, since i develop on Linux 99% of the time). The meaning of the special chars: \ID - object's short name with small letters, e.g. "dog" \\ID - object's short name capitalized, e.g. "Dog" %ID - object's long name with small letters, e.g. "a small puppy" %%ID - object's long name capitalized, e.g. "A small puppy" I think we have to rething this design of encoding the object id's in strings. Any constructive comments are welcome :)))) regards Istvan David > Great... now, there are no current bugs listed, is there anything in > particular other than then list of feature requests you would like me > to work on as well as the file system problems? It's kinda hard to > track down "file system problems" without any idea of where to start or > what the symptoms are. > > -- > Chris Adamantidis > ca...@mo... > > On Mon, 29 Sep 2003 da...@ni... wrote: > >> Hi! >> >> I have added you to the developers list. You can commit your changes >> to the CVS now. >> regards >> Istvan |