Jump to content


Help! I screwed up my P file


8 replies to this topic

#1 daos_13

    New Member

  • Members
  • Pip
  • 3 posts

Posted 03 December 2008 - 10:02 PM

Some how I messed up my program terribly and I was hoping you could tell me a way to convert my .XWAM (the object file, maybe for some you use .O) file back to usable code from my previous compile.

I am using the XSB compiler, by the way.

THANK YOU!

#2 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 03 December 2008 - 10:39 PM

A quick google search doesn't reveal any xwam or xsb decompiler. I think you're just going to have to rewrite your code.

For future reference, you might want to use a revision control system, which will let you easily archive snapshots of your code, so you can track changes and step back to a working version if you mess something up. Subversion is a free and pretty decent revision control system, if you have a Linux box handy to run the server (3rd party servers do exist for other platforms, though).
reedbeta.com - developer blog, OpenGL demos, and other projects

#3 daos_13

    New Member

  • Members
  • Pip
  • 3 posts

Posted 04 December 2008 - 02:02 PM

...

#4 alphadog

    DevMaster Staff

  • Moderators
  • 1716 posts

Posted 04 December 2008 - 02:30 PM

%!@$!^#?

#5 .oisyn

    DevMaster Staff

  • Moderators
  • 1842 posts

Posted 04 December 2008 - 02:50 PM

Maybe you could use some kind of unerase tool.
C++ addict
-
Currently working on: the 3D engine for Tomb Raider.

#6 alphadog

    DevMaster Staff

  • Moderators
  • 1716 posts

Posted 04 December 2008 - 03:46 PM

Reedbeta said:

Subversion is a free and pretty decent revision control system, if you have a Linux box handy to run the server (3rd party servers do exist for other platforms, though).

Subversion for Windows exists straight from the source, not third-party, including VS 2005/2008 plug-ins:
http://www.collab.ne...ads/subversion/
http://www.collab.ne...tops/getit.html

#7 Reedbeta

    DevMaster Staff

  • Administrators
  • 5309 posts
  • LocationSanta Clara, CA

Posted 04 December 2008 - 05:39 PM

Ahh, interesting. It had a Windows client, but not a Windows server last time I checked.
reedbeta.com - developer blog, OpenGL demos, and other projects

#8 daos_13

    New Member

  • Members
  • Pip
  • 3 posts

Posted 04 December 2008 - 06:50 PM

alphadog said:

Subversion for Windows exists straight from the source, not third-party, including VS 2005/2008 plug-ins:
http://www.collab.ne...ads/subversion/
http://www.collab.ne...tops/getit.html

So, how is that supposed to help me? (not being sarcastic)

#9 alphadog

    DevMaster Staff

  • Moderators
  • 1716 posts

Posted 04 December 2008 - 07:24 PM

It won't help your past problems; you're basically SOL unless you can decompile your .XWAM, and even then, most decompilers won't give you back your original output like it was, ie. commented, readable, pretty formatted, etc.

But, ReedBeta's advice will prevent this from happening again. Have a versioning repository where you keep your source, plus backups, will save your ass once in a while.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users