CraftBook 3

CraftBook 3

139k Downloads

IC issues with [VAR100]

LadyCailinBot opened this issue ยท 12 comments

commented

CRAFTBOOK-2926 - Reported by jjkrause

Hey Matthew! I have a variable defined as HockeyBlue and it is assigned a value of 0. When a player scores, a redstone signal powers the sign to add 1 to the score, but it doesn't seem to work. Here is what I have on the sign:

[VAR100]
HockeyBlue
ADD:1

What am I doing wrong again?!?

commented

Comment by jjkrause

No errors in the console. I tried changing ADD:1 to +:1 and +1, the sign just breaks so its invalid.

Running build 3659

commented

Comment by jjkrause

Just tested with build 3676, same result... nothing.

commented

Comment by me4502

If you use /cb var add varname amount, does that work? It could just be that the variable you are using isn't in the namespace.

commented

Comment by jjkrause

The variable was created under Global. If I do /craftbook add HockeyBlue 1, it adds one to the variable.

commented

Comment by me4502

I'll do a few tests this afternoon

commented

Comment by me4502

I believe it is fixed. I made a few changes and tested it, and it worked. I didn't test it beforehand though so I don't know if it was actually broken for me.

commented

Comment by jjkrause

Just tested with 3677 and it works, kind of. Is it normal that it triggers on signal high AND signal low? If I power the sign with a button, it will add 1 on the powered redstone, then adds another 1 when the signal turns off. Therefore, everytime someone scores, it goes up by 2 instead of 1. I can work with this, but I'm not sure its supposed to work like this.

commented

Comment by me4502

I noticed it did that in the tests, but I'm undecided if it should or not. I'll most likely only allow it on high

commented

Comment by jjkrause

I agree, I think that's the way it should be... only on high signal.

commented

Comment by me4502

Okay, VAR100 only works on high now.

commented

Comment by jjkrause

Confirmed working on build 3679. Excellent, thanks once again!

commented

Comment by me4502

Are there any console errors? Are you using 3.8.5? Maybe try using + instead of ADD