You cannot use .JPG to create a materials + .IWI file. It must be either .DDS or .TGA
Printable View
Does anything look wrong? Spent quite some time without success so far.
This is how I saved the DDS file:
Attachment 762
This is the asset manager:
Attachment 763
The result of the asset manager are 40~50 bytes iwi and material.
This is the material file opened with a hex edittor:
Attachment 764
That is not a valid materials file. You aren't saving your .GDT file in the right location. It has to go into [COD2 INSTALL]/source_data/[name_of_custom_file].gdt
Whenn you open Asset Manager, click "open" and navigate to the source_data folder and open your .GDT file. Then, click the entry you want to compile, and it should all work properly then.
Really stupid mistake..... I was getting the output .iwi from the cache directories instead of main/images.
Thanks for helping anyway. I'm also saving the gdt on source_data from now on.
Attachment 765
I know what I'm doing. But ever since I first met you, you've been trying to teach me how to mod. I keep telling you I know how to do it already, but you keep insisting on trying to teach me. If you can't get the message, then best if you don't reply to any of my posts. That way you wont fuck me off any more than you already have.
Are we clear? Or do I need to draw you a picture?
This is the final result for the green screen.
This will create the green screen and also two vertical black bars aligned to left and right to make you have a squared view instead of fullscreen (rectangular) view.
Tested on 1366x768 and 640x480, but not on 1920x1020 (although it should work).
The only thing is, I set sort to 0 but the black bars are still over the clock.
Attachment 766PHP Code:
cameraScreen()
{
if(isdefined(self.hud_green))
self.hud_green destroy();
self.hud_green = newClientHudElem(self);
self.hud_green.vertAlign = "fullscreen";
self.hud_green.horzAlign = "fullscreen";
self.hud_green.alpha = 0.4;
self.hud_green setShader("white", 640, 480);
self.hud_green.color = (0,0.5,0);
self.hud_green.sort = 0;
if(isdefined(self.hud_black1))
self.hud_black1 destroy();
self.hud_black1 = newClientHudElem(self);
self.hud_black1.vertAlign = "fullscreen";
self.hud_black1.horzAlign = "center";
self.hud_black1.x = -492;
self.hud_black1.alpha = 1;
self.hud_black1 setShader("white", 180, 480);
self.hud_black1.color = (0,0,0);
self.hud_black1.sort = 0;
if(isdefined(self.hud_black2))
self.hud_black1 destroy();
self.hud_black2 = newClientHudElem(self);
self.hud_black2.vertAlign = "fullscreen";
self.hud_black2.horzAlign = "center";
self.hud_black2.x = 312;
self.hud_black2.alpha = 1;
self.hud_black2 setShader("white", 180, 480);
self.hud_black2.color = (0,0,0);
self.hud_black2.sort = 0;
}
I just meant white-black screen like this:
Attachment 767
Well I have no ideas for that