login
March 28, 2024, 10:59:28 pm

Author Topic: Going to learn how to script  (Read 2744 times)

0 Members and 1 Guest are viewing this topic.

Deso

  • Vice Underdogs (Inactive)
  • Crazy Man
  • *
  • *
  • Posts: 1964
  • Country: bg
    • View Profile
Going to learn how to script
« 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?
« Last Edit: December 18, 2011, 06:39:56 pm by LaS3r »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor



GRAND

  • Crazy Man
  • *****
  • *
  • Posts: 514
  • Country: pl
  • VC:MP Polish Player
    • View Profile
Re: Going to learn how to script
« Reply #1 on: December 18, 2011, 07:37:42 pm »
notepad, I prefer notepad+
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

asd

morphine

  • Crazy Man
  • *****
  • Posts: 1908
  • Country: lt
    • View Profile
Re: Going to learn how to script
« Reply #2 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.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Crossfire|OutlawZ

  • Crazy Man
  • *****
  • Posts: 808
  • Country: 00
  • Wubba Lubba DUBB DUBBB BIAAAAATCH!!
    • View Profile
Re: Going to learn how to script
« Reply #3 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/

Zeke

  • Crazy Man
  • *****
  • Posts: 935
  • Country: bg
  • VC:MP and LU beta tester
    • View Profile
Re: Going to learn how to script
« Reply #4 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!
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

Quote
InstallHook(0x405AC0,(DWORD)CantFindFuckingAnim,0x405A95,
CantFindFuckingAnim_HookJmpCode,sizeof(CantFindFuckingAnim_HookJmpCode));
-------------------------------------------------
Quote
[00:41:12] <~Murdock> actually just transfering files
[00:41:16] <~Murdock> sounds, clientscripts etc
[00:42:05] <heekzs> what transfer method you uses
[00:43:03] <~Murdock> speed of light

Deso

  • Vice Underdogs (Inactive)
  • Crazy Man
  • *
  • *
  • Posts: 1964
  • Country: bg
    • View Profile
Re: Going to learn how to script
« Reply #5 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  :)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor



JuaN

  • Guest
Re: Going to learn how to script
« Reply #6 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
« Last Edit: December 18, 2011, 08:37:58 pm by Haze »
Cannot rate own posts


Sephiroth

  • Guest
Re: Going to learn how to script
« Reply #7 on: December 19, 2011, 03:29:11 am »
some useful information in this thread
Cannot rate own posts


Sephiroth

  • Guest
Re: Going to learn how to script
« Reply #8 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
Cannot rate own posts