OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Texx on 10 Oct 2002, 12:38:52
-
Hi,
I have written a cool looking Editor for OFP-SQS-Scripts.
(http://www.contexx.net/xsqs/smallscreenthumb.jpg)
click to enlarge (http://www.contexx.net/xsqs/smallscreen.jpg)
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
-
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?
-
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... ;)
-
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 (http://www.ofpec.com/editors/index.php). You'll probably want to click the tools link in the submit section ;)
-
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.
-
@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