Hi Rob
I've been sucessfully using the below method for about 6 to 8 years to
let the user choose which bbs of mine thay want to log into. No problems what so ever up till about 3 to 4 weeks ago. I changed around some
security levels, and other things, and now when a user picks 2,3,4 in
the SELECT.BUN, all they get is a simple message on the screen in the
top left saying "Time's up." (Found It in Text.dat, 549 TimesUp)
Bare in mind, selection "1" still works where you continue on to
synchronet, and the "D" still works for disconnect.
By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am
I've been sucessfully using the below method for about 6 to 8 years to
let the user choose which bbs of mine thay want to log into. No
problems what so ever up till about 3 to 4 weeks ago. I changed around
some security levels, and other things, and now when a user picks
2,3,4 in the SELECT.BUN, all they get is a simple message on the
screen in the top left saying "Time's up." (Found It in Text.dat, 549
TimesUp)
Bare in mind, selection "1" still works where you continue on to
synchronet, and the "D" still works for disconnect.
you have too many end_if's dude.
when you use an end_if you are closing that command out.
I've been sucessfully using the below method for about 6 to 8 years to
let the user choose which bbs of mine thay want to log into. No problems what so ever up till about 3 to 4 weeks ago. I changed around some
security levels, and other things, and now when a user picks 2,3,4 in
the SELECT.BUN, all they get is a simple message on the screen in the
top left saying "Time's up." (Found It in Text.dat, 549 TimesUp)
Bare in mind, selection "1" still works where you continue on to
synchronet, and the "D" still works for disconnect.
I'm thinking it's a security level issue, but for the like of
me, I can't figure it out. Whatever is causing this started
about 3 to 4 weeks ago. I'm assuming security level issues, but
I can't figure, because at this point a user is not assigned,
unless there is a default security in play till the actual user
is assigned and logged in fully.
Re: Help, It's my fault this time
By: DesotoFireflite to All on Thu Jul 14 2022 09:23 am
I've been sucessfully using the below method for about 6 to 8 years to
let the user choose which bbs of mine thay want to log into. No
problems what so ever up till about 3 to 4 weeks ago. I changed around
some security levels, and other things, and now when a user picks
2,3,4 in the SELECT.BUN, all they get is a simple message on the
screen in the top left saying "Time's up." (Found It in Text.dat, 549
TimesUp)
Bare in mind, selection "1" still works where you continue on to
synchronet, and the "D" still works for disconnect.
I'm thinking it's a security level issue, but for the like of
me, I can't figure it out. Whatever is causing this started
about 3 to 4 weeks ago. I'm assuming security level issues, but
I can't figure, because at this point a user is not assigned,
unless there is a default security in play till the actual user
is assigned and logged in fully.
Check SCFG->System->Security Level Values->Level 0->Timer Per Day and Time Per Call. What are they set to?
# Log On To GAP BBS
COMPARE_KEY 2
IF_TRUE
PAUSE_RESET
CLS
EXEC ?TELGATE valhalla.synchro.net:24
PAUSE_RESET
CLS
COMPARE_USER_MISC UM_UPAUSE
IF_FALSE
TOGGLE_USER_MISC UM_UPAUSE
HANGUP
END_IF
END_IF
END_CMD
# Hang Up For Now, Called By Mistake
COMPARE_KEY D
IF_TRUE
HANGUP
END_IF
END_IF
END_CMD
Re: Help, It's my fault this time
By: DesotoFireflite to All on Thu Jul 14 2022 09:23:59
this makes the internal steps easier to see and you can easily see each IF matches with its END_IF... also, i use 2 spaces formatting because that's how i learned pascal... it is the formatting i use to this
day unless the language requires specific formatting (eg: python)...
reformatting this one immediately shows the mistake...
# Hang Up For Now, Called By Mistake
COMPARE_KEY D
IF_TRUE
HANGUP
END_IF
END_IF
END_CMD
COMPARE_KEY D
IF_TRUE
HANGUP
END_IF
# END_IF this line doesn't belong...
END_CMD
this makes the internal steps easier to see and you can easily see
each IF matches with its END_IF... also, i use 2 spaces formatting
because that's how i learned pascal... it is the formatting i use to
this day unless the language requires specific formatting (eg:
python)...
reformatting this one immediately shows the mistake...
I've put baja aside for now, and started working in js, as it seems
to be the more prudent thing to do these days...
On 7/16/22 03:29, DesotoFireflite wrote:
I've put baja aside for now, and started working in js, as it seems
to be the more prudent thing to do these days...
100% on that.. JavaScript is a more complex language, but also much more capable than BAJA. I find my biggest hurdles is the language has
advanced a lot since the version used in SynchroNet and the style has changed even more so.
There's a few points of JS code in the SynchroNet repository that make
even configuring code linting and formatting is the experimental syntax
for for-of expressions and getter/setter (iirc) were standardized differently.
So would love to replace some of the for-of expressions with maybe
100% on that.. JavaScript is a more complex language, but also much more capable than BAJA. I find my biggest hurdles is the language has
advanced a lot since the version used in SynchroNet and the style has changed even more so.
There's a few points of JS code in the SynchroNet repository that make even configuring code linting and formatting is the experimental syntax for for-of expressions and getter/setter (iirc) were standardized differently.
Of course would have to start with an editor that doesn't auto-format first. Also, would want to switch any references with raw high
character codes in JS files with escaped characters, so everything falls into the 7-bit space, so UTF8 can be assumed (supported as default for most editors).
Well, I use Visual Studio Code on my MacBook and Notepad++ on my Win10 machine, and it seems to help me a lot, as the different colors seem
to help point out my mistakes. Hopefully one day, I will get to fully understand all the nuances in the code, and do something useful with
it.
...
Thanks for all your help, and discussion on this.
Well, I use Visual Studio Code on my MacBook and Notepad++ on my Win10
machine, and it seems to help me a lot, as the different colors seem
to help point out my mistakes. Hopefully one day, I will get to fully
understand all the nuances in the code, and do something useful with
it.
...
Thanks for all your help, and discussion on this.
I use VS Code as my primary editor.. for JS/TS I use the prettier extension and have it auto-format on save... I would suggest anything
you do/modify, you copy it into your mods directory, instead of under exec/ that way when you upgrade, you can still reference the original.
Keeping the JS Object model docs open is also really helpful.
I love VS Code, but I've found out that it does alter the code sometimes if you use Ctrl-A codes in it, so you have to watch it. Notepad ++ doesn't change the contents of the file automaticly the way VS Code has done on occasion to me.
I love VS Code, but I've found out that it does alter the code
sometimes if you use Ctrl-A codes in it, so you have to watch it.
Notepad ++ doesn't change the contents of the file automaticly the
way VS Code has done on occasion to me.
I started getting into the habit of using \x01 in any strings rather than using literal Ctrl-A codes. That can help prevent editors from changing those characters.
I started getting into the habit of using \x01 in any strings
rather than using literal Ctrl-A codes. That can help prevent
editors from changing those characters.
Yes, I'm starting to do that too, but some of the older ones I've done, still have the leteral code, and I don't see it till I edit it, then I have to go back and change it :)
Re: Re: Help, It's my fault this time
By: DesotoFireflite to Nightfox on Fri Jul 22 2022 02:15 pm
I started getting into the habit of using \x01 in any strings
rather than using literal Ctrl-A codes. That can help prevent
editors from changing those characters.
Yes, I'm starting to do that too, but some of the older ones I've
done, still have the leteral code, and I don't see it till I edit
it, then I have to go back and change it :)
Why not do a search & replace in your editor?
One caveat that I've found though is that if you're using background codes (which are numeric), I ended up splitting the string; otherwise it would interpret the nex number wrong.
For instance, if you want to output a blue background (Ctrl-A + 4), then I'd do this in JavaScript:
"\x01" + "4";
Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.
Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.
I might check that out this weekend, after I rebuild the brakes on the
car.
It Thanks for the idea. Sometimes I have so much going on, that I forget the simple stuff like search and replace.
Otherwise, if you have "\x014", then that would be interpreted as
hex number 14, which would be interpreted as a different
character.
didnt i give you and other people xchange32? http://bbses.info/mirrors/clayruth.com/index.html
Re: Re: Help, It's my fault this time
By: DesotoFireflite to Nightfox on Fri Jul 22 2022 02:15 pm
I started getting into the habit of using \x01 in any strings
rather than using literal Ctrl-A codes. That can help prevent
editors from changing those characters.
Yes, I'm starting to do that too, but some of the older ones I've done, still have the leteral code, and I don't see it till I edit it, then I have to go back and change it :)
Why not do a search & replace in your editor?
One caveat that I've found though is that if you're using background codes (which are numeric), I ended up splitting the string; otherwise it would interpret the nex number wrong.
For instance, if you want to output a blue background (Ctrl-A + 4), then I'd do this in JavaScript:
"\x01" + "4";
Otherwise, if you have "\x014", then that would be interpreted as hex number 14, which would be interpreted as a different character.
That's true for "\x14" (hex 14), but not for "\x014" (hex 01, followed by a '4'). "\x014" works fine, you don't need to split string or any other tricks.
I love VS Code, but I've found out that it does alter the code
sometimes if you use Ctrl-A codes in it, so you have to watch it.
Notepad ++ doesn't change the contents of the file automaticly the way
VS Code has done on occasion to me.
Keeping the JS Object model docs open is also really helpful.
Yes, it my stage of learning, the JS Object Model is my bible.
One caveat that I've found though is that if you're using background
codes (which are numeric), I ended up splitting the string; otherwise
it would interpret the nex number wrong.
For instance, if you want to output a blue background (Ctrl-A + 4),
then I'd do this in JavaScript:
"\x01" + "4";
Otherwise, if you have "\x014", then that would be interpreted as hex
number 14, which would be interpreted as a different character.
Rob,
Does Synchronet have such a thing as "command stacking", such as
where you could put several commands into one string?? Obviously,
it wouldn't work if the hotkeys were ON, but one of my users asked
about it...and if it's in the docs, I've overlooked it.
I love VS Code, but I've found out that it does alter the code
sometimes if you use Ctrl-A codes in it, so you have to watch it.
Notepad ++ doesn't change the contents of the file automaticly the way
VS Code has done on occasion to me.
This can help...
https://gist.github.com/tracker1/ac95a8de20366e66d57801e9edc96dbe
But CP437 support seems to be broken on non-windows... so ymmv there, I usually encode my special characters in JS anyway... "\001" inside the string is effectively ctrl-A (as is "\x01" or "\u0001"), though I don't think JS in Synchronet supports the unicode escape.
You can change the auto-formatting behavior... I keep a different config in my sbbs directory, which is usually what I open in VS Code (remoting extensions are great, can edit BBS over SSH).
Keeping the JS Object model docs open is also really helpful.
Yes, it my stage of learning, the JS Object Model is my bible.
For Synchronet, need to keep it open all the time... though still often need to dig through /exec for practical examples as it's not always clear.
Have you tried using the octal escape? "\001" instead? Not sure, but I don't think I've seen an issue with it.
Rob,
Does Synchronet have such a thing as "command stacking", such as
where you could put several commands into one string?? Obviously,
it wouldn't work if the hotkeys were ON, but one of my users asked
about it...and if it's in the docs, I've overlooked it.
Have you tried using the octal escape? "\001" instead? Not sure, but I don't think I've seen an issue with it.
Does Synchronet have such a thing as "command stacking", such as
where you could put several commands into one string?? Obviously,
it wouldn't work if the hotkeys were ON, but one of my users asked
about it...and if it's in the docs, I've overlooked it.
It's up to the command shell to support that. I seem to recall adding
that support in the PCBoard clone command shell.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,063 |
Nodes: | 17 (0 / 17) |
Uptime: | 35:44:34 |
Calls: | 501,357 |
Calls today: | 2 |
Files: | 109,427 |
D/L today: |
3,859 files (392M bytes) |
Messages: | 302,474 |