But the XPOS, YPOS and ZPOS are all integers anyway, in fact all numeric values used by the mod are integers. The macro you posted above would actually just try to teleport you to your own position, well it would provided it was inside an ECHO. If you just put that in as a chat command the server would probably choke on the raw string "/tp %PLAYER% %XPOS% %YPOS% %ZPOS%".
Sorry, I wasn't really awake when I typed that, I'm trying to do this:
KeyBind:
If I do I want to make sure it has a different syntax to normal assignments. What about something like:
%#var% <= HEALTH
or the Pascal-style:
%#var% := HEALTH
Either of those sound okay?
I was thinking more of something like..
Idea 1)
%@&moneyof%@&player%%
It would detect the & and the @& after each % sign, so it knows not to close off the first variable. We could always make a command so it knows not to close it off so you don't have to rewrite everything..
a log special, echo special, and set special?
LOGSPEC("&c%&&moneyof%@&player%%")
SETSPEC(@&moneyof%@&player%,%@&lastmoney%)
Idea 2 (more plausible))
Make another type of variable quotes that parses first, before %@&blah%
Maybe like %@&blah:@&player:% ?
:@&player: would basically be a variable %%, and it would take from the same variable storage place, it would just make it parse first. So if %@&player% was MeepDarknessMeep, it would read it as %@&blahMeepDarknessMeep%.
Rollback Post to RevisionRollBack
Thanks to Mumfrey for creating this awesome mod! The Macro / Keybind Mod. If you ever need to contact me asap, go to the server: mc.synapsehlp.com
Why does this fail with above error? I don't even input any values, just 0, 0, and 0 but it still fails.
You forgot to wrap it, ECHO doesn't expect to be served variables, it can output any literal string, so you must highlight them
the same way you did with %PLAYER%, you can (should) just use PLAYER in IF(), but not in an Echo
If you're describing bugs please try to be descriptive, "does the whole thing with hitting esc where it pulls up the pause menu" assumes I have some prior knowledge of the issue which I do not. If there is a problem please describe it with steps to reproduce etc.
The "That whole thing with the pause menu" he's talking about, is where, upon Right-clicking the Mob Spawner, and selecting the mob you wish to have spawn, you have to hit the "ESC" key, which both leaves the SpawnerGUI Menu, and then brings up the in-game menu as well. Resulting in users having to hit ESC twice, each time they have to change a Spawner.
Honestly... I didn't even ~know~ how to set the mobs, and then get out of the GUI menu (I had to search for a while, to find that answer)... and did find it weird that Risugami bound the "exit" menu feature to a key, instead of placing a "X" somewhere, to click and close... or bind it (optionally) to the "Q" button (drop). But... it is what it is. Most people don't want to change their ESC key to something else, so they'll have to get used to it.
Still... kind of weird to be talking about a SpawnerGUI issue, in the Macro Keybind thread...
I can't seem to use your mod on a server i go to anymore
The game keeps randomly losing connection (everything freezes, can't open chests, furnaces; can't receive chat, eventually times out)
either immediately at startup or within minutes
I really didn't think it was your mod, but when i tried removing it it stopped
and as soon as i put it back on it started happening again
Since it's not a crash, i don't really know what kind of debug info to get..., any ideas?
I can't seem to use your mod on a server i go to anymore
The game keeps randomly losing connection (everything freezes, can't open chests, furnaces; can't receive chat, eventually times out)
either immediately at startup or within minutes
I really didn't think it was your mod, but when i tried removing it it stopped
and as soon as i put it back on it started happening again
Since it's not a crash, i don't really know what kind of debug info to get..., any ideas?
My only guess is you do not have permissions to use it on that server, and you have binds that have to do with these events. Perhaps the bind tries to fire and just causes issues?
Rollback Post to RevisionRollBack
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
As many people already reported, Macro mod isn't loading for me. When I try to enable it, it freezes on the Mojang logo screen forever.
Correct version of Litemod confirmed.
Correct version of macro mod.litemod confirmed, manually placed on the mods folder.
Tried with Magic Launcher and editing directly the jar, removing meta-inf properly.
Java 1.6
OSX 10.8.2
MagicLauncher 1.0.0
Ideas?
Many people? I don't think anyone has reported problems with the 1.4 release other than small bugs, which have been fixed. Anyway, to your problem. Does the config file for the mod get generated? If so you could try enabling compatible mode in the config file to see whether it's a problem with the JInput system. Also check the liteloader.txt file for any clues.
I can't seem to use your mod on a server i go to anymore
The game keeps randomly losing connection (everything freezes, can't open chests, furnaces; can't receive chat, eventually times out)
either immediately at startup or within minutes
I really didn't think it was your mod, but when i tried removing it it stopped
and as soon as i put it back on it started happening again
Since it's not a crash, i don't really know what kind of debug info to get..., any ideas?
Have you got the chat filter installed? That would be my primary suspect for random stuff happening since it's the only major change between 0.9.4 and 0.9.5. Is it only on this one particular server you play on? Or is it just that you've only observed it happening on this one server?
Try disabling the chat filter if you are using it (just rename it and add something at the start of the filename because macros will only load modules that start with "module_"
Try enabling compatible mode and see if it makes any difference. I doubt it though for this kind of problem
Check liteloader.txt for startup errors that may indicate something is going wrong
Backup your macros.txt and then delete/rename it, just to be sure there's not a specific macro causing the issue.
Ok 2 things one is can you add a option to clear the creative inv and also a way to connect to a server. Also one more thing is how do you display a list in a script file? I could never get $$[This is a list[Option1,2,3]] to work.
Ok 2 things one is can you add a option to clear the creative inv and also a way to connect to a server.
Yes I can add an option to clear the creative inv, no there's no way to add an option to connect to a server, macros don't run in the GUI, I may add this in the future.
You forgot to wrap it, ECHO doesn't expect to be served variables, it can output any literal string, so you must highlight them
the same way you did with %PLAYER%, you can (should) just use PLAYER in IF(), but not in an Echo
I expect it to work, but this is what I get after doing R, inputting something then doing CTRL-R:
Note that the @waitforcraft is never set, @#craftbuf increases properly, for loop is weird, and the STOP() command isn't working.
Well the FOR loop goes from the first argument to the second, so my guess is that @#craftbuf is zero which will count from 1 to zero as you're seeing. Are you sure this is right:
IF(@waitforcraft);ELSE;LOG("Not ready to craft!");STOP();ENDIF;
That basically says if NOT waitforcraft then echo a message and stop.
Also this is not valid:
IF(~@waitforcraft)
do you mean?
IF(!@waitforcraft)
I can't spot any other glaring errors but it's pretty complex and I haven't had a chance to experiment with the scripts myself yet, if I get some time I will try them
Well the FOR loop goes from the first argument to the second, so my guess is that @#craftbuf is zero which will count from 1 to zero as you're seeing. Are you sure this is right:
IF(@waitforcraft);ELSE;LOG("Not ready to craft!");STOP();ENDIF;
That basically says if NOT waitforcraft then echo a message and stop.
Also this is not valid:
IF(~@waitforcraft)
do you mean?
IF(!@waitforcraft)
I can't spot any other glaring errors but it's pretty complex and I haven't had a chance to experiment with the scripts myself yet, if I get some time I will try them
I did mean that, I wasn't sure what the NOT symbol was so I kinda got the impression it was that from the posts on here. I also wasn't sure of the FOR loop, that was a guess from the Change Log
EDIT: Applied fixes, but how do I make it not do the negative loop? That is not really handy.
Above was fixed with an IF. But why are my stop()'s being ignored? Just tried it, it outputs:
"No crafting to do"
"Not ready to craft!"
"Crafting all done."
When it should stop at "No crafting to do".
Yeah, I wasn't sure what he was getting at either. I don't think it has anything to do with my mod.
It has absolutely nothing at all to do with your mod... it's all an issue with the way that SpawnerGUI is set up to "exit" its menu. The best solution is likely to just remap the "In-game menu" button, if they're going to keep using the mod.
And... eventually I'm going to have to read through some of the extra features for this mod... if there is some way to actually set up "filters" and set it so I have ~only~ my friend's text showing up in a chat window, that would be tops.
Still need help on my buffered crafting, but I also need help with this:
I have a override on the MIDDLEMOUSE button so I could implement the pickblock function in survival, but when I try it on a sign it crashes with this:
java.lang.NullPointerException
at net.eq2online.macros.gui.screens.GuiMacroParam.a(GuiMacroParam.java:392)
at asw.n(SourceFile:126)
at asw.m(SourceFile:104)
at net.eq2online.macros.gui.shared.GuiScreenEx.m(GuiScreenEx.java:488)
at net.minecraft.client.Minecraft.l(SourceFile:1077)
at net.minecraft.client.Minecraft.J(SourceFile:582)
at net.minecraft.client.Minecraft.run(SourceFile:534)
at java.lang.Thread.run(Thread.java:680)
What's up with that? Another question, how do I make it use the default pickblock function if I'm in creative?
I have a character string like that "> blablabla" with blablabla which is a random string of character, depending of the server message. Is there anyway to put the "> " off my string with a regular expression ?
Thank you,
Paul.
MATCH(%&originalstring%,"^> (.+)$",&newstring,1)
"^" start of line
"> " literal string
"(" start of subgroup
"," any character
"+" repeated
")" end of subgroup
Ideas?
Sorry, I wasn't really awake when I typed that, I'm trying to do this:
KeyBind:
Pos.txt:
Why does this fail with above error? I don't even input any values, just 0, 0, and 0 but it still fails.
I was thinking more of something like..
Idea 1)
%@&moneyof%@&player%%
It would detect the & and the @& after each % sign, so it knows not to close off the first variable. We could always make a command so it knows not to close it off so you don't have to rewrite everything..
a log special, echo special, and set special?
LOGSPEC("&c%&&moneyof%@&player%%")
SETSPEC(@&moneyof%@&player%,%@&lastmoney%)
Idea 2 (more plausible))
Make another type of variable quotes that parses first, before %@&blah%
Maybe like %@&blah:@&player:% ?
:@&player: would basically be a variable %%, and it would take from the same variable storage place, it would just make it parse first. So if %@&player% was MeepDarknessMeep, it would read it as %@&blahMeepDarknessMeep%.
You forgot to wrap it, ECHO doesn't expect to be served variables, it can output any literal string, so you must highlight them
the same way you did with %PLAYER%, you can (should) just use PLAYER in IF(), but not in an Echo
ECHO(/tp PLAYER #x #y #z)
ECHO(/tp %PLAYER% #x #y #z)
ECHO(/tp %PLAYER% %#x% %#y% %#z%)
'Cause tomorrow spring is here
The "That whole thing with the pause menu" he's talking about, is where, upon Right-clicking the Mob Spawner, and selecting the mob you wish to have spawn, you have to hit the "ESC" key, which both leaves the SpawnerGUI Menu, and then brings up the in-game menu as well. Resulting in users having to hit ESC twice, each time they have to change a Spawner.
Honestly... I didn't even ~know~ how to set the mobs, and then get out of the GUI menu (I had to search for a while, to find that answer)... and did find it weird that Risugami bound the "exit" menu feature to a key, instead of placing a "X" somewhere, to click and close... or bind it (optionally) to the "Q" button (drop). But... it is what it is. Most people don't want to change their ESC key to something else, so they'll have to get used to it.
Still... kind of weird to be talking about a SpawnerGUI issue, in the Macro Keybind thread...
The game keeps randomly losing connection (everything freezes, can't open chests, furnaces; can't receive chat, eventually times out)
either immediately at startup or within minutes
I really didn't think it was your mod, but when i tried removing it it stopped
and as soon as i put it back on it started happening again
Since it's not a crash, i don't really know what kind of debug info to get..., any ideas?
'Cause tomorrow spring is here
My only guess is you do not have permissions to use it on that server, and you have binds that have to do with these events. Perhaps the bind tries to fire and just causes issues?
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
Many people? I don't think anyone has reported problems with the 1.4 release other than small bugs, which have been fixed. Anyway, to your problem. Does the config file for the mod get generated? If so you could try enabling compatible mode in the config file to see whether it's a problem with the JInput system. Also check the liteloader.txt file for any clues.
Yeah, I wasn't sure what he was getting at either. I don't think it has anything to do with my mod.
Have you got the chat filter installed? That would be my primary suspect for random stuff happening since it's the only major change between 0.9.4 and 0.9.5. Is it only on this one particular server you play on? Or is it just that you've only observed it happening on this one server?
Yes I can add an option to clear the creative inv, no there's no way to add an option to connect to a server, macros don't run in the GUI, I may add this in the future.
List names can't have spaces in them, so the above won't work. It has to be:
I derped and typed it wrong, but I had forgotten the %% around the # vars.
I have a buffered crafting script I'm working on, looks like this:
KeyBind: CraftAll.txt: CraftHelp.txt:
I expect it to work, but this is what I get after doing R, inputting something then doing CTRL-R:
Note that the @waitforcraft is never set, @#craftbuf increases properly, for loop is weird, and the STOP() command isn't working.
Added to wish list.
Well the FOR loop goes from the first argument to the second, so my guess is that @#craftbuf is zero which will count from 1 to zero as you're seeing. Are you sure this is right:
That basically says if NOT waitforcraft then echo a message and stop.
Also this is not valid:
do you mean?
I can't spot any other glaring errors but it's pretty complex and I haven't had a chance to experiment with the scripts myself yet, if I get some time I will try them
EDIT: Applied fixes,
but how do I make it not do the negative loop? That is not really handy.Above was fixed with an IF. But why are my stop()'s being ignored? Just tried it, it outputs:
"No crafting to do"
"Not ready to craft!"
"Crafting all done."
When it should stop at "No crafting to do".
Most definitely!
And... eventually I'm going to have to read through some of the extra features for this mod... if there is some way to actually set up "filters" and set it so I have ~only~ my friend's text showing up in a chat window, that would be tops.
I have a override on the MIDDLEMOUSE button so I could implement the pickblock function in survival, but when I try it on a sign it crashes with this:
What's up with that? Another question, how do I make it use the default pickblock function if I'm in creative?
MATCH(%&originalstring%,"^> (.+)$",&newstring,1)
"^" start of line
"> " literal string
"(" start of subgroup
"," any character
"+" repeated
")" end of subgroup
See http://www.regular-expressions.info/ for a guide on how to use regex (the pattern Match and IFMATCHES use)
'Cause tomorrow spring is here