keo718 Posted July 2, 2002 Posted July 2, 2002 I noticed a slight limitation with the scaling mod. It seems that tckmodel.cfg can have only a maximum file size of 512k. Anything beyond that and you get an error message and it does not work; the characters show up at the default size. Are any of you aware of this or have any idea how one could get around that? Thanks in advance.
Jaii der Herr Posted July 2, 2002 Posted July 2, 2002 it's extremly simple... but at first you should change the file buffer to work correctly. If you do that you can implement any file size restriktion you want
Dest Posted July 2, 2002 Posted July 2, 2002 yeah. I was going to make it so it could handle any file size by using new and delete but I couldnt find anywhere else in the source where they used new/malloc or delete/free so I just made it 1024 for size.
keo718 Posted July 2, 2002 Author Posted July 2, 2002 I'm not a coder by the way... so simple details would help.
Jaii der Herr Posted July 2, 2002 Posted July 2, 2002 Quote Originally posted by Dest yeah. I was going to make it so it could handle any file size by using new and delete but I couldnt find anywhere else in the source where they used new/malloc or delete/free so I just made it 1024 for size. Q3 is not using dynamical memory. Thats why it's nowere used. Beside the QVM does not support that memory. It's much safer thas way.
keo718 Posted July 2, 2002 Author Posted July 2, 2002 Hey Jaii der Herr, do you know how tochange the file size? How do you change the file buffer?
Dest Posted July 2, 2002 Posted July 2, 2002 look for the variable buffer. char * buffer is how I think he had it. Its in a tck struct. change that to char buffer[1024] then look for tck.buffer and find where it has the 512 size limit and change that 512 to 1024. Or you can just download my fixed version which is in another thread on here.
Jaii der Herr Posted July 2, 2002 Posted July 2, 2002 thats how it works... btw: have you testet whith switching models allot? I think there is an error witch makes them scaled to 1. That would explain some errors poeple reportet. Or have you changed something else in tck_ScaleModel() ?
keo718 Posted July 2, 2002 Author Posted July 2, 2002 "look for the variable buffer. char * buffer is how I think he had it. Its in a tck struct. change that to char buffer[1024] then look for tck.buffer and find where it has the 512 size limit and change that 512 to 1024." Within which file can I find these buffers?
Jaii der Herr Posted July 2, 2002 Posted July 2, 2002 line 168 in "bg_public.h" typedef struct { qhandle_t saber_glow; qhandle_t saber_int; qhandle_t saber_ext; int serverextended; tck_ps_t ps[MAX_GENTITIES]; char * buffer; qboolean bfreg; } tck_t; to char buffer[1024]; "g_client.c": line 1133 tck.buffer[0] = '\0' line 1141 if ( len >= 1024 )
Dest Posted July 2, 2002 Posted July 2, 2002 No all I changed was taking out the 0.5-1.5 limit and adding correct code for the buffer.
Dest Posted July 2, 2002 Posted July 2, 2002 I actually did a memset(tck.buffer,0,1024); instead of tck.buffer[0]='\0'; That way I know the whole buffer is cleared first and I dont have to put a \0 on the end or anything.
keo718 Posted July 2, 2002 Author Posted July 2, 2002 Ok, all of these terms are greek to me. Please someone, if you can, give me a step by step process of how to increase the max file size of the tckmodel.cfg file from 512k to maybe 1024k. Please include what files I need to edit, and where I can find the files to edit them. I would greatly appreciate this.
Jaii der Herr Posted July 2, 2002 Posted July 2, 2002 More than I have written I cannot do for you... there are the file names and the lines and what to change...
Dest Posted July 3, 2002 Posted July 3, 2002 Why don't you just download my fixed version of the mod that has this?
keo718 Posted July 3, 2002 Author Posted July 3, 2002 I did download it. However I still keep getting the same error messages about the file being too big. You said you changed it from 512k to 1024k right?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.