Jump to content
Sign in to follow this  
Outlawz7

'keysLimit/' is not a value

Recommended Posts

I'm trying to lock a SP mission. When I access Scenarios in game, I get the error in the title and the locked mission is not locked.

This is the mission that unlocks .ext

doneKeys[] = {"key1"};

This is the locked mission's .ext

keys[] = {"key1"};

keysLimit[] = {1};

doneKeys[] = {"key2"};

ArmA2 CO 1.62, no mods

Help?

Share this post


Link to post
Share on other sites

I'm no MP coder (indeed not much of a coder at all) but shouldn't the second line in the .ext be

keysLimit[] = 1;

??

Share this post


Link to post
Share on other sites

That line crashed the game when I loaded the mission until I added the brackets.

Share this post


Link to post
Share on other sites

Well it doesn't like the brackets much better... weird as that is the correct syntax, I just checked in the BiKi (unless the BiKi is wrong?).

Share this post


Link to post
Share on other sites

Well this is the error when I don't use brackets.

Config: '1' encountered instead of '{'

Share this post


Link to post
Share on other sites

Hmm. I'm sure that the BiKi syntax is correct - it's been there too long for an error to have survived.

Have you run the script through Squint?

Sometimes ArmA reports a line as being in error when it is sctually the following line, or something like a missing ";" in the preceding line. Squint will usually pick those up.

Share this post


Link to post
Share on other sites

I got Squint and checked and it doesn't say there's an error either with or without brackets.

Edited by Outlawz7

Share this post


Link to post
Share on other sites

OK, I just peeked inside a few MP missions and they all use the BiKi syntax. It must be something else in the script.

Could you post the whole thing?

Share this post


Link to post
Share on other sites

I can't test it at the moment but the biki syntax for keysLimit looks wrong.

it has to be either

keysLimit[] = {2};

or

keysLimit = 2;

and not a mix of both.

According to the biki description it should be a number, so my (educated) guess would be the latter,

i.e. for your mission

keysLimit = 1;

And make sure to use unique key names to avoid collisions with BIS's or other authors' keys (and your own keys of different campaigns / series of scenarios), e.g. by using author tags

Share this post


Link to post
Share on other sites

It's the second one:

keysLimit = 2;
, the mission is locked now.

Many thanks, Master!! :D

Share this post


Link to post
Share on other sites

That's most peculiar. I looked in a couple of MP missions that I have played as SP & they both used the BiKi syntax.

Anyway, glad you got it fixed.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×