Jump to content

NPC error


Recommended Posts

Posted

So im new to Jedi knight jedi academy and found out that you can put all the iconic charachters so i downloaded a lot of them and put them into the game but i put to many of them and now its says i need to get the files smaller to work.i was reading about a OpenJk that can make all of the npc usable at once but i dont know how do i use it if someone could help me that would be great !

Posted

so if i do this i can put more NPCs ?

it's necessary to change a little line of code on SP client for expand the buffer on NPC. Openjk however not get more the error of npc file too big.

simply, if you put too many NPCs, they aren't read, but you can edit the code about this.

go do npcs_stats.cpp

and change this:

 

// NPC parameters file : ext_data/NPCs/*.npc*
//
#define MAX_NPC_DATA_SIZE 0x40000

to

// NPC parameters file : ext_data/NPCs/*.npc*
//
#define MAX_NPC_DATA_SIZE 0x80000 // original is 0x40000

so you can get a double value of NPC files before overload the allocating buffer memory.

Pr0 n00b likes this
Posted

it's necessary to change a little line of code on SP client for expand the buffer on NPC. Openjk however not get more the error of npc file too big.

simply, if you put too many NPCs, they aren't read, but you can edit the code about this.

go do npcs_stats.cpp

and change this:

// NPC parameters file : ext_data/NPCs/*.npc*
//
#define MAX_NPC_DATA_SIZE 0x40000

to

// NPC parameters file : ext_data/NPCs/*.npc*
//
#define MAX_NPC_DATA_SIZE 0x80000 // original is 0x40000

so you can get a double value of NPC files before overload the allocating buffer memory.

I think i get it but just to be sure 

 

first download openjk then i find those values and change them 

Posted

I think i get it but just to be sure 

 

first download openjk then i find those values and change them 

yes,

0: install microsoft visual studio 2012 or superior.

1: download openjk

2: download cmake

3: make your solution with cmake following eezstreet tutorial.

4: locate and edit what i told.

5: build the SP client and SP dll.

6: put into gamedata (back up your dll and Jasp exe before)

Pr0 n00b likes this
Posted (edited)

yes,

0: install microsoft visual studio 2012 or superior.

1: download openjk

2: download cmake

3: make your solution with cmake following eezstreet tutorial.

4: locate and edit what i told.

5: build the SP client and SP dll.

6: put into gamedata (back up your dll and Jasp exe before)

Thanks friend you are really helpfull

edit: where can i find the tutorial for cmake

May the force be with you!

Edited by Pr0 n00b

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