Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] But I don't see any lua_State's or lua API calls in your diff?

[DiscordArchive] But I don't see any lua_State's or lua API calls in your diff?

[DiscordArchive] But I don't see any lua_State's or lua API calls in your diff?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
07-18-2024, 11:02 AM
#1
Archived author: chipzz • Posted: 2024-07-18T11:02:35.804000+00:00
Original source

But I don't see any lua_State's or lua API calls in your diff?
rektbyfaith
07-18-2024, 11:02 AM #1

Archived author: chipzz • Posted: 2024-07-18T11:02:35.804000+00:00
Original source

But I don't see any lua_State's or lua API calls in your diff?

rektbyfaith
Administrator
0
07-18-2024, 11:02 AM
#2
Archived author: chipzz • Posted: 2024-07-18T11:02:53.759000+00:00
Original source

But maybe you're doing things in a different level?
rektbyfaith
07-18-2024, 11:02 AM #2

Archived author: chipzz • Posted: 2024-07-18T11:02:53.759000+00:00
Original source

But maybe you're doing things in a different level?

rektbyfaith
Administrator
0
07-18-2024, 11:04 AM
#3
Archived author: chipzz • Posted: 2024-07-18T11:04:28.396000+00:00
Original source

Anyway, if you follow the above approach, you need to call luaL_loadstring on the same lua_State as the one you're gonna run your script on. And lua_State's aren't thread-safe.
rektbyfaith
07-18-2024, 11:04 AM #3

Archived author: chipzz • Posted: 2024-07-18T11:04:28.396000+00:00
Original source

Anyway, if you follow the above approach, you need to call luaL_loadstring on the same lua_State as the one you're gonna run your script on. And lua_State's aren't thread-safe.

rektbyfaith
Administrator
0
07-18-2024, 11:04 AM
#4
Archived author: chipzz • Posted: 2024-07-18T11:04:54.497000+00:00
Original source

Or are you just loading the script text (ie doing only the IO) on the separate thread?
rektbyfaith
07-18-2024, 11:04 AM #4

Archived author: chipzz • Posted: 2024-07-18T11:04:54.497000+00:00
Original source

Or are you just loading the script text (ie doing only the IO) on the separate thread?

rektbyfaith
Administrator
0
07-18-2024, 11:08 AM
#5
Archived author: jackpoz • Posted: 2024-07-18T11:08:21.384000+00:00
Original source

Lua states are per map and each map updates its own state only
rektbyfaith
07-18-2024, 11:08 AM #5

Archived author: jackpoz • Posted: 2024-07-18T11:08:21.384000+00:00
Original source

Lua states are per map and each map updates its own state only

rektbyfaith
Administrator
0
07-18-2024, 11:08 AM
#6
Archived author: jackpoz • Posted: 2024-07-18T11:08:53.137000+00:00
Original source

It's the step before that is on a different thread, to prepare the scripts
rektbyfaith
07-18-2024, 11:08 AM #6

Archived author: jackpoz • Posted: 2024-07-18T11:08:53.137000+00:00
Original source

It's the step before that is on a different thread, to prepare the scripts

rektbyfaith
Administrator
0
07-18-2024, 11:09 AM
#7
Archived author: chipzz • Posted: 2024-07-18T11:09:42.608000+00:00
Original source

Ah ok multiple lua_State's, I (and the WoW client) use only one
rektbyfaith
07-18-2024, 11:09 AM #7

Archived author: chipzz • Posted: 2024-07-18T11:09:42.608000+00:00
Original source

Ah ok multiple lua_State's, I (and the WoW client) use only one

rektbyfaith
Administrator
0
07-18-2024, 11:10 AM
#8
Archived author: chipzz • Posted: 2024-07-18T11:10:34.509000+00:00
Original source

(Well technically that's not entirely true since warden and the mini-games also use lua, but those aren't accessible from the UI lua)
rektbyfaith
07-18-2024, 11:10 AM #8

Archived author: chipzz • Posted: 2024-07-18T11:10:34.509000+00:00
Original source

(Well technically that's not entirely true since warden and the mini-games also use lua, but those aren't accessible from the UI lua)

rektbyfaith
Administrator
0
07-18-2024, 11:10 AM
#9
Archived author: jackpoz • Posted: 2024-07-18T11:10:52.427000+00:00
Original source

It's one of the improvements of Eluna in the past years. Before it forced TC to be single threaded
rektbyfaith
07-18-2024, 11:10 AM #9

Archived author: jackpoz • Posted: 2024-07-18T11:10:52.427000+00:00
Original source

It's one of the improvements of Eluna in the past years. Before it forced TC to be single threaded

rektbyfaith
Administrator
0
07-18-2024, 11:11 AM
#10
Archived author: jackpoz • Posted: 2024-07-18T11:11:11.428000+00:00
Original source

This is just serverside btw
rektbyfaith
07-18-2024, 11:11 AM #10

Archived author: jackpoz • Posted: 2024-07-18T11:11:11.428000+00:00
Original source

This is just serverside btw

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