Jump to content
The Dark Mod Forums

help with debbugging fhdoom engine


HMart

Recommended Posts

Hello guys i decided to mess with the fhDoom engine, to learn how to code on c++ and perhaps use it for a game, first i most say i'm only starting to learn how to mess with Visual studio, so be gentle ;P, i use the 2015 version btw, i'm pretty sure that i'm missing something basic, i can compile the project just fine but i just can't debug any code, here is what happening, every time i try to debug a file it complains about being unable to find ALL_BUILD on the home project \Debug, but the build doesn't save the .exe/pdb files on that directory, but on the bin\Debug directory, if i attach a running instance of the fhdoom .exe and use DEBUG->WINDOWS->MODULES, i see that it complains about being unable to find symbols or .pdb files for a bunch of microsoft DLL's, including a Avast antivirus dll?!, is this whats preventing me from debugging?

Link to comment
Share on other sites

Thanks i will do, just expected that someone more knowledgeable with the idtech 4 engine source could be of help.

 

 

rant:

Man but working with the fhDoom source without being able to debug it is really frustrating, code that looks fine to me and compiles fine, crash's the game, without knowing what caused the crash, i can only disable my code one by one and see what part causes the crash, disable some code -> compile (takes several seconds) -> copy to game folder .exe and dll's -> start test map -> crash, repeat, a frustrating workflow...

Link to comment
Share on other sites

Found the solution!!!

 

Here is it on this link

 

https://stackoverflow.com/questions/7013309/visual-studio-debugger-error-unable-to-start-program-specified-file-cannot-be-f

 

 

Just set any project that really creates a exe as the startup project in VS, like on the link ALL_BUILD on fhDoom does not create a exe so i made fhDoom project the start project and the debugger started! So happy now that i don't need to do the above "debugging" workflow. :)

 

 

edit: The above solution doesn't solve the problem entirely and also the problem of debugging the dll's, to successfully debug the engine .exe you need to debug the .exe, IN THE GAME FOLDER, not the one on the bin\Debug folder, then you need to set on the file project->options->debugging:

 

command: path to the .exe name in the game folder

command arguments: Here you put any idtech 4 arguments that you use when calling the exe. for example, +set fs_game myMod +set fullscreen 0, etc

working directory: In here you put the game home directory where the .exe is.

 

Only by doing this was i able to successfully set breakpoints and debug the code. :)

Edited by HMart
Link to comment
Share on other sites

Yeah, that sounds about right. I would suggest, as with any kind of creative endeavor, to really strip it down, focus solely on what counts, what makes it work, unique. Like in TDM for example, there's no conversation system, no friendlies routine, the AI is perfected solely for what the game wants to be. You can make something like a Slender Man game, just a simple premise, and make it work 100% inside those limits. Thats what I would do. Good luck.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 1 reply
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
×
×
  • Create New...