Home   Help Search Login Register  

Author Topic: new Editor for sqs  (Read 1477 times)

0 Members and 1 Guest are viewing this topic.

Texx

  • Guest
new Editor for sqs
« on: 10 Oct 2002, 12:38:52 »
Hi,

I have written a cool looking Editor for OFP-SQS-Scripts.


click to enlarge


Ok, you may think, what's the special, why should I use is programm instead of (e.g.) 'UltraEdit' or 'Notepad'.

It's because of the limmitations of the original "sqs"-Language. The Programm supports some extension (called xsqs) that allows you to programm on an higher level than ever (also including 1.85).

To give you an imagin of what power xsqs gives you, see the example below:

//in xsqs you can write things like this

if(...){ /*do something you want*/ }else{ /*do something else*/ }

which is equivalent with:

?(...): goto "if1"
goto "else1"
#if1
;do something you want
goto "endif1"
#else1
;do something else
#endif1

Ok, this will be also possible with 1.85, but my programm works also with 1.46/CWC AND you dont have to used. You can also use it to write normal sqs! ;D
BTW: In some of the next releases there will be features like "self defined functions" added.

But that is not all, there are a lot of other Features like "for" or "while". Finally xSQS-Edit gives you a modern Programming editor with codecompleation and contextsensitiv help of all possible sqs-commands. Everything to allow you to programm very fast and effectiv.

An the best is: It is free. Free for non comercial use. (And free for commercial use if you ask me!   )

Test it for your self: http://www.contexx.net/xsqs/

greatings, Texx

PS: Please don't blame me, because this features are also included in 1.85. I started xSQS nearly a half year ago...

PPS: you can also take a look at: http://www.flashpoint1985.com/cgi-bin/ikonboard301/ikonboard.cgi?s=3da541f3654affff;act=ST;f=7;t=20880

Offline KTottE

  • Former Staff
  • ****
Re:new Editor for sqs
« Reply #1 on: 10 Oct 2002, 23:00:34 »
hmm, I'm gonna be nice this time, and let this thread be open. But in the future, advertisments of your stuff should be done through the Intelligence Depot.
Better yet, submit the tool to OFPEC, and have us host it for ya.

Now, in this thread, y'all can talk about features that should be added to the tool and so on.
Maybe some sort of prewritten snippets should come with the tool?
If so, state suggestions (and post complete snippets) in this thread.

BTW, this sounds cool mate, I'm d/ling it now.

Cheers, KTottE

Edit:

Okay, installed it.
It seemed to close my ICQ down, I'll test some more and see if the problem re-occurs.
Now, a question I forgot to ask you.
What exactly can you do with the .xsqs format?
Is it readable by OFP?
As in I can save stuff as ScriptName.xsqs and OFP can read it.

Ah, just spotted the "compile" option. I take it we write xsqs files, press "compile" and the program makes working .sqs files out of it?
« Last Edit: 10 Oct 2002, 23:05:26 by KTottE »
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Texx

  • Guest
Re:new Editor for sqs
« Reply #2 on: 11 Oct 2002, 01:15:52 »
Sorry... Realy sorry! I read the description of all Main-Topics an didn't found something that fits perfectly. This Main-Topic are the best fitting. Also i didn't found a link or email-address so this was the only way i saw. (as you can see, I'm a ofpec.com-forum-newbie)

You can close the Thread if you can, but give me an idea where to post it on this side! Thanks!  :)

BTW: Thanks to be nice to me and this thread!  ;D

To your idea with the snippets: I plane to add a Library for Snippes with Web-Ubdate. This will come together with the "self defined Functions".

Your Bugreport: I know that somthing like this could happen, but i didn't know that it kill's ICQ! (in my test's it kills the MSN-Messanger. I fixed it!)

What can you do with xsqs? Well, currently this:

if(<condition>){...}
if(<condition>){...}else{...}
for(<precondition>;<condition>;<postcondition>){...}
while(<condition>){...}

(Take a look into sample.xsqs; it will be show all possibilitys of xSQS)

In the next Version ther will (definitely) support for:

if(<condition>){...}else ...

if(<condition>){...}else if
case{
<condition>:...
<condition>:{...}
[else:{...}]
}
case <variable> of{
<value>:...
<value>:{...}
[else:{...}]
}

In some of the next version:

- "self defined functions"
- Namespaces
- maybe your Idea!
- ...

How it works: Exactly as you sayed!  ;D

greatings, Texx

PS: Download please only over my side! But you can link to me...  ;)

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:new Editor for sqs
« Reply #3 on: 11 Oct 2002, 02:06:13 »
Looking good Texx!
Welcome to our neck of the woods

There are a couple of options available to you here... we could move this over to the Scripting: Beta Testing forum, or you could submit it to the editor's depot.

If you want this thread moved into beta testing (please don't start a new one in there) just ask a mod and it shall be done :)

As for the Editor's Depot, the submission link is about 3/4 of the way down in the left hand menu bar of the Editor's Depot... to get there quick try here. You'll probably want to click the tools link in the submit section ;)

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:new Editor for sqs
« Reply #4 on: 11 Oct 2002, 04:05:45 »
Looks good! I just night have to ditch my editpad. :D

Hopefully someone who has *real* programming experience can post a little tutorial explaining how to use these new functions, for types like me who have NO other programming experience besides OFP scripting.  :-\

That example kinda reminds me of VBScript.
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Texx

  • Guest
Re:new Editor for sqs
« Reply #5 on: 11 Oct 2002, 11:32:14 »
@Sui: I think I'll submit it to the editors depot. If you want, you can also move this thread to "Scripting: Beta Testing", but if I read the descrition this forum I didn't thought that it fits! But you are a Mod and I belive that you know better than me, what's the right place for this thread!  ;D

@toadlife: xSQS-Syntax is simular to Java/C/C++-Syntax of "if","for" and "while". Maybe this helps you to "google" for a totorial!
Or you'll take a look into "samples.xsqs" in you xSQS-Edit installation directory!

greetings, Texx