OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: ElemenS on 14 Sep 2002, 20:11:29

Title: Come on guys, Answer !...
Post by: ElemenS on 14 Sep 2002, 20:11:29
I get my jpg shown in a cutrsc only when it's 128x128,

the desc.ext lines

         x = 0.0;        
         y = 0.0;
         w = 1.0;
         h = 1.0

are the empty space (percentual factor) and the stretch volume.
So much i figured out myself:

x=left/right distance of the images left top corner relative to the screens left border based on negative (min 0.0=perfect fit, max 1.0=outside screen [cant see it])

y=same above, only up/down values

w/h=stretch percent to the right and down.
examples:
1.0 on 'w' and 'h' = full screen in use
0.5 on 'w' and 'h' = stretches the images right lowest corner to the center of the screen.

But how the heck do i get my 800x600 jpg show without the error :

"image 800x600 instead of 2^n" ?

It wont show at all.
Works only when my pic is 128x128.

huh !? ??? ??? ???
Title: Re:Come on guys, Answer !...
Post by: crow on 15 Sep 2002, 06:31:21
That is the only size the game will allow ;)
Title: Re:Come on guys, Answer !...
Post by: KTottE on 15 Sep 2002, 13:48:16
Well, you can have 1024 x 1024 if you want. Or 1024 x 2.

The error "image 800x600 instead of 2^n" means that the image size is not power of 2 (2^n).

2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192

are all power of 2 (2^n) sizes.

Try making your image 1024 x 512 or similar and see if it works.

Cheers, KTottE
Title: Re:Come on guys, Answer !...
Post by: GalComT on 15 Sep 2002, 14:11:54
That's what I said on the topic started by ElemenZ before he started this one.