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

ability to reference "dictionary" file from another script file #41

Open
usafphoenix opened this issue Aug 3, 2016 · 1 comment
Open

Comments

@usafphoenix
Copy link

So as far as i have been able to tell, each file in the scripts folder runs independently of each other, loading in alphabetical-sorted order, without any memory to a previous file declaring (using "val") a variable for all other scripts.
Is this correct?
Would love to be able to add an "include dictionary.zs;" line at the top of my scripts once i've spent the 8-10 hours writing out 600-1000 lines of simplified names for recipe changes in a pack.

Or, for whatever reason, must files be run independently of each other, and i have to copy all necessary declarations over to each file?

@usafphoenix
Copy link
Author

usafphoenix commented Aug 3, 2016

(this is for a pack which makes recipe changes to pretty much all mods included, and uses it as well to introduce cross-compatibility / needing to progress in separate mods simultaneously)... i've already got the progression tree written out how i want it, just got to work on the code. if there's a way to reference a "dictionary" file (what i'm calling it. just a bunch of lines like:
val YelloriumIngot = BigReactors:BRIngot;
val MachineFrameResonant = ThermalExpansion:Frame:3;

but if five other mods need to reference these lines do i need to copy all necessary declarations to each script file separate?

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

1 participant