SRL Archive - Outdated Tutorials

Developing And Maintaining A Script


pwnaz0r

2007-02-24 17:19:40

Maintaining And Developing A Script


~~~~~~~~~~~~~~~~~~~~~~~~~~~~

What This Tutorial Will Teach You


How To Organize and Develop A SRL/Scar Based Script Through Neatness To Get it Done Faster/ Better

~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index
  • I. Getting Started
  • II. Using Basic Tools
  • III. Scripting Standards
  • IV. Making An Outline
  • V. Orgranizing The MainLoop
  • VI. Publishing A Script
  • VII. Conculsion

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Chapter One Getting Started

Ok, Youre probably reading this tutorial because your scripting is messy, you have trouble finding things, or your just plain bored. This tutorial will go into an explainaton on how I like to keep my scripts organized / make an outline so I don't forget things, don't loose things, etc.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Chapter Two Using Basic Tools

Well For this Tutorial all you really need are 4 things.

- A Computer -
- Notepad(Or any other writing Program -
- Scar -
- Knowledge Of Scripting -

I am going to go ahead and get you to do the follow things

- Create A folder on the desktops named " My Scripts " or something similar to that -
- Open Up Scar -
- Open Up Your Writing Program -

My Example Will Be A PowerChopper

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Chapter Three Scripting Standards
Well Scripting Standards are the way us scripters keep our scripting

LOOK AT THE BOTTOM OF THE PAGE FOR A STANDARDIZER GOTTEN FROM HEY321 or

~~~~~~~~~~~~~~~~~~~~~~~~
http://www.villavu.com/forum/showthread.php?t=5195?t=6042
http://www.villavu.com/forum/showthread.php?t=3293?t=3997
http://www.villavu.com/forum/showthread.php?t=4676?t=5496
^^^^^^^^^^^^^^^^^^^^^
Go To These Tutorials If you don't understand Scripting Standards. Some scripters have their own standards that they create. In my opinion, if its neat, its good enough for me.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Chapter Four Making An Outline

Ok well this is where we really start the tutorial. So you have everything ready and you understand scripting standards. To start your outline, you need to know what you want to make. So at the top of your writing program, put your title/idea in Bold.



After that, Make your basic Outline. This FORCES you to know what you want to do with the script



** NOTE ** notice how I use " * " to make personal notes for myself

This Tells you Exactly What to do with the Script. Now, You begin a detailed version of Your outline. Like So



^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Red Dots = I like To put special Symbols when indicating a custom procedure
Black Line = See How I fill in the X when its done?


~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Chapter Five Organizing The Mainloop

Now you have to Organize your mainloop. I don't really know how to explain this as each scripter has his/her own style but, this is how I would organize mine.


pwnaz0r

2007-02-24 17:20:40

Reserved

JAD

2007-02-24 19:00:11

thanks a lot pwnaz0r! this is a very uber tut :spot: :spot: :spot: +rep :) can't wait to see the rest :P

Boreas

2007-02-24 22:15:34

Yea for outlining!!

pwnaz0r

2007-02-24 23:08:37

:p I dnt know if that was sarcastic or not but this is how I keep my things neat :p

Boreas

2007-02-24 23:13:31

Not sarcastic. I always outline what I want something do first, at least goals, if not pseudo code. I think it really helps, and more people should do it.

pwnaz0r

2007-02-25 16:59:37

:p It helps me know what I want to do too im hoping so people will see this guide and folow it :p

Smartzkid

2007-02-25 18:10:55

Nice Tut! Heh….you should see my standards, they're horrible :p I'm workin' on 'em though…

*I vote for stickyfication!*

WhiteShadow

2007-02-25 18:59:13

I really should learn to outline what I code. Otherwise I get lost like I always do!

haha, nice idea, and good job.

pwnaz0r

2007-03-03 15:52:33

Ty :p