Surrounding terrain not saving
-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Surrounding terrain not saving
Made a custom heightmap and ran the auto generator to mirror the surrounding terrain. When I load up my editor and import it in it shows up, however after I save it disappears again and need to be re-imported. I tried making changes to all patches so it would save it all when it saved complied terrain but to no avail. Any ideas?
AfSoccer "I just don't see the natural talent."

-
Outlawz7
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: Surrounding terrain not saving
What do you mean 'import it'? What auto generator are you using?Rabbit wrote: When I load up my editor and import it in it shows up

- Ason
- PR:BF2 Developer
- Posts: 1755
- Joined: 2012-10-22 10:29
Re: Surrounding terrain not saving
Did you activate those heightfields, maybe need to do that first, then save then import new ones ?

-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Bf2HeightmapGenerator.exe import/activate in terrain editor.[R-DEV]Outlawz7 wrote:What do you mean 'import it'? What auto generator are you using?
http://planetbattlefield.gamespy.com/Vi ... tail&id=66
[R-DEV]Ason wrote:Did you activate those heightfields, maybe need to do that first, then save then import new ones ?
^ yep, and when I save and re open they are grey again.
Code: Select all
Heightmap filesize does not match expected size. 66049 != 1050625
Could not read expected size
Last edited by Rabbit on 2016-07-21 15:09, edited 1 time in total.
AfSoccer "I just don't see the natural talent."

-
Outlawz7
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: Surrounding terrain not saving
When I used Bf2HeightmapGenerator, I didn't import anything, run the .bat, it overwrites the surrounding terrain files and thats it.

-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Right but when I go to render them in the editor they are not there. So I go to import and activate and they show up, save and reopen editor and they will not load again.[R-DEV]Outlawz7 wrote:When I used Bf2HeightmapGenerator, I didn't import anything, run the .bat, it overwrites the surrounding terrain files and thats it.
AfSoccer "I just don't see the natural talent."

-
Outlawz7
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: Surrounding terrain not saving
Did you activate surrounding terrain before running heightmap generator?

-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Yes, it was active and working.
AfSoccer "I just don't see the natural talent."

- Mats391
- PR:BF2 Lead Developer
- Posts: 7643
- Joined: 2010-08-06 18:06
Re: Surrounding terrain not saving
What size is the heightmap and what size is defined in the .con (257x257 vs 1025x1025)? Most likely your issues lies in those two not matching. Possible editor just uses some weird maximum. Did you check if the terrain shows up in game?Rabbit wrote:Perhaps it is to complex and thus to large in size?Code: Select all
Heightmap filesize does not match expected size. 66049 != 1050625 Could not read expected size

Mineral: TIL that Wire-guided missiles actually use wire
-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Tried a map with 257, one with 513 and one with 1025. Always heightmap data and hieghtmap raws have matched in size.[R-DEV]Mats391 wrote:What size is the heightmap and what size is defined in the .con (257x257 vs 1025x1025)? Most likely your issues lies in those two not matching. Possible editor just uses some weird maximum. Did you check if the terrain shows up in game?
AfSoccer "I just don't see the natural talent."

-
Outlawz7
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: Surrounding terrain not saving
I think that error is something else because I had it before but can't remember what it was or how I fixed it

-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Seems to be the usual response to the issues I have.[R-DEV]Outlawz7 wrote:I think that error is something else because I had it before but can't remember what it was or how I fixed it
AfSoccer "I just don't see the natural talent."

- Mats391
- PR:BF2 Lead Developer
- Posts: 7643
- Joined: 2010-08-06 18:06
Re: Surrounding terrain not saving
From the error message it looks like he is trying to read a 1025x1025 but the file is only 257x257. I have no idea what limitations editor or heightmap in general has, just trying to interpret the error message.Rabbit wrote:Tried a map with 257, one with 513 and one with 1025. Always heightmap data and hieghtmap raws have matched in size.
Is any map using a 1025x1025 secondary heightmap?

Mineral: TIL that Wire-guided missiles actually use wire
-
Rudd
- Retired PR Developer
- Posts: 21225
- Joined: 2007-08-15 14:32
Re: Surrounding terrain not saving
A distant memory of mine might be the solution, the problem might be the size of the heightmaps you've made for the surrounding terrain, I think the autogenerator occasionally just clones the primary without resizing them to the right size. Was ages ago I had this error and I've been on night shifts, so could be total bollocks.
-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Dunno, but like I said I have tried 257 and 513.[R-DEV]Mats391 wrote:From the error message it looks like he is trying to read a 1025x1025 but the file is only 257x257. I have no idea what limitations editor or heightmap in general has, just trying to interpret the error message.
Is any map using a 1025x1025 secondary heightmap?
AfSoccer "I just don't see the natural talent."

-
Outlawz7
- Retired PR Developer
- Posts: 17261
- Joined: 2007-02-17 14:59
Re: Surrounding terrain not saving
I remembered, I had a map with a 512 primary heightmap but deleted it, then made a new map with exact same folder name but 256 heightmap and editor would keep throwing that error at me. I had to go with a new name.
So maybe your map name matches the name of an older map you created?
Seems like maps get cached somewhere but couldn't find it.
Try creating a new test map and see if the issue repeats.
So maybe your map name matches the name of an older map you created?
Seems like maps get cached somewhere but couldn't find it.
Try creating a new test map and see if the issue repeats.

-
Rabbit
- Posts: 7818
- Joined: 2006-12-17 15:14
Re: Surrounding terrain not saving
Yeah I have done that a few times now to no avail.[R-DEV]Outlawz7 wrote:I remembered, I had a map with a 512 primary heightmap but deleted it, then made a new map with exact same folder name but 256 heightmap and editor would keep throwing that error at me. I had to go with a new name.
So maybe your map name matches the name of an older map you created?
Seems like maps get cached somewhere but couldn't find it.
Try creating a new test map and see if the issue repeats.
AfSoccer "I just don't see the natural talent."


