I was checking out the forums, and I noticed this posted by
DevUrandom:
"The addon.lev will work with 2.0, but in 2.1 Warzone will go mad,
because of the "\"...
I guess this is created with Qamly's mapeditor? So for 2.1 we badly
need a new one..."
What exactly is planned in 2.1 to break the mapeditor output files?
Is there anything else in 2.1 that will break things besides
balance & gameplay? Or has this talk about adding multiple turrets
and stuff like this only for skirmish/mp games?
You don't really mean "\" in paths breaks 2.1 do you?
If so, then why do not you do what seems to be Qamly's fix for this
issue?
In 2.0.2.3, he has:
....
Dir_FixSlashes(buf); // Convert all slashes to the host OS's
directory separator
....
void Dir_FixSlashes(char *path)
{
int i, len = strlen(path);
for(i = 0; i < len; i++)
{
if(path[i] == DIR_WRONG_SEP_CHAR) //
NOTE! Will have to check
if this is correct for linux! -Q
path[i] = DIR_SEP_CHAR;
}
}
....
#ifdef WIN32
typedef unsigned int uint;
typedef unsigned short ushort;
#define DIR_SEP_CHAR '\\' // fix
these for linux
#define DIR_SEP_STR "\\"
#define DIR_WRONG_SEP_CHAR '/' //.....
#define PATH_MAX 256 //max path length
#else
//for linux
#define DIR_SEP_CHAR '/'
#define DIR_SEP_STR "/"
#define DIR_WRONG_SEP_CHAR '\\'
#define PATH_MAX 256
#endif
....
Since the way he did it worked on linux also, then why not keep
that simple routine, so we don't have to mess with having someone
do a new mapeditor?
Just run that routine before passing the buffer to physfs.
I had a shot and trying to convert the mapeditor. It is using pre
direct x 6 stuff, and also seems to use a hell of allot of mfc
code. Very painful stuff to look at, let alone understand what the
heck is going on. I don't know how he converted it to 32bits with
direct x. :(
I found this exchange in the mailing list archive:
==(between Rodzilla & Qamly)
Qamly, how much time would it take for you to rewrite the updates
you
did to the map editor ? I guess it would be the first step. Second
step
would be making it run under Wine for Linux users so we don't have
to
hurry rewriting the whole tool.
It took me around 1 week to fix the old one, so it wasn't that hard
to do.
Have you tried to see if it runs on wine now? Coyote uploaded the
last
working version of the Worldedit32 on wztoys site.
==
1 week? He must know direct x and mfc very well. Did he do any
other projects that anyone knows of? I was thinking maybe we can
find his old work someplace?
The berlios FTP site where he had some files seems to be deleted
now? :(
Concerned about your privacy? Instantly send FREE secure email, no account
required
http://www.hushmail.com/send?l=480
Get the best prices on SSL certificates from Hushmail
https://www.hushssl.com?l=485
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev