View Single Post
Re: Interesting Stripper2 problem, maybe someone can help?
Old
  (#6)
pl4tinum
Member
 
Status: Offline
Posts: 15
Join Date: Mar 2004
Default Re: Interesting Stripper2 problem, maybe someone can help? - 27-09-2004

This seems to be the part of his code that actually reads in the Stripper _str.cfg files. The char input[1024] couldn't possibly be part of the problem could it?

bool scan_stripper_cfg(FILE *fp)
{
char input[1024];
char item_name[64];
int len, pos, index;
float percent;
while (!feof(fp))
{
if (fgets(input, 1023, fp) != NULL)
{
len = strlen(input);
if (input[len-1] == '\n')
input[len-1] = 0;
}
else
input[0] = 0;


What about this, do these seem fine?

#define MAX_STRIP_ITEMS 400
#define MAX_ADD_KEYVALUE 1000
#define MAX_ADD_ITEMS 400
#define MAX_ADD_GROUPS 100
#define MAX_PRECACHE_ITEMS 100

I honestly doubt there is anywhere close to 400 items in one of my maps. Maybe 150-200 but not 400. And I don't write [add] before every part so [add] groups should be only 1. Do you think maybe it's limiting to 100 items?
  
Reply With Quote