Page 1 of 1

require scripts from other mods

Posted: Sun Apr 13, 2014 12:05 pm
by Bleda
hi

I was trying to make a custom tight-spot map. Is there a way to require/link the scripts and locales from the tightspot mod from my control.lua? Can I define some kind of dependency?

Re: require scripts from other mods

Posted: Sun Apr 13, 2014 1:46 pm
by FreeER
As far as I know, you can not require files from other mods (but I've never actually tried either), you can create 'dependencies' but that doesn't include their information/code in your mod only making sure that your mod will not run without all dependencies installed (and enabled).

hm...Normally I'd say copy the campaign/scenario/mod and edit it as desired (with original modder's permission), then upload to forum, but since it's part of an account upgrade I can't really recommend that (unless you are not going to upload, only use it yourself).

Re: require scripts from other mods

Posted: Sun Apr 13, 2014 3:50 pm
by Bleda
yes, that was my thought too. That's why I wanted to not include the scripts. However, I don't know if I will ever publish something, so for the time being I can just copy the files.

Or maybe somebody else knows a way...