13.09.2009, 20:51
Ok so I have a teleport system which uses a buffer to read/write from files, I do this using arrays and what not but I have thought of an issue which may occur in the future.
I have a dialog which gets it's format in a loop which contains all the teleport names (formats into itself and adds the '\n'), this gets added to the format string and grows at whatever the size the new name is but seeing how this loop will grow each time another point gets added it could end up needing a string which is frikkin huge (16k for 512 etc (32*512)). I can't have a string which is 16k+ cells, that's just frikkin stupid so what can I do to work around this ?
I'm currently using a string of 1024 cells and I have put a limit on the teleports upto 32, but that kind of low number defeats the point of it being dynamic. I currently have only five or so teleports in the array so that's only using like 160+ cells but after five I'm already at over ten percent of my limit for the string aren't I so this is what made me think about the issue (it hasn't happend yet, just thinking ahead).
If I could come up with a solution without the need to break the list into additional dilaogs then that would be great, any ideas ?
Thankyou for reading my essay.
I have a dialog which gets it's format in a loop which contains all the teleport names (formats into itself and adds the '\n'), this gets added to the format string and grows at whatever the size the new name is but seeing how this loop will grow each time another point gets added it could end up needing a string which is frikkin huge (16k for 512 etc (32*512)). I can't have a string which is 16k+ cells, that's just frikkin stupid so what can I do to work around this ?
I'm currently using a string of 1024 cells and I have put a limit on the teleports upto 32, but that kind of low number defeats the point of it being dynamic. I currently have only five or so teleports in the array so that's only using like 160+ cells but after five I'm already at over ten percent of my limit for the string aren't I so this is what made me think about the issue (it hasn't happend yet, just thinking ahead).
If I could come up with a solution without the need to break the list into additional dilaogs then that would be great, any ideas ?
Thankyou for reading my essay.