.exe2.blend?

it takes time to read the file, pationt. Should realy program a progress bar to it.

You know, if the .exe is created using blender, then everything in the .exe is for public use. The only thing that can be private is the output of blender, the .blend itself is copyprotected.

But it is not copyprotected when it is incorporated via the make .exe command, or whatever it is.

It dont’t works here. Appears the fowling mensage in the console:

File path: D:/Blender/Blender Fountation/Blender/gamebinary.exe
Traceback<most recent call last>:
File “Convert.py.001”, line 3, in <module>
IOError: [Errno 2] No such file or directory: ’ ’
In the Script:

exefile=raw_input(“File path:D:/Blender Foundation/Blender/gamebinary.exe”)

f=open(exefile,“rb”)
buff=“”
line=f.read(1024)
while(line != “”):
buff=buff+line
line=f.read(1024)
f.close()

line_from=buff.find(“BLENDER_v”)

f=open(exefile+“.blend”,“wb”)
f.write(buff[line_from:])
f.close()
.

It dont’t works here. Appears the fowling mensage in the console:

File path: D:/Blender/Blender Fountation/Blender/gamebinary.exe
Traceback<most recent call last>:
File “Convert.py.001”, line 3, in <module>
IOError: [Errno 2] No such file or directory: ’ ’

In the Script:

exefile=raw_input(“File path:D:/Blender Foundation/Blender/gamebinary.exe”)

f=open(exefile,“rb”)
buff=“”
line=f.read(1024)
while(line != “”):
buff=buff+line
line=f.read(1024)
f.close()

line_from=buff.find(“BLENDER_v”)

f=open(exefile+“.blend”,“wb”)
f.write(buff[line_from:])
f.close()

You are not supposed to type the file path in the script. You are supposed to run the script, then it will prompt you for the file path. You type the file path in at the command prompt. The script should read:

exefile=raw_input("File Path: ")

f=open(exefile,"rb")
buff=""
line=f.read(1024)
while(line != ""):
  buff=buff+line
  line=f.read(1024)
f.close()

line_from=buff.find("BLENDER_v")

f=open(exefile+".blend","wb")
f.write(buff[line_from:])
f.close()

Also, there is another script to do this, which I think is faster at extracting. Find it here: http://blenderartists.org/forum/showthread.php?t=75062

The Linux script is in post 7 of that thread, the Windows script is in post 10. When you run the script using Python, it will prompt you to type in the file name, just like the other one should.

Thenks people! I’ve got the .blend file. You saved-me from a lot of work and of lost my best work.

Strangely I’ve tried to type the path in the console before and it don’t have worked. But now works good.