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

Loading Order #341

Closed
Sir-Will opened this issue Apr 3, 2016 · 13 comments
Closed

Loading Order #341

Sir-Will opened this issue Apr 3, 2016 · 13 comments

Comments

@Sir-Will
Copy link

Sir-Will commented Apr 3, 2016

hey,

any chance the loading order could be changed so that scripts in the world directory get loaded after the others?

As I would like to overwrite recipes for items which are already defined in main scripts folder.

Example how it is atm:

  • scripts --> removes and adds a recipe
  • world/scripts --> adds or removes a recipe

world/scripts gets overwritten by scripts.

@Dream-Master
Copy link

#274

@jaredlll08
Copy link
Collaborator

@Dream-Master not what he is wanting, that will load the files in the scripts folder, but apparently (I say that because I have NEVER seen someone actually use it...) you can put scripts in the world folder, so even if that was pulled, it wouldn't make a difference to this. Anyway, this is low priority right now, sorry.

@Sir-Will
Copy link
Author

Sir-Will commented Apr 3, 2016

@jaredlll08 the world/scripts folder is mainly useful for servers as it sends the recipes in there to all connected clients.

@Dream-Master
Copy link

Ah sorry not see it but this is a good idea not shiping all scripts in the pack and let it only on the server.

@jaredlll08
Copy link
Collaborator

Yes, but using the default scripts folder it does the same thing.
On Apr 3, 2016 10:27 PM, "Sir-Will" [email protected] wrote:

@jaredlll08 https://github.com/jaredlll08 the world/scripts folder is
mainly useful for servers as it sends the recipes in there to all connected
clients.


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#341 (comment)

@Sir-Will
Copy link
Author

Sir-Will commented Apr 3, 2016

Oh okay, wiki did say something else^^
However, does unfortunately not solve the issue :/

@jaredlll08
Copy link
Collaborator

Just did this, just for future reference, Scripts are loaded as follows:
IMC Scripts = Scripts sent from mods (isn't used afaik)
ScriptsLocal = world/scripts (since the change that I just made)
ScriptsGlocal = global /scripts/ folder

@jaredlll08
Copy link
Collaborator

@Sir-Will
Copy link
Author

Sir-Will commented May 4, 2016

Hm, in this order global will overwrite the local scripts or not?

@jaredlll08
Copy link
Collaborator

Is that not what you wanted? If not, then I can't do anything, it was
originally
Imc
Global
Server

So I don't know what else I can do
On May 5, 2016 1:20 AM, "Sir-Will" [email protected] wrote:

Hm, in this order global will overwrite the local scripts or not?


You are receiving this because you modified the open/close state.
Reply to this email directly or view it on GitHub
#341 (comment)

@Sir-Will
Copy link
Author

Sir-Will commented May 4, 2016

I would like that local overwrites the global scripts and also does send the scripts to the client like that.
That way I can overwrite the scripts from modpack authors without editing the modpack files.

@AnrDaemon
Copy link

World scripts should execute last, and the order in which scripts executed in each category, should be uniform.

@AnrDaemon
Copy link

While wiki states, that "scripts can be bundled with worlds, making it possible to make modifications available to specific worlds only", any modifications you make in the world scripts will be overridden by the global scripts.
And conversely, any global registrations you make, such as OreDict registrations, will not be available to world specific scripts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants