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
Linear Mode
File Save
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 »


Messages In This Thread
File Save - by 4N0NYM - 30-06-2019, 12:34 PM
RE: File Save - by Person8880 - 30-06-2019, 02:26 PM

  • 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.