Closed L3v3lup closed 6 months ago
im assuming Achievements.sk is using the missing functions. what script are they a part of? !API.sk? could you send the script containing the functions?
also, what other scripts make use of the functions but load correctly?
!API.sk just has some WorldGuard things inside.
The function "Reward" is in the file Geldsystem.sk. "ItemPayout" is in Essentials.sk.
Function "Reward" is used in: Essentials.sk, Zirkus.sk and Achievement.sk. Function "ItemPayout" is used in 6 different files and Achievement.sk - which all work besides Achievement.sk. I tried renaming "Achievement.sk" to "ZAchievment.sk" for the sake of a broken loading order, but that didnt solve the problem either.
Oh and "Achievement.sk" successfully uses "Reward()" and "ItemPayout()" in Achievement.sk. The trouble starts just at line 882.
Geldsystem.sk: https://pastebin.com/t2N7GkDu Essentials.sk: https://pastebin.com/XhYBTW40
thanks for all the information! could you send the achievement.sk script as well?
Can i send you that privately? I found your E-Mail adress on your profile. I will send you a pastebin link to the file.
Based on the information in that script (it was emailed to me), it looks like the problematic calls are located in a custom effect created using skript-reflect. Looking at the source code, it seems like it may end up loading the code too early (the addon has not yet been adapted for 2.7). Are there other cases where it is working in a custom syntax?
Oh i didn't realize that. Thanks for pointing that out. I will text TPGamesNL about that problem.
The related issue for skript reflect is marked as completed, so I'll assume this is fixed. Either way, it's not a Skript issue so this wouldn't be the place for the ticket.
Skript/Server Version
Bug Description
Some of my functions are not getting loaded when i startup the server. The same error occurs with /sk reload all.
More infos to this problem: The same functions that are not recognized later down the script are being used above, but dont throw an error. Can a (too) big skript file cause this? Anyways, this is new and didn't happen in 2.6.
Expected Behavior
-
Steps to Reproduce
-
Errors or Screenshots
Other
No response
Agreement