Vice Underdogs

Scripting => Scripting Support => Topic started by: kyber7 on December 18, 2011, 06:38:13 pm

Title: Going to learn how to script
Post by: kyber7 on December 18, 2011, 06:38:13 pm
Hi everyone.

I plan to start to learn how to script in squirrel. Although, I don't know a single thing about scripting. I'll ask everything I need to know on this topic (so I don't have to spam too much topics).

I already got the resource and the squirrel wiki sites by the sticked topics.

So the first thing I need right now is - what programs exist for scripting and what program should I use for scripting?
Title: Re: Going to learn how to script
Post by: GRAND on December 18, 2011, 07:37:42 pm
notepad, I prefer notepad+
Title: Re: Going to learn how to script
Post by: morphine on December 18, 2011, 07:41:03 pm
Notepad++. You can start looking up beginners' C++ tutorials since C++ is very similar to Squirrel. Once you get the hold of simple C++, you can start learning a bit of additional Squirrel syntax and finally the VC:MP functions. That's the way I did it.
Title: Re: Going to learn how to script
Post by: Crossfire|OutlawZ on December 18, 2011, 07:55:45 pm
Yeah the simple primary C++ lesson will be enough..

http://www.cplusplus.com/doc/tutorial/
http://www.learncpp.com/
Title: Re: Going to learn how to script
Post by: Zeke on December 18, 2011, 08:11:52 pm
Small Comment
Squirrel scripts have .nut extention.
Those files can be open with Notepad, I prefer Programmer's Notepad cuz it has alot more features.
To start scripting you will need to setup a script although I recommend messing with an already made script before u start from scratch.

Tools
http://www.pnotepad.org/

Scripts
Visit: /* http://vcmp.liberty-unleashed.co.uk/forum/index.php */ for more info.
I recommend you to start with FBS (Force's Begginer's Script) to gain some knowledge about scripts and scripting
FBS is 70% hooked up with everything you will need. You will just need the files that start the server.

FBS's main topic: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=6.0

How to setup the Server
First of all you will need the main server files.
Which can be found at this website: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=2.0
Second, after you download All the important stuff (Config files, Modules, Server ect.) Please follow this tutorial created by Javi on how to setup a server: http://vcmp.liberty-unleashed.co.uk/files/tutorials/VCMPServerGuide.pdf

Notepad++. You can start looking up beginners' C++ tutorials since C++ is very similar to Squirrel. Once you get the hold of simple C++, you can start learning a bit of additional Squirrel syntax and finally the VC:MP functions. That's the way I did it.
Yeah the simple primary C++ lesson will be enough..

http://www.cplusplus.com/doc/tutorial/
http://www.learncpp.com/

Last Comment
Don't forget to visit the Wiki, its full of useful Functions and CallBacks.
If you have any problems (errors) or you don't understand something don't hesitate to post here.

Have fun!
Title: Re: Going to learn how to script
Post by: kyber7 on December 18, 2011, 08:28:58 pm
Thx for the tips guys. I'll start with C++
I have already found a nice C++ teacher on YouTube  :)
Title: Re: Going to learn how to script
Post by: JuaN on December 18, 2011, 08:31:54 pm
man i tried the same, and i got fucking bored of it in less then 2 minutes pure boredom man, either way if you can pass through that wall and you really find it interesting you'll end up being more or less of a nice scripter
Title: Re: Going to learn how to script
Post by: Sephiroth on December 19, 2011, 03:29:11 am
some useful information in this thread
Title: Re: Going to learn how to script
Post by: Sephiroth on December 19, 2011, 10:54:20 am
sorry for double post but

http://www.cprogramming.com/begin.html

I'm finding this very helpful so far. It has a more hands-on approach than the two lawz posted.

The C++ compiler tutorial is nice