Help! I screwed up my P file

7b266b92358ff7ab15d5546383c66e21
0
daos_13 101 Dec 03, 2008 at 22:02

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!

8 Replies

Please log in or register to post a reply.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 Dec 03, 2008 at 22:39

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).

7b266b92358ff7ab15d5546383c66e21
0
daos_13 101 Dec 04, 2008 at 14:02

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 Dec 04, 2008 at 14:30

%!@$!\^#?

340bf64ac6abda6e40f7e860279823cb
0
_oisyn 101 Dec 04, 2008 at 14:50

Maybe you could use some kind of unerase tool.

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 Dec 04, 2008 at 15:46

@Reedbeta

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.net/downloads/subversion/

http://www.collab.net/products/desktops/getit.html

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 168 Dec 04, 2008 at 17:39

Ahh, interesting. It had a Windows client, but not a Windows server last time I checked.

7b266b92358ff7ab15d5546383c66e21
0
daos_13 101 Dec 04, 2008 at 18:50

@alphadog

Subversion for Windows exists straight from the source, not third-party, including VS 2005/2008 plug-ins:

http://www.collab.net/downloads/subversion/

http://www.collab.net/products/desktops/getit.html

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

8676d29610e6c98d6dd2d9c38528cd9c
0
alphadog 101 Dec 04, 2008 at 19:24

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.