Jump to content
Sign in to follow this  
UltimateBawb

"Line 3 token= is not an array{}"

Recommended Posts

When trying to binarize a .cpp with Eliteness I get the error "Line 3 token= is not an array{}," and the line referred to is always just an array like requiredAddons = {"A3_Data_F", "A3_UI_F", "A3_Anims_F", "A3_Anims_F_Config_Sdr", "A3_Weapons_F"};. I've troubleshooted by debinarizing a working .pbo config and rebinarizing but still always get the same error regardless of the file or array. I can even comment out the first array and it happens on the next one. What's going on?

I'm using Eliteness x32 version 3.24. Thanks for any help you can provide!

Share this post


Link to post
Share on other sites

That's an easy fix:

Note the blockhooks [] after requiredAddons. That makes the engine read that property as an array.

requiredAddons[] = {"A3_Data_F","A3_Roads_F","A3_Structures_F","A3_Map_Data"};

Share this post


Link to post
Share on other sites

Thanks so much, problem solved. It confused me as to why this wasn't already in the code when debinarizing though...

Share this post


Link to post
Share on other sites

No idea, I don't think I've ever ran into that issue but then again, I don't use Eliteness.

If you can consistently reproduce it by unpacking the working .pbo you mentioned in the OP, it might be a bug and in that case, you may want to report it at https://dev.withsix.com/projects/mikero-pbodll/issues.

Edited by BadLuckBurt
just a little less 'might'

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  

×