Jump to content

Welcome to Gaming On Steroids Forums
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account
Photo

Upcoming updates..


  • Please log in to reply
12 replies to this topic

#1
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

Since Inspired.lua is updated and devs need to change their code in scripts, i wanted to let you know the steps to do exactly in order for the script to work fine :) the scripts will still work fine until the inspired.lua is pushed.

 

the gos events will all be broken, like this code won't work

OnTick(function()
print("blabla")
end)

no error will appear and nothing will happen, but this will work fine :

function OnTick()
print("blabla")
end

so you need to either change your gos events or call this function to your script if you still prefer the old gos events : OldCallbacks() ex:

OldCallbacks() 
 
OnTick(function()
print("blabla") 
end)
 
OnDraw(function()
print("blabla") 
end)

  • 0

#2
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,016 posts
What happens to scripts with devs who have abandoned them?
 
Who will update (or rather add OldCallbacks() )

Isn't there a way to detect if script is trying to access the old callbacks by default?
  • 0

#3
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

What happens to scripts with devs who have abandoned them?
 
Who will update (or rather add OldCallbacks() )

Isn't there a way to detect if script is trying to access the old callbacks by default?

yupgood point in that, i guess we gonna wait what inspired will do


  • 0

#4
Cloud

Cloud

    KAPPA

  • Ex-Staff
  • PipPipPip
  • 1,498 posts

My best bet would be to io.read

io.read

:find

and if it contains the Inspired_new then its a new script else it is an old scirpt and it writes OldCallbacks() to it and saves


  • 0

#5
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland
I'll try to come up with something
  • 0

#6
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

io.read
:find
and if it contains the Inspired_new then its a new script else it is an old scirpt and it writes OldCallbacks() to it and saves


  • 0

#7
ilovesona

ilovesona

    Sona's wife

  • Contributor
  • 1,096 posts

so OnTick is from inspired? rip my life FeelsBadMan


  • 0

#8
Icesythe7

Icesythe7

    Forum Manager

  • Contributor
  • 181 posts

Always have to find some work around to accomodate the people that vanish and don't update their scripts...seems fair glad we cater to them FeelsBadMan


  • 0

#9
Feretorix

Feretorix

    Administrator

  • Administrators
  • 3,016 posts
I just care for the poor people having no choice but to use abandoned scripts, since some champs have only one script for them.
  • 0

#10
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland

OldCallbacks() will now get called automatically and you have to call NewCallbacks() for new scripts instead in order to not break the oh so good and many and awesome old scripts.


  • 0

#11
Deftsu

Deftsu

    donthackourgames

  • Ex-Core Dev
  • PipPipPip
  • 4,812 posts

OldCallbacks() will now get called automatically and you have to call NewCallbacks() for new scripts instead in order to not break the oh so good and many and awesome old scripts.

ZGHZOIHGBZIHGUZEHRONZJNJ Kappa


  • 0

#12
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

OldCallbacks() will now get called automatically and you have to call NewCallbacks() for new scripts instead in order to not break the oh so good and many and awesome old scripts.

Keepo


  • 0

#13
Inspired

Inspired

    Took the red pill.

  • Ex-Core Dev
  • PipPipPip
  • 723 posts
  • LocationWonderland

Or you just use Callback.Add which works without calling anything. :fappa:


  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users