Jump to content

[TUT]Converting R16 images to TGA


Recommended Posts

Posted

Great, Gruntlord6 has sent me some of the files and taking a look at them, I think there may be enough information for me to finish the R8/R16 Resource Editor I started a couple of years ago. 

  • Upvote 3
Posted
Great, Gruntlord6 has sent me some of the files and taking a look at them, I think there may be enough information for me to finish the R8/R16 Resource Editor I started a couple of years ago. 

That file manager is terrible, the graphics make it look like it was designed for windows 3.0

Posted
Great, Gruntlord6 has sent me some of the files and taking a look at them, I think there may be enough information for me to finish the R8/R16 Resource Editor I started a couple of years ago. 

I hope you can figure it out. When looking at the first image in MOUSE.R16, it looks like the raw data (in XVI32) contains no shadow, but the exported image clearly has it. I don't know how that is possible, I'm no computer hacker.

 

Now that the 16bit images are "loose", it's so easy to make a nice animation:

 

25i50cg.gif

 

11bhlsp.gif

  • Upvote 4
Posted
I hope you can figure it out. When looking at the first image in MOUSE.R16, it looks like the raw data (in XVI32) contains no shadow, but the exported image clearly has it. I don't know how that is possible, I'm no computer hacker.

 

Now that the 16bit images are "loose", it's so easy to make a nice animation:

 

25i50cg.gif

 

11bhlsp.gif

Wow these look good! Think you could make a more complex one? Like a siege tank killing a light infantry?

Posted

Thanks for link to plugin!

-

Total Commander is NOT Trial version. It simply gives you a nag screen when you start it (You have to press 1, 2, 3) and nothing else, no limitations, no delays, regardless you have used it for 1 day or 1 century!!!

Posted

well i found out about total commander from these forum a post from this forum....

sad thing is that you guys overlooked it...

MVI nice i guess you can finish it and also can you add the r16 packer in it??

Posted
Thanks for link to plugin!

-

Total Commander is NOT Trial version. It simply gives you a nag screen when you start it (You have to press 1, 2, 3) and nothing else, no limitations, no delays, regardless you have used it for 1 day or 1 century!!!

Main limitation being its really buggy and outdated.

Posted
You refer to Total Commander or the plugin? Total Commander has never crashed on me. Outdated? August 3, 2012?

Referring to the user interface and installer design. Just because he has worked on it recently, doesn't mean its not hideously designed and severely lacking in features (creating a folder didn't seem to be an option, and if it is one, it is poorly designed). The plugin couldn't really be very buggy, although it corrupts the bmp conversion and cant extract certain r16 files.

  • Upvote 1
Posted

I've resumed development on my Resource Editor, for those who haven't seen what it looks like, here's a screenshot:

 

gykrr0O.png

  • Upvote 2
Posted

Great news!

 

Small feature request is that the tool has miniature previews so it's easy to find the image you are looking for. But!, if it's too much work, unstable (or laggy) please don't waste your time on it. Maybe one big exported image containing all the images and index numbers might also be enough.

 

Future thoughts:

Another perhaps useful feature would be to combine image sequences so it's easier to export animations and re-import them. Is there actually a data file that contains information on what images are used for animation and together with what image as background? For example that the data says which images need to be used to generate the "blinking" effect when building a tank in the heavy factory. Combining that information with the images in data.r16 would make modding easier.

Posted

Nice ideas :-)

 

I fixed a bug in the R16 loading, so graphically it looks ok now.

 

It turns out where I'd left the resource editor last year was actually reasonably complete, there's still lots of sprites it doesn't handle yet, so it skips quite a few. 

 

LT4qB5C.png

 

Bi0CAwo.png

  • Upvote 1
Posted

Looks like I was already reading those entries that UnPacker loads as bitmaps, I just wasn't adding them to the list. I've hooked those entries up to the PALETTE.BIN now. With the inclusion of those entries, my tool comes back with an entry count of 5105 for both Data.R8 and Data.R16. Which is the same as the count that UnPacker returns. What's interesting to note is that the Dune 2000 Image Converter, which only supports R8 will only load 4997 entries for Data.R8, so I guess they skip a few.

 

By hooking those entries to PALETTE.BIN I now appear to get the same results as UnPacker, including those images which clearly have the wrong palette.

Posted
and severely lacking in features (creating a folder didn't seem to be an option, and if it is one, it is poorly designed).

And what does "F7 NewFolder" button stand for?

Posted

Ok I set the contents of UIBB.R16 to pure white, then played the game. You can see in the following image what sections of the game are drawn from UIBB

 

AvZWhzf.png

Posted

Wow nice progress. One question: in which file are the sidebar icons? Last time I searched for them I couldnt find anything (used Magic Team's extractor).

Posted
Wow nice progress. One question: in which file are the sidebar icons? Last time I searched for them I couldnt find anything (used Magic Team's extractor).
it is there in it... number 4xxx...

try and see....

Posted
Nice ideas :-)

 

I fixed a bug in the R16 loading, so graphically it looks ok now.

 

It turns out where I'd left the resource editor last year was actually reasonably complete, there's still lots of sprites it doesn't handle yet, so it skips quite a few. 

 

[image]

[image]

Looking good. Excuses for complaining right away, but I would rather have a zoom function that enlarges the image on "pixel level" so no blur. You have opened a .R16 file, but the "Bits Per Pixel" still says 8? A little luxury would be if I can export the images without the pink background and a nice big button that says "Export all". :-)

 

Is it also possible to make an image bigger or smaller in dimension? What will happen?

 

AvZWhzf.png

Those parts that are white look a lot like those are missing in the high resolution patch from N.Kindt.

Posted
Are you talking about this icons?

 

attachicon.gifIcons.jpg

 

They are in Data archive.

Other icons (repair, sell, etc) are in UI_ENG archive.

Yeah, those are the ones! Thank you :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.