ataulien / GD3D11

D3D11-Renderer for Gothic and Gothic 2
GNU General Public License v3.0
174 stars 75 forks source link

Crash on model selection or altering Tesselation #2

Open benjaminfoo opened 9 years ago

benjaminfoo commented 9 years ago

Hello world, degenerated,

first of all, thank you for your work - I am a big fan of the gothic series since it came out, still playing it from time to time until today. Your Renderer will cause a massive investment of my private time into this game again.. so, thank you!

Now, I've got a problem: After launching the game, after pressing F1 to toggle the edit mode, as soon as I select a model, a barrel or something else, the game crashes. It doesn't crash by selecting a floor for example, just modells. Do you know why this happens?

I'd love to contribute to this project! Cheers and have a fancy weekend.

ataulien commented 9 years ago

Hi! Not sure what causes this, but does the Log.txt in Gothics System-Folder say something about the crash?

benjaminfoo commented 9 years ago

I took a look into the Log.txt within the system folder, I think the last few lines are interestin:

Info: Settings sky texture for NEWWORLD Info: Reading Gothic-Config: sightValue Info: Reading Gothic-Config: skyEffects Info: Reading Gothic-Config: bloodDetail Info: Reading Gothic-Config: highlightMeleeFocus Info: Reading Gothic-Config: soundProviderIndex Info: Reading Gothic-Config: soundSpeakerIndex Info: Reading Gothic-Config: zTexMaxSize Info: Loading custom mesh C:\PROGRAM FILES (X86)\STEAM\STEAMAPPS\COMMON\GOTHIC II\system\GD3D11\meshes\unitSphere.obj Info: Loading 1 submeshes Warning: [GMesh.cpp(60), enum XRESULT thiscall GMesh::LoadMesh(const class std::basic_string<char,struct std::char_traits,class std::allocator > &,float)]: Mesh contains only 2 materials! This may not be what the creator wanted, please check your.mtl-File and the mtllib-reference in the .obj-File. Remember to delete the cache-file after a change! Info: Loading sky textures... Info: Instancing buffer too small (131072), need 205040 bytes. Recreating buffer. Info: Instancing buffer too small (205040), need 205200 bytes. Recreating buffer. Info: Instancing buffer too small (205200), need 205520 bytes. Recreating buffer. Info: Instancing buffer too small (205520), need 205680 bytes. Recreating buffer. Info: Instancing buffer too small (205680), need 349360 bytes. Recreating buffer. Info: Instancing buffer too small (349360), need 349520 bytes. Recreating buffer. Info: Instancing buffer too small (349520), need 353760 bytes. Recreating buffer. Info: Instancing buffer too small (353760), need 357120 bytes. Recreating buffer. Info: Instancing buffer too small (357120), need 357760 bytes. Recreating buffer. Info: Instancing buffer too small (357760), need 359120 bytes. Recreating buffer. Error: [D3D11GraphicsEngine.cpp(849), enum XRESULT thiscall D3D11GraphicsEngine::Present(void)]: Device Removed! (DXGI_ERROR_DEVICE_HUNG) Info: Shutting down... Info: DDRAW Proxy DLL signing off.

I tried it with an npc, with a static barrel mesh, etc.