PDA

View Full Version : Hex Editing a PNG?


hundreds
13 Jan 2009, 02:40
Hey guys (in particular Muzer and bonz):

You mentioned I could hex edit a PNG to make it specify that it was a cavern style map using... "0x08 - Cavern" in another post. I read up a little on this on worms2d.info and couldn't seem to find out how to do this.

In particular, I am going to be fine-tuning Jabba's Palace and making it W:A 3.6.29 compatible, but I really want the map to be cavern style with NO border at all. Any suggestions? I have some basic hex editing skills, but not much. I am sure I can pick on it if I need to though.

Mighty Beefy

CyberShadow
13 Jan 2009, 06:36
How can a map be a cavern without an indestructable roof? You want to be able to just blast a hole in the roof and climb on top, without having the ability to scroll up?

hundreds
13 Jan 2009, 16:06
Here is what I am trying to accomplish:

I have an old level (Jabba's Palace), that has an open sky. It also goes clear from one end of the map on the right to the left. Additionally, I need the worms to be able to die if they find themselves falling into the water. Therefore, I need no border on the left, no border on the right, and none on the bottom or top, since the sky would look kind of funny with a border that you can swing from.

I can't just import it as a standard level with no border, since it then becomes an "island" style level, with my landscape cutting off at the edge of the image.

So I was hoping to assign it "cavern" with NO borders.

CyberShadow
13 Jan 2009, 16:37
This isn't currently possible... but we'll keep this in mind when we rework the level file format.

hundreds
13 Jan 2009, 18:20
If it is currently impossible, then what is worms2d.info talking about when it says:

"0x08 - Cavern - Whether Worms treats the map like a cavern, with a ceiling, or an island. A value of 0 means island, while a nonzero value means a cavern."

If I could hex it to ensure that it has a nonzero value, would that not do the trick?

Jay

Muzer
13 Jan 2009, 20:00
Then it has a ceiling though.

Deadcode
13 Jan 2009, 21:27
hundreds,

I take it you want the game's camera to be locked against scrolling beyond the borders of your map, and chute/bungee/rope/jetpack prevented from working beyond the left and right borders, but with no indestructable top border?

There's no flag anywhere in the current level file format that can do this. The cavern flag enables all three of the above traits. However, as CyberShadow says, we'll keep it in mind for the next format.

hundreds
13 Jan 2009, 21:44
I see. So hex would not help after all. Well then, I guess I will just rerelease it as it always has been, and if and when you guys alter that in the next patch, I will fix it for that.

EDIT: I have decided to just raise the roof on the whole thing so that you will pretty much never see the top border. That pretty much accomplishes what I was wanting to do - don't know why I didn't think of it before.

Thanks for your help guys... and I can't thank you enough for the new map size options.