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

Error regarding GoS Base ( <-- thinks it must have something to do with GetOrigin)

GoS Base may get Origin

  • Please log in to reply
8 replies to this topic

#1
ThisIsNot4Sale

ThisIsNot4Sale

    Newbie

  • Members
  • 8 posts
  • LocationFar East Coast

Greetings everyone,
 
got the following error
 
OnTick[String "_GosBase.lua"]:2293:attempt to index local `p2` a (number value)    ( OFFTOPIC::: cant screenshot because i screwed with my d3d9.dll so none of the following work anymore XD --> snipping tool, paint, any other picture viewer )
 
My Question is. What exactly is written there? is it some GetOrigin formula ? any way to circumvente that?
 
This Error is appearing only when around enemy champion ( doesnt cast skillshots anymore )
 
Started after i messed with the following

if Validtarget(target, ERange) and IsInDistance(target, ERange) then
   local EPred = GetPredictionForPlayer(myHeroPos, target, GetMoveSpeed(target),1400,250,ERange,55,true,true)
   if CanUseSpell(myHero,_E) == READY then
      CastSkillShot(_E,EPred.PredPos.x,EPred.PredPos.y,EPred.PredPos.z)
   end
end

Could also be because of that 

function FindNearestEnemyMinion()
local NearestEnemyMinion = nil
  for i, eminion in pairs(minionManager.objects) do
    if eminion and eminion.team ~= myHero.Team and IsObjectAlive(eminion) then 
      if NearestEnemyMinion == nil and IsObjectAlive(eminion) and --[[ eminion.team ~= myHero.team ]]GetTeam(eminion) ~= GetTeam(myHero) then
         NearestEnemyMinion = eminion
      elseif IsObjectAlive(eminion) and GetDistance(eminion) < GetDistance(NearestEnemyMinion) then
         NearestEnemyMinion = eminion
      end
    end
  end
return NearestEnemyMinion
end

 

 

Anyone having to mess with that b4? Thx in advance :)


  • 0

#2
Zwei

Zwei

    Advanced Member

  • Contributor
  • 2,201 posts

You're passing a nil unit to GetOrigin


  • 0

#3
SxcS

SxcS

    Advanced Member

  • Contributor
  • 338 posts
function FindNearestMinion()
local NearestEnemyMinion = nil
for i, eminion in pairs(minionManager.objects) do
if eminion.alive and eminion.team ~= myHero.team then
If not NearestEnemyMinion or eminion.distance < NearestEnemyMinion.distance then
NearestEnemyMinion = eminion
end
end
end
return NearestEnemyMinion
end
  • 0

#4
Deftsu

Deftsu

    donthackourgames

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

if Validtarget(target, ERange) and IsInDistance(target, ERange) then

 

this is enough :

if Validtarget(target, ERange) then

 

check SxcS code, should be working fine =)


  • 1

#5
ThisIsNot4Sale

ThisIsNot4Sale

    Newbie

  • Members
  • 8 posts
  • LocationFar East Coast

You're passing a nil unit to GetOrigin

 

So i have to check all my Code where i am not getting the right object okey ( that gonna be sooo fun XD )

 

THX :)

 

function FindNearestMinion()
local NearestEnemyMinion = nil
for i, eminion in pairs(minionManager.objects) do
if eminion.alive and eminion.team ~= myHero.team then
If not NearestEnemyMinion or eminion.distance < NearestEnemyMinion.distance then
NearestEnemyMinion = eminion
end
end
end
return NearestEnemyMinion
end

 

Took me 3 looks to actually notice what u did there :) Will try

 

if Validtarget(target, ERange) and IsInDistance(target, ERange) then

this is enough :

if Validtarget(target, ERange) then

check SxcS code, should be working fine =)

 

OMW ^^ sadly there is a lot that confuses me in advanced scripts using classes N stuff  ( <---- keeps trying to use C++ functions bad habit i guess ^^ )

 

 

 

THX for the fast replies to all of you

 

Zwei

SxcS

and

 

Deftsu

 

 

uh cant upvote all of you :( time restriction?


Edited by ThisIsNot4Sale, 11 September 2016 - 12:38 .

  • 0

#6
steel4me

steel4me

    Member

  • Premium
  • 20 posts

Is lua now active for rocket league? and how can this work when it's outdated? im confused now.

This looks like it is for LoL :)


  • 0

#7
chillr

chillr

    Newbie

  • Members
  • 2 posts

Is lua now active for rocket league? and how can this work when it's outdated? im confused now.

This looks like it is for LoL :)

function FindNearestEnemyMinion()
local NearestEnemyMinion = nil
  for i, eminion in pairs(minionManager.objects) do
    if eminion and eminion.team ~= myHero.Team and IsObjectAlive(eminion) then 
      if NearestEnemyMinion == nil and IsObjectAlive(eminion) and --[[ eminion.team ~= myHero.team ]]GetTeam(eminion) ~= GetTeam(myHero) then
         NearestEnemyMinion = eminion
      elseif IsObjectAlive(eminion) and GetDistance(eminion) < GetDistance(NearestEnemyMinion) then
         NearestEnemyMinion = eminion
      end
    end
  end
return NearestEnemyMinion
end

never saw Minions on rocketleague ahhh k


  • 0

#8
ThisIsNot4Sale

ThisIsNot4Sale

    Newbie

  • Members
  • 8 posts
  • LocationFar East Coast

Is lua now active for rocket league? and how can this work when it's outdated? im confused now.

This looks like it is for LoL :)

 

It is indeed for LoL :)

 

you got into the Bug section ? unless i didnt post correctly XD

 

Well i just realized that i did post it into the wrong bug section OOPS XD

 

Someone plz move it <3


Edited by ThisIsNot4Sale, 12 September 2016 - 04:23 .

  • 0

#9
Deftsu

Deftsu

    donthackourgames

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

Topic moved.. please use the right section next time.


  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users