Need Coding help from the ground up -1 reply

  • 1
  • 2

Please wait...

Guest

I didn't make it!

0 XP

 
#1 10 years ago

I have tried to edit the source code several times, but have gotten hundreds of errors when I try to compile it. My Pc recently crashed, so I thought I would try again on a fresh copy of JKA and windows. I downloaded Visual C++ 2008 express edition, along with the Jedi Academy SDK. I opened the Jedi_Academy_MP.sln file(The one the included tutorial told me to open.) using V C++. It said it got 4 about 4 warnings about unnsupported conversion commands or something. I continued with the included tutorial, setting the paths in the properties panel, and then changed rocked velocity to 300, and ran a test compile (f7 and f5). In the compile window, just about every command looked like it ran into an error, and when it was done, it said something like 1 failed, 0 success, and the dll didn't get generated. Does anyone have any Ideas what might be wrong, or where I can go for a more detailed tutorial about using Visual Basic to compile a basic mod? Any help would be appreciated, Thanks!




Guest

I didn't make it!

0 XP

 
#2 10 years ago

Well the basejka SDK needs changes to work with VS 2005/2008. Use OJP base source code. Works with the version that you have AND already have all the fixes for jka exploits.

Link: https://opensvn.csie.org/traccgi/ojp/browser/Basic/docs/OJP_Editing.html?format=raw




Deathspike

Freelance Programmer

50 XP

2nd May 2004

0 Uploads

129 Posts

0 Threads

#3 10 years ago

Or get 2003 edition. You can also just try this: Jedi Academy SDK Fixed, Jedi Knight 3 Downloads, Jedi Knight 3 Modding Tools




Guest

I didn't make it!

0 XP

 
#4 10 years ago

I would get the 2003 edition, but it seems there is no way to get it.




N-7

... and a nice big Cip-Quad

50 XP

21st September 2007

0 Uploads

579 Posts

0 Threads

#5 10 years ago

Try this:

In the files game/q_shared.h, game/qmath.c and cgame/cg_view.c, replace every occurrence of 'powf' with 'q_powf'.

Then add #pragma warning(disable : 4996) in the top of q_shared.h (right after the copyright notice).

Finally, in win32/JK2cgame.rc, replace #include "afxres.h"(line 10) with #include "WINRESRC.H"

But maybe you'd in deed be better off with OJP.




Guest

I didn't make it!

0 XP

 
#6 10 years ago

I tried what you said, nizwiz, and the conversion errors disappeared, but the build process still had the same errors. I also tried the updated SDK by that clan, but it didn't work either. Does anyone know where I can get VB C++ 2003? I looked on microsoft's website, but it seems they only have down to 2005 edition.

Ace, I also looked at that file you linked to, but it looks quite confusing.




N-7

... and a nice big Cip-Quad

50 XP

21st September 2007

0 Uploads

579 Posts

0 Threads

#7 10 years ago

Strange, I've done exactly what I indicated, and it worked for me (VC++ 2008 Express). Which compiler do you use?

Could you post the error messages you get?

[I won't be able to respond for the next 20 hours or so, so don't you be waiting, k?].




Guest

I didn't make it!

0 XP

 
#8 10 years ago

Heh, I am not sure what you mean by compiler, I think I just use the one included in the VB program. BTW, I used the 2005 version for what you said above. I will have to try it for the 2008 version. (I have both) I also just finished the long tedious process of downloading all of the files that Ace pointed out, so I'll see how that goes.




Guest

I didn't make it!

0 XP

 
#9 10 years ago

I tried everything posted above, and everything I can think of, including looking for VB C++ 2003.

Here is an idea that might make things easier for both of us: What if you simply took a fresh codemp folder, made all of the necessary changes including sample, and sent it to me telling what you did so I can analyze, compare, ect. If that would not work, do you have any other suggestions?

I thank you for your effort trying to help me, I just hope I can learn.




N-7

... and a nice big Cip-Quad

50 XP

21st September 2007

0 Uploads

579 Posts

0 Threads

#10 10 years ago

One more try, ok? Seems like I have yet only compiled the cgame duh, and in deed got errors compiling the other components; but I've fixed them, too: Remember the "afxres.h" fix above? You'll have to do the same in in32/JK2game.rc and win32/ui.rc, for one. And then, in botlib/l_precomp.cpp, find the two lines going like curtime = ctime((const long *)&t); and replace them with curtime = ctime((const time_t *)&t);If that still ain't work, copy the contents from the output pane and post it here.

EDIT: Nevermind, here are the fixed files:




  • 1
  • 2