Epix-Incorporated / Adonis

Roblox Server Administration System
https://adonis.dev
MIT License
308 stars 178 forks source link

_G.Adonis doesn't work #1625

Open terlexory opened 1 month ago

terlexory commented 1 month ago

Version channel

Stable (Default)

Loader version

260

What part of Adonis is this related to?

Loader/Settings

What happened?

When i try to use the _G.Adonis API, it outputs a nil table, even tho i have set the G_API setting to true, i've tried debugging it but nothing seems to work, i'd like someone to help me out here.

Steps to reproduce

Just try to use the _G.Adonis table in any way, it wont work.

Device

Windows

Relevant log output

20:39:25.209  nil  -  Server - Game:32

local Adonis = _G.Adonis
print(Adonis) -- line 32 here
Expertcoderz commented 1 month ago

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.

while not _G.Adonis do task.wait() end
terlexory commented 1 month ago

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.

while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil

but it just infinitely yields.

ccuser44 commented 1 month ago

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts.

while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil

but it just infinitely yields.

Do you have any Adonis plugins?

terlexory commented 1 month ago

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts. while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil but it just infinitely yields.

Do you have any Adonis plugins?

I do, but they are pretty basic. I dont think they would matter.

ccuser44 commented 1 month ago

Have you tried polling for _G.Adonis? It doesn't magically appear as soon as the game starts. while not _G.Adonis do task.wait() end

I have tried using repeat wait() until _G.Adonis ~= nil but it just infinitely yields.

Do you have any Adonis plugins?

I do, but they are pretty basic. I dont think they would matter.

Tell the nanes of all plugins you use in a list

terlexory commented 1 month ago
Server-AddEXP
Server-Damage
Server-Heal
Server-Notification
Server-SetEXP
Server-SetLevel
ccuser44 commented 3 weeks ago

Try rawget(_G, "Adonis")

ccuser44 commented 2 weeks ago

Are you using this from the command bar? If so it doesn't work from the command bar because it has a different security context than regular Roblox scripts and thus runs in a different VM. Either use a regular script or use the Adonis debug invoke API.