Asgarath83 Posted April 29, 2015 Share Posted April 29, 2015 I have a little simply question about coding, shot not be too many difficult.How is possible to expand the NPC and SAB file limitation number? Link to comment
eezstreet Posted May 3, 2015 Share Posted May 3, 2015 It's just a single #define. Search for the actual error that it throws when you get too many of them (".sab extensions are too large") and you should be able to find it easy. Link to comment
Asgarath83 Posted May 4, 2015 Author Share Posted May 4, 2015 It's just a single #define. Search for the actual error that it throws when you get too many of them (".sab extensions are too large") and you should be able to find it easy.Thanks eez Yes, with my edited open jk not make me this error. crash directly when i spawn an overflowing sab data.with "saber" cheat , and stop LOL. xdthis is one of the 2 crash i wanna fix of my exe... the other crash is about noghri stick, when projectile imbact against a body, it crash. =-= Link to comment
Asgarath83 Posted May 4, 2015 Author Share Posted May 4, 2015 /* This file is part of Jedi Academy. Jedi Academy is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version. Jedi Academy is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Jedi Academy. If not, see . */ // Copyright 2001-2013 Raven Software //wp_saberLoad.cpp // leave this line at the top for all NPC_xxxx.cpp files... #include "g_headers.h" #include "../qcommon/q_shared.h" #include "wp_saber.h" extern qboolean G_ParseLiteral( const char **data, const char *string ); extern saber_colors_t TranslateSaberColor( const char *name ); extern qboolean PM_SaberInStart( int move ); extern qboolean PM_SaberInTransition( int move ); extern qboolean PM_SaberInAttack( int move ); extern stringID_table_t FPTable[]; #define MAX_SABER_DATA_SIZE 0x80000 char SaberParms[MAX_SABER_DATA_SIZE];here is it, for SP, is on game/WP_SABERLOAD.cppfor MP is in codemp/bg_saberload.c how i need to edit the field 0x80000?how work the 0x "number" parameters? @@eezstreet. o.o Link to comment
Solution Stoiss Posted May 4, 2015 Solution Share Posted May 4, 2015 try give it at 0x100000 Link to comment
ehloismint Posted May 8, 2015 Share Posted May 8, 2015 Hey guys are you saying there is a way to remove the limit of .npc's for single player if you modify the .exe file? If so, how do we do this? Link to comment
Stoiss Posted May 8, 2015 Share Posted May 8, 2015 Yes there is search for this in the SP code or mp code and change it to the 0x800000 #define MAX_NPC_DATA_SIZE 0x40000For example doubling it to 0x80000. Link to comment
ehloismint Posted May 10, 2015 Share Posted May 10, 2015 Which .exe file and what program do I open it with to edit and save changes? Link to comment
Asgarath83 Posted May 12, 2015 Author Share Posted May 12, 2015 Which .exe file and what program do I open it with to edit and save changes?Microsoft visual studio 12 + OpenJK pack and code downloadable by the forum, + cmake for build the solution1 install Microsoft visual studio and all components.2 install Cmake3 download openjk4 build Openjk solution with Cmake5 Use visual studio to edit the file and build the dll and exe. Link to comment
ehloismint Posted May 14, 2015 Share Posted May 14, 2015 Thanks sir! Asgarath83 likes this Link to comment
Asgarath83 Posted May 16, 2015 Author Share Posted May 16, 2015 Any time, when all is working build with batch build the release of jagamesx86.dll and of openjk_sp86.exe . you can found your new exe and dll file into the release folder of the solution :3 Link to comment
ehloismint Posted May 31, 2015 Share Posted May 31, 2015 Asgarath83, I tried to do this but I am getting nowhere. Any chance you could send me your fixed .exe??? Asgarath83 likes this Link to comment
Asgarath83 Posted May 31, 2015 Author Share Posted May 31, 2015 Well, today i am coding... so i can do this. o.o for lucky i have an original copy of Openjk without my changes.wait. however this not remove the limit, this expand the limit. Link to comment
Asgarath83 Posted May 31, 2015 Author Share Posted May 31, 2015 Asgarath83, I tried to do this but I am getting nowhere. Any chance you could send me your fixed .exe??? Do it.https://www.sendspace.com/file/iaqtoe1 download here.2 back up your gamedata files of Jedi academy3 unzip to gamedata all files.4 start the MP game with openjkx86 and the SP game with openjk_sp.x86 exe.NOT use JASP or JAMP exe. they not work now.5: enjoy. you must have a large amount of more buff space into NPC and SAB file,.6 this work for SP and MP.7: i have not tried because i need to take my Exe for my mod on my gamedata. let me know if all works, but you should be not have any trouble. 8 exe of my legacy of kain mod are WIP when i learn every time some of new of coding. i cannot send to you also because they are very personal at moment and you should find many malfunction because many edit i done are setted to a specific assest of efx and gfx . otherwise i can send you an openjk that have as unique edit the NPC \ SAB buffer expansion. here is it! Link to comment
ehloismint Posted June 1, 2015 Share Posted June 1, 2015 Thank you sir, I will try it! Link to comment
ehloismint Posted December 29, 2017 Share Posted December 29, 2017 Can someone send me a fixed .exe that doesn't require OpenJK? Link to comment
eezstreet Posted December 29, 2017 Share Posted December 29, 2017 Can someone send me a fixed .exe that doesn't require OpenJK?It took me like 5+ hours of tooling to get the Jedi Knight 2 SP code to compile, I don't intend to do the same again here.Why not just use OpenJK and edit it? Smoo likes this Link to comment
ehloismint Posted December 30, 2017 Share Posted December 30, 2017 I don't like OpenJK. C'mon if you can do it, send me a paypal request for your time....lol Link to comment
eezstreet Posted December 30, 2017 Share Posted December 30, 2017 I don't like OpenJK. C'mon if you can do it, send me a paypal request for your time....lolWhy? Link to comment
ehloismint Posted January 4, 2018 Share Posted January 4, 2018 Why not? LOL. I don't want to use OpenJK. Link to comment
RecklessJames Posted February 24, 2018 Share Posted February 24, 2018 "Aww c'mooon, if it's money you want then name ur price!" Link to comment
Sapo-san Posted March 27, 2018 Share Posted March 27, 2018 Microsoft visual studio 12 + OpenJK pack and code downloadable by the forum, + cmake for build the solution1 install Microsoft visual studio and all components.2 install Cmake3 download openjk4 build Openjk solution with Cmake5 Use visual studio to edit the file and build the dll and exe.if it's not a bother, could you please be a bit more specific? I literally downloaded and installed both cmake and and visual studio 2012 just to edit the code thanks in advance Asgarath83 likes this Link to comment
Tempust85 Posted March 27, 2018 Share Posted March 27, 2018 If the define is in game code and you hate openjk, just edit the old mp sdk code? Asgarath83 likes this Link to comment
Asgarath83 Posted March 28, 2018 Author Share Posted March 28, 2018 if it's not a bother, could you please be a bit more specific? I literally downloaded and installed both cmake and and visual studio 2012 just to edit the code thanks in advance Not Problem D: Link to comment
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