Author Topic: 1.5.12.30: Expressions are not evaluated any more  (Read 4210 times)

BlackJack

  • Jr. Member
  • **
  • Posts: 68
1.5.12.30: Expressions are not evaluated any more
« on: October 22, 2016, 02:59:39 PM »
Expressions like {EXP:} are not evaluated.

Code: [Select]
Write '[Yellow] {EXP: ((5 + 5) - 2) * 10}' to logResult is: {EXP: ((5 + 5) - 2) * 10}

It is also not possible to convert Text:
Code: [Select]
Set integer [Exp] value to the converted value of {EXP: ((5 + 5) - 2) * 10}
Write '[Yellow] {INT:Exp}' to log
Result is: Integer token could not be converted : {EXP: ((5 + 5) - 2) * 10}



Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: 1.5.12.30: Expressions are not evaluated any more
« Reply #1 on: October 22, 2016, 03:27:51 PM »
Tokens are only evaluated if there is more than one in any given input, E.G.
Code: [Select]
{PROFILE}Prints "{PROFILE}", whereas
Code: [Select]
{PROFILE} {PROFILE}Prints "test test".
« Last Edit: October 22, 2016, 03:32:40 PM by Pfeil »

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: 1.5.12.30: Expressions are not evaluated any more
« Reply #2 on: October 22, 2016, 03:35:42 PM »
This is probably the result of that last update to tokens. 

I put an update in, 'unofficial':  http://www.voiceattack.com/unofficial   Let me know if that fixes the issue.  It will, however still mean the first issue still exists (but that is far, far, far less problematic).

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4782
  • RTFM
Re: 1.5.12.30: Expressions are not evaluated any more
« Reply #3 on: October 22, 2016, 03:42:07 PM »
Confirmed. That build has working tokens, but crashes on a circular reference as expected.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: 1.5.12.30: Expressions are not evaluated any more
« Reply #4 on: October 22, 2016, 09:45:13 PM »
That one's going to require some deeper exploration... It may not make it into the release, but, like you said it's not a likely scenario, but it could happen.

Gary

  • Administrator
  • Hero Member
  • *****
  • Posts: 2832
Re: 1.5.12.30: Expressions are not evaluated any more
« Reply #5 on: October 23, 2016, 08:55:23 PM »
Latest beta has everything put back o_O.  Will revisit at a later time

http://www.voiceattack.com/beta