Giter Site home page Giter Site logo

frankvollebregt / gbspconverter Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 121 KB

Scripts to convert a Genesis3D BSP file to the Quake 2 IBSP format or Wavefront OBJ file. FBX support is in development.

Python 100.00%
bsp davilex-games genesis3d quake2 redcat

gbspconverter's People

Contributors

frankvollebregt avatar

Stargazers

 avatar

Watchers

 avatar

gbspconverter's Issues

Add areas

Areas (and perhaps areaPortals) could be included in the conversion, to allow loading areas separately.

No module named 'src'

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!

Read and convert the textures

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.

MemoryError when trying to convert BSP format 11

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.