How to replace pie files in regular game?
How to replace pie files in regular game?
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.
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: How to replace pie files in regular game?
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: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.
body pies:
C:\warzone2100\components\bodies\
texture pages:
C:\warzone2100\texpages\
tasks postponed until the trunk is relatively stable again.
Re: How to replace pie files in regular game?
What about name?
- Watermelon
- Code contributor
- Posts: 551
- Joined: 08 Oct 2006, 09:37
Re: How to replace pie files in regular game?
sp campaign:Azraiel wrote: What about name?
warzone2100\messages\strings\names.txt
mp/skirmish:
warzone2100\mp\messages\strings\names.txt
tasks postponed until the trunk is relatively stable again.
Re: How to replace pie files in regular game?
There is no messages folder in my warzone 2100 directory.
Re: How to replace pie files in regular game?
warzone.wz\components\bodies\
warzone.wz\texpages
warzone.wz\messages\strings\names.txt
warzone.wz\mp\messages\strings\names.txt
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?
OK, how do I open that file up?
Re: How to replace pie files in regular game?
Never mind. Figured out that I can just use winrar.
Re: How to replace pie files in regular game?
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?
It should produce an stderr.txt file, if it does just post that here.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.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Re: How to replace pie files in regular game?
Here you go.
- Attachments
-
- stderr.txt
- (22.21 KiB) Downloaded 359 times
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: How to replace pie files in regular game?
If you'd read that file, you see that the error it runs into is this one:
A bit of research tells that -F means that the file extension is wrong. It has to be ".png".error: iV_ProcessIMD: file corrupt -F (TEXTURE)
error: IMD load failed - drlbod01.pie
Re: How to replace pie files in regular game?
I supplied the texpage as .png though.
- DevUrandom
- Regular
- Posts: 1690
- Joined: 31 Jul 2006, 23:14
Re: How to replace pie files in regular game?
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;
}
- 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?
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.
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.