OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Wildebeest on 26 May 2004, 15:01:13

Title: bin to cpp?
Post 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  :)
Title: Re:bin to cpp?
Post by: Homefry31464 on 26 May 2004, 15:27:17
I think once a file has been converted to .bin, it stays that way.
Title: Re:bin to cpp?
Post by: h- on 26 May 2004, 16:51:04
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...
Title: Re:bin to cpp?
Post by: Wildebeest on 26 May 2004, 18:18:22
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... :)
Title: Re:bin to cpp?
Post by: General Barron on 26 May 2004, 20:37:03
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.
Title: Re:bin to cpp?
Post by: Unnamed on 26 May 2004, 21:18:15
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.
Title: Re:bin to cpp?
Post by: General Barron on 27 May 2004, 08:25:07
I just uploaded PBO decryptor v1.3 to the "Pending" section of the ed depot. Grab it and give it a whirl.
Title: Re:bin to cpp?
Post by: Wildebeest on 30 May 2004, 13:57:23
HateR_Kint sent it to me the other day. Worked great. Thx y'all :)
Title: Re:bin to cpp?
Post by: andywt on 19 Jun 2004, 14:08:26
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.
Title: Re:bin to cpp?
Post by: MachoMan on 19 Jun 2004, 14:29:06
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.
Title: Re:bin to cpp?
Post by: andywt on 19 Jun 2004, 14:42:30
Thanks very much for the reply.  How did the ECP team do it?  Slowly?
Title: Re:bin to cpp?
Post by: MachoMan on 19 Jun 2004, 14:49:21
we didn't, the standard BIS ones are available from the breathe (http://www.flashpoint1985.com/breathe/) website, the rest was written from scratch.
Title: Re:bin to cpp?
Post by: andywt on 19 Jun 2004, 15:02:58
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?
Title: Re:bin to cpp?
Post by: MachoMan on 19 Jun 2004, 15:37:34
Just dl some addons and de-pbo them, for the cpp converter, also see the breathe site.
Title: Re:bin to cpp?
Post by: andywt on 19 Jun 2004, 16:05:45
I wasn't referring to addon configs, it's the main config and resource files I'm interested in.

Thanks.