Hrmm.. So the following is no longer giving me the "Script terminated with uncollapsed stack: IF expects ELSEIF, ELSE, or ENDIF" error. Though, it does not put me back into survival, or adventure. It tries to put me in creative again.
This is seriously messing with my mind. It works on a vanilla server just fine. But I can not get it to work on a mini game server I'm a staff member for.
Hrmm.. So the following is no longer giving me the "Script terminated with uncollapsed stack: IF expects ELSEIF, ELSE, or ENDIF" error. Though, it does not put me back into survival, or adventure. It tries to put me in creative again.
This is seriously messing with my mind. It works on a vanilla server just fine. But I can not get it to work on a mini game server I'm a staff member for.
Maybe your server messes with something that is used to detect the MODE
check $${Log(%MODE%)}$$ for each of the three modes, see if it gets detected incorrectly or smth
[07:23:00] [Client thread/INFO]: Initialising mod Macro / Keybind Mod version 0.11.1 beta 2
[07:23:00] [Client thread/INFO]: Macros: API Error. Not loading custom action in io.github.kenzierocks.readfile.ScriptActionRFMain, bad API version.
That normal?
Probably doesn't work with that version of macromod?
That's ok I guess I was looking for an easy way haha. Thanks a bunch.
The Meaning of Life, the Universe, and Everything.
Join Date:
10/8/2013
Posts:
43
Minecraft:
ZizzyDizzyMC
Member Details
Mart3323 Helped me do what I wanted to do earlier in pm. I'm having another issue now, mostly just me and my lack of experience with the coding language.
Anyway, I'd like to do some simple math with it.
Current code:
@&value1 = %@&value2%
@&value3 = %@&value4%-%@&value1%
@&value5 = %@&value3%*.6
End should be @&value5
However it seems to just give me litteral values, if value1 is 0 value4 is 1000 then it sets value3 to 1000-0 and then snowballs when value5 ends as 1000-0*.6
I'm 100% sure I'm just dropping the ball on this one.
EDIT: is this even possible?
[07:23:00] [Client thread/INFO]: Initialising mod Macro / Keybind Mod version 0.11.1 beta 2
[07:23:00] [Client thread/INFO]: Macros: API Error. Not loading custom action in io.github.kenzierocks.readfile.ScriptActionRFMain, bad API version.
That normal?
Probably doesn't work with that version of macromod?
That's ok I guess I was looking for an easy way haha. Thanks a bunch.
Mart3323 Helped me do what I wanted to do earlier in pm. I'm having another issue now, mostly just me and my lack of experience with the coding language.
Anyway, I'd like to do some simple math with it.
Current code:
@&value1 = %@&value2%
@&value3 = %@&value4%-%@&value1%
@&value5 = %@&value3%*.6
End should be @&value5
However it seems to just give me litteral values, if value1 is 0 value4 is 1000 then it sets value3 to 1000-0 and then snowballs when value5 ends as 1000-0*.6
I'm 100% sure I'm just dropping the ball on this one.
EDIT: is this even possible?
I'll use your value3 example.
to get a new value for 3 =4 -1 you have to do this.
Mart3323 Helped me do what I wanted to do earlier in pm. I'm having another issue now, mostly just me and my lack of experience with the coding language.
Anyway, I'd like to do some simple math with it.
Current code:
@&value1 = %@&value2%
@&value3 = %@&value4%-%@&value1%
@&value5 = %@&value3%*.6
End should be @&value5
However it seems to just give me litteral values, if value1 is 0 value4 is 1000 then it sets value3 to 1000-0 and then snowballs when value5 ends as 1000-0*.6
I'm 100% sure I'm just dropping the ball on this one.
EDIT: is this even possible?
Don't use globals unless you're sure you need to though =P
If you reach the max size (not sure if that's a thing here) or something, you can split it up into groups of lets say 9 digits, then add and subtract with manual carry
At that point it's probably easier to use a special file you can include to do the script for you
Or use scientific notation.., one var for the power of ten and one var for n significant digits
or use an array of integers, where the 0'th index is the ones, the 1'st index is the 10's, etc.
Hey can someone give me a link of the newest BETA version? Im not sure if the version I'm using is bugged or if the server has some how blocked the mod. Whenever I log in it disconnects me. I REALLY like this mod and its really hard for me to play mc without it anymore if someone could give me another option to possibly bypass their filter of this mod. Please and TY.
Hey can someone give me a link of the newest BETA version? Im not sure if the version I'm using is bugged or if the server has some how blocked the mod. Whenever I log in it disconnects me. I REALLY like this mod and its really hard for me to play mc without it anymore if someone could give me another option to possibly bypass their filter of this mod. Please and TY.
Check your bindings, you don't accidentally have $${Disconnect()}$$ bound to onJoinGame, do you?
Try making a new empty configuration, switching to it, and ensuring that there's no other config with the name or ip of the server
(it automatically switches for those sometimes)
Besides that you could try and log all the chat and events to a file, see what happens in those split seconds
for the BETA you need to find it yourself.., it's an initiative test to prove that you're willing to put in some work without getting frustrated
(because if you can't be arsed to do a single 5-minute search you definitely can't be arsed to put up with all the crashes and bugs - in that case you're better off using the stable version)
If you suspect that they're blocking it, i recommend just asking them about it..
as for bypassing blocks.., just no.., we1 do NOT support cheating, there's a reason this mod has permissions integration in the first place!
If the server owners do not want you to do something.., you DON'T DO IT!
1: 'We' actually just refers to me, i can't speak for others with 100% accuracy, i just feel like that is the general attitude here
Check your bindings, you don't accidentally have $${Disconnect()}$$ bound to onJoinGame, do you?
Try making a new empty configuration, switching to it, and ensuring that there's no other config with the name or ip of the server
(it automatically switches for those sometimes)
Besides that you could try and log all the chat and events to a file, see what happens in those split seconds
for the BETA you need to find it yourself.., it's an initiative test to prove that you're willing to put in some work without getting frustrated
(because if you can't be arsed to do a single 5-minute search you definitely can't be arsed to put up with all the crashes and bugs - in that case you're better off using the stable version)
If you suspect that they're blocking it, i recommend just asking them about it..
as for bypassing blocks.., just no.., we1 do NOT support cheating, there's a reason this mod has permissions integration in the first place!
If the server owners do not want you to do something.., you DON'T DO IT!
1: 'We' actually just refers to me, i can't speak for others with 100% accuracy, i just feel like that is the general attitude here
Yeah its not blocked ill try deleting my config. It works for 1.7 but the server is really meant for 1.8 so it crashes allot with 1.7.
The Meaning of Life, the Universe, and Everything.
Join Date:
12/22/2012
Posts:
161
Member Details
Is there a way to prevent "fake" color codes with chat filter? Like if a player that can't do color does like &4Text, it still comes out red on my screen but not to the ones that don't have the chat filter on.
Is there a way to prevent "fake" color codes with chat filter? Like if a player that can't do color does like &4Text, it still comes out red on my screen but not to the ones that don't have the chat filter on.
It shouldn't unless you Log() it..
if you want to log it i guess you'd have to Replace(&str,"§","¤") it with some other (similar?) character?
I'm pretty sure the ELSEIF has to come before the ELSE
It's like if i take the sentence (red, green, blue, or something else)...., and rearrange it to (red, something else, green, or blue)
if it's green.., is it also something else?, since green hadn't been mentioned by then?
or should it keep reading until the end and then jump back and reevaluate?
In addition, you said you want alt to ALWAYS cause a gamemode 3, not only if MODE is 0 (which putting it in the ELSE or ELSEIF block of an IF(mode) would imply) Is gamemode 3 a thing?.., is that spectator mode?
So i think it makes sense to check alt first.., if it's true nothing else matters, you want gm3
if it's not alt.., then you check the mode and swap accordingly
In addition, you can also use a key state bind for this.., set ~ALT or ALT as the condition, write just /gamemode 3 for the true script, and just
$${IIF(MODE,/gamemode 0,/gamemode 1)}$$ for the second one
The macro certainly makes more sense when you use a separate file instead of one line of text, however it is a bit harder to use when you try to sync your settings between computers and MC versions, hence my try for one-line macro
However, since I'm using a file already, I thought of making this a bit more smart, copying your piece of code from the previous thread page, works perfectly:
The macro certainly makes more sense when you use a separate file instead of one line of text, however it is a bit harder to use when you try to sync your settings between computers and MC versions, hence my try for one-line macro
However, since I'm using a file already, I thought of making this a bit more smart, copying your piece of code from the previous thread page, works perfectly:
And yes, gamemode 3 is spectator mode, and it's awesome
Well, you don't have to use a file.., the only difference is you need to replace the line breaks with semicolons (because you can't put line breaks in the single line of your binding) and that's it - i just prefer to write it out with line breaks because, well, it's easier to read, and pretty trivial to search and replace or just manually convert from one to the other =P
Personally i like using a script where the gamemodes are assumed to be in some order and ctrl + simply goes one way through the list and + goes the other
The downside is that i can't single-press swap between creative and adventure for example
the upside is that it's super-easy to figure out how to get to any gamemode from any other.., and it doesn't depend on history
In adventure?, wanna swap to creative?, it's always double tap ctrl + (adventure -> survival -> creative) =P
This is seriously messing with my mind. It works on a vanilla server just fine. But I can not get it to work on a mini game server I'm a staff member for.
Maybe your server messes with something that is used to detect the MODE
check $${Log(%MODE%)}$$ for each of the three modes, see if it gets detected incorrectly or smth
'Cause tomorrow spring is here
[07:23:00] [Client thread/INFO]: Initialising mod Macro / Keybind Mod version 0.11.1 beta 2
[07:23:00] [Client thread/INFO]: Macros: API Error. Not loading custom action in io.github.kenzierocks.readfile.ScriptActionRFMain, bad API version.
That normal?
Probably doesn't work with that version of macromod?
That's ok I guess I was looking for an easy way haha. Thanks a bunch.
Anyway, I'd like to do some simple math with it.
Current code:
@&value1 = %@&value2%
@&value3 = %@&value4%-%@&value1%
@&value5 = %@&value3%*.6
End should be @&value5
However it seems to just give me litteral values, if value1 is 0 value4 is 1000 then it sets value3 to 1000-0 and then snowballs when value5 ends as 1000-0*.6
I'm 100% sure I'm just dropping the ball on this one.
EDIT: is this even possible?
It needs updating to the betas, yea.
Figured it out but I can't do really large numbers up into the quadrillions. Tis a shame. Anyone have a work around?
I'll use your value3 example.
to get a new value for 3 =4 -1 you have to do this.
@&value4 = @&value4 - @&value1
@&value3 = @&value4
Wrong type of variable, & means string (text), use # instead
@#value1 = %@#value2%
@#value3 = %@#value4%-%@#value1%
@#value5 = %@#value3%*.6
Don't use globals unless you're sure you need to though =P
If you reach the max size (not sure if that's a thing here) or something, you can split it up into groups of lets say 9 digits, then add and subtract with manual carry
At that point it's probably easier to use a special file you can include to do the script for you
Or use scientific notation.., one var for the power of ten and one var for n significant digits
or use an array of integers, where the 0'th index is the ones, the 1'st index is the 10's, etc.
'Cause tomorrow spring is here
Check your bindings, you don't accidentally have $${Disconnect()}$$ bound to onJoinGame, do you?
Try making a new empty configuration, switching to it, and ensuring that there's no other config with the name or ip of the server
(it automatically switches for those sometimes)
Besides that you could try and log all the chat and events to a file, see what happens in those split seconds
for the BETA you need to find it yourself.., it's an initiative test to prove that you're willing to put in some work without getting frustrated
(because if you can't be arsed to do a single 5-minute search you definitely can't be arsed to put up with all the crashes and bugs - in that case you're better off using the stable version)
If you suspect that they're blocking it, i recommend just asking them about it..
as for bypassing blocks.., just no.., we1 do NOT support cheating, there's a reason this mod has permissions integration in the first place!
If the server owners do not want you to do something.., you DON'T DO IT!
1: 'We' actually just refers to me, i can't speak for others with 100% accuracy, i just feel like that is the general attitude here
'Cause tomorrow spring is here
Yeah its not blocked ill try deleting my config. It works for 1.7 but the server is really meant for 1.8 so it crashes allot with 1.7.
(Ignoring lag, should be accurate to less than a second (6 ticks?))
'Cause tomorrow spring is here
It shouldn't unless you Log() it..
if you want to log it i guess you'd have to Replace(&str,"§","¤") it with some other (similar?) character?
'Cause tomorrow spring is here
I have a fairly simple macro I'd like to use:
I'm pretty sure the ELSEIF has to come before the ELSE
It's like if i take the sentence (red, green, blue, or something else)...., and rearrange it to (red, something else, green, or blue)
if it's green.., is it also something else?, since green hadn't been mentioned by then?
or should it keep reading until the end and then jump back and reevaluate?
In addition, you said you want alt to ALWAYS cause a gamemode 3, not only if MODE is 0 (which putting it in the ELSE or ELSEIF block of an IF(mode) would imply)
Is gamemode 3 a thing?.., is that spectator mode?
So i think it makes sense to check alt first.., if it's true nothing else matters, you want gm3
if it's not alt.., then you check the mode and swap accordingly
In addition, you can also use a key state bind for this.., set ~ALT or ALT as the condition, write just /gamemode 3 for the true script, and just
$${IIF(MODE,/gamemode 0,/gamemode 1)}$$ for the second one
'Cause tomorrow spring is here
The macro certainly makes more sense when you use a separate file instead of one line of text, however it is a bit harder to use when you try to sync your settings between computers and MC versions, hence my try for one-line macro
However, since I'm using a file already, I thought of making this a bit more smart, copying your piece of code from the previous thread page, works perfectly:
And yes, gamemode 3 is spectator mode, and it's awesome
Well, you don't have to use a file.., the only difference is you need to replace the line breaks with semicolons (because you can't put line breaks in the single line of your binding) and that's it - i just prefer to write it out with line breaks because, well, it's easier to read, and pretty trivial to search and replace or just manually convert from one to the other =P
Personally i like using a script where the gamemodes are assumed to be in some order and ctrl + simply goes one way through the list and + goes the other
The downside is that i can't single-press swap between creative and adventure for example
the upside is that it's super-easy to figure out how to get to any gamemode from any other.., and it doesn't depend on history
In adventure?, wanna swap to creative?, it's always double tap ctrl + (adventure -> survival -> creative) =P
'Cause tomorrow spring is here