There appears to be a bug that only happens when the Macro/Keybind mod is active and while it doesn't appear to affect the mod itself it affects other mods (potentially quite badly). In other mod's custom UI config screens, such as Journeymap, Voxelmap, and Tabbychat, the scrollwheel up/down action also generates a mouse left click event. What this can result in is odd behavior, and worst of all, being able to delete several waypoints at once with a misplaced scroll in the waypoint list.
I have checked to see if any macros or anything are added to the Mousewheel but I can't seem to find anything that would indicate that the mousewheel is programmed to function outside of the ordinary. Again, that said this affects other mods most noticeably.
I see why that's happening and yeah it's basically a bug, or at least it's an undesirable side effect of an intended feature. Bascially macros input processor has always internally converted mouse wheel events into actual mouse events so that the mwheelup and mwheeldown can actually be bound to macros. It does this by generating companion events for each mouse wheel click which are processed in the buffer like regular mouse events and handled accordingly.
These events are assinged a unique internal ID for handling, however no "button" is actually assigned to the event so it's always been the default value of -1 which I'm guessing certain GUIs interpret as button 0 (eg. the left mouse button). What I can easily do is have the input processor assign new virtual IDs to the mouse wheel events which should stop this happening. The nice thing about the virtual events is that it actually allows you to bind the mouse wheel to regular minecraft bindings without even assigning a macro.
I'm working on the 1.12.1 release currently so I'll roll up this in the current batch of changes.
For some reason, using the subscribe button under Tools isn't working, so I'm replying to the thread to ensure I don't miss a dev update like I nearly did last time.
You can use IFMATCHES for regex matching. Syntax is IFMATCHES("<subject>","<regex>") or you can capture a specific group into a target variable using IFMATCHES("<subject>","<regex>",<&variable>,<groupNumber>)
What im trying to do is just to compare the text that is in the vargroup.
Testing with 1 word work, but look like trying to use regex doesn't work, does the vargroup want only string and can't use regex ?
What Im trying to do is to detect if the username is (in this exemple) "iy0i" or "zeus" if it's one of the 2 username, I log "boom" ( for a test ) and if it's not one of both, I do a "- username" so I can exclude both of this "- Username". Do I have to do a "else if" for each username ? Or is there a way to use regex ?
The Meaning of Life, the Universe, and Everything.
Join Date:
7/29/2012
Posts:
60
Minecraft:
JK82NL
Member Details
The 1.12 version is on page 814
I don't understand why everyone has to be so secretive about where to find it.
In defense of most of the people that were asking nicely actually having real trouble to find it. It's always normal to find versions on the first forum page, jenkins, github, curseforge or whatever dev page exist (mostly even multiple per developer). In my case I also have to maintain a server with 35+ plugins and have to look everywhere to update them and then also alot of mods. I can imagine you do not expect me/us to look through every forum to MAYBE find a new version after already checking every available 'official' download pages?
Of course there are people always trying it the easy/lazy way. But at least point us in the right direction because I have checked all these pages alot of times in the past months. And incorrect answers like "it's not in this thread" While that person probably does not know what a thread is and means 'page' makes the people in search steer away from here and never find it at all.
No offense to you Mumfrey, You are surely busy enough maintaining these mod's and replying to peoples questions. Always been a fan of liteloader and your mods. You probably do not get thanked enough by us all!
I don't understand why everyone has to be so secretive about where to find it.
Because it's a pre-release, and the point is that only people who are active with this mods developement should use the pre-release. Only people who activly follow this thread should know about the pre-release, the testing version of the next release. You don't want random people using it, discover bugs, and then come complain and say "it don't work!", it'd be linked in the OP if that was the case.
I am looking forward to the next update I have done so much with this mod and there is so much more to do still.
My current hopes are for trig functions such as tan and arctan ( I'd like to make a macro to change my players pitch/yaw to face a specific coordinate). Edit: I understand you already have a lot on your plate with the variety of mods you work on. I don't have high expectations I'm just offering ideas.
If only there was an easy way to share Gui's with the scripts for each button included. I made a really nice ingame Calculator Gui, simply press C to open the calculator. numbers are PUT into an array and then echoed to the display or POPed off using the backspace key. The calculator supports multiplication division addition subtraction, square roots and to the power of x. Also stores the last answer for use of an ANS key.
I've also made a 3 dimensional distance calculator so you can see the distance between you and a specific coordinate.
My current hopes are for trig functions such as tan and arctan ( I'd like to make a macro to change my players pitch/yaw to face a specific coordinate).
You could use
calcyawto(x,y,#yaw,#distance)
look(%#yaw%,%PITCH%,0.5)
Thank you, had no idea calcyawto was a thing. I notice that the yaw calculated is in the exact opposite direction. But this might be because Im using MC version 1.10.2 at the moment. Either way I solved the problem, thanks!
I've been using Macromod for a few weeks now and it's fantastic--great job @Mumfrey. One of the things I've been wondering is if there is an updated documentation/readme that gives examples on how to use some of the commands; I've mostly been using the readme found here and searching this thread to find answers, along with using the in-game command help. Is there like a wiki type site? If not, would anyone in this thread be open to making one so we can centralize all this knowledge into one place? I see alot of posts in the thread that are the same response over and over; having a wiki would definitely solve this and make the information much more accessible. What do you guys think? @Mumfrey what do you think?
Just a feature suggestion: Add specific control for text size in buttons/labels. The layout grid isn't adaptive to Minecraft's UI Scale, but text is, so if you design a GUI scaled for Normal mode, it just looks awful if the UI scale is set to Large; text overlapping Button border, etc.
Just a feature suggestion: Add specific control for text size in buttons/labels. The layout grid isn't adaptive to Minecraft's UI Scale, but text is, so if you design a GUI scaled for Normal mode, it just looks awful if the UI scale is set to Large; text overlapping Button border, etc.
This would probably be do-able but unfortunately not easily. I could probably lock the scale to normal at least so that it's consistent across different gui scales. I'll look into it.
Hey guy, I'm really shocked by your work, it really is very good, I'm even programming in the experienced macro class, I've already created a lot of macros that a lot of people loved very much, but I came here to make a good suggestion, and if you guys created A program to program macro?
Type, to program java has the eclipse program that helps a lot, or NetBeans, understand? They could create a program in the language macros, to help many new people who want to create macros, a simple and basic program with the explained commands and everything![/pre]
Hey guy, I'm really shocked by your work, it really is very good, I'm even programming in the experienced macro class, I've already created a lot of macros that a lot of people loved very much, but I came here to make a good suggestion, and if you guys created A program to program macro?
Type, to program java has the eclipse program that helps a lot, or NetBeans, understand? They could create a program in the language macros, to help many new people who want to create macros, a simple and basic program with the explained commands and everything!
That's is a great idea! I've been wanting to write macros for a while now ;D
That's is a great idea! I've been wanting to write macros for a while now ;D
Programming macro is something that really takes away my stress :v is very cool
Look, I created this account just for this suggestion, because it would be very nice to have a program for this.[/pre]
There appears to be a bug that only happens when the Macro/Keybind mod is active and while it doesn't appear to affect the mod itself it affects other mods (potentially quite badly). In other mod's custom UI config screens, such as Journeymap, Voxelmap, and Tabbychat, the scrollwheel up/down action also generates a mouse left click event. What this can result in is odd behavior, and worst of all, being able to delete several waypoints at once with a misplaced scroll in the waypoint list.
I have checked to see if any macros or anything are added to the Mousewheel but I can't seem to find anything that would indicate that the mousewheel is programmed to function outside of the ordinary. Again, that said this affects other mods most noticeably.
I am running:
MK 0.15.0-beta1
LiteLoader 1.12 Snapshot b7-7
Journeymap 1.12-5.4.9
Tabbychat 2.3.0-beta-296
MnmUtils 2.3.0-beta-296
I see why that's happening and yeah it's basically a bug, or at least it's an undesirable side effect of an intended feature. Bascially macros input processor has always internally converted mouse wheel events into actual mouse events so that the mwheelup and mwheeldown can actually be bound to macros. It does this by generating companion events for each mouse wheel click which are processed in the buffer like regular mouse events and handled accordingly.
These events are assinged a unique internal ID for handling, however no "button" is actually assigned to the event so it's always been the default value of -1 which I'm guessing certain GUIs interpret as button 0 (eg. the left mouse button). What I can easily do is have the input processor assign new virtual IDs to the mouse wheel events which should stop this happening. The nice thing about the virtual events is that it actually allows you to bind the mouse wheel to regular minecraft bindings without even assigning a macro.
I'm working on the 1.12.1 release currently so I'll roll up this in the current batch of changes.
For some reason, using the subscribe button under Tools isn't working, so I'm replying to the thread to ensure I don't miss a dev update like I nearly did last time.
You can use IFMATCHES for regex matching. Syntax is IFMATCHES("<subject>","<regex>") or you can capture a specific group into a target variable using IFMATCHES("<subject>","<regex>",<&variable>,<groupNumber>)
try it instead of if func.
I don't want to workーthe mad Japanese guy said. twitter -> here
The 1.12 version is on page 814
I don't understand why everyone has to be so secretive about where to find it.
In defense of most of the people that were asking nicely actually having real trouble to find it. It's always normal to find versions on the first forum page, jenkins, github, curseforge or whatever dev page exist (mostly even multiple per developer). In my case I also have to maintain a server with 35+ plugins and have to look everywhere to update them and then also alot of mods. I can imagine you do not expect me/us to look through every forum to MAYBE find a new version after already checking every available 'official' download pages?
Of course there are people always trying it the easy/lazy way. But at least point us in the right direction because I have checked all these pages alot of times in the past months. And incorrect answers like "it's not in this thread" While that person probably does not know what a thread is and means 'page' makes the people in search steer away from here and never find it at all.
No offense to you Mumfrey, You are surely busy enough maintaining these mod's and replying to peoples questions. Always been a fan of liteloader and your mods. You probably do not get thanked enough by us all!
Because it's a pre-release, and the point is that only people who are active with this mods developement should use the pre-release. Only people who activly follow this thread should know about the pre-release, the testing version of the next release. You don't want random people using it, discover bugs, and then come complain and say "it don't work!", it'd be linked in the OP if that was the case.
I am looking forward to the next update I have done so much with this mod and there is so much more to do still.
My current hopes are for trig functions such as tan and arctan ( I'd like to make a macro to change my players pitch/yaw to face a specific coordinate). Edit: I understand you already have a lot on your plate with the variety of mods you work on. I don't have high expectations I'm just offering ideas.
If only there was an easy way to share Gui's with the scripts for each button included. I made a really nice ingame Calculator Gui, simply press C to open the calculator. numbers are PUT into an array and then echoed to the display or POPed off using the backspace key. The calculator supports multiplication division addition subtraction, square roots and to the power of x. Also stores the last answer for use of an ANS key.
I've also made a 3 dimensional distance calculator so you can see the distance between you and a specific coordinate.
A Stopwatch gui and a lot more.
Preview of calculator:
https://gyazo.com/cad84647d164d95c7660479f67c8f6ba
You could use
calcyawto(x,y,#yaw,#distance)
look(%#yaw%,%PITCH%,0.5)
but if you trust me you could also download
https://www.dropbox.com/s/yi0zs0esmxl08ho/module_Utilities-0.1-24-0.14.0-mc1.11.jar?dl=1
this module, which has a build in eval function
(if you have any questions about that pm me)
Thank you, had no idea calcyawto was a thing. I notice that the yaw calculated is in the exact opposite direction. But this might be because Im using MC version 1.10.2 at the moment. Either way I solved the problem, thanks!
Ah right I forgot, no it is not bcs you are 1.10.2 it is because -180 is the 0 of macromod since -180 would indicate a relativ coordinate
you just have to add inc(#yaw,180) and it's all done
Hello,
I've been using Macromod for a few weeks now and it's fantastic--great job @Mumfrey. One of the things I've been wondering is if there is an updated documentation/readme that gives examples on how to use some of the commands; I've mostly been using the readme found here and searching this thread to find answers, along with using the in-game command help. Is there like a wiki type site? If not, would anyone in this thread be open to making one so we can centralize all this knowledge into one place? I see alot of posts in the thread that are the same response over and over; having a wiki would definitely solve this and make the information much more accessible. What do you guys think? @Mumfrey what do you think?
@Capitulating I once started a german wiki however that project failed badly
however you can find a lot of useful info http://mkb-wiki.herokuapp.com/hub here
I am trying to keep up-to-date with news and info about this mod and it's development. Where can I do this?
Just a feature suggestion: Add specific control for text size in buttons/labels. The layout grid isn't adaptive to Minecraft's UI Scale, but text is, so if you design a GUI scaled for Normal mode, it just looks awful if the UI scale is set to Large; text overlapping Button border, etc.
This thread or my twitter, I don't really tweet much but I do usually tweet when I update things. Plus it'll always be in this thread obviously.
This would probably be do-able but unfortunately not easily. I could probably lock the scale to normal at least so that it's consistent across different gui scales. I'll look into it.
Type, to program java has the eclipse program that helps a lot, or NetBeans, understand? They could create a program in the language macros, to help many new people who want to create macros, a simple and basic program with the explained commands and everything![/pre]
Quote from LilAion >>
That's is a great idea! I've been wanting to write macros for a while now ;D
Programming macro is something that really takes away my stress :v is very cool
Look, I created this account just for this suggestion, because it would be very nice to have a program for this.[/pre]
Hmm. Is there any way to tell what block a player is looking at?