Team Spartan Cookies & Milk Forums
KeyUse Issue - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: KeyUse Issue (/thread-880.html)



KeyUse Issue - LocInt - 24-04-2015

I didn't do any changes to my code and suddnely today when i do v:keyUse(), it seems to spam my console full of errors. I have IsValid(v) before

Code:
if(v:keyUse()) then

Also T-16 is having same issue.

Code:
SF:starfall/ENCOM_mainframe.txt:1875: attempt to call method 'keyUse' (a nil value) Oh noes! An error: SF:starfall/ENCOM_mainframe.txt:1875: attempt to call method 'keyUse' (a nil value)



RE: KeyUse Issue - Person8880 - 24-04-2015

Should be:
if v:keyDown( input.IN_USE ) then



RE: KeyUse Issue - LocInt - 24-04-2015

(24-04-2015, 05:37 PM)Person8880 Wrote: Should be:
if v:keyDown( input.IN_USE ) then

Since when????


RE: KeyUse Issue - Person8880 - 24-04-2015

Since forever. Those keyBlah functions were stupid additions that conflicted with keyDown(), hence their removal.


RE: KeyUse Issue - LocInt - 24-04-2015

(24-04-2015, 05:53 PM)Person8880 Wrote: Since forever. Those keyBlah functions were stupid additions that conflicted with keyDown(), hence their removal.

Sad((((((((


RE: KeyUse Issue - Person8880 - 24-04-2015

They're like doing this:
function Equals1( Value ) return Value == 1 end
function Equals2( Value ) return Value == 2 end
function Equals3( Value ) return Value == 3 end
-- ...and so on
They had to be removed rather than deprecated otherwise people would still use them (see loadLibrary and the amount of people still using it even now).


RE: KeyUse Issue - LocInt - 24-04-2015

(24-04-2015, 06:05 PM)Person8880 Wrote: They're like doing this:
function Equals1( Value ) return Value == 1 end
function Equals2( Value ) return Value == 2 end
function Equals3( Value ) return Value == 3 end
-- ...and so on
They had to be removed rather than deprecated otherwise people would still use them (see loadLibrary and the amount of people still using it even now).

True I agree. You should definetly remove all those deprecated functions instead of keeping them to force people make changes.