Page 2 of 2

Re: How to replace pie files in regular game?

Posted: 11 Apr 2007, 18:18
by DevUrandom
PIESlicer comes with it's own textures which have to be used. They are in PCX format.
Warzone however has it's textures in PNG format.
So you need to make it .pcx when working with PIESlicer, but .png when using them in Warzone.

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 04:03
by Azraiel
Does the file reference inside of the PIE file  , or whatever, need to be changed? I have the texpage file that I used to make the textures on the model in the texpage folder in the warzone directory as .png. Is this the same problem with trying to open the games pie files with pie slicer, but in reverse?

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 04:14
by Azraiel
OK. I figured it out and it works now. It is what I thought. Thanks for your help. It is appreciated.

However, the model in game looks nothing like it does in pie slicer, why is that?

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 10:38
by Hatsjoe
Azraiel wrote: OK. I figured it out and it works now. It is what I thought. Thanks for your help. It is appreciated.

However, the model in game looks nothing like it does in pie slicer, why is that?
Extually they should look the same except for some texture problems. In Pie slicer some textures appear transparent while they actually sghould not be. If this is what you mean just keep in mind that every pixel that's not flashy green will be rendered in warzone.

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 13:39
by Azraiel
No thats not what it is. I made a simple camo texture. In PIE slicer, it looks fine. However, in warzone, it is horribly smeared and looks almost like sh*t brown.

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 14:28
by Watermelon
Azraiel wrote: No thats not what it is. I made a simple camo texture. In PIE slicer, it looks fine. However, in warzone, it is horribly smeared and looks almost like sh*t brown.
maybe bigger and more detailed texture page will help,since current textures are stretched badly in game due to their relatively small size.

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 17:04
by Hatsjoe
Watermelon wrote: maybe bigger and more detailed texture page will help,since current textures are stretched badly in game due to their relatively small size.
Yes but they are stretched the same way in pie slicer. are all the vertices (points) still in their right position or are they also changed? If nothing's wrong with that then it looks like warzone is reading the textyure data from the wrong texpage.

Re: How to replace pie files in regular game?

Posted: 12 Apr 2007, 22:18
by Azraiel
Yes, it was the wrong texpage. I gave the one I was using the same number as another one already there, and it used the one already there as the texture for my body design heh.

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 00:08
by DevUrandom
Azraiel wrote: Yes, it was the wrong texpage. I gave the one I was using the same number as another one already there, and it used the one already there as the texture for my body design heh.
You should not name custom texture pages in the "page-123" style.
Use "azraiel_cool-body" or similar instead. (Prefix with your name or the name of the mod and use a sensible description after that.)
Texpage names in 2.0 are not allowed to be longer than 64 chars. Anything more and you will get an illegal write or segfault.

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 01:12
by kage
DevUrandom wrote: Anything more and you will get an illegal write or segfault.
uh... checks and debug messages are a lot nicer than segfaults...

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 04:40
by Azraiel
When I give it a unique name like that, it causes a crash. I read the stderr file, and it says it needs to be preloaded into the wrf, how do I do this?

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 10:09
by DevUrandom
You need to add a line similar to

Code: Select all

file        TEXPAGE "azraiel_cool-body.png"
to following files:

Code: Select all

wrf/frontend.wrf
wrf/vidmem.wrf
wrf/vidmem2.wrf
wrf/vidmem3.wrf

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 13:33
by Azraiel
great thanks
--
OK, I added the you gave to the files you listed, but it gives me the same error still.

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 16:00
by DevUrandom
When do you get that error?
If it happens when loading a map, then the issue is that you forgot to edit the .wrf files in mp/wrf/
(Actually it should even be sufficient to add them only to mp/wrf/, as long as the pie's are also only in mp/wrf/)

Re: How to replace pie files in regular game?

Posted: 13 Apr 2007, 16:31
by Azraiel
Ah ok. Thank you once again. Didn't realize there is a difference between single player and multiplayer.