#Nonexistent function in base 'Node3D ()'. error

44 messages · Page 1 of 1 (latest)

vague patrol
#

this is the printout i get from the print function, so it seems the node is detected but it doesnt want to work with me , any ideas what could be wrong?
Weapons:<Node3D#33034339602>

frail wraith
#

but it doesnt want to work with me

What do you mean by this?

Are you trying to get the name? Try print(Weapon.name)

#

Ah sorry just saw the "Nonexistent function in base 'Node3D ()'. error"

vague patrol
frail wraith
#

what function are you trying to call?

vague patrol
#

but it trhows me this error Invalid call. Nonexistent function '_Primaryfire' in base 'Node3D ()'.

#

_Primaryfire()

#

but it says that it doesnt exist, when i clearly have it defined here...

frail wraith
#

oh I see, real quick, if you change the print statement to print(Weapon.name), does it say MOD_LauncherMini?

#

just to make sure we're working with the right node

vague patrol
#

it printed weapons

frail wraith
#

hm, thats odd, since you put get_child(0)

vague patrol
#

yeah...

#

i tried putting it outside the wepaons folder, but then get_child(0) gives somethign from MOD_LauncherMini_1

vague patrol
#

which makes no sense? because it gives weapons , but it gives the first child of the MOD_Launcher_Mini_1

#

._.

frail wraith
#

to clarify... this script

#

is it attached to MainShip

vague patrol
#

yep

vague patrol
frail wraith
#

As far as I can tell you have the right approach, so I'm just as confused as you are lol

#

Would you mind zipping up and uploading your project to something like mediafire or google drive?

#

That way I can import it and poke around, and test out different things

vague patrol
#

is there something else ther could be that messes this up?

#

sure thing

vague patrol
#

it will take me some time to get this figured out , so bear with me

vague patrol
#

i had PrimaryFire as Primaryfire...

#

is there anything in godot to show spelling mistakes?

frail wraith
#

Hey, I missed it too!

#

I thought it was showing the wrong node in the name print though

#

interesting

vague patrol
#

:C

#

sadly, it just transitioned to another error

vague patrol
frail wraith
#

Ah sorry you're dealing with that!

vague patrol
#

would you have <10 minutes to go over the error ith me in the 1 on 1 channel?

#

i will probably just work on this for a few more hours either way, but if you have the time, do tell

frail wraith
#

I have the time but if you mean voice chat, I can't do that right now

#

You looking to share your screen or?

vague patrol
#

sure thing

#

screenshare is probably best