File write limit
-
Hi guys!
After upgrading Fuze to the latest version I'm getting in my project the warning "File write limit..." every time I do write in the game file.
Is there any best practices to use write() function?
Below is an example of how I'm using write() function in my project:
handle = open() offset = ... for i = 0 to len(selection) loop c = selection[i] pos_to_write = offset + ( c * 7 ) + 3 seek(handle, pos) write(handle, Characters[c].item) repeat close(handle)
I guess there is a better way to use open, write and close file functions!
Thanks in advance!!
-
You need to wait 5 seconds before you can write again. It's not clear what your context is here, but it's probably better to make a string first and then write that in one go.
-
@devieus wow, I didn't know about the 5 seconds cooldown. I guess I could read the whole game file and construct the string to do just one write as you said. I will think about it. Thank you very much!