OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wildebeest on 26 May 2004, 15:01:13
-
Hi, how may I convert bin files to cpp? I know there is a cpp to bin converter but I wanna go the other way around. Shall I use a hex editor or what?
Thx, yer the best :)
-
I think once a file has been converted to .bin, it stays that way.
-
You would need OFP Manager (available at the ED Depot (should be)) or an old program which is probably not available anymore called PBO decryptor 1.3 (made by Amalfi)...
Not 1.5 but 1.3...
OFP Manager is a bit annoying to use as it pre-dates Resistance (afaik) so it has no mod folder support...
Those progs should work...
-
OK, thx guys... I've been searching the web for the old version of the decryptor but I can't seem to find it. Could someone please e-mail it to me? That would be awsome... :)
-
In the meantime, I've found that a hex editor will work alright for some things. In a hex editor, you will be able to read the text, but not the values for numbers and such. So if you want to know the model name for something, it will work fine, but if you want the armor values, your outta luck.
-
You can use OFP manager, you just have to copy and rename (you dont want to overwrite the original Config.bin) the bin file into the BIN directory of Flashpoint Res e.t.c.
Open OFP Manager and go into preferences and change the path from "OperationFlashpoint\" to "OperationFlashpoint\Res" or what ever mod folder you want.
Close OFP Manager down, then start it up again and look in the BIN section, to view your Config.bin as a text file.
-
I just uploaded PBO decryptor v1.3 to the "Pending" section of the ed depot. Grab it and give it a whirl.
-
HateR_Kint sent it to me the other day. Worked great. Thx y'all :)
-
Hi
I've been using these tools too. However there are many small errors when converting the config.bin and resource.bin from the main Bin directories of either OFP or OFPres. For instance, strange values appear in the newly created .cpp, such as destroyFriendly=4294967289. How do I find the correct values?
Also, does anyone have the standard .bin files (config and resource) converted correctly from OFP and OFPres (latest patch), if so, please could you send them to me.
Thanks in advance.
-
Well that's because the Strings are converted to binairy values, i don't know what ISO standard ofp uses, but u could try multiple standards (u should be alble to find them on the net.)
Sorry, there's no easy way of doing this.
-
Thanks very much for the reply. How did the ECP team do it? Slowly?
-
we didn't, the standard BIS ones are available from the breathe (http://www.flashpoint1985.com/breathe/) website, the rest was written from scratch.
-
Thanks again. I'm new to this. So once you'd completed the main config.cpp and resource.cpp which tool did you use to convert it to .bin?
Are there any standard, example, completed (not commented) config.cpp and resource.cpp files available?
-
Just dl some addons and de-pbo them, for the cpp converter, also see the breathe site.
-
I wasn't referring to addon configs, it's the main config and resource files I'm interested in.
Thanks.