Dusty Posted July 30, 2014 Posted July 30, 2014 Running into some errors. I got the snd_dma.cpp thing fixed by using VS 2013. Now the problem is though, I get some kind of error from ALL_BUILD or something... EDIT: Nvm. I gotz issues. Once I figure out exactly what all of them are I will post back here.
Dusty Posted July 30, 2014 Author Posted July 30, 2014 So I did compile everything, but when I run my custom exe from the Gamedata folder I get this:https://imageshack.com/i/exH1XlNdp
Xycaleth Posted July 30, 2014 Posted July 30, 2014 Have you made any changes to the code? That's a pretty serious error.
ensiform Posted July 31, 2014 Posted July 31, 2014 This sounds similar to what can happen when you delete a custom player model that was referenced by a save file in SP in debug mode.
Dusty Posted July 31, 2014 Author Posted July 31, 2014 Have you made any changes to the code? That's a pretty serious error. Yeah, there are some mods in there. Do you mean specifically in ui_main.cpp though? That seems to be the same as from OpenJK (the mod is a branch of OpenJK). Here's the link to the repo:https://github.com/DustysPatch/OpenJK Redsaurus should be able to help as he coded the mods and I think he got everything working, I just haven't been able to do so on my end yet. @@redsaurus:You've gotten your code to compile and work right? So far I've run into errors everytime. I used to get crashes in game the first time I tried a while ago to run the code mods (I'm leaving that up to me not doing things correctly) but now I've got this just building the current vanilla files from the repo. Does it work for you? EDIT: I also probably didn't set up my debug stuff right, so that may be part of the problem.
Dusty Posted August 9, 2014 Author Posted August 9, 2014 Ok, so got that whole business fixed. I needed to build the vanilla SP renderer and I didn't have some files in the right spots in the gamedata folder. Now, how do I set up a debug build for quickly testing changes?
ensiform Posted August 13, 2014 Posted August 13, 2014 1) Are you set for Debug or Release in the toolbar Dropdown? You obviously want Debug for Debug support.2) Right Click the project you want to debug and select properties, (IE SP Client)3) Under Configuration Properties there is Debugging worksheet, select that.4) Add +set fs_basepath "put the full path to gamedata here", example: +set fs_basepath "D:\Games\SWJKA\GameData"5) Put the same path in the Working Directory option., D:\Games\SWJKA\GameData NOTE: there should be no ending \ or / or quotes in this one6) Apply/Okay7) Right Click the same project and select "Set as Startup Project"8) Hit F5 or Debug Menu -> Start Debugging
Futuza Posted August 13, 2014 Posted August 13, 2014 1) Are you set for Debug or Release in the toolbar Dropdown? You obviously want Debug for Debug support.2) Right Click the project you want to debug and select properties, (IE SP Client)3) Under Configuration Properties there is Debugging worksheet, select that.4) Add +set fs_basepath "put the full path to gamedata here", example: +set fs_basepath "D:\Games\SWJKA\GameData"5) Put the same path in the Working Directory option., D:\Games\SWJKA\GameData NOTE: there should be no ending \ or / or quotes in this one6) Apply/Okay7) Right Click the same project and select "Set as Startup Project"8) Hit F5 or Debug Menu -> Start DebuggingInformation like this might be useful if there was a big faq list on the openjk github page. I know you aren't necessarily in charge of it, or that this isn't the best place to talk about that, but I think it'd probably help out a lot of people that are new to coding.
ensiform Posted August 13, 2014 Posted August 13, 2014 I shouldn't be responsible for teaching everyone how to use the software installed on their machine though.
Xycaleth Posted August 13, 2014 Posted August 13, 2014 All the debug stuff is useful. It's not something that everyone would know, even if they were a knowledgeable programmer.
Dusty Posted August 13, 2014 Author Posted August 13, 2014 ^It should either be on OpenJK's page or Eez's tutorial on setting up OpenJK methinks. Thanks for helping me out very much! I'll try it out later and let you guys know if I got it working.
Xycaleth Posted August 13, 2014 Posted August 13, 2014 Oh look... https://github.com/JACoders/OpenJK/wiki/Debugging-in-Visual-Studio
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now