Page 1 of 1

Detecting whether an era is available and removing[SOLVED]

Posted: Sun Mar 25, 2012 1:50 pm
by yuke5
Maveritchell wrote:You can also add extra scripting in your addme.lua that checks to see whether "The Dark Times" exists on the user's computer (preventing this era from showing up as an option to someone who doesn't have the mod installed), but that is covered in other topics. You would do well to look that up and learn, though.
I've run multiple searches and gone through promising faq topics, gone to the wiki and elsewhere. If any does know where the topic is that Mav mentions, I'd be very grateful. I want to learn how to do this to clean up my map; it has so many eras listed, the little box can't hold them all. Any help would be appreciated. Thanks in advance.

Re: Detecting whether an era is available and removing it.

Posted: Sun Mar 25, 2012 2:03 pm
by Marth8880
Well do you want those eras to be in your map? I take it you do not. Post your addme, please.

Re: Detecting whether an era is available and removing it.

Posted: Sun Mar 25, 2012 2:06 pm
by yuke5
I'm sorry, I should've been more clear. If they aren't detected, I don't want them to be in my map. For example, when the BFX folder isn't in my addon folder, I don't want the BFX eras listed. I do NOT want to remove any eras permanently, I just don't want them to be select able is a player isn't compatible with them.

Re: Detecting whether an era is available and removing it.

Posted: Sun Mar 25, 2012 2:08 pm
by Gandalf
I think that this is the topic you are looking for.

Re: Detecting whether an era is available and removing it.

Posted: Sun Mar 25, 2012 2:12 pm
by yuke5
Thank you! Was it in the FAQ?

Re: Detecting whether an era is available and removing it.

Posted: Sun Mar 25, 2012 2:15 pm
by Gandalf
I don't think it's in the FAQ. I found it by realizing I had read about it before, remembering which map it was talking about, finding out the author of the map, and searching every single post by that person in the Modding section. :lol:

Re: Detecting whether an era is available and removing it.

Posted: Sun Mar 25, 2012 2:18 pm
by yuke5
Okay. Thanks a BUNCH! :D