-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed assertions trying to get into 3D mode #13
Comments
Hmm, regarding to the Code: 80070057 Errors, lookslike it cannot access some Bitmap/Imagefile and create an Texturemap. Maybe it cannot find the needed imagefile (file not found) or the image file format is not as expected.This looks like an COM (Component Object Modell) Error: HRESULT: 0x80070057 (2147942487) Name of the Exception: is: E_INVALIDARG. Maybe you can bypass it, but you get texture rendering errors in the scene. |
@PeterMeyer Did you tried to by pass it and get to the 3D environment? |
@PlutoniumHeart bool TextureHandle::Load(UInt16 mip, UInt chroma, UInt8 *TexBuffer, bool bDoNotLoadBits, bool bDoNotCopyBits, int nImageDataStride) and set return to false. Now the Consolelog output has changed to: sion: 0, Build: 0 Now a new Error is raised: Message: Expression: map/set Interator not incrementable If you ignore it it occurs again with: The debugger holds at: (deep in the Microsoftland) C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\crt\src\dbghook.c Line:67 __declspec(noinline) This condition is showing in Release and Debug config. This maybe has to to with the Debug Hook There is an Stackoverflow Post where a Programmer migrating from VS2003 to VS2010 has also to do |
@PeterMeyer I am still very much puzzled by the file structure of the FF6 and the EXE code we have, I was thinking that the tac reference uses the same 3D engine, so it would be easier to check that out first, but it keeps asking me for a strange file for the f-18 CFA18A.tga, there is no such file available, and so it fails, and the tacref also triggered the same assertion failure. I believe no texture file are readin what so ever because of the different file structure. I think someone mentioned something about a working code using VS2003? I would be surprised if the code works with FF6 installation. And I would really love to have a look at that too. |
I can actually see the F-18's model being rendered and is interactive with all the viewing controls, in the tac ref. by commeting out the assertion if else statement, but if I tab out to the desktop and tab back in it disappears... I am wondering why void TextureBankClass::Reference(int id) function only updates the refCount but not doing any texture reading, everything indicates that it should. Can someone tell me where the texture is read in? |
I just created a release build of the exe and put it in the FF6 folder, it looks like a lot of issues are only present in the debug build, I don't know why, with debug build in the tacRef, if you view more than 3 aircrafts, and then go back to a already viewed one, it give assertion failure and other more errors until the program crashes, but in the release it doesn't have this issue. Also in the relase the splash screen before entering the 3D actually goes to the last step before crash, but in the debug, it can't even go through the first step. |
I can't imagine it's any of the |
I don't know if it is the right question to ask, but how did the old FF team do their business? Are those bugs we are having now only appeared when the code was moved to VS2010? |
@PlutoniumHeart |
Regarding Datafiles: |
This are the Registryvalues. Just change it to an another FreeFalcon Version No Directory and you completely diffrent FFViper.exe Results: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MicroProse] [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\MicroProse\Falcon\4.0\MPR] |
Regading missing texture. |
#17 made a lot of progress on this issue. |
I have the RV Code as well and i didnt compile on VS2010. But this is not the topic here. |
okay i look a bit into the texture stuff, and it seems the tactical ref loads textures if u change to: TexturePool[id].tex.flags = MPR_TI_DDS; odly the function seemd to be in a status of rewriting note https://github.com/FreeFalcon/freefalcon-central/blob/develop/src/graphics/bsplib/texbank.cpp#L660-L771 i hope this helps im totaly new to C++ and not realy sure what i actualy changed^^ |
okay i also removed the stuff that tries to load .tga files, since i am a bit more confident about what i did there i try d the git stuff. |
Right as the first plane is lit up on the loading screen, there are two assertions that fail. Both message boxes pop up at roughly the same time, so let's look at these first.
One of them occurs in this switch.
m_eSurfFmt
is set toD3DX_SF_UNKNOWN
at this point, and the switch falls through to the default case where there's a rather stupid way of erroring out (ShiAssert(false)
? WTF).The other simultaneous error is from this assertion here.
Accompanying these is this message on the console:
The text was updated successfully, but these errors were encountered: