What i wanted to achieve is to emulate clicking on items in the inventory to realize macros/scripts that are able to put items in/out of furnaces, chests, brewing stands e.t.c.
Anyways, I just found out it doesnt work properly in smp (apparently only the client click is emulated but packages aren't sent)
im using the PlayerController.windowClick(...) method... i was told it is supposed to work :/ *meh*
Will you ever ub the future be able to incorporate G110 G-Key selections? I haven't looked through the mod as of yet to see if they are incorporated, but I have a Gaming keyboard & it has 16 extra unused keys specifically for keybinding.
Can no one help me? I've asked my question two times and no responses.
Could you restate your question more clearly? Not entirely sure what you want.
- What commands need submitted? (give exact syntax)
- What options are available
- How do you want to access the options
Could you restate your question more clearly? Not entirely sure what you want.
- What commands need submitted? (give exact syntax)
- What options are available
- How do you want to access the options
You mean it turns orange? That is just syntax highlighting, It means you are doing it right.
Or is this some other weird color thing?
More information is required.
What I want is to be able to teleport using a list gui where all the items in the list are waypoints or coordinates that I set and can rename and delete using single player commands.
the command for teleporting is /tele X Y Z where X Y Z are the coordinates.
Maybe this happens when you teleport across worlds (world 1 -> world 2)?
On our server when I teleport from our main world to our survival world for example, I get teleported at max height no matter what I try. This is ofcourse not a bug of this macromod, but rather a bug of the teleportplugin that you are using (or bukkit).
Ok, this post is going to be pretty long, so apologies for that. I've literally been away on work for 4 days and come back to 4 new pages of posts! Still I want to respond to as many as you as I can these so check below whether I have replied, if not just re-post and I'll endeavour to answer, I'm back for a whole week before I go away again Also thanks to everyone who posted helpful replies, I really appreciate that people are willing to take their time to help out other users of the mod.
So, Mumfrey, I have a few more feature requests after playing around with scripting some more (You may/probably have at least a few of these planned, but hey). First, an onChatSend event, which would trigger when the user sends a message or command, would be immensely useful. It should probably contain a SENTCHAT variable or something similar containing the chat text.
I think this can be done, again it can be tricky to do things whilst remaining base-clean so I'll see what I can come up with.
Next, an onPlayerJoin event which would fire whenever another player joins a multiplayer server would be useful. An onPlayerApproach event would be immensely useful in PvP servers/worlds, to give an early warning of possible hostilities.
Player approach is certainly doable, and I think the player join one is now possible thanks to the fact that the player list is replicated to the client, so I should be able to know when a new player joins. I'll check it out.
Next, some actual scripting requests. It would be cool if we could choose a display name for list items.
I'm planning to make a new type of user-defined list parameter which can have custom icons and display text and is defined in files. I don't necessarily want to clutter the new "list" functionality though. This is slated for version 0.10
A RAND(lowerlimit, upperlimit) function could be nice, especially for aesthetic reasons (instead of repeating the exact same message every time, you could make a macro choose randomly between three or four). Also, an absolute value symbol/function would be ideal, making certain calculations a whole lot easier (example, when calculating the dimensions of an area selected with macros). Finally, It would be cool if SET() could be used on counters to set them to a specific number.
Both of those are possible, SET already works with counters.
This next request would probably be very useful to people. If we had the ability to place text on different screens from macros, that would be amazing. You could a function such as TEXT(orientation, left/top/right/bottomPadding, "text", "textID", screen) to initialize it. Orientation would roughly position the text on the screen (top, left, bottom-right, for example). The four Paddings would allow for more accurate text positioning. The textID would be a unique identifier for that specific piece of text, for use in other functions. Screen would set what screen the text would be displayed on (example: options, chat, signedit, etc.) and could be left blank for it to always be displayed. Then an EDITTEXT("textID", "newText") function would be used to change what a specific section of text says. Finally, DELTEXT("textID") would be used to completely remove the text section. I'm not entirely sure if this one would be possible without changing base classes, but it would be immensely useful.
Actually this is already a plan for the custom GUI functionality, I hadn't considered defining the text areas in script though so I can definitely add that if it would be useful.
Finally, and I am fairly sure that this can't be done, but I thought I would put it up just in case. Could we access exterior programs in-game? Like, say I wanted to make a macro that would skip the song I'm currently playing in Windows Media Player. I know that WMP has an API for this kind of thing (I think that's the correct term), as Rainmeter plugins can interface with it, but I don't know if it is possible to do it from Minecraft/Java.
This is the idea with modules, I have created the pluggable interface mainly to support adding custom functionality like this, so it's definitely something that's possible.
Speaking of the 1.2.4 chat picking up sent commands/messages etc from macromod, anyway to prevent that per macrobind, like if I wanted some keys to not be remembered? its kinda annoying when you do WE selections etc.. then you want to up arrow previous sent chat to send something again, and you got loads of //hpos etc commands to go past... they never got picked up before so was kinda used to it like that.
And lets hope improved chat comes back. its got more improving to do can't rely on mojang do nothing perfectly.
I'm not sure why it's keeping the sent chat, if it's logging the outbound chat packet contents in order to provide the history then it could be tricky to do. On the other hand if it's doing it in the player then it should be pretty straightforward to fix, I'll check it out.
Is there any way of making a script to act as the Counter Strike/Team Fortress 2 quickswich bind? Like you press "q" and it switches between the 2 last used tools/weapons.
Yes, store the last slot in the onInventorySlotChange event using $${SET(@#lastslot,%OLDINVSLOT%)}$$ and then bind a key to $${SLOT(%@#lastslot%)}$$ should work.
Hmm, is there any way to toggle CJBs speed mode? It's keybind is LSHIFT but when I try and get MM to toggle it, nothing happens. It works when I use SPRINT() though.
As I've mentioned, TOGGLEKEY only toggles key binds, it doesn't do anything fancy. The only way to achieve this is to send the key event every tick using PRESS which stuffs a fake key event into the buffer, so stick PRESS(LSHIFT) inside a loop and see what happens.
Well I tried to do your final solution, and it works fine except for one thing.
/snip
Is this a bug or am I still doing something wrong? I basicly copied your code and it seems logic enough. It actually works! But the execution is the problem.
Nope, you've done it absolutely right, but as I mentioned at the very bottom of my post (the EDIT part in bold), I derped slightly and forgot to tell lists to retrigger compilation, therefore the result never gets compiled. I'll fix this for the next version but as I mentioned you can use $$0 as a working alternative for the moment, instead of the explicit list. I realise it's a bit of a waste of a preset list but for now it's the only working alternative.
Not sure if there's an option and I'm just not seeing, it, but whenever i reload Minecraft my current bind configuration switches to the default one, which isn't so bad, but it's annoying to switch it back to my custom config whenever I start up. Is their a way to have it start on one other then default?
Yes, just put $${CONFIG("Name of your config")}$$ in the onJoinGame event.
Sorry if this has been answered, but have you considered adding options for different keyboards?
Yes of course! From the very start you've had the ability to customise the keyboard layout to your own, see instructions in the readme, you can move, add, and delete keys, and even rename them if you edit the config file.
Can this mod be impoved to add /slashcommands to trigger macros instead of keybinds?
This has been asked before, I will consider it but it's not a high priority at the moment. I have to prioritise features because I only have a certain amount of time for modding and the wish list is already as long as my arm.
What I want is to be able to teleport using a list gui where all the items in the list are waypoints or coordinates that I set and can rename and delete using single player commands.
the command for teleporting is /tele X Y Z where X Y Z are the coordinates.
This is pretty easy yes. Just bind a key to /tele $$p
Hmm, I haven't tried it but you could try assigning the captured string to a counter variable, this would essentially call Integer.parseInt() on the value and may ignore the commas, or it may choke on it and just assign zero. Give it a try.
But it didn't work (i tried both (keyword) and keyword, as well as the same regex i use to get @&lastmsg itself, but it always logs detecting, never keyword found
%@&lastmsg% when testing was *testing, keyword
I began minecraft ~July 7 2011 1.7.3 Beta
My username used to be Creative_Dalek but is now Dalek since 2/4/2015
This mod deals with inventory a lot:
http://www.minecraftforum.net/topic/323444-124spmp-inventory-tweaks-141b-mar-27/
Perhaps it could help you
in SMP i get black screen..
no crash report.
Could you restate your question more clearly? Not entirely sure what you want.
- What commands need submitted? (give exact syntax)
- What options are available
- How do you want to access the options
You mean it turns orange? That is just syntax highlighting, It means you are doing it right.
Or is this some other weird color thing?
More information is required.
What I want is to be able to teleport using a list gui where all the items in the list are waypoints or coordinates that I set and can rename and delete using single player commands.
the command for teleporting is /tele X Y Z where X Y Z are the coordinates.
I think this is easy...
If this does not work than this:
Macro/Keybind mod Wiki
Yea, you can make named waypoints. With /set "your named waypoint" and you teleport to a waypoint using /goto "your named waypoint"
But you can't list this waypoints with Macro / Keybind Mod
Macro/Keybind mod Wiki
It works for the most part but for some reason I get teleported underground and get stuck in dirt and die.
/goto $$w
It should then list all the waypoints you have.
I'm on ssp using single player commands.
Try to set the waypoints in the air not on an block
Macro/Keybind mod Wiki
Okay, here goes...
I think this can be done, again it can be tricky to do things whilst remaining base-clean so I'll see what I can come up with.
Player approach is certainly doable, and I think the player join one is now possible thanks to the fact that the player list is replicated to the client, so I should be able to know when a new player joins. I'll check it out.
I'm planning to make a new type of user-defined list parameter which can have custom icons and display text and is defined in files. I don't necessarily want to clutter the new "list" functionality though. This is slated for version 0.10
Both of those are possible, SET already works with counters.
Actually this is already a plan for the custom GUI functionality, I hadn't considered defining the text areas in script though so I can definitely add that if it would be useful.
This is the idea with modules, I have created the pluggable interface mainly to support adding custom functionality like this, so it's definitely something that's possible.
I'm not sure why it's keeping the sent chat, if it's logging the outbound chat packet contents in order to provide the history then it could be tricky to do. On the other hand if it's doing it in the player then it should be pretty straightforward to fix, I'll check it out.
Yes, store the last slot in the onInventorySlotChange event using $${SET(@#lastslot,%OLDINVSLOT%)}$$ and then bind a key to $${SLOT(%@#lastslot%)}$$ should work.
As I've mentioned, TOGGLEKEY only toggles key binds, it doesn't do anything fancy. The only way to achieve this is to send the key event every tick using PRESS which stuffs a fake key event into the buffer, so stick PRESS(LSHIFT) inside a loop and see what happens.
Nope, you've done it absolutely right, but as I mentioned at the very bottom of my post (the EDIT part in bold), I derped slightly and forgot to tell lists to retrigger compilation, therefore the result never gets compiled. I'll fix this for the next version but as I mentioned you can use $$0 as a working alternative for the moment, instead of the explicit list. I realise it's a bit of a waste of a preset list but for now it's the only working alternative.
Yes, just put $${CONFIG("Name of your config")}$$ in the onJoinGame event.
Yes of course! From the very start you've had the ability to customise the keyboard layout to your own, see instructions in the readme, you can move, add, and delete keys, and even rename them if you edit the config file.
Cool, I'll check it out, hadn't spotted that! Derp.
This has been asked before, I will consider it but it's not a high priority at the moment. I have to prioritise features because I only have a certain amount of time for modding and the wish list is already as long as my arm.
Click the little "settings" icon when prompted to press a key to edit.
This is pretty easy yes. Just bind a key to /tele $$p
This would be very hard to do, and realistically you should be restarting minecraft each time.
'Cause tomorrow spring is here
He never posted that it was there, but it is.
I tried this, but it fails. Just returns a zero.
But it didn't work (i tried both (keyword) and keyword, as well as the same regex i use to get @&lastmsg itself, but it always logs detecting, never keyword found
%@&lastmsg% when testing was *testing, keyword
If it matters, my OnChat looks like this
'Cause tomorrow spring is here