Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 … 4 5 6 7 8 … 18 Next »
File Save
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode
File Save
30-06-2019, 12:34 PM, (This post was last modified: 30-06-2019, 12:36 PM by 4N0NYM. Edited 1 time in total.)
#1
4N0NYM Offline
absens
****
Posts: 561
Threads: 211
Joined: Dec 2014
Question  File Save
Hey,

Is there a way to see what Files exist ?
Also where are they saved and what limits do we have ?
Find
Reply
30-06-2019, 02:26 PM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: File Save
You can use files.list() to return a table containing the names of all files stored (on the server or on your own client instance, you can't see files for other players).

Where files are saved depends on where you've used the file/io libraries. On the server, files are saved to a player-unique folder on the server itself. On the client, files are saved in your data folder under data/starfallscriptdata/<STEAM ID>.

As for limits, I've added a few new functions to provide the limits:
  • files.getMaxNumFiles() - returns the maximum number of files you can store at a given time.
  • files.getMaxSize() - returns the maximum size a single file can be.
It's also worth noting that you can change these limits for files saved to your client using the convars:
  • sf_io_maxfilecount_cl - defaults to 20.
  • sf_io_maxfilesize_cl - defaults to 10240 bytes (10KiB).
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
Forum Jump:


Users browsing this thread: 1 Guest(s)
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.