Page MenuHomeFeedback Tracker

Bug/Unintentional change to File I/O
Closed, ResolvedPublic

Description

After the update to version 1.0, good job by the way, all file I/O done by the modding community seems to have a cap on how big of a file it can read, and write. This causes huge issues for all mod makers, we use File I/O to export information which the server ends up using to load features on start. It has completely broken some add-ons on the workshop, and only limits the imagination of mod makers as time moves on. Please change.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
N/A
Category
Scripting
Steps To Reproduce

Use EnforceScript to export something like JSON information, or just a huge text file.

Event Timeline

Thanks! The update 1.0 introduced some limitations to the file writing capability of the scripts. The file count and individual file sizes are limited. While we could alter the file size limit (reasonably), it's very likely that the overall cap will remain the same.

tom_48_97 changed the task status from New to Need More Info.Dec 18 2018, 1:49 AM
tom_48_97 claimed this task.

So, you are going to force us to write a bunch of 18kb files?

https://user-images.githubusercontent.com/45860646/50010276-f66f7400-ff86-11e8-8211-551a3a473945.PNG

For instance, we have a json file which holds all of the spawn points the server owners choose to allow their players to spawn at; however, due to either File I/O, or file serialization. Now, we cannot export these files. It simply will not write them, and I would assume that wouldn't read them either.

Please Tom, let me know if there is anything you need from me, or if I have to find a better way to explain what is being experienced.

tom_48_97 added a comment.EditedDec 18 2018, 11:14 AM

Thanks for the details. The file size limit should be 5MB and not 18kb. Can you share some logs?

Let me know, if there was something else you rather than what I provided.

The file limit has been fixed, it should appear in the game with the next update or the following one.

tom_48_97 closed this task as Resolved.Dec 18 2018, 12:13 PM
Jacob_Mango added a subscriber: Jacob_Mango.EditedDec 21 2018, 4:12 AM

5MB is still way too small. Instead of doing it per individual file size, make it so there is a cap of 500mb per folder.

Also make it so server owners have the option of modifying the max cap for folder sizes and so they can enable the creation of folders.

If you won't give us native code execution through extensions or CURL support (even through the hive backend), you should atleast do this for us otherwise, like Paul said in the other thread, without this mods such as HypeTrain or Community Online Tools are effectively dead.