[DiscordArchive] what have you tried? Is the gob returned from PerformIngameSpawn (PIS) not able to successfully call
[DiscordArchive] what have you tried? Is the gob returned from PerformIngameSpawn (PIS) not able to successfully call
Archived author: Vale the Violet Mote • Posted: 2023-08-16T23:31:03.221000+00:00
Original source
what have you tried? Is the gob returned from PerformIngameSpawn (PIS) not able to successfully call Despawn on itself? And are you spawning a temp gob with PIS?
Archived author: Barnes • Posted: 2023-08-16T23:32:30.157000+00:00
Original source
yeah so if i store the Gobject returned with PIS into a table to then be grabbed from the Despawn itself via the corresponding Id that im utilizing as a key in the table then it'll return back saying its userdata.
Archived author: Barnes • Posted: 2023-08-16T23:32:39.478000+00:00
Original source
it'll say Gobject expected, userdata received.
Archived author: Barnes • Posted: 2023-08-16T23:33:02.554000+00:00
Original source
as an error
Archived author: Vale the Violet Mote • Posted: 2023-08-16T23:34:54.484000+00:00
Original source
may need to show some code there
Archived author: Barnes • Posted: 2023-08-16T23:36:04.281000+00:00
Original source
ya give me a sec walking my four legged beast
![[Image: screenshot2.png?ex=690be941&is=690a97c1&...471dcd53f&]](https://cdn.discordapp.com/attachments/448835144564867094/1141526346003136582/screenshot2.png?ex=690be941&is=690a97c1&hm=c0e5d95897f467681797287e766c678c0ba9d36395b5db664100ab2471dcd53f&)
Archived author: Barnes • Posted: 2023-08-17T00:18:09.316000+00:00
Original source
Okkkk, here we go. Im always up for some full blown transparency and sharing my work cause this is Opensource and it don't matter.
https://github.com/HashtagBarnes/lua_scr...ursion.lua
here is the incursion.lua for my server that I am getting the attached errors on. As you can see, when the Object is spawned I print out what is returned when PerformIngameSpawn is performed. I see that a GameObject is spawned and then *i think* that the corresponding numbers are the memory address? Anyways, Then, I store it in a global table with the id of the incursion as the key. When i kill the boss, the second screenshot is the error that occurs. I am attempting to call the GameObject that i *thought?* was spawned and returned to me earlier. Honestly im anticipating this to be something that im just not fully understanding. Im traditionally a Python developer so the concepts of Lua are still new to me. Fiddling around and figuring things out by trial and error but this one has had me stumped.
![[Image: screenshot2.png?ex=690be941&is=690a97c1&...471dcd53f&]](https://cdn.discordapp.com/attachments/448835144564867094/1141526346003136582/screenshot2.png?ex=690be941&is=690a97c1&hm=c0e5d95897f467681797287e766c678c0ba9d36395b5db664100ab2471dcd53f&)
[Embed: lua_scripts/incursion.lua at main · HashtagBarnes/lua_scripts]
LuaScripts for my P_Server. Contribute to HashtagBarnes/lua_scripts development by creating an account on GitHub.
https://github.com/HashtagBarnes/lua_scr...ursion.lua
Archived author: Vale the Violet Mote • Posted: 2023-08-17T00:28:10.008000+00:00
Original source
is there a strong reason you're defining your spawn functions inside the incursion spawn function
Archived author: Vale the Violet Mote • Posted: 2023-08-17T00:28:30.507000+00:00
Original source
I don't know if that would muck anything, probably not, but probably worth moving anyway
Archived author: Vale the Violet Mote • Posted: 2023-08-17T00:29:57.973000+00:00
Original source
it's possible that the pointer to the gob got cleaned up... I don't know if eluna does some sort of garbage collection but it might be