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 … 9 10 11 12 13 … 18 Next »
IO and compileString issues/broken
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
IO and compileString issues/broken
07-02-2016, 07:38 AM, (This post was last modified: 07-02-2016, 09:01 AM by Red The Blue Color.)
#1
Red The Blue Color Offline
TSCM Super Donating Member
****
Posts: 422
Threads: 34
Joined: Feb 2015
IO and compileString issues/broken
Everytime i try to :read("*a") any file it just errors with
addons/starfall/lua/starfall/libraries/libs_sh/io.lua:592: bad argument #1 to 'StringMatch' (string expected, got nil)

I even got pretty desperate and attempted to use Loc's mainframe since it uses files. Same problem

Reproduce error:

if not files.exists("rtbmf.txt") then
local RawFile = io.open("rtbmf.txt","w")
RawFile:write("test")
RawFile:close()
end
local RawFile = io.open("rtbmf.txt","r")
print(RawFile:read("*a"))

EDIT: compileString() appears to be broken aswell since it just returns nil no matter what happens
[SF - ERROR] SF:rtbctech/RTBMF.txt:532: attempt to call a nil value
compileString("print('test')")()
that error prob isn't helpful but im sure you get the point

"with it's superior software, i have no doubt it will succeed in finding fuck all" - T-17, 2016

[Super Member] [ENCOM] т-ѕсм.Red The Blue Color™: server do you support Hitler?
[Server] srcds_linux: The probabilty is about 99.99%, so interpret that how you want to.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
IO and compileString issues/broken - by Red The Blue Color - 07-02-2016, 07:38 AM
RE: IO issues/broken - by Yuri6037 - 07-02-2016, 08:39 AM
RE: IO issues/broken - by Red The Blue Color - 07-02-2016, 08:59 AM
RE: IO and compileString issues/broken - by Yuri6037 - 07-02-2016, 01:49 PM
RE: IO and compileString issues/broken - by TheOneAndOnlyTee - 07-02-2016, 11:33 AM
RE: IO and compileString issues/broken - by Person8880 - 07-02-2016, 12:23 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.