Turning chunks into png's

NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Forum rules
NOTICE: This forum is archived as read only.
Please use the Github Discussions at https://github.com/exult/exult/discussions
Locked
Magic531
Posts: 2
Joined: Thu May 14, 2020 1:34 pm

Turning chunks into png's

Post by Magic531 »

Hi everyone, quick question.

For almost all of the graphics that Exult Studio gets out of the .vga files, almost all of them within the program can be saved and turned into an external picture file. The only things that can't (from what I can see) are the prebuilt 'chunks'. Anyone know of a way to get these into seperate graphic files? Thanks!

[edit by Dominus: changed gumps to chunks in the subject]
Madoc

Re: Turning gumps into png's

Post by Madoc »

I would also be interested in this information.
Malignant Manor
Site Admin
Posts: 985
Joined: Thu May 14, 2020 1:34 pm

Re: Turning gumps into png's

Post by Malignant Manor »

I'm pretty sure chunks are drawn from information about what individual shape numbers go where. You can't convert that to a png and have the same effect. Right now ES doesn't even differential patch chunks and saves everything into one output file.

You could set up a border around a chunk that is composed of all water or something easy to distinguish, run the game in windowed mode with x1 scaling, and take a screen shot.
marzo
Site Admin
Posts: 1925
Joined: Thu May 14, 2020 1:34 pm

Re: Turning gumps into png's

Post by marzo »

I'm pretty sure chunks are drawn from information about what individual shape numbers go where.
You are correct.
------
Marzo Sette Torres Junior
aka Geometrodynamic Dragon
[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
Magic531
Posts: 2
Joined: Thu May 14, 2020 1:34 pm

Re: Turning chunks into png's

Post by Magic531 »

Ah, I didn't even think about doing a print screen. I suppose that would work just as well wouldn't it ;) Thanks for the help! I'm attempting (just as a fun little project) to rebuild U7 from scratch just as a 'see if I can do it' sort of thing. So obviously you can imagine being able to use the chunks in my own graphics sub-system could save me a lot of time and work. I'm a programmer, not a designer, hehe.
Darkstar
Posts: 44
Joined: Thu May 14, 2020 1:34 pm

Re: Turning chunks into png's

Post by Darkstar »

There's a command line option to dump the whole map into a (huge) png file. You could create a new map within exult studio, fill it with all the chunks (without adding anything else onto them) and then launch exult with the comman dline parameter to save the map as png.

-Darkstar
Locked