Page 1 of 2
How to replace pie files in regular game?
Posted: 10 Apr 2007, 02:10
by Azraiel
I made a new body and modified a texpage and I would like to use both in the regular game. How do I go about doing this? I just want to replace something already in the game with these new files is all.
Re: How to replace pie files in regular game?
Posted: 10 Apr 2007, 08:40
by Watermelon
Azraiel wrote:
I made a new body and modified a texpage and I would like to use both in the regular game. How do I go about doing this? I just want to replace something already in the game with these new files is all.
just create a new 'components\bodies\' folder and a new 'texpages' folder for your new pie/texpage respectively in your warzone exe directory and put the new pie there,e.g:
body pies:
C:\warzone2100\components\bodies\
texture pages:
C:\warzone2100\texpages\
Re: How to replace pie files in regular game?
Posted: 10 Apr 2007, 14:01
by Azraiel
What about name?
Re: How to replace pie files in regular game?
Posted: 10 Apr 2007, 17:15
by Watermelon
Azraiel wrote:
What about name?
sp campaign:
warzone2100\messages\strings\names.txt
mp/skirmish:
warzone2100\mp\messages\strings\names.txt
Re: How to replace pie files in regular game?
Posted: 10 Apr 2007, 17:56
by Azraiel
There is no messages folder in my warzone 2100 directory.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 00:54
by Kyor
warzone.wz\components\bodies\
warzone.wz\texpages
warzone.wz\messages\strings\names.txt
warzone.wz\mp\messages\strings\names.txt
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 02:43
by Azraiel
OK, how do I open that file up?
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 02:55
by Azraiel
Never mind. Figured out that I can just use winrar.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 03:01
by Azraiel
Now I have a new error. When I try to launch the game with my new PIE file, the game crashes when it tries to load up a new game.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 10:25
by Giel
Azraiel wrote:
Now I have a new error. When I try to launch the game with my new PIE file, the game crashes when it tries to load up a new game.
It should produce an stderr.txt file, if it does just post that here.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 13:43
by Azraiel
Here you go.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 15:58
by DevUrandom
If you'd read that file, you see that the error it runs into is this one:
error: iV_ProcessIMD: file corrupt -F (TEXTURE)
error: IMD load failed - drlbod01.pie
A bit of research tells that -F means that the file extension is wrong. It has to be ".png".
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 16:08
by Azraiel
I supplied the texpage as .png though.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 16:50
by DevUrandom
Code: Select all
if (sscanf(pFileData, "%s %d%n", buffer, &ptype, &cnt) != 2) {
debug(LOG_ERROR, "iV_ProcessIMD: file corrupt -D (%s)", buffer);
return NULL;
}
pFileData += cnt;
if (strcmp(buffer, "TEXTURE") == 0) {
ch = *pFileData++;
for( i = 0; (i < 80) && ((ch = *pFileData++) != EOF) && (ch != '.'); i++ ) // yummy
{
texfile[i] = (char)ch;
}
if (sscanf(pFileData,"%s%n", texType,&cnt) != 1) {
debug(LOG_ERROR, "iV_ProcessIMD: file corrupt -E (%s)", buffer);
return NULL;
}
pFileData += cnt;
if (strcmp(texType,"png") != 0) {
debug(LOG_ERROR, "iV_ProcessIMD: file corrupt -F (%s)", buffer);
return NULL;
}
texfile[i] = 0;
strcat(texfile,".png");
if (sscanf(pFileData,"%d %d%n", &pwidth, &pheight,&cnt) != 2) {
debug(LOG_ERROR, "iV_ProcessIMD: file corrupt -G (%s)", buffer);
return NULL;
}
pFileData += cnt;
bTextured = TRUE;
}
I read that as:
- Read a string and a number. The string has to be "TEXTURE".
- Read until the first dot "." and use that as the filename.
- The part after the filename is the extension, which has to be "png". If it is not, the file is corrupt-F.
Re: How to replace pie files in regular game?
Posted: 11 Apr 2007, 17:31
by Azraiel
The only texpage involved in this pie file that isn't .png is the.pcx file used by PIE slicer.
If the texpage is suppose to be .png somehow for PIE Slicer, then I don't know how to get PIE slicer to use something other than .pcx for the model texture.