Forums WoW Modding Support Archives Azerothcore Discord Archives [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

[DiscordArchive] what have you tried? Is the gob returned from PerformIngameSpawn (PIS) not able to successfully call

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
08-16-2023, 11:31 PM
#1
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?
rektbyfaith
08-16-2023, 11:31 PM #1

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?

rektbyfaith
Administrator
0
08-16-2023, 11:32 PM
#2
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.
rektbyfaith
08-16-2023, 11:32 PM #2

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.

rektbyfaith
Administrator
0
08-16-2023, 11:32 PM
#3
Archived author: Barnes • Posted: 2023-08-16T23:32:39.478000+00:00
Original source

it'll say Gobject expected, userdata received.
rektbyfaith
08-16-2023, 11:32 PM #3

Archived author: Barnes • Posted: 2023-08-16T23:32:39.478000+00:00
Original source

it'll say Gobject expected, userdata received.

rektbyfaith
Administrator
0
08-16-2023, 11:33 PM
#4
Archived author: Barnes • Posted: 2023-08-16T23:33:02.554000+00:00
Original source

as an error
rektbyfaith
08-16-2023, 11:33 PM #4

Archived author: Barnes • Posted: 2023-08-16T23:33:02.554000+00:00
Original source

as an error

rektbyfaith
Administrator
0
08-16-2023, 11:34 PM
#5
Archived author: Vale the Violet Mote • Posted: 2023-08-16T23:34:54.484000+00:00
Original source

may need to show some code there
rektbyfaith
08-16-2023, 11:34 PM #5

Archived author: Vale the Violet Mote • Posted: 2023-08-16T23:34:54.484000+00:00
Original source

may need to show some code there

rektbyfaith
Administrator
0
08-16-2023, 11:36 PM
#6
Archived author: Barnes • Posted: 2023-08-16T23:36:04.281000+00:00
Original source

ya give me a sec walking my four legged beast
rektbyfaith
08-16-2023, 11:36 PM #6

Archived author: Barnes • Posted: 2023-08-16T23:36:04.281000+00:00
Original source

ya give me a sec walking my four legged beast

rektbyfaith
Administrator
0
08-17-2023, 12:18 AM
#7
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: Screenshot1.PNG?ex=690be941&is=690a97c1&...4f3d02d29&]

[Image: screenshot2.png?ex=690be941&is=690a97c1&...471dcd53f&]

[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
rektbyfaith
08-17-2023, 12:18 AM #7

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: Screenshot1.PNG?ex=690be941&is=690a97c1&...4f3d02d29&]

[Image: screenshot2.png?ex=690be941&is=690a97c1&...471dcd53f&]

[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

rektbyfaith
Administrator
0
08-17-2023, 12:28 AM
#8
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
rektbyfaith
08-17-2023, 12:28 AM #8

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

rektbyfaith
Administrator
0
08-17-2023, 12:28 AM
#9
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
rektbyfaith
08-17-2023, 12:28 AM #9

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

rektbyfaith
Administrator
0
08-17-2023, 12:29 AM
#10
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
rektbyfaith
08-17-2023, 12:29 AM #10

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

Pages (3): 1 2 3 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)