Home   Help Search Login Register  

Author Topic: bin to cpp?  (Read 1226 times)

0 Members and 1 Guest are viewing this topic.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
bin to cpp?
« 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  :)
Weeee...

Homefry31464

  • Guest
Re:bin to cpp?
« Reply #1 on: 26 May 2004, 15:27:17 »
I think once a file has been converted to .bin, it stays that way.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:bin to cpp?
« Reply #2 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...
« Last Edit: 26 May 2004, 16:52:51 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:bin to cpp?
« Reply #3 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... :)
Weeee...

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:bin to cpp?
« Reply #4 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.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Unnamed

  • Guest
Re:bin to cpp?
« Reply #5 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.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:bin to cpp?
« Reply #6 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.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Wildebeest

  • Contributing Member
  • **
  • The time the wildebeest ruled the Earth.
Re:bin to cpp?
« Reply #7 on: 30 May 2004, 13:57:23 »
HateR_Kint sent it to me the other day. Worked great. Thx y'all :)
Weeee...

Offline andywt

  • Members
  • *
  • I'm a llama!
Re:bin to cpp?
« Reply #8 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.

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:bin to cpp?
« Reply #9 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.
Get those missions out there you morons!

Offline andywt

  • Members
  • *
  • I'm a llama!
Re:bin to cpp?
« Reply #10 on: 19 Jun 2004, 14:42:30 »
Thanks very much for the reply.  How did the ECP team do it?  Slowly?

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:bin to cpp?
« Reply #11 on: 19 Jun 2004, 14:49:21 »
we didn't, the standard BIS ones are available from the breathe website, the rest was written from scratch.
Get those missions out there you morons!

Offline andywt

  • Members
  • *
  • I'm a llama!
Re:bin to cpp?
« Reply #12 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?

Offline MachoMan

  • Honoured
  • Former Staff
  • ****
  • KISS, Keep it Simple Stupid
Re:bin to cpp?
« Reply #13 on: 19 Jun 2004, 15:37:34 »
Just dl some addons and de-pbo them, for the cpp converter, also see the breathe site.
Get those missions out there you morons!

Offline andywt

  • Members
  • *
  • I'm a llama!
Re:bin to cpp?
« Reply #14 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.