-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDevNotes.txt
More file actions
39 lines (32 loc) · 2.04 KB
/
DevNotes.txt
File metadata and controls
39 lines (32 loc) · 2.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
DEVELOPING NOTES...
-------------------------------------------------
| Fix searching in VS 2003 on Vista or newer OS |
-------------------------------------------------
Go to the VS 2003 directory, right click on the binary .exe and click Properties.
Then click on the Compatability tab, and check Disable visual themes,
Disable desktop composition, and Disable display scaling on high DPI settings.
--------------------
| Build in VS 2008 |
--------------------
On the JK2cgame project, right click on it, click Properties, click on C/C++,
click on Preprocessor. On Preprocessor Definitions on the end, add...
";_CRT_SECURE_NO_WARNINGS;_CRT_NONSTDC_NO_DEPRECATE"
--------------------
| Debug in Windows |
--------------------
1. Open JKA_mp(SDK).sln
2. Select the JK2Game item underJKA_mp(SDK) and right click Project->Properties
3. Select Debugging under Configuration Properties:
-set the "Command" to your jaMP.exe (e.g. C:\Program Files (x86)\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData\jamp.exe)
-set the "Command arguments" to: +set fs_cdpath "C:\Program Files (x86)\LucasArts\Star Wars Jedi Knight Jedi Academy\GameData" +set fs_dirbeforepak 1 +set sv_pure 0 +set r_fullscreen 0 +set viewlog 1 +set fs_game clanmod
-set the "Working Directory" to your code path. e.g. "I:\Projects\ClanMod\codemp\Debug"
4. hit f5 to launch the game.
------------------
| Debug in Linux |
------------------
1. Open the Makefile with gedit or vi and add the "-g" argument to the compile to build a debug jampgame file.
2. Open a terminal if you're using Desktop and use the command "gdb". Install GDB if you're missing the command.
NOTE: Try "sudo apt-get install libc6-dbg gdb valgrind" to install gdb if you're using Ubuntu.
3. Once the "gdb" prefix shows to the left in terminal, type in "file (path to openjkded)/openjkded.debug.x86_64"
4. After that, use the command "run (path to openjkded)/openjkded.debug.x86_64 +set fs_game clanmod +exec server.cfg"
5. If it crashes, use the command "where" to be given the path of executation before the crash happened.