Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    File write limit

    Help
    2
    3
    236
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Skullo
      Skullo last edited by

      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!!

      1 Reply Last reply Reply Quote 0
      • Devieus
        Devieus last edited by

        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.

        Skullo 1 Reply Last reply Reply Quote 2
        • Skullo
          Skullo @Devieus last edited by

          @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!

          1 Reply Last reply Reply Quote 1
          • First post
            Last post