MacroTriggers production thread, a language for specifying triggers
Post #42
killer_sss
May 3 2009, 1:29 am
Post #44
Wormer
May 3 2009, 7:06 am
|
killer_sss, you have syntax errors in the first line of the file. The output pointing you on errors. Numbers like 1:12 represent line:column where you got the error.
Could you attach the source file, so I can tell what errors are? Do you mean the ability to insert an action/condition invoking hotkeys? But you cant use single keys for that. Much keys combinations are already taken in Notepad++. There are 22 conditions and 53 actions... I think it is doable for the most frequently used actions and conditions. But even if I do this you need to remember all hotkeys by heart. |
Post #45
Wormer
May 3 2009, 7:48 am
|
MacroTriggers now supports new SCMD condition Memory!
MacroTriggers syntax is Memory(offset, qmod, number), where offset and number are integers and qmod is quantity modifier. The arcive includes updated SCMD trigger, MacroTriggers syntax highlightings, auto-completion file, and help file. Download mtrigsc v1.3 package. |
Post #46
killer_sss
May 3 2009, 5:18 pm
Post #47
Wormer
May 3 2009, 5:39 pm
|
The mtrig one of course.
You can upload it to http://www.mediafire.com/ for example. |
Post #48
killer_sss
May 3 2009, 6:57 pm
|
http://www.mediafire.com/?sharekey=8bfcb6337cef52c02fb2ca15d7ea42d9e04e75f6e8ebb871
btw what do i do with the new 1.3 patch? i downloaded it ![]() ![]() ![]() ![]() ![]() ![]() |
Post #49
Wormer
May 3 2009, 7:19 pm
|
You use v1.3 in the same way as v1.2. It only has the support for the new Memory condition.
W8 a minute, this is not the file I wanted you to attach. I want the source text file with your triggers which you try to compile. If I understand right it is called something like "The file for MacroTrigs". |
Post #50
killer_sss
May 3 2009, 7:54 pm
|
so i need to compile this new file as well? http://www.mediafire.com/?sharekey=8bfcb6337cef52c02fb2ca15d7ea42d959c6de9b040d5fd05be6ba49b5870170 This post was edited 2 times, last edit by killer_sss: May 3 2009, 8:04 pm. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #51
Wormer
May 3 2009, 8:35 pm
|
Um...
this is not what I wanted too.... I need a text file...If I understand you right you've copied mtrigsc.jar into some folder and written the script in Notepad++ with right paths to the mtrigsc.jar. After that you run the script on the text file. There are some examples in the archive (text files with .mtrigger extention). Try to open one of them in notepad++ and hit F6. |
Post #52
killer_sss
May 3 2009, 10:17 pm
|
well i'm confused as ever. I did step one. I did step 2. Step 4 i guess idk what i missed. I asumed source file was mtrigsc.jar is it not? I don't see any source.mtrigs anywhere so i compiled mtrigsc.jar. i think i missed that file and i have no idea what i'm doing. I mean i can program and i can map only problem is i have trouble with the inbetween crap. what did i miss lol? ![]() ![]() ![]() ![]() ![]() ![]() |
Post #53
Wormer
May 3 2009, 10:42 pm
|
You're doing fine. You've done the setup, now it is time to start programming. What do you usually do when you program? You're writing a program, right? The program is a text which you type in and then compile. Compiling mtrigsc.jar is wrong. You've said that you've downloaded version1.3 archive. There is a folder called "examples" in it. This folder contains text files "ex1.mtrigger" and "ex2.mtrigger". Open one of these files in Notepad++ and press F6. Tell me what you get.
|
Post #54
killer_sss
May 3 2009, 11:06 pm
|
but in step 4 i never got 2 files. i thought thats what i needed b4 i write the program. well i have the compiler working now that i figured our .rar is a compressed file lol. i compiled extrigger one and this is what i got: line 1:20 no viable alternative at character '{' line 3:59 no viable alternative at character ';' ... line 361:58 no viable alternative at character ';' line 362:0 no viable alternative at character '}' BR.recoverFromMismatchedToken line 1:7 mismatched input '(' expecting '=' BR.recoverFromMismatchedToken in C:\Documents and Settings\Steven\My Documents\ansi\v1.3\examples\ex1.trigger:line 2:10: mismatched input ':' expecting '=' am i making progress now? from here i can type my triggers and setup my macros? edit: added the open/close parts to the mtrigs compile thing like step 4 says and i now get this java -jar "C:\Documents and Settings\Steven\My Documents\ansi\v1.3\mtrigsc.jar" "C:\Documents and Settings\Steven\My Documents\ansi\v1.3\examples\ex2.trigger" "ex2.trigger" "ex2.property"NPP_CLOSE "ex2.trigger"NPP_OPEN "ex2.trigger" Process started >>> MacroTriggers Compiler v1.3 Usage: mtrigsc <input macrotriggers file> <output triggers file> <output properties file> <<< Process finished. wasn't it suppose to open the triggers of what i compiled so i can paste them into a map? compiled the test triggers. This post was edited 5 times, last edit by killer_sss: May 4 2009, 12:05 am. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #55
Falkoner
May 4 2009, 12:28 am
|
Change your script to this:
Codecd "$(CURRENT_DIRECTORY)" // set up current directory NPP_SAVE // save current file java -jar "C:\Program Files (x86)\Starcraft\BIN\MTRIGS\mtrigsc.jar" "$(FULL_CURRENT_PATH)" "$(NAME_PART).trigger" "$(NAME_PART).property" //NPP_CLOSE "$(NAME_PART).property" //NPP_OPEN "$(NAME_PART).property" NPP_CLOSE "$(NAME_PART).trigger" // to make notepad++ reload file we close it NPP_OPEN "$(NAME_PART).trigger" And upon compiling the code will be saved, and it will reopen the compiled triggers if they are already open, and open them if they are not (Remember to replace the mtrigsc.jar filepath with your own ) ![]() ![]() ![]() ![]() ![]() ![]() |
Post #57
poison_us
Jun 22 2009, 7:48 pm
|
no re
|
Could you put this into a more user-friendly program? My computer won't run notepad++, and I don't have any programming knowledge...I think if it was more user-friendly more people would use it, and this would get the recognition it deserves.
EDIT: possibly work with SI to get this as a plug-in to SCMDraft? |
Post #58
Wormer
Jun 22 2009, 8:25 pm
|
I suck writing user interfaces. I would like to put it into a more friendly way, but it is hard for me to accomplish.
But this program simply transforms text from one form into another. You can use any other text editor which will work on your computer and suits you better. I could have suggested using Vim, but it is times more complicated than Notepad++ and requires more programming skills to setup properly and use effectively... EDIT: By the way guys, an update which will allow you to use arrays is coming soon! Like ARRAY colors = { "Red", "Green", "Blue" } |
Post #59 Commanda_Panda Jun 26 2009, 2:04 pm
|
I've been away from the Starcraft scene for quite some time, and I don't really understand what this does >.< Could someone explain it simpler?
I'm wondering if this has to power to make many slightly edited triggers ... for example, I'm working on a map that I need the following triggers: Conditions: Current Player has suffered exactly 1 death of Missile Turret Actions: Set Unit HP for Current Player at Anywhere 1% Preserve Trigger Conditions: Current Player has suffered exactly 2 death of Missile Turret Actions: Set Unit HP for Current Player at Anywhere 2% Preserve Trigger It's a virtual HP system I'm working on for my map, and I would need triggers than go all the way from 1%-100% (0 deaths of Missile Turret would result in dying), would this program be able to take my first trigger and make 98 duplicates from 1-100? Or maybe this program doesn't do anything like that at all, I'm not really sure and I'm just wondering If not, are there any programs like this? Here is a trigger duplicator. Just load your map, open up your triggers, select the one you want, replace the numbers you want with "$x" without quotes, and set you starting value for X and your invterval (your case is 1) then finally compile it. Thank you very much, I've been wishing for a program like this forever! I'm still wondering what this program does though, maybe it will be of use to me, so if anyone can dumb it down to explain it it'd be great This post was edited 1 time, last edit by Commanda_Panda: Jun 26 2009, 2:15 pm. ![]() ![]() ![]() ![]() ![]() ![]() |
Post #60
Morphling
Jun 26 2009, 2:11 pm
|
Here is a trigger duplicator. Just load your map, open up your triggers, select the one you want, replace the numbers you want with "$x" without quotes, and set you starting value for X and your invterval (your case is 1) then finally compile it.
![]() ![]() ![]() ![]() ![]() ![]() |
0 members in this topic (italic members are currently writing a reply): None
+ guest(s)
+ guest(s)
[01:23 am]
[01:22 am]
[01:04 am]
[11:59 pm]
[10:46 pm]
[10:46 pm]
[10:30 pm]



"

this is not what I wanted too.... I need a text file...
(Remember to replace the mtrigsc.jar filepath with your own
) 
![[close]](/images/up.gif)