Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: scmdraft Trigger Editor
scmdraft Trigger Editor
Jun 1 2008, 1:46 pm
By: Ateo  

Jun 1 2008, 1:46 pm Ateo Post #1



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.

Jun 1 2008, 3:47 pm NudeRaider Post #2

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.




Jun 1 2008, 6:45 pm Ahli Post #3

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? :D)
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.




Jun 2 2008, 3:33 am Ateo Post #4



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.

Jun 2 2008, 6:07 am NudeRaider Post #5

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. :D




Jun 2 2008, 10:21 am Ahli Post #6

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.




Jun 2 2008, 11:10 am Ateo Post #7



It's ok, it's all fixed now.

Thanks NudeRaider and Ahli! ^^ ^^ ^^



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[09:04 pm]
NudeRaider -- Heinermann
Heinermann shouted: who decided "we're not necessarily anti-bot"? It's worse than spam, it's social engineering to trick people into believing that they are legitimate and get them to click their links
I think moose made the rules
[08:33 pm]
NimoStar -- Is UndeadStar like an undead version of me?
[05:51 pm]
UndeadStar -- Symmetry
Symmetry shouted: kinda looks like we need to auto ban all new accounts with 3 numbers at the end lmao
Members Online: UndeadStar, FranciBizjak898, LukaNovak271, GesineFalkenthal863, AjdaSkubic907, JonasAlthaus047, LukasWeigel655
[05:13 pm]
lil-Inferno -- SEN literally had a butlerian jihad before and now he talmbout we aren't anti-bot? 🤨
[12:17 pm]
Zakerozi -- Dfk is going on here :D
[03:47 am]
Symmetry -- kinda looks like we need to auto ban all new accounts with 3 numbers at the end lmao
[12:56 am]
Heinermann -- who decided "we're not necessarily anti-bot"? It's worse than spam, it's social engineering to trick people into believing that they are legitimate and get them to click their links
[2026-11-12. : 6:04 pm]
NudeRaider -- ihjel
ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
ihjel
ihjel shouted: "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
it's rather inconvenient actually, as it requires you to transfer it to Custom Score which might even interfere with what you're measuring. But IIRC you can also use EUDs to display it which by now could actually be somewhat convenient.
[2026-11-11. : 9:25 pm]
ihjel -- "Use Display Text Message or the in-game Leaderboard to output the live values of critical Death Counters." that would be so convenient wouldn't it.
Please log in to shout.


Members Online: ihjel, NudeRaider