*SOLVED* Error while importing edited Heightmap RAW files

Interesting mapping tools and mapping help.

Moderator: Morax

*SOLVED* Error while importing edited Heightmap RAW files

Postby Smokamrok » 20 Jul 2016, 01:06

Hello,

I tried to make a 10 km x 10 km (512 x 512) map symmetrical using photoshop.
I had no problem exporting the RAW file from the map editor, however after I edit the file in Photoshop and save it, the file size decreases suddenly from 514 KB to 257 KB and the map editor refuses to import it, stating the following:
---------------------------------------
Import Error

Dimensions appear invalid
---------------------------------------

Before I edited the original RAW file in Photoshop, upon opening it Photoshop wanted me to set the RAW options, I set them as followed:

-------------------------------------------------------
Describe "heightmap.raw"
(526338 bytes)

Dimensions
Width: 513 pixels
Height: 513 pixels

Channels
Count: 1
NOT Interleaved
Depth: 16 Bits
Byte Order: IBM PC

Header
Size: 0 bytes
--------------------------------------------------------------------

I saved the RAW file as grayscale.

Does anybody know what I did wrong? Any help is greatly appreciated ;)
Last edited by Smokamrok on 27 Jul 2016, 22:34, edited 2 times in total.
User avatar
Smokamrok
Crusader
 
Posts: 17
Joined: 20 Jul 2016, 00:44
Has liked: 6 times
Been liked: 1 time
FAF User Name: Smokamrok

Re: Error while importing edited Heightmap RAW files

Postby biass » 20 Jul 2016, 01:14

Seems you have done everything right, maybe just save the edit onto the og export file and dont change anything unless needed to as per the wiki says, or make sure your file has (gray/16) while editing
Map thread: https://bit.ly/2PBsa5H

Petricpwnz wrote:biass on his campaign to cleanse and remake every single map of FAF because he is an untolerating reincarnation of mapping hitler
User avatar
biass
Contributor
 
Posts: 2239
Joined: 03 Dec 2015, 07:54
Has liked: 598 times
Been liked: 662 times
FAF User Name: biass

Re: Error while importing edited Heightmap RAW files

Postby seero » 20 Jul 2016, 21:24

Also when you save the raw you need to set mode to IMB PC, for some reason it sometimes has machintos as default.
seero
Avatar-of-War
 
Posts: 95
Joined: 17 Dec 2013, 12:42
Has liked: 8 times
Been liked: 16 times
FAF User Name: seero

Re: Error while importing edited Heightmap RAW files

Postby Smokamrok » 20 Jul 2016, 22:18

The problem is that Photoshop only lets me edit the RAW options upon opening the file. So I tried the following:
I exported the original RAW heightmap using the supcom map editor, I opened this RAW file using Photoshop, It asked me to set the RAW options, I set them as stated above, I duplicated half of the RAW image in order to make a symmetrical heightmap, I saved this file as Grayscale under a new filename. While saving it as a .RAW file all I could change is the Header, I left it at Zero. After saving it, the file had exactly half the amount of KB of the original exported heightmap.RAW
(Original: 514 KB. Edited file: 257 KB)

Now I tried to open the edited (symmetrical) file with Photoshop again. However when I set the RAW options to the same settings I used for the original file it comes with the error message:

------------------------------------------
Specified image is larger than file.
------------------------------------------

And I'm only able to open the file once I set the depth to 8 Bits.
User avatar
Smokamrok
Crusader
 
Posts: 17
Joined: 20 Jul 2016, 00:44
Has liked: 6 times
Been liked: 1 time
FAF User Name: Smokamrok

Re: Error while importing edited Heightmap RAW files

Postby biass » 21 Jul 2016, 00:02

You're saving it as a grayscale? you need to be saving it as a raw file

just save over the one you exported
Map thread: https://bit.ly/2PBsa5H

Petricpwnz wrote:biass on his campaign to cleanse and remake every single map of FAF because he is an untolerating reincarnation of mapping hitler
User avatar
biass
Contributor
 
Posts: 2239
Joined: 03 Dec 2015, 07:54
Has liked: 598 times
Been liked: 662 times
FAF User Name: biass

Re: Error while importing edited Heightmap RAW files

Postby Smokamrok » 21 Jul 2016, 21:48

I didn't save the file as grayscale, how would that even work? I saved it as a RAW file but I saved the color mode of that file as grayscale. The file itself remained a .RAW file.
I'm sorry if I didn't explain it well enough, English is not my native language. Feel free to ask for more details ;)
User avatar
Smokamrok
Crusader
 
Posts: 17
Joined: 20 Jul 2016, 00:44
Has liked: 6 times
Been liked: 1 time
FAF User Name: Smokamrok

Re: Error while importing edited Heightmap RAW files

Postby seero » 22 Jul 2016, 17:19

See attached files, those settings work for me. I assume that when you do the mirroring you dont change the size of image?
Attachments
open file.JPG
open file.JPG (33.13 KiB) Viewed 4416 times
save1.JPG
save1.JPG (58.8 KiB) Viewed 4416 times
save2.JPG
save2.JPG (26.43 KiB) Viewed 4416 times
seero
Avatar-of-War
 
Posts: 95
Joined: 17 Dec 2013, 12:42
Has liked: 8 times
Been liked: 16 times
FAF User Name: seero

Re: Error while importing edited Heightmap RAW files

Postby Smokamrok » 23 Jul 2016, 00:19

Yes I set the settings exactly like you did, however for some reason I can't set the byte order when saving the file, only while opening it.
Perhaps my Photoshop version is too old? Although it should be able to do that despite its age or am I wrong?

My PS version is 1.01


OpeningRAW.jpg
Options available while opening the RAW file
OpeningRAW.jpg (69.64 KiB) Viewed 4395 times



SavingRAW.jpg
Options available while saving the RAW file
SavingRAW.jpg (44.66 KiB) Viewed 4395 times


:mrgreen:
User avatar
Smokamrok
Crusader
 
Posts: 17
Joined: 20 Jul 2016, 00:44
Has liked: 6 times
Been liked: 1 time
FAF User Name: Smokamrok

Re: Error while importing edited Heightmap RAW files

Postby Smokamrok » 27 Jul 2016, 22:37

Ok I found the problem. My PS version was too outdated. a newer one does have the full RAW options.

Thx for all help and especially thx seero for the screenshots of your options ;)
User avatar
Smokamrok
Crusader
 
Posts: 17
Joined: 20 Jul 2016, 00:44
Has liked: 6 times
Been liked: 1 time
FAF User Name: Smokamrok


Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest