SRL Archive - Help and Support

Question about Nick names and FTalk


RAM

2007-09-05 23:08:09

Please excuse my ignorance, but why is it, that SRL is not capable of recognizing uppercase letters,numbers as well as spaces in user names ? It's something I have never completely understood :redface:

Before I knew better…I created a few players with bad names…one of them, we'll call " M Y F O O T "….he has already got some good skills ( 60+ WC/Mining), so I just take a chance and use him and hope for the best…so far, so good….I always enter his Nick name, just as I have it here..one space in between each letter..except 2 in between "Y" and "F"….I realize randoms won't be solved this way, but still set it in hopes of the player "responding"….today I examined the FTalk pictures saved to my desktop from today's session, and I discovered a picture of someone(another player, not a random) talking to them , saying their name as "myfoot"….

Can anyone please explain this a bit better to me please ?

Thanks in Advance,

~RAM

Tim0suprem0

2007-09-05 23:13:19

Wait the random said your name in lowercase letters? So then wouldn't it not matter that your account is in all caps, if you can just set your nick in lowercase?

SKy Scripter

2007-09-05 23:19:24

well if you create a bitmap from text upper case, it should work…. but maybe not as well or somthing.

The Claw

2007-09-06 03:26:01

I dunno why it says that it has to be lower case, because I have characters such as "N 0 F X" and "I am mr link", which means the nicks are "N 0" and "I A" and they work fine

Wizzup?

2007-09-06 03:53:14

    NickNameBMP := CreateBitmapMaskFromText(Players[CurrentPlayer].Nick,
upchars); // Screenname

It should work with uppercase. :)

RAM

2007-09-06 18:55:30

Hmm, OK, so SCAR doesn't recognize if we enter letters as lowercase or uppercase…so, "upchars" will create the BitmapMask in uppercase ? That would be a start, but it would only be good for names like this one..that is all uppercase…..

My next question would be…How to make it recognize spaces in between the characters ?

…Then I'll ask about numbers…..

…and after than, creating a BitmapMask of mixed cases ;)

~RAM

Edit: and a question about "CheckUserNicks;"….if SCAR does not reconize uppercase letters and automaticly converts them to lowercase, then why is the error message in there ? …..'WARNING : Please Uncapitalise your nickname.', same for spaces….'WARNING : Dont use spaces in your Nick.'…..

Wizzup?

2007-09-07 03:08:43

Nono..

UpChars is just the font for MainScreen. :)
The text you put in can be uppercase or lowercase, or just a combination. :)

Starblaster100

2007-09-07 04:14:18

However, we recommend leaving your nickname in lowercase letters.

Because of this, the procedure CheckUserNicks will give you an error message if if finds capital letters in it. If your player has capital letters in it's nick, you cannot use the procedure CheckUserNicks in your script

RAM

2007-09-08 12:34:02

Ok…so how about my other questions ;)..Anyone…

My next question would be…How to make it recognize spaces in between the characters ?

…Then I'll ask about numbers…..

…and after than, creating a BitmapMask of mixed cases ;)

Sumilion

2007-09-08 13:35:05

From: Starblaster100
However, we recommend leaving your nickname in lowercase letters.

Because of this, the procedure CheckUserNicks will give you an error message if if finds capital letters in it. If your player has capital letters in it's nick, you cannot use the procedure CheckUserNicks in your script


CheckUserNicks; is just for warnings, it doesnt TerminateScript; if the nicks are wrong.

RAM

2007-09-08 16:35:05

Actually, I believe I used one of your scripts that had it in there..and even though it doesn't say TerminateScript; in the CheckuserNicks; , it did make it Exit it….. I will verify later…

Sumilion

2007-09-08 16:45:33

Yes please do cause its not supposed to.

The Claw

2007-09-08 20:49:32

From: RAM_RUNE
Ok…so how about my other questions ;)..Anyone…


Just put a space :p Same as numbers, just write them in.

RAM

2007-09-09 02:14:11

From: The Claw
Just put a space :p Same as numbers, just write them in.


Sigh, sometimes I wonder if I am speaking in another language :rolleyes:…Please reread my first post carefully, then go conduct some experiments and tell me if it works for you….I did enter it with spaces…SCAR does not recolonize spaces…hence the Find talk photo of my characters name spelled "myfoot" and not "M Y F O O T"….Unless…..there are 2 different things going on here…randoms finding and responder finding text ?

The Claw

2007-09-09 03:53:30

ah ok sorry about that. hmm not sure….care to do some testing?

RAM

2007-09-09 20:44:42

From: The Claw
ah ok sorry about that. hmm not sure….care to do some testing?


Sorry, Didn't mean to snap at you, I'm just a bit frustrated…patience is not a virtue of mine :redface:

@ Sumillion….CheckUserNicks Seems to be working fine…

ScarScript:By Drunkenoldma [LEFT]program TestUserNick; {.include SRL.scar} Procedure DeclarePlayers; begin NumberOfPlayers(1); CurrentPlayer := 0; Players[0].Name :='M Y F O O T'; Players[0].Pass :=''; Players[0].Nick :='oot'; Players[0].Loc := ''; Players[0].Active :=True; end; Procedure ScriptIsRunning; begin Writeln('Script is running….'); end; procedure SetupScript; begin SetUpSRL; DeclarePlayers; CheckUserNicks; Wait(500); end; begin SetupScript; LoginPlayer; ScriptIsRunning; End. [/LEFT]

[banana]WARNING : Please Uncapitalise your nickname.
Warning occured with player : m y f o o t
For more information, visit http://www.villavu.com/forum/showthread.php?t=5410
Script is running….
Successfully executed
Successfully compiled
SRL Compiled in 156 msec
–
WARNING : Dont use the first letter in your nick.
Warning occured with player : M Y F O O T
For more information, visit http://www.villavu.com/forum/showthread.php?t=5410
Script is running….
Successfully executed
Successfully compiled
SRL Compiled in 156 msec
–
WARNING : Dont use spaces in your Nick.
Warning occured with player : M Y F O O T
For more information, visit http://www.villavu.com/forum/showthread.php?t=5410
Script is running….
Successfully executed
Successfully compiled
SRL Compiled in 156 msec
–
WARNING : Please fill in your nickname.
Warning occured with player : M Y F O O T
For more information, visit http://www.villavu.com/forum/showthread.php?t=5410
Script is running….
Successfully executed
Successfully compiled
SRL Compiled in 156 msec
–
WARNING : Nick does NOT match the name.
Nick : oot, does NOT match M Y F O O T
For more information, visit http://www.villavu.com/forum/showthread.php?t=5410
Script is running….
Successfully executed
Successfully compiled
SRL Compiled in 157 msec
Script is running….
Successfully executed[/banana]

~RAM

EDIT: I swear it stopped your Rim miner script…maybe it ended the array…but, I have no need to use it, and to lazy to update it to check ;)

2nd Edit: WTF does it always compress scripts anytime you use the edit button…WTF !

jhildy

2007-09-09 22:38:29

I know this is members section but i think you left your pass in there.

Wizzup?

2007-09-10 02:13:19

I'll remove the pass, although I don't think it's real.

If it isn't a real pass RAM, nice find, lol.

RAM

2007-09-10 20:36:06

From: RAM_RUNE
we'll call " M Y F O O T "
~RAM


From: jhildy
I know this is members section but i think you left your pass in there.


From: Wizzup?
I'll remove the pass, although I don't think it's real.


Nope, Completely fictions character used to illustrate my point, but thanks for looking after me…:)

BTW, anybody want to take a stab at my questions ?



How to make it recognize spaces in between the characters ?

How to make it recognize numbers in the user name/Nick name ?

How to make it recognize a mixture of spaces in between the characters, numbers and upper and lower characters ?

~RAM

Special Ed

2007-09-11 21:35:47

Basically you'd have to make it create a Bitmapmask that is customized to have a " " Character in it that can be recognized. I haven't looked throught CreateBitmapMaskFromText but you'd just need to create your own version of it with a "space" Character.