Page 1 of 1

Binary BZN Viewer (Source Included) (Download Available)

Posted: Fri Jul 05, 2013 9:48 pm
by Nielk1
Image
https://github.com/Nielk1/bz2-bzn_binary-format-tools
http://nielk1.com/Battlezone/Binary_BZN ... _editor.7z

The application allows for the editing of binary BZNs in the most basic form, that being HEX and ASCII. You may view the fields as it best attempts to understand them, but as BZNs are just a list of typed values in series you have to guess the meaning and context of what you are editing. This application should be used as a stop gap in modifying maps based on the old binary BZN format to load into the latest patch without crashing for re-saving as ASCII BZNs. Don't try to change objects in a map severely as changing things such as the classlabel of objects can be highly destructive to the mission stability.

Side note: This program works on save files as well.


OLD POST:
This allows you to see the value list stored in Binary BZN files. It is not yet to the point of being able to edit the data, nor do I yet know if I have the byte order correct on the reading of data (and thus have not yet coded the writing of BZN files) but it is a good start and the source is posted. The purpose of this is to, down the road when it is fully completed (and please feel free to help) allow for binary BZNs to be modified and repaired so that they may be loaded in 1.3 and re-saved in ASCII format. Currently, if an object is missing or some other change, the BZN can cause a pretty hard and ugly crash. Being able to point these broken object entries at new objects would be a great help for converting maps up to a recent version.

Image
https://github.com/Nielk1/bz2-bzn_binary-format-tools

Re: Binary BZN Viewer (Source Included)

Posted: Sat Jul 06, 2013 2:38 pm
by Apollo
Bz source allows the bzn to be saved in ascii from debug, this allowed it to easily be available for others to use. Does Bz2 source have something similar?

Sometimes i would like a bzn converter in Bz to change map sizes without having to resetup all the objects on the original map. (guess most ppl won't find that useful though...)

Re: Binary BZN Viewer (Source Included)

Posted: Sat Jul 06, 2013 3:39 pm
by General BlackDragon
We don't have BZ2 source

Re: Binary BZN Viewer (Source Included)

Posted: Sat Jul 06, 2013 9:45 pm
by Nielk1
Apollo wrote:Bz source allows the bzn to be sized in ascii from debug, this allowed it to easily be available for others to use. Does Bz2 source have something similar?

Sometimes i would like a bzn converter in Bz to change map sizes without having to resetup all the objects on the original map. (guess most ppl won't find that useful though...)
We don't have the BZ2 source (or the BZ1 for that matter, that is just you). That should make this little project slightly more impressive I hope since its a bit of reverse engineering and a little bit of info from Ken to get going in the right direction.

I still can't be sure I have the byte order right since the floats all look like ass.

Re: Binary BZN Viewer (Source Included) (Download Available)

Posted: Sat Nov 16, 2013 8:32 am
by Nielk1
Posted a new screenshot, updated code, linked to 7zed EXE. This program is featured enough to fit its intended purpose. Read the first post for details.