Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] so any C++ class instance at all is always invalidated as soon as the trigger is over ? so each trig

[DiscordArchive] so any C++ class instance at all is always invalidated as soon as the trigger is over ? so each trig

[DiscordArchive] so any C++ class instance at all is always invalidated as soon as the trigger is over ? so each trig

Pages (5): Previous 1 2 3 4 5 Next
rektbyfaith
Administrator
0
03-09-2024, 11:38 PM
#11
Archived author: jackpoz • Posted: 2024-03-09T23:38:52.101000+00:00
Original source

yeah, no SQL queries from Lua, ty
rektbyfaith
03-09-2024, 11:38 PM #11

Archived author: jackpoz • Posted: 2024-03-09T23:38:52.101000+00:00
Original source

yeah, no SQL queries from Lua, ty

rektbyfaith
Administrator
0
03-09-2024, 11:39 PM
#12
Archived author: jackpoz • Posted: 2024-03-09T23:39:28.393000+00:00
Original source

and no HTTP client either
rektbyfaith
03-09-2024, 11:39 PM #12

Archived author: jackpoz • Posted: 2024-03-09T23:39:28.393000+00:00
Original source

and no HTTP client either

rektbyfaith
Administrator
0
03-09-2024, 11:39 PM
#13
Archived author: Foe • Posted: 2024-03-09T23:39:35.194000+00:00
Original source

I don't think SQL queries from Lua is a problem, but it should be restricted to async queries
rektbyfaith
03-09-2024, 11:39 PM #13

Archived author: Foe • Posted: 2024-03-09T23:39:35.194000+00:00
Original source

I don't think SQL queries from Lua is a problem, but it should be restricted to async queries

rektbyfaith
Administrator
0
03-09-2024, 11:39 PM
#14
Archived author: Tea • Posted: 2024-03-09T23:39:49.048000+00:00
Original source

well now that you guys have those c modules, you could move sql to eluna-ext
rektbyfaith
03-09-2024, 11:39 PM #14

Archived author: Tea • Posted: 2024-03-09T23:39:49.048000+00:00
Original source

well now that you guys have those c modules, you could move sql to eluna-ext

rektbyfaith
Administrator
0
03-09-2024, 11:39 PM
#15
Archived author: jackpoz • Posted: 2024-03-09T23:39:51.027000+00:00
Original source

imagine posting a Lua script for a npc vendor that actually sends credentials from auth db to a web server
rektbyfaith
03-09-2024, 11:39 PM #15

Archived author: jackpoz • Posted: 2024-03-09T23:39:51.027000+00:00
Original source

imagine posting a Lua script for a npc vendor that actually sends credentials from auth db to a web server

rektbyfaith
Administrator
0
03-09-2024, 11:39 PM
#16
Archived author: Foe • Posted: 2024-03-09T23:39:51.043000+00:00
Original source

HTTP no, you can use LuaSocket if you really want to
rektbyfaith
03-09-2024, 11:39 PM #16

Archived author: Foe • Posted: 2024-03-09T23:39:51.043000+00:00
Original source

HTTP no, you can use LuaSocket if you really want to

rektbyfaith
Administrator
0
03-09-2024, 11:40 PM
#17
Archived author: Foe • Posted: 2024-03-09T23:40:05.461000+00:00
Original source

That would be fun
rektbyfaith
03-09-2024, 11:40 PM #17

Archived author: Foe • Posted: 2024-03-09T23:40:05.461000+00:00
Original source

That would be fun

rektbyfaith
Administrator
0
03-09-2024, 11:40 PM
#18
Archived author: jackpoz • Posted: 2024-03-09T23:40:15.061000+00:00
Original source

Hoffa used to do such stuff
rektbyfaith
03-09-2024, 11:40 PM #18

Archived author: jackpoz • Posted: 2024-03-09T23:40:15.061000+00:00
Original source

Hoffa used to do such stuff

rektbyfaith
Administrator
0
03-09-2024, 11:40 PM
#19
Archived author: Rochet2 • Posted: 2024-03-09T23:40:20.735000+00:00
Original source

Indeed. Its hard to get it right and efficient. I was thinking of a kind of solution here https://github.com/ThePhD/sol2/issues/1010
Where one could basically attach a shared_ptr to all C++ classes to indicate whether the instance exists or not. It would be set to false upon destruction. And then when you push a pointer to lua, you would create a shared ptr to store with the data in lua.
You would then be able to check if the object still exists through the shared ptr and it would get invalidated when the object is destroyed. Could probably also use weak_ptr too.
rektbyfaith
03-09-2024, 11:40 PM #19

Archived author: Rochet2 • Posted: 2024-03-09T23:40:20.735000+00:00
Original source

Indeed. Its hard to get it right and efficient. I was thinking of a kind of solution here https://github.com/ThePhD/sol2/issues/1010
Where one could basically attach a shared_ptr to all C++ classes to indicate whether the instance exists or not. It would be set to false upon destruction. And then when you push a pointer to lua, you would create a shared ptr to store with the data in lua.
You would then be able to check if the object still exists through the shared ptr and it would get invalidated when the object is destroyed. Could probably also use weak_ptr too.

rektbyfaith
Administrator
0
03-09-2024, 11:40 PM
#20
Archived author: jackpoz • Posted: 2024-03-09T23:40:23.679000+00:00
Original source

15 years ago or so
rektbyfaith
03-09-2024, 11:40 PM #20

Archived author: jackpoz • Posted: 2024-03-09T23:40:23.679000+00:00
Original source

15 years ago or so

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