Ulysses Stuff > General Chat & Help and Support
The lua box.
DannyMartinez:
But how do I turn the box into a code?
DannyMartinez:
And how do i put quotes? like with 2 of ' that?
DannyMartinez:
The code like thise?
--- Code: --- _ = nil -- Make sure we're starting out right.
local old__newindex = _G.__newindex
setmetatable( _G, _G )
function _G.__newindex( t, k, v )
if k == "_" then
-- If you care enough to fix bad scripts uncomment this following line.
-- error( "attempt to modify global variable '_'", 2 )
return
end
if old__newindex then
old__newindex( t, k, v )
else
rawset( t, k, v )
end
end
--- End code ---
spbogie:
Ok, I don't know how much easier I can make it.
1) Go to http://www.ulyssesmod.net and copy the code.
2) Open up notepad.
3) Paste the code you just coppied into notepad.
4) Save As...
5) Navigate to "<Steam directory>/SteamApps/<account name>/garrysmod/garrysmod/lua/autorun" for listen server, or "<SRCDS dir>/garrysmod/lua/autorun" for dedicated server"
6) Save the file as "underscorefix.lua" (With the qotes) ( " is < Shift + ' > )
If you can't get it from that then I'm sorry but I can't make it any easier.
DannyMartinez:
Thank you!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version