I was trying to mass copy some triggers, from player 1 to player 2, since the triggers are identical except for the location names. But everytime I try to export, it gives me a '":" expected' error. What gives?
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
Export? You mean compile?
":"? You're sure it doesn't say ";" (semicolon)?
Possible sources of errors are when you use an editor of some kind and have "Word Wrap" enabled. It generates EOL chars where none should be.
Or you didn't thoroughly copy a whole trigger (from "Trigger("All players"){" to "//-----------------------------------------------------------------//") or marked parts of triggers while inserting (overwrites the part you marked).
Generally when you encounter an error "... expected" you did some syntax mistake. Double check the parts you changed/inserted.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
I've that all the time. I hope SI saw that I edited my last post twice in his scmdraftbugs topic.
How to avoid that mistake:
1. Write or paste your triggers in it. (that's normal or?
)
2. if that error pops up while compiling (the right upper little box you can click at), go on
3. right click in your text field
4. chose "select all"
5. right click again
6. chose "copy"
7. then hit DEL
8. paste the triggers inside again
9. compile it again
10. if an error occurs, you should check that line. Make sure that the compiler starts at line 0 (with this method).
11. if you see the error with "line 0 started" and "line # done." it was compiled.
Just copy everything, delete everthing, paste everything and compile again.
It doesn't say start at line 0...
and I work with the classic trigedit. then when I have to duplicate mass amounts of triggers I use the trigger editor for copy/paste. I'm doing a select all, pasting it into Notepad++, doing a find and replace all, and then pasting the whole thing back into the trigger editor, on top of my original triggers.. After that, I will use classic Trigedit to delete any unnecessary copies, mostly from the computer players and forces.
None.
We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch
great! That's how I do it too.
I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.
If your syntax is right and the compiler won't compile it and displays an error message talking about an expected ");" in a line where it exists, you should do what I wrote.
How you change the triggers shouldn't matter here, as long as you have the right syntax in the editor field.
Do you still have that error?
Because that error is not always a real syntax mistake. I can reproduce that error whenever I want. I just need to copy a trigger out of my diablo 1 project with a wrong unit name, then I fail at compiling and change the unit name to a real one like "Terran Marine". Another compiling without deleting all the triggers before will cause the mistake.
It's ok, it's all fixed now.
Thanks NudeRaider and Ahli!
None.