[DiscordArchive] I'm encountering a problem while working with L...
[DiscordArchive] I'm encountering a problem while working with L...
Archived author: Needle • Posted: 2024-11-21T08:12:49.776000+00:00
Original source
Archived author: Needle • Posted: 2024-11-21T08:12:50.348000+00:00
Original source
Thread automatically created by Sheinlong0001 in <#415944535718494208>
Archived author: Kaev • Posted: 2024-11-21T08:54:32.124000+00:00
Original source
Do you return something in ClassSpecInfo? If not, you wouldn't require it directly into a table/object.
How does ClassSpecInfo.lua look?
But the error message sounds more like something has removed require from the global namespace.
Are you using any frameworks or scripts that you didn't write yourself?
![[Image: image.png?ex=690c6431&is=690b12b1&hm=30d...05713b921&]](https://cdn.discordapp.com/attachments/1309068993323208746/1309081542206685236/image.png?ex=690c6431&is=690b12b1&hm=30d8fb9cf0f864bd4b13d60aacaa1b74c40a8762e742b3f21146c4505713b921&)
Archived author: Dame un Grrrrr • Posted: 2024-11-21T09:02:41.267000+00:00
Original source
![[Image: image.png?ex=690c6431&is=690b12b1&hm=30d...05713b921&]](https://cdn.discordapp.com/attachments/1309068993323208746/1309081542206685236/image.png?ex=690c6431&is=690b12b1&hm=30d8fb9cf0f864bd4b13d60aacaa1b74c40a8762e742b3f21146c4505713b921&)
![[Image: image.png?ex=690c646c&is=690b12ec&hm=0f7...79c4dde87&]](https://cdn.discordapp.com/attachments/1309068993323208746/1309081790199103528/image.png?ex=690c646c&is=690b12ec&hm=0f719efd51850eb17d66edd723f31a47893b794e6a3758a29e69dbd79c4dde87&)
Archived author: Dame un Grrrrr • Posted: 2024-11-21T09:03:40.416000+00:00
Original source
![[Image: image.png?ex=690c646c&is=690b12ec&hm=0f7...79c4dde87&]](https://cdn.discordapp.com/attachments/1309068993323208746/1309081790199103528/image.png?ex=690c646c&is=690b12ec&hm=0f719efd51850eb17d66edd723f31a47893b794e6a3758a29e69dbd79c4dde87&)
Archived author: Kaev • Posted: 2024-11-21T09:08:04.756000+00:00
Original source
Ah, this is not an Eluna error.
AIO.AddAddon checks if this is on the server so it only runs the code below it if it's clientside. And iirc the WoW client does not support loading other files via require. All required files of an addon that need to be loaded are usually in the .toc file which is why it does not need to know require.
Archived author: Kaev • Posted: 2024-11-21T09:16:00.720000+00:00
Original source
I guess you can either make the object global so you can access it from everywhere or you put everything into a single file
Archived author: Dame un Grrrrr • Posted: 2024-11-21T09:16:30.373000+00:00
Original source
A long time ago I saw a code, I think it was from talents, where it had a client code, a server code, and another 'data' file, where it had a lot of information and what that information did was load it, but I don't remember if it was in the client or server code, so that's why I had a doubt
Archived author: Kaev • Posted: 2024-11-21T09:16:34.903000+00:00
Original source
Alternative to AIO is Foereaper's CSMH which allows you to also work with a .toc file: https://github.com/Foereaper/CSMH
[Embed: GitHub - Foereaper/CSMH: Client and Server Message Handler framewor...]
Client and Server Message Handler framework for communication between Eluna and WoW - Foereaper/CSMH
https://github.com/Foereaper/CSMH
Archived author: Dame un Grrrrr • Posted: 2024-11-21T09:17:21.577000+00:00
Original source
That's what I'm looking for, not to have such an extensive code, but to divide it into parts to have it more organized