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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Sun Jul 28, 2019 2:20 am   

Variables not reading/set correctly??
 
Think I found a bug...

I start off with 2 session and one shared module.. everything works fine.. sometimes for hours, sometimes for minutes, and my scripts would start reading variable wrongly..

and everything would work perfectly after I close and restart.

1) Reading Wrongly...

For example my @foodcount is 10 but when it would not read correctly by my #IF (@FoodCount=10) trigger...

a) when I look in the variable GUI, it shows 10

b) when I type @#SHOW @FoodCount it shows some other number..

2) Cannot set variable

Randomly some variable will start to be non responsive and cannot be set by trigger or command line

CombatStatus=1
or
#VAR ./Variables/CombatStatus 1

(I keep all my variables in one class)

is this a known bug? I have like 260+ variables, 40+ alias and 400+ triggers, 3 events, 10status... in 1 module and two session pkgs.

most trigger in the common module and alias in the two sessions..
Reply with quote
shalimar
GURU


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

PostPosted: Sun Jul 28, 2019 11:47 am   
 
Is it possible that something disabled that class, allowing variables to be duplicated in the root directorty?
_________________
Discord: Shalimarwildcat
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Sun Jul 28, 2019 1:20 pm   
 
Nope.. searched everywhere for the variable...

When I close all windiws and start again and all works well again... For random time..
Reply with quote
shalimar
GURU


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

PostPosted: Sun Jul 28, 2019 3:42 pm   
 
Likely just a memory issue then.
More RAM definately helps.

You can always try reinstalling.
Or recreating your session from an XML dump might resolve any corruption issues.
_________________
Discord: Shalimarwildcat
Reply with quote
ToyMage
Apprentice


Joined: 01 Sep 2005
Posts: 120

PostPosted: Tue Jul 30, 2019 1:37 pm   
 
Hey! The XML fix seems to work! Been working well so far. 4 hours with no error..
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion 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