Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4701
Location: Pensacola, FL, USA

PostPosted: Wed Sep 20, 2006 1:47 am   

[1.06] GSL triggers and variables
 
I finally got around to trying CMUD on GemStoneIV and right off the bat I'm noticing that i cannot get a gsl trigger to fire at all.

http://forums.zuggsoft.com/phpbb/viewtopic.php?p=46817#46817

I can #SAY the various variables just fine though, I'm wondering if it might not be better to just run the new expression triggers off of those.
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Sep 20, 2006 1:58 am   
 
Send in a feedback and I'll see what I can do. It's a bit harder for me to test GSL stuff these days since my arrangement with Simutronics ended and I no longer get free logins there. I guess I can try to see if my old login is still active...if I can remember it :)

It's wierd though...not sure what wouild cause GSL triggers to fail since I'm using the same GSL engine from zMUD.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4701
Location: Pensacola, FL, USA

PostPosted: Wed Sep 20, 2006 2:13 am   
 
#SAY %gsl(Q)
> 1158717310
#SAY %gsl(q)
> 1158717588
#SAY %gsl(Q)-%gsl(q)
> 1158717310-1158717648
#SAY %eval(%gsl(Q)-%gsl(q))
> 0
#SAY %eval(1158717310-1158717348)
> -38

I can't seem to get %eval to process GSL at all, ive tried putting the variables into an #FUNC and access them by calling the new variables, but the results are the same
_________________
Discord: Shalimarwildcat
Reply with quote
saet
Apprentice


Joined: 12 Jun 2006
Posts: 106

PostPosted: Wed Sep 20, 2006 3:18 pm   
 
Just sign up for an account, you'll get a free month. Cancel before you get charged and then sign up for a free month again.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Wed Sep 20, 2006 7:19 pm   
 
shalimar, I think maybe CMUD is treating %gsl as a string function. Try using %int around the calls, like %int(%gsl(Q)) and see if that helps. I'll add this to the bug list.

But is your problem with the %gsl function, or is there something about GSL triggers that are not working too?
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4701
Location: Pensacola, FL, USA

PostPosted: Wed Sep 20, 2006 8:53 pm   
 
Sticking it into an int does force it to eval properly

but i still cant get an expression trigger to fire off the changes

and GSL triggers wouldnt do anything for me yesterday, but now they seem to be working.. some of the time
_________________
Discord: Shalimarwildcat
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Sep 21, 2006 8:47 pm   
 
OK, I have fixed this in 1.07 so that it makes the %gsl() variables auto-typed instead of strings. Also, to move %gsl more in line with stuff like %mud, I have added it as a proper system variable, so instead of doing the %gsl(A) function call, you can also use the %gsl.A variable reference.

I looked at the GSL trigger stuff and found a couple of minor issues, but they seem to work fine now. So either I fixed it or else I can't find the problem with the triggers. Hopefully I fixed it :)
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net