Re: Pattern matching in Stormfront please.. 04/05/2007 11:10 AM CDT
Not what I had in mind.

Let me use Cmud as an example. In Cmud there are wildcards that are used in pattern matching.

IE:
%w any one word
%s any amount of white spaces
%p any punctuation
%d any single whole number

These can be put in brackets to further make them useful.

[%w%s%p] would match any series words spaces and punctuation.

This is extremely useful. At least for me it is.

As far as I can see in the documentation there are no wildcards within SF.




Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 11:39 AM CDT
>>As far as I can see in the documentation there are no wildcards within SF.

That is correct. Those of us who use StormFront scripting engine simply write more specific scripts, use more user-defined variables, write up clever workarounds when we can, and accept that SF scripts cannot do certain things when all of the above have failed.


X
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 12:52 PM CDT
>>That is correct. Those of us who use StormFront scripting engine simply write more specific scripts, use more user-defined variables, write up clever workarounds when we can, and accept that SF scripts cannot do certain things when all of the above have failed.

Admitted. I was purely asking if it would be possible. I would email the proposition in but I know not what the address is.




Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 01:53 PM CDT
>> %w any one word

MATCHRE /\w*?/

%s any amount of white spaces

MATCHRE /\s*/

%p any punctuation

MATCHRE /[.,<>\/\?;:'"\[{\]}\\\|\-_+=`~!@#$%^&*\(\)]/

%d any single whole number

MATCHRE /\d*/

for more info, see: http://msdn.microsoft.com/library/en-us/script56/html/2380d458-3366-402b-996c-9363906a7353.asp
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 02:06 PM CDT
Woody, these are applicable in StormFront?




Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 02:25 PM CDT
I'm not woody, but as far as I know, Stormfront has the ability to utilize Regular Expressions with the matchre and waitforre commands. I've used them minimally, but I'm fairly certainly that SF has a full access to all of the normal RegEx stuff.

-Durnil
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 05:13 PM CDT
Yes, Both Stormfront and Escape have Regular Expression Matching capability, hence why my first reply was "MATCHRE"

Note, though, that the Escape and Stormfront RE syntax is slightly different, since Escape's is based in Javascript Syntax.
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 05:33 PM CDT
<<Note, though, that the Escape and Stormfront RE syntax is slightly different, since Escape's is based in Javascript Syntax.>>

And StormFront's uses Boost's.


Myke
Reply
Re: Pattern matching in Stormfront please.. 04/05/2007 08:36 PM CDT
Myke...*slips you a 20* give storm front triggers please:)


Farewell, remorse: all good to me is lost; Evil, be thou my good.
~Paradise Lost (bk. IX, l. 171)
Reply
Re: Pattern matching in Stormfront please.. 04/06/2007 02:53 AM CDT
>>And StormFront's uses Boost's.

Ok, I am checking out http://www.boost.org at the moment. Should I be paying attention to Perl, extended, or basic? This has me totaly confused.

I always assumed (I know.. that word) that that Mathre was for (x|y) matching.




Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reply
Re: Pattern matching in Stormfront please.. 04/06/2007 06:19 AM CDT
<for more info, see: http://msdn.microsoft.com/library/en-us/script56/html/2380d458-3366-402b-996c-9363906a7353.asp>

incorrect. people always seem to think microsoft invented everything... truth is, they STOLE everything.

for further information see http://www.perl.org/ and look up regular espressions.


Druid Wheller Herbmaster, Con Artist of Elanthia


http://robertdell.dyndns.org/DR_Scripts/
click YASSE.dmg
http://sourceforge.net/projects/yasse/


P.S. no good deed goes un-punished!


When in doubt, reinvent the wheel!
Reply
Re: Pattern matching in Stormfront please.. 04/06/2007 06:47 PM CDT
<<Ok, I am checking out http://www.boost.org at the moment. Should I be paying attention to Perl, extended, or basic? This has me totaly confused.>>

I'm not sure, Bryan wrote that part. <G>


Myke
Reply
Re: Pattern matching in Stormfront please.. 04/06/2007 07:16 PM CDT
Thanks for the response Myke.

Reading that page and trying to comprehend it right now makes me feel like a caveman trying to take in and understand Latin.
Guess I should try it after some sleep and a cup of coffee? ;)




Patriotism is often an arbitrary veneration of real estate above principles.
- George Jean Nathan
Reply
Re: Pattern matching in Stormfront please.. 04/06/2007 11:14 PM CDT
For the record I was not pointing at the Microsoft page for RegEx "see more" because I thought they invented it, or thought they had the best docs (in fact I know both to be false on this subject).

I was pointing to it, simply because thats what Stormfront's help docs point at. (I was not sure at the time that Stormfront used Boost, so did not even bother to look into it there).

~Callek
Reply
Re: Pattern matching in Stormfront please.. 04/12/2007 10:08 PM CDT
Some example of re's I use...

Matchre WHATEVERWATI /Sorry,|\.*wait/

The | <"pipe" charecter equates to "or"
The \ tells the engine the next charecter has special and or unique meaning in the case above \. means look for a period.
The * means look for one or multiple of the preceeding charecter, so \.* is look for any number of periods.

I like to use modules in scripts so I don't have to repeat code. Here's a section that utilizes regular expression matching to minimize lines in my code.

CHECKLEVELW:
Pause 1
CHECKLEVEL:
Matchre %EXPLEARNING /%\s(clear|learning|thoughtful|pondering|concentrating|muddled|very\smuddled|perplexing|perplexed|bewildering|bewildered)/i
Matchre %EXPMINDLOCK /%\s(mind\slock|dazed)/i
Matchre CHECKLEVELW /Sorry,|\.*wait/
Put exp %EXP2CHECK
MatchWait

#USAGE
CHECKHEEXP:
SetVariable EXPLEARNING GETHE
SetVariable EXPMINDLOCK GETME
SetVariable EXP2CHECK heavy edged
GoTo CHECKLEVEL

In essense the first match catches anything bur mind lock and dazed. The second send you to where you want to go when mind locked or dazed.
The \s = "any white space" probably redundent or uneccesary and it's what I started with long ago...

Following the USAGE guid allows you to call this from anywhere in your script. Yes it's limited to the defined parameters. You could use variables to define the parameters.

IE: Matchre %EXPLEARNING %LEARNINGPARAM
Add SetVariable LEARNINGPARAM /%\s(clear|learning|thoughtful|pondering|concentrating|muddled|very\smuddled|perplexing|perplexed/i to CHECKHEEXP.

Want to ensure you hands are empty?

EMPTYHANDSW:
Pause 1
EMPTYHANDS:
#ECHO >>>> EMPTYHANDS: <<<<
Match SHEATHINITW2HE %W2HE
Match SHEATHINITWHE %WHE
Match SHEATHINITWME %WME
Match SHEATHINITWLE %WLE
Match SHEATHINITW2HB %W2HB
Match SHEATHINITWHB %WHB
Match SHEATHINITWMB %WMB
Match SHEATHINITWLB %WLB
Match SHEATHINITWLT %WLT
Match SHEATHINITWHT %WHT
Match SHEATHINITWSS %WSS
Match SHEATHINITWQS %WQS
Match SHEATHINITWPIKE %WPIKE
Match SHEATHINITWHALBERD %WHALBERD
Match SHEATHINITWLBOW %WLBOW
Match SHEATHINITWSSLING %WSSLING
Match SHEATHINITSKINKNIFE %SKINKNIFE
Matchre STOWR /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your right hand/i
Matchre STOWL /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your left hand/i
Match %GOTOPOSTHANDCLEANUP glance down at your empty hands.
Matchre EMPTYHANDSW /Sorry,|\.*wait/
Put glance
MatchWait

#USAGE
EMPTYHANDS2SKIN:
SetVariable GOTOPOSTHANDCLEANUP SKINIT
GoTo EMPTYHANDS

IMPORTANT to note when useing Matchre you must use the ending % on a variable.
IE:
Matchre STOWR /(pelt|skin|claw|bones|tusk|%JUGGLIES%|%SHIELD%|%WSLING%|%WCBOW%|%WSBOW%|%WHX%|%WLX%).*in your right hand/i
Verses
Match SHEATHINITWLBOW %WLBOW

Anyway hope that helps in some way....

"Don't go to far, don't stay to long."





Reply
New Beta Version of Stormfront 01/22/2008 05:24 PM CST
Can someone tell me what is different about the new stormfront Beta Version or point me to where it says what is different?

Thanks
Reply
Re: New Beta Version of Stormfront 01/22/2008 05:31 PM CST
Installed on a 2.8ghz win xp/nt system with 1 gig ram nvideo 64xx with 356 meg video. Using 2.28 thurough DSL Cellnet.

Get this error when launching from SGE

Error Code 14001
"C:\progra~1\simu\stormf~stormfront.exe" /GDR/hdr.simutronics.net/P11024/(entry code)

>>--Shnurui>
Reply
Re: New Beta Version of Stormfront 01/22/2008 05:45 PM CST
2.1ghz XP system with 1gb ram. Getting the same error code 14001.



Putting the Romance back in Necromancer.

Necromancy: Because every man lives, not every man really dies.
Reply
Re: New Beta Version of Stormfront 01/22/2008 07:34 PM CST
Not only did I get the same error message, but I've not been able to go back to the old version of Stormfront. I've deleted, reinstalled, but each time I log in, I don't get a complete connection. No commands are accepted. After about 20 seconds, I'm logged out. I'd really not recommend installing the beta version at this time.
Reply
Re: New Beta Version of Stormfront 01/22/2008 07:35 PM CST
getting the same error as well. winxp sp2. amd 3500+ 2gb ram, nforce3 chipset. shuttle sn95g v3 motherboard, BFG mx4000 video card.

tried SGE and the website, same result
Reply
Re: New Beta Version of Stormfront 01/22/2008 07:47 PM CST
Same error. Win XP, 1 GHz ram, cable ethernet on a home network, mismatched socks.

~player of Gulphphunger
Reply
Re: New Beta Version of Stormfront 01/23/2008 06:59 AM CST
I loaded this version, today. When I logged in I noticed two things:

- I was pulled out of hiding.
- There was no experience drain.

Useff


Macfrae frowns at you as he says, "BAH! You already know that enchante. Why make me repeat things for you when you already know the answer? You owe me a beer for this!"
Reply
Re: New Beta Version of Stormfront 01/23/2008 09:22 AM CST
>> - I was pulled out of hiding.
>> - There was no experience drain.

Which reminds me--the current version of Stormfront no longer saves my window placement for any of my characters, which means I have to import my settings every time I log in. Also, importing brings you out of hiding.

~player of Gulphphunger
Reply
Re: New Beta Version of Stormfront 01/24/2008 01:34 AM CST
>>Error Code 14001

Me too. XP sp2 AMD 3600+, X800 pro video. 1 gig ram. Roadrunner cable modem.




--Player of many, master of none--
Reply
Re: New Beta Version of Stormfront 01/24/2008 01:45 AM CST
The new beta version seems to fix this.


- Player of Foresee

"Since your character is a unique snowflake, I will not attempt to create a measure for his own, personal angst." - DR-Armifer
Reply
Re: New Beta Version of Stormfront 01/24/2008 09:17 AM CST
>>Error Code 14001<<

I got this same error code too when I installed it yesterday.

_____________________________________
Gnomes Rule!
Reply
Re: New Beta Version of Stormfront 01/24/2008 01:22 PM CST
<<I got this same error code too when I installed it yesterday.>>

Its fixed in the current beta version.


Myke
Reply
Re: New Beta Version of Stormfront 01/29/2008 10:11 PM CST
was there vertanotes somewheres?

Did we get nifty new tools?

Did the need to nest varibles go away?
Reply
Re: New Beta Version of Stormfront 01/30/2008 08:35 AM CST
<<was there vertanotes somewheres?>>

http://www.play.net/dr/play/sf/notes.asp

<<Did we get nifty new tools?>>

Mainly just bug fixes.

<<Did the need to nest varibles go away?>>

There were no changes to scripting.


Myke
Reply
Re: New Beta Version of Stormfront 01/31/2008 06:00 AM CST
I am not sure if this is a SF issue or not but after upgrading to the new beta version, I can no longer look in my bamboo tube. When I look IN the tube I get the description of the tube as if I had just looked AT it. I can rumage the tube though and see the items in it.


~Eoworfinia~
Dartenian fades into view.
A horde of Lawrence Welk fans decend on the area.
Dartenian whimpers softly.
Reply
Re: New Beta Version of Stormfront 01/31/2008 08:19 AM CST
<<I am not sure if this is a SF issue or not but after upgrading to the new beta version, I can no longer look in my bamboo tube. When I look IN the tube I get the description of the tube as if I had just looked AT it. I can rumage the tube though and see the items in it.>>

I doubt it but, you can try with the Wizard and see if its the same.


Myke
Reply
Re: New Beta Version of Stormfront 02/01/2008 04:36 PM CST
>I doubt it but, you can try with the Wizard and see if its the same.

And you would be correct. Same issue with the Wizard. So, nevermind!


~Eoworfinia~
Dartenian fades into view.
A horde of Lawrence Welk fans decend on the area.
Dartenian whimpers softly.
Reply
Re: New Beta Version of Stormfront 02/04/2008 12:29 AM CST
>There were no changes to scripting.

Darn. Well can it get put in a random number on the "git 'round to it" list?

namely something like a If_null command defaulting to literal execution.

example var two is currently null in the phrase below

match %next%two data response

This would default to the variable %next, ignoring the %two since it's empty.

Maybe also make it buelean capable, ie %next%c

>>--Shnurui>
Reply
Re: New Beta Version of Stormfront 02/04/2008 03:41 AM CST
If you're not willing to go the Genie route there is some new FE out called Warlock, it looked alright.

- Maje

Abstract ideas and religious associations based on the elements is something those skirt-wearing Clerics and fruity Bards are more likely to play with. Real wizards play with the primal stuff. - Armifer
Reply
Re: New Beta Version of Stormfront 02/04/2008 06:01 PM CST
I'd much rather go the route of the tool I paid for already, but the timer is still screwy and I can't afford the other format (Z- C-)

>>--Shnurui>
Reply
Re: New Beta Version of Stormfront 02/06/2008 09:52 AM CST
Sure, another item for the wishlist.


Myke
Reply
Re: New Beta Version of Stormfront 02/06/2008 02:49 PM CST
Don't forget ADDTOIGNORESTRINGS and DELETEFROMIGNORESTRINGS!

Also, and this is probably asking a lot, but what about a MATCHELSE<#> command, where the matchwait will go to the matchelse label after # seconds of not matching any of the other matches. So an example would be:

match labelA You get ye flask
match labelB You can't get ye flask
matchelse5 labelC
put get ye flask
matchwait

This would tell the script that if the game output doesn't match to labelA or labelB within 5 seconds of inputting the command, to default to labelC. I know it sounds way out there, but there are countless times where I wish I could have something like this, especially when dealing with anything that may (or may not) have a delayed reaction in game (shockwave trap?).




Aveda's Field Guide- http://dr.aveda.googlepages.com

Reckus 4.02 is out. More noob-friendly!
Reply
Re: New Beta Version of Stormfront 02/06/2008 02:52 PM CST
I'm having a hard time finding it: did anyone say what the upgrades were that made changing to the new SF a good idea?



Pax


A "friend" will help you move.
A "good friend" will help you move a body.
Reply
Re: New Beta Version of Stormfront 02/06/2008 03:04 PM CST
If-then-else statements would be an incredible addition to the SF scripting engine.



Rev. Reene

You ask, "Ever eat a Halfling?"

The grumpy Shadow Servant quietly says, "I only eat what you give me, but I thought you said we weren't going to talk about that incident."
Reply
Re: New Beta Version of Stormfront 02/06/2008 03:46 PM CST
>I'm having a hard time finding it: did anyone say what the upgrades were that made changing to the new SF a good idea?

http://www.play.net/forums/messages.asp?forum=90&category=3&topic=22&message=35

Sounds to me like there's absolutely no reason to upgrade if you aren't downloading/using maps.

But I'm not an expert.

~ Sage Kougen Aensworth, Star Shaper of the Compact

Ruea says, "I swear, I'm forsaking Damaris and building an altar to you."
Reply