Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Files not Reloaded on Start or Restart. #2719

Closed
iCodeDreamsMC opened this issue Dec 22, 2019 · 16 comments
Closed

Files not Reloaded on Start or Restart. #2719

iCodeDreamsMC opened this issue Dec 22, 2019 · 16 comments
Labels
completed The issue has been fully resolved and the change will be in the next Skript update.

Comments

@iCodeDreamsMC
Copy link

All my skript files dont get reloaded on restart. Well some do but my commands file didnt. I can manually reload it fine and it all works. but never got reloaded on restart. Any ideas?

@iCodeDreamsMC
Copy link
Author

I use the Holiday update 1.15

@iCodeDreamsMC
Copy link
Author

22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!
22.12 16:02:29 [Server] ERROR [Skript] Invalid function call to a function that does not exist yet. Be careful when using functions in 'script load' events!

@iCodeDreamsMC
Copy link
Author

my functions are in functions.sk and my on load event is in a file that starts with the letter L so idk why it doenst exist yet?

@bensku
Copy link
Member

bensku commented Dec 22, 2019

Files starting with capital letters may be loaded before the ones that do not. Try if changing this helps.

@bensku bensku added the waiting for reply The report needs a response from the reporter to determine course of action. label Dec 22, 2019
@iCodeDreamsMC
Copy link
Author

I renamed it with capital F and all the otehrs are lower case. still has the ERROR in console when restarting server

@Wealthyturtle
Copy link
Member

Could you shrink all your scripts to see which script(s) are causing the issue?

@Wealthyturtle
Copy link
Member

Actually, I seem to be able to replicate this issue on Skript 2.4.1. Will try and post steps to reproduce.

@Wealthyturtle Wealthyturtle added needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. and removed waiting for reply The report needs a response from the reporter to determine course of action. labels Dec 23, 2019
@Wealthyturtle
Copy link
Member

@bensku Not entirely sure if this is the same issue, but I did find a similar issue:

  1. Make a script named 'a.sk' that has:
function a():
    broadcast "a() called" #Doesn't matter what happens in the function
  1. Make a script named 'b.sk' that has:
on script load:
    a()
  1. Start up a server running with Skript 2.4.1

  2. Run the command /sk reload a and you should get this error:

The function 'a' was deleted or renamed, but is still used in other script(s). These will continue to use the old version of the function until Skript restarts. (b.sk, line 2: a()')

(Note that a() is still called properly, just this error will occur when attempting to reload 'a.sk' for the first time manually)

After doing some binary search, this seems to have been introduced in Skript 2.4-beta6. Hopefully this is useful.

@iCodeDreamsMC
Copy link
Author

Any new news?

@iOshawott
Copy link

Wealthyturtle u say beta-6? Maybe it's the reason why I'm still on beta-5, which is the most stable for me.

Waiting to fix this and problem with removing items and I'll update : d

@nopeless
Copy link

You just need to reload the skripts twice iirc

@Wealthyturtle
Copy link
Member

You just need to reload the skripts twice iirc

Still a bug, regardless.

@iCodeDreamsMC
Copy link
Author

So is it considered a bug now? xD LOL

@iCodeDreamsMC
Copy link
Author

Also my skripts dont reload correctly i changed the file saved closed reopened and it is saved correctly but /sk reload isnt reloading it cause the message is the same as before.

@iCodeDreamsMC
Copy link
Author

No errors in game nor in console

@TPGamesNL
Copy link
Member

I cannot replicate this, it has most likely been fixed in #3841

@TPGamesNL TPGamesNL added completed The issue has been fully resolved and the change will be in the next Skript update. and removed needs testing Needs testing to determine current status or issue validity, or for WIP feature pulls. labels Jun 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
completed The issue has been fully resolved and the change will be in the next Skript update.
Projects
None yet
Development

No branches or pull requests

6 participants