I'm working on my map since the day Wings of Liberty came out.
I've published it multiple times.
Recently I picked it up again.
I spent a few months coding and saving, never publishing.
Now that I am done and I am trying to publish it, I get a "Invalid Parameters" error when clicking the "next" after choosing if the map is going to be locked/unlocked.
I can easily save without errors and testing the map works like a charm.
To figure out of it's my triggers that are causing this, I made a new map and copied them all in there (it's a map that relies HEAVILY on triggers and almost no edits in the data editor).
To my surprise, the new map gave an error too with my pasted triggers, it was the same one.
How the error works:
I get the error for a random line. I check the line, it's GUI and everything seems perfect.
So I decide to delete it. Then I get the SAME error 5 lines below, sometimes it's on similar things.
Here's an example:
It's an Action-type element. No parameters, no variables.
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == matrixITEM /Dialog /State [0][Units][Alpha]
Then
Unit Selection - Select Unit Spawner for Player((Triggering player))
Else
matrixITEM is a dialog item with an array[-][-][-].
Units is a basic preset, if you try you can add presets instead of numbers, I can only guess its passing them by an integer.
This HAS worked before and I currently have a previous version of the map uploaded that does the same.
*Some brainstorming*
I found out that passing presets directly instead of integers is what causes the problem, as only those items are affected.
I am absolutely sure this has worked in previous versions and testing the map launches Starcraft 2 and the map works without an error.
Does anybody know how to fix this?
My map is all about dialogs, everything is done with hundreds of dialogs and I've built a whole system called "Matrix" based on the fact that presets can be directly passed as integers to arrays.
Im thinking of accessing the code and replacing the presets with integers but that can turn into a lot of more work to do and I am disappointed that all my work will go to waste.
Hello!
I'm working on my map since the day Wings of Liberty came out.
I've published it multiple times.
Recently I picked it up again.
I spent a few months coding and saving, never publishing.
Now that I am done and I am trying to publish it, I get a "Invalid Parameters" error when clicking the "next" after choosing if the map is going to be locked/unlocked.
I can easily save without errors and testing the map works like a charm.
To figure out of it's my triggers that are causing this, I made a new map and copied them all in there (it's a map that relies HEAVILY on triggers and almost no edits in the data editor).
To my surprise, the new map gave an error too with my pasted triggers, it was the same one.
How the error works:
I get the error for a random line. I check the line, it's GUI and everything seems perfect.
So I decide to delete it. Then I get the SAME error 5 lines below, sometimes it's on similar things.
Here's an example:
It's an Action-type element. No parameters, no variables.
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == matrixITEM /Dialog /State [0][Units][Alpha]
Then
Unit Selection - Select Unit Spawner for Player((Triggering player))
Else
matrixITEM is a dialog item with an array[-][-][-].
Units is a basic preset, if you try you can add presets instead of numbers, I can only guess its passing them by an integer.
This HAS worked before and I currently have a previous version of the map uploaded that does the same.
*Some brainstorming*
I found out that passing presets directly instead of integers is what causes the problem, as only those items are affected.
I am absolutely sure this has worked in previous versions and testing the map launches Starcraft 2 and the map works without an error.
Does anybody know how to fix this?
My map is all about dialogs, everything is done with hundreds of dialogs and I've built a whole system called "Matrix" based on the fact that presets can be directly passed as integers to arrays.
Im thinking of accessing the code and replacing the presets with integers but that can turn into a lot of more work to do and I am disappointed that all my work will go to waste.
Fix - disable obfuscation when using custom presets. I hope I was helpful to someone. Credit: Dr. Super Good