Subj : quirk?
To   : altere
From : Digital Man
Date : Sun Dec 31 2000 02:12 pm

RE: quirk?
BY: altere to Digital Man on Sun Dec 31 2000 02:29 am

> Perhaps it's just me or just this machine here but could there be some sort
> check between int and str's?  What I mean is for instance:
>
> int int1 int2
> str str1 str2
>
> set int1 123
> set int2 54
> setstr str1 "blah"
> setstr str2 "wow"
>
> printf "%s\r\n" int1
> printf "%ld\r\n" str2
>
> Alright, you get the point.  And I intentionally put it that way in this
> example.  I accidentally put a printf "%s\r\n" val (val being an integer),
> compiled it, ran it and when it came to the printf statement it crashed SCP
> (all of synchronet, I had to restart the bbs).

Yes, I would expect it to crash. That is the danger of using printf.

> Also, I'm reading xtrn.dat in another mod.  While logged in, if I adjust my
> userlevel or credits and then go back into the mod it doesn't see the change
> does Synchronet only set the values at login?

No. When returning from a door that is configured to use XTRN.DAT drop file
format and "Modify User Data" is set to "Yes" in SCFG, it will read in the
MODUSER.DAT file and apply any changes.

> I've since started using
> _useron.cdt but before when I was reading xtrn.dat and set a variable it wou
> not see the changes made from the user editor unless I logged off and back o
> and the xtrn.dat was being created everytime.  I may have just jumbled this
> whole paragraph, let me know if I did..  hehe.
>
> I also noticed this for SBJ, if I logged in with 5,000K, start SBJ (not play
> but just hit 'J' to see how many credits it sees) then exit; adjust my credi
> in the user editor (the gui app or using uedit) then go back in and press J,
> it still only sees 5,000K.  What if a user is on and I wanted to give them m
> credits for file xfers or sbj, poker, etc... (that use xtrn.dat, don't know
> about the other drop files) they have to logoff and the back on before xtrn.
> will update?

UEdit should set the user-data-modified flag in the NODE.DAB and the user
record would automatically be read back in. This has nothing to do with
executing external programs or not. The GUI user editor does NOT set the
user-data-modified flag.

Rob

---
� Synchronet � Vertrauen � Home of Synchronet � telnet://vert.synchro.net