[DiscordArchive] There any tools for coding with Eluna?
[DiscordArchive] There any tools for coding with Eluna?
Archived author: Deleted User • Posted: 2025-02-04T09:21:16.042000+00:00
Original source
There any tools for coding with Eluna?
Archived author: iThorgrim • Posted: 2025-02-04T09:21:23.421000+00:00
Original source
vscode
Archived author: iThorgrim • Posted: 2025-02-04T09:21:36.105000+00:00
Original source
At the moment I have no clues, I can't figure out where the problem might be coming from and it's quite frustrating x)
Archived author: metallinos • Posted: 2025-02-04T09:21:59.262000+00:00
Original source
I'll look closer into how the top is constructed and passed this evening. What I've noticed is, almost every no. of top args mismatch is 4 less than the number of args passed (in essence 5 since the top is +1)
Archived author: metallinos • Posted: 2025-02-04T09:23:17.256000+00:00
Original source
So something is causing the parameters to go poof top side (((maybe))). I am looking forward to getting intimately familiar with the source code
![[Image: image.png?ex=690c6a13&is=690b1893&hm=db8...7e208c23c&]](https://cdn.discordapp.com/attachments/448835144564867094/1336266948744581180/image.png?ex=690c6a13&is=690b1893&hm=db8ad813ca4e45f8d4b61aa795c190b57c1d12eb880b7d77427dc687e208c23c&)
Archived author: metallinos • Posted: 2025-02-04T09:27:47.279000+00:00
Original source
I also get random flurries of events pushed to the stack with mismatches when nothing should be triggering anything. In this case this is registerserverevent type 31 (creature delete). I removed the asserts in SetupStack to instead log to the Eluna error log and return false, this is my output on logging in and entering map ID 571 with a player:RegisterEvent successfully triggering on map change for example
![[Image: image.png?ex=690c6a13&is=690b1893&hm=db8...7e208c23c&]](https://cdn.discordapp.com/attachments/448835144564867094/1336266948744581180/image.png?ex=690c6a13&is=690b1893&hm=db8ad813ca4e45f8d4b61aa795c190b57c1d12eb880b7d77427dc687e208c23c&)
![[Image: image.png?ex=690c6b69&is=690b19e9&hm=a97...4aa6a400c&]](https://cdn.discordapp.com/attachments/448835144564867094/1336268385255952384/image.png?ex=690c6b69&is=690b19e9&hm=a971347796a65303262a03f21a5a88654a083bc783705f7db151deb4aa6a400c&)
Archived author: metallinos • Posted: 2025-02-04T09:33:29.729000+00:00
Original source
Also... Could be an unrelated issue, but... Here I'm running a 1-sec RegisterEvent on map change to 571. However, it fires after 500 ms?? Now, to be clear, I've seen this for many months, so I don't think it's related to multistate but it sure is odd...
```
local function mapChange571(event, player)
print("Map change 571 triggered")
player:RegisterEvent(function(e, d, c, p)
p:SendUnitSay("Hi, this is a RegisterEvent talking on map 571", 0)
print("RegisterEvent with 1 sec delay for map 571 executed")
end, 1000, 1)
end
if (GetStateMapId() == 571) then
RegisterPlayerEvent(28, mapChange571)
end
```
![[Image: image.png?ex=690c6b69&is=690b19e9&hm=a97...4aa6a400c&]](https://cdn.discordapp.com/attachments/448835144564867094/1336268385255952384/image.png?ex=690c6b69&is=690b19e9&hm=a971347796a65303262a03f21a5a88654a083bc783705f7db151deb4aa6a400c&)
Archived author: iThorgrim • Posted: 2025-02-04T09:35:07.970000+00:00
Original source
Yes this is a problem I've noticed on mod-eluna even without multistate, the timers are no good at all, I noticed this while streaming code on Twitch
Archived author: metallinos • Posted: 2025-02-04T09:35:36.221000+00:00
Original source
Might as well do timer = timer x 2 hah
Archived author: iThorgrim • Posted: 2025-02-04T09:35:54.780000+00:00
Original source
Even with the “classic” version of mod-eluna there is the problem ^^