Page 1 of 3

Posted: Mon, 10. May 04, 09:36
by marklaverty
Glad you found it helpfull :D :D :D :D

Posted: Mon, 10. May 04, 14:26
by Kailric
:? Thanks to you I understand Arrays lots better now! :idea:

Posted: Tue, 11. May 04, 00:54
by LV
Now now gentlemen


Any guide is a good guide


The only way this scripting forum is going to get anywhere is if it's users work together as the any official help/hints are about as likely as martians landing on earth tommorow :)

It's a fine guide but i must admit it is hard to read and the code should standout, marklaverty has put some serious effort in here and i'd hope if someone else tidied it up mark would apprieciate it.

I'd happily tidy it up but I have nearly 30 scripts to tidy b4 1.4 comes out

If the peeps on this forum wants some scripting docs their going to have to make them themselves and if you havn't worked this out yet you never will :wink:

Posted: Tue, 11. May 04, 12:14
by marklaverty
Hi,

Ok, I'd just like to start by saying that I did ask for comments and that was because I wanted them, both good and bad.

I'm not one of these people who don't like being critisised, as long as it's helpfull.

Shara -> whilst your comments might may be percieved as a bit 'blunt', your sugestion about the code blocks was very usefull and I thank you for it. I have asked for this to be done ASAP.

That said, and this was never going to be a 'scripting in a nutshell guide'. It is aimed at helping people get started with scripting and is just an attempt to take some of the steepness out of the learning curve.

As LV said, it will be some time before we see a 'propper' scripting in a nutshell guide from egosoft, and we may never do.

With this in mind, the more that's written down by people the better. If you know how to do something with x2 scripts please consoider taking just half an hout or so and writing it down.

If you want send it to me and I'll add it to the guide, obviously stating your name as the person who submitted that section and thanking you profusely!

Posted: Tue, 11. May 04, 17:20
by Shara
marklaverty wrote:Hi,

Ok, I'd just like to start by saying that I did ask for comments and that was because I wanted them, both good and bad.

I'm not one of these people who don't like being critisised, as long as it's helpfull.

Shara -> whilst your comments might may be percieved as a bit 'blunt', your sugestion about the code blocks was very usefull and I thank you for it. I have asked for this to be done ASAP.

That said, and this was never going to be a 'scripting in a nutshell guide'. It is aimed at helping people get started with scripting and is just an attempt to take some of the steepness out of the learning curve.

As LV said, it will be some time before we see a 'propper' scripting in a nutshell guide from egosoft, and we may never do.

With this in mind, the more that's written down by people the better. If you know how to do something with x2 scripts please consoider taking just half an hout or so and writing it down.

If you want send it to me and I'll add it to the guide, obviously stating your name as the person who submitted that section and thanking you profusely!
I never meant to disrespect your guide. So, if it got perceived that way, that was not my intent. My intent was simply to provide feedback that was asked for, so I did. I noted two important things: (1) The format needed some work, and that was not your fault, but the maintainers of the site and (2) I expected a different guide. That was my expectation, and I never meant for it to reflect the quality of your guide. You meant to write a Scripting for Dummies guide, and so you achieved your objective - good show!

Posted: Wed, 12. May 04, 05:57
by GoateeCat
Well, my proxy finally let it through. I'm only a few pages in and already, BRAVO!! The nuances of the engine itself and not the code always annoyed me, but you make it all crystal clear.

I imagine when I'm done reading the whole shebang I'll have only laziness to blame for not creating scripts.

...

Laziness it is then! :)

Posted: Wed, 12. May 04, 13:35
by marklaverty
I never meant to disrespect your guide. So, if it got perceived that way, that was not my intent. My intent was simply to provide feedback that was asked for, so I did. I noted two important things: (1) The format needed some work, and that was not your fault, but the maintainers of the site and (2) I expected a different guide. That was my expectation, and I never meant for it to reflect the quality of your guide. You meant to write a Scripting for Dummies guide, and so you achieved your objective - good show!
cool :D

no offence was intended or taken.
Well, my proxy finally let it through. I'm only a few pages in and already, BRAVO!! The nuances of the engine itself and not the code always annoyed me, but you make it all crystal clear.

I imagine when I'm done reading the whole shebang I'll have only laziness to blame for not creating scripts.

...

Laziness it is then!

ROLF :D

Impressive...

Posted: Fri, 17. Sep 04, 23:21
by [DLM]Jimbo
I actually managed to understand that. I'm looking forward to reading anything else you write as it's written in a really user friendly manner. I generally look at coding related stuff, see it in it's entirity and just get immensely confused. That managed to break it down into nice bitesized chunks and I actually feel like I could start playing with scripting a lil and see how it goes. Will play the game a lil more first to get an idea of what I really want from the game and then I'll try and script it :)

Posted: Mon, 7. Feb 05, 09:33
by R4v3n
the address has now changed, the scripting guide can be found here:

http://www.x2source.com/index.php?act=scriptguide

newb scripter looking to learn how to make a script

Posted: Sun, 19. Mar 06, 23:37
by terrifiedkiller
hi i am trying to make me a x3 script that will give me cash for every single kill i make and i'm trying to learn how to script using the guides here in the forums but i cant understand how anyone able to explain how?

Posted: Tue, 28. Mar 06, 14:04
by BarclayMan
POS

Posted: Wed, 24. May 06, 02:25
by Horsewhisperer
Hi Fellas,

I tried to donload this guide, but it appears that the X2Script.com site is down.

Is it just maintenance, or is it down permanently? If so, is there anywhere else I can get the guide from?


Horsey

Posted: Wed, 24. May 06, 03:07
by Cycrow
well, considering it was posted over a year ago, then theres a chance that its no longer supported or avaialble

Posted: Wed, 24. May 06, 06:05
by moggy2
I don't know what's up with x2source.com. It must have been there a few weeks ago. I downloaded the guide only recently.

I can't really host it without permission from the author, so I've emailed it to you. Hope that's the one you were looking for.

Posted: Wed, 7. Jun 06, 05:59
by Horsewhisperer
Thanks for that. :)

Posted: Sun, 3. Sep 06, 02:17
by MackTracker
This was a great walk through for anyone starting out. I know it sure helped me get started. Reading through this took me about 1 hour. Though I will say that I was already familiar with XML.

I am running X3 Reunion and I don't know if their are any differances but I would like to point out a few errors in this text if you don't mind. :D

FIRST:
I don't know if you are aware but I noticed that your final escourt routine causes the game to freeze should your target decide to land at a Station. (X3 Only, I don't know if it causes X2 to freeze)

I would surmize that this is caused by the fact that the ship's referance is nolonger availiable. This could be taken care of by a test to see wether the ship is about to dock or not.

SECOND:
With regaurd to the last program. If you follow your instructions cairfully and when you come to the part where you are initializing the $count variable, you will get the following wrather than what is printed in your guide:

"$count =<?> … " wrather than "$count <?> …"

From their if you continue you will get:

"$count = == 0 …"

Which of course creats a syntax error. It is common programming practice to use the "=" (Singal equal sign) to mean "Assign the value of x to the value of y" where y=x. Where as the "==" (Double equal sign) means to ask "Are these two values equal to eachother.

Hats off to you for all your effort in putting this walk through together for all of us. I apreciate this because I know it helped me lots. :) cheers :x3: (Again I have only tested this with X3.)

Posted: Sun, 3. Sep 06, 02:31
by Cycrow
MackTracker wrote:It is common programming practice to use the "=" (Singal equal sign) to mean "Assign the value of x to the value of y" where y=x. Where as the "==" (Double equal sign) means to ask "Are these two values equal to eachother.
actaully its not that common, most languages use the = for both.

the == was mainly only used by C/C++ and the languages that came from it, like java.

Posted: Sun, 3. Sep 06, 02:33
by MackTracker
True that, forgive me then. My native language is C/C++. :lol: cheers mate!

Oh and XML uses both "=" & "=="

Posted: Sun, 3. Sep 06, 02:52
by Cycrow
yeah mine is c++ as well. but i had to use other languages while i was at collage, unfortuatlly

Posted: Thu, 7. Sep 06, 17:44
by Gouranga Man
thank you very much for this I havent read it but i will, love the disclaimer by the way.

"but you just got to put something in like this these days to protect you from stupid stuff. E.g., my cat died cos I forgot to feed it as I spent 2 days learning to script, so I'm going to sue you…"