Jump to content

Expand SAB \ NPC files limit


Go to solution Solved by Stoiss,

Recommended Posts

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. xd

this 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

 

/*
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.cpp

for 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

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 solution

1 install Microsoft visual studio and all components.

2 install Cmake

3 download openjk

4 build Openjk solution with Cmake

5 Use visual studio to edit the file and build the dll and exe.

Link to comment
  • 2 weeks later...

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/iaqtoe

1 download here.

2 back up your gamedata files of Jedi academy

3 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
  • 2 years later...
  • 1 month later...
  • 1 month later...

Microsoft visual studio 12 + OpenJK pack and code downloadable by the forum, + cmake for build the solution

1 install Microsoft visual studio and all components.

2 install Cmake

3 download openjk

4 build Openjk solution with Cmake

5 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...