Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / BSP not working?

Author
Message
Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 28th Aug 2009 17:06 Edited at: 28th Aug 2009 17:32
Hello,

When I try to load a .BSP map using dbLoadBsp ( char* Pk3Filename, char* BspFilename ) I get this error
Quote: "Unhandled exception at 0x00000000 in Tutorial2.exe: 0xC0000005: Access violation."
. I event tried it with the example .pak3 file but it still doesn't work

Any ideas?

Thanks
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 28th Aug 2009 17:35
does the example "world" that comes with GDK run ? its using the example pak file.

If it ain't broke.... DONT FIX IT !!!
Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 28th Aug 2009 17:50
Yes, it runs fine
Mista Wilson
16
Years of Service
User Offline
Joined: 27th Aug 2008
Location: Brisbane, Australia
Posted: 28th Aug 2009 17:55
if that demo runs ok, try copying the method's it is using to get your level loading, if it wont load using those techniques..then maybe..

Those pak file come in different formats, so does the data held inside of them, and Im pretty sure that GDK is pretty selective in what it will load.

Maybe the file you are using is the wrong format, or maybe it is corrupt ?

If you can get the GDK demo pak file to load in your code using it's techniques then it must be your level that is the problem.

Just to note, I think it is quake3 format files that GDK loads, although if you search the forums I believe someone wrote a tutorial on using Steam's Hammer editor with GDK and how to get a level from it into GDK.... might be some help if you can track the thread down.

If it ain't broke.... DONT FIX IT !!!
Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 28th Aug 2009 18:49
k thanks
Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 28th Aug 2009 19:34
K, wait, when I run it now I get the World.exe has stopped working message . So I don't know, I even tried to run it as admin. So the sample isn't working anymore :/
Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 29th Aug 2009 15:20
I get the same error when I try to load the example. I don't think there's anything wrong with my code. I'm running vista and it says DEP closed my application to protect my computer.
Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 30th Aug 2009 15:48 Edited at: 30th Aug 2009 15:49
Important update:

I tried to copy and paste all of the code of the example in a new project. And it works when I just paste ikzdm1.pk3 in the project directory. Altough I get this error
Quote: "Windows has triggered a breakpoint in BSPTest.exe.

This may be due to a corruption of the heap, which indicates a bug in BSPTest.exe or any of the DLLs it has loaded.

This may also be due to the user pressing F12 while BSPTest.exe has focus.

The output window may have more diagnostic information."
. But I can just click continue and it works fine, only the skybox is missing, which I didn't paste yet. When I create the media folder it says
Quote: "Unhandled exception at 0x00000000 in BSPTest.exe: 0xC0000005: Access violation."
again. So this has something to do with the media folder. So I did deleted the line that says
. And now it works fine again. Altough I get a white skybox and still the first error message "Windows has triggered...". But atleast my map is loading now :p
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 30th Aug 2009 18:18
I had a very similar problem. I came to a conclusion after several months of struggling with it:
DarkGDK's BSP support sucks.

Tav
16
Years of Service
User Offline
Joined: 20th Feb 2008
Location:
Posted: 30th Aug 2009 19:38
lolz x)
Potassium
15
Years of Service
User Offline
Joined: 12th Jul 2009
Location:
Posted: 30th Aug 2009 21:18
You can always use .x or .dbo files for levels, however the only real benefit of BSP in DarkGDK is the PVS (Potential Visibility Set). basically it will only render the polygons that you can see. All unseen are automatically hidden. However with .x or .dbo meshes, you have to optimize the rendering yourself.

There are 2 ways to develop for the N64:
1. Develop C code with PsyQ SDK and illegal Nintendo libs
2. Develop C code with legal kits, such as the Ground Zero devkit (g0dev.zip)
jezza
16
Years of Service
User Offline
Joined: 8th Mar 2008
Location: Bham, UK
Posted: 30th Aug 2009 21:50
BSP is also optimized for collision...

Login to post a reply

Server time is: 2024-11-20 17:45:29
Your offset time is: 2024-11-20 17:45:29