frankvollebregt / gbspconverter Goto Github PK
View Code? Open in Web Editor NEWScripts to convert a Genesis3D BSP file to the Quake 2 IBSP format or Wavefront OBJ file. FBX support is in development.
Scripts to convert a Genesis3D BSP file to the Quake 2 IBSP format or Wavefront OBJ file. FBX support is in development.
Areas (and perhaps areaPortals) could be included in the conversion, to allow loading areas separately.
Valve's VBSP format is more widely used, and would allow people to further edit the map as if it were a source map
Convert the node tree as well
Hey there, thanks for developing this converter!
I am trying to convert a Genesis3D .bsp file using your script gbsp_to_ibsp.py
However the script is not running on my machine. It will immediately fail with below error. I am running Ubuntu 23.04 with python3 and pillow installed.
~/GBSPConverter/src$ python3 gbsp_to_ibsp.py
Traceback (most recent call last):
File "/home/rick/GBSPConverter/src/gbsp_to_ibsp.py", line 1, in <module>
from src.gbsp import GBSPChunk
ModuleNotFoundError: No module named 'src'
Thanks in advance for any insights!
Figure out how to read the actual texture names, and attach them. Textures (AFAIK) are located in a folder in the source, but correctly linking the names would go a long way.
I have a BSP map file from a game "The Italian Job" published in 2001 and I tried to use your script to convert it into OBJ and IBSP.
In both cases I get the exact same error:
C:\Users\Luker\Downloads\GBSPConverter-src-import-fix\GBSPConverter-src-import-fix\src>python gbsp_to_ibsp.py track.bsp
Traceback (most recent call last):
File "C:\Users\Luker\Downloads\GBSPConverter-src-import-fix\GBSPConverter-src-import-fix\src\gbsp_to_ibsp.py", line 35, in <module>
gbsp = read_gbsp_file(path)
^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Luker\Downloads\GBSPConverter-src-import-fix\GBSPConverter-src-import-fix\src\gbsp_to_ibsp.py", line 20, in read_gbsp_file
current_chunk = read_gbsp_chunk(file)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Luker\Downloads\GBSPConverter-src-import-fix\GBSPConverter-src-import-fix\src\gbsp_to_ibsp.py", line 12, in read_gbsp_chunk
chunk.read_bytes(f)
File "C:\Users\Luker\Downloads\GBSPConverter-src-import-fix\GBSPConverter-src-import-fix\src\gbsp.py", line 24, in read_bytes
self.bytes = file.read(self.size * self.elements)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MemoryError
BSP version (according to specification) is 11 and I could open it with in RWanalyze (however this program does not allow preview, editing, and bsp->dff conversion does not seem to work for this file).
I understand that this may not be the issue with the script itself since these particular BSP files are quite a problematic case as none of the methods for opening BSPs listed online currently work for them.
The specific file tested I used is here.
The game (alongside all the bsp files located in gfx/land directory) is also downloadable here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.