issue with files over 16k

Discussions about modding, questions, mod requests or just show off what you're working on.
Post Reply
shady
Posts: 10
Joined: 01 Feb 2016, 14:01

issue with files over 16k

Post by shady »

anyone else had the issue with executing files over 16K, i get the cbuf_inserttext overflowed error message I know its a buffer issue ive tried increasing a few buffers from the serverside but I think its going to require a bit more since the jk2 exe is what controls it. Has anyone found a good way to fix this?
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: issue with files over 16k

Post by ouned »

why do you have such big script files? ^^
shady
Posts: 10
Joined: 01 Feb 2016, 14:01

Re: issue with files over 16k

Post by shady »

its something I wanna do with the mapping system, do you know to increase the buffers or override this error from the serverside?
User avatar
Daggolin
Administrator
Posts: 794
Joined: 23 Feb 2015, 13:05

Re: issue with files over 16k

Post by Daggolin »

If the buffer is in the engine you can only increase its size in the engine. Overriding the error won't do you any good either, as the buffer would still be limited in size and therefor unable to hold all the data you want it to hold (overriding the error shouldn't be possible within a qvm anyway).
shady
Posts: 10
Joined: 01 Feb 2016, 14:01

Re: issue with files over 16k

Post by shady »

But there has to be a way to use files over 16k in size ?
User avatar
Miso
Posts: 170
Joined: 24 Feb 2015, 02:41
Location: Massachusetts / United States

Re: issue with files over 16k

Post by Miso »

Daggolin wrote:If the buffer is in the engine you can only increase its size in the engine.
Jj.miso
shady
Posts: 10
Joined: 01 Feb 2016, 14:01

Re: issue with files over 16k

Post by shady »

I understand that but Daggolin also told me that he uses files well over 16k so i know thers a way to do it.
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: issue with files over 16k

Post by ouned »

you can manually read the file and parse it by yourself.
have a look at sscanf maybe that's enough for your use case.

if not, explain what exactly your plan is, maybe someone comes up with a better solution
shady
Posts: 10
Joined: 01 Feb 2016, 14:01

Re: issue with files over 16k

Post by shady »

What im trying to do is to create a file, with every entity inside of the map. like ffa_deathstar. So that way I can use this entitylist instead of the game one and be able to edit things without recompiling the map. So I have a command that save every entity and its properties to a file, however when the file is over 16k, it refuses to load i get a cbuf_inserttext overflow error.
User avatar
ouned
Administrator
Posts: 596
Joined: 23 Feb 2015, 13:03
Location: Gliese581c

Re: issue with files over 16k

Post by ouned »

make your own file format for that purpose.
its easy
shady
Posts: 10
Joined: 01 Feb 2016, 14:01

Re: issue with files over 16k

Post by shady »

like just creating a differet extension? you have to elaborate a bit more
Post Reply
Created by Matti from StylesFactory.pl and Warlords of Draenor (modified by jk2.info)
Powered by phpBB® Forum Software © phpBB Limited
 

 

cron