Jump to content

Home

Issues with changes taking effect


cmos

Recommended Posts

I would like to state that I've never coded for a Quake based game before. I am a very experienced programmer in the field game engine design.

However, here is my question. I have compiled DLL files made my changes, and now I am ready to move into the debugging phase. My question is this, what are the exact steps for getting the changes to take effect within the game? I've attached JK2MP.exe to the debugger with the commandline +set fs_cdpath x:\jedioutcast +set r_fullscreen 0 +set viewlog 1 +set fs_game TestMod" to start the mod. x:\jedioutcast is my base directory. I start debugging, and my VS.net debugger attaches to the process correctly. Everything seems to start fine, except once the game loads, my changes have not taken hold, even the more simple ones as described in the simplemod file.

 

Also, when they say "YourJK2Path" do they mean the base directory, gamedata or somthing else completely?

 

Thanks,

cmos

Link to comment
Share on other sites

Well, I have yet to get DLL's loaded myself into the game, so right now I have been building the VMs for testing. Maybe you can try that untill someone who knows how to get the game started using DLLs comes along. :jawa

 

And generally, "YourJK2Path" represents INSTALLDIR\GameData, as the game files are in that.. I myself moved the files out of the GameData and placed them in INSTALLDIR as I don't use the launcher.

Link to comment
Share on other sites

If you want to check if jk2mp.exe is loading your DLLs, you can either check the log (+set viewlog 1) for the following sentence"

loading <module> dll instead of loading <module>.qvm.

 

You can allso drop down the console and type /vm_game and if it's value = 2 then it's loaded.

 

Goodluck

Link to comment
Share on other sites

OK - well, I still can't get it to work. So I'm going to ask one last question - and then I'm just gonna bite the bullet and make .qvm files every time I wanna test some code. (Even though that's a major pain in the arse IMO - but...)

 

I just want to double check that the name that has been set for the output DLL is correct. This the DLL that my set-up is creating:

 

JK2_game.dll

 

Is this correct? The only reason I ask is because in the console output it says...

 

Loading dll file jk2mpgame

Failed to load dll. looking for qvm

 

and so on...

 

SO, that sounds to me like it's looking for a file called:

 

jk2mpgame.dll

 

I tried re-naming it to this - but it still made no difference...

Link to comment
Share on other sites

YESS!!!!!!!!!!!

 

That did the trick. Thx a lot normal.

 

I would suggest that goes into your resources thread:

 

Quote from MakeAMod.txt:

4. On the link tab, change path of the "Output file name" to your TestMod directory

 

This really should be more specific - i.e. what the NAME of the output file needs to be. Because - at least for me - my project wasn't set up to produce the right file name for the DLL.

 

So, for game - it's jk2mpgamex86.dll

 

Does that mean that:

For cgame: jk2mpcgamex86.dll

For ui: jk2mpuix86.dll

 

?

Link to comment
Share on other sites

Hm. I found that the relative path and the filenames were already included in the project settings when I loaded the code. You shouldn't really need to touch them since they are relative, unless you want to not have them built into the Release/Debug/Final directories...

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...