Home   Help Search Login Register  

Author Topic: What Scripting Language Is This?  (Read 976 times)

0 Members and 2 Guests are viewing this topic.

alterego45

  • Guest
What Scripting Language Is This?
« on: 26 Feb 2003, 00:03:44 »
Hey All,
 
  I want to learn how to script and be self-sufficient (ie not have to borrow all of the time  ;) ), but don't know where to start.

  I've asked about 10 s/ware gurus about OFP scripts, and they all give me different answers.  I also can't find any info in the forums, or on any website/tutorial.

  2 questions:

1) What language is this (or closest to, if it's a dialect)?  [I'm referring to the script lang. we use in EXT files like 'ClassObject', or 'NOT (alive Player)' etc].

2) What books would you suggest for me to learn scripting: at least. enough to stand on my own two feet.

  I've heard that it could be Python, C++, OR everyone's favorite: propietary!  What's an aspiring scripter to do?  Heeeee  ;D.

Thanks for your help!
Alterego45

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:What Scripting Language Is This?
« Reply #1 on: 26 Feb 2003, 01:06:03 »
It's BIS's own proprietary scripting language.
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

alterego45

  • Guest
Re:What Scripting Language Is This?
« Reply #2 on: 26 Feb 2003, 02:43:43 »
Ahh, excellent!

  Now...what language is BIS' language based on?

  I want to start learning software programming, and what better way than to learn the lang. that will help me most in OFP.  At least I'll have real applications for my homework!!!  What language books would be most helpful as a 'base' of understanding.  Any suggestions?

   It appears to me that there are a lot of 'naturals' at programming this BIS language.  They must have had software training beforehand that helped them be so good at it (from the get-go).  Or are they all BIS employees?

  What software background language helped them 'adapt' to the new BIS standard so easily?

Thanks again, for the rapid response!
Alterego45

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:What Scripting Language Is This?
« Reply #3 on: 26 Feb 2003, 03:15:29 »
Actually I had never programmed a damn thing in my life before learning how to script in OFP, and I thing I'm pretty good at OFP scripting.

However, since learning OFP scripting, I have learned a bit of PHP and the operators in PHP are similar to OFP scripting, and the syntax for OFP Functions are almost exactly like PHP. According to the command ref, functions use a C++ like syntax.

Perhaps someone with more programming experience knows a language OFP scripting is more like.

I don't think any ONE language is going to help you understand ofp scripting any better than the next. Just knowing ANY programming language will help immensly when trying to learn others.
« Last Edit: 26 Feb 2003, 03:18:58 by toadlife »
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

Offline Sui

  • Former Staff
  • ****
    • OFPEC
Re:What Scripting Language Is This?
« Reply #4 on: 27 Feb 2003, 00:58:09 »
I have to say I'm in much the same boat as toadlife.

The only programming I had done before picking up OFP scripting was in basic... and there wasn't very much I could do in that! ;D

You can't really learn OFP scripting from a textbook of C++ or any other language. The way I picked it up was from experimentation and learning from others examples.

alterego45

  • Guest
Re:What Scripting Language Is This?
« Reply #5 on: 27 Feb 2003, 03:47:33 »
Well lookie here!

  Seems like Devil Chaser's already answered my wish.

  Here's a wicked tutorial that explains the basics of scripting, right here on this site (imagine that).

http://www.ofpec.com/includes/download2.php?id=36

Excellent stuff, and thank you Devil Chaser!

Offline toadlife

  • OFPEC Old Skool
  • Former Staff
  • ****
  • Official OFP Editing Center Toad
    • toadlife.net
Re:What Scripting Language Is This?
« Reply #6 on: 27 Feb 2003, 04:00:16 »
I see you finally found the ed depot. ;)  Another good scripting tutorial is Johan Gustaffsons scripting tutorial. It teaches you as if you were an absolute noob.
"Whenever you want information on the 'net, don't ask a question; just post a wrong answer." -- Cancer Omega.

hyperact

  • Guest
Re:What Scripting Language Is This?
« Reply #7 on: 28 Feb 2003, 02:42:15 »
I have learned how to program in c++ and I find that it helps me understand ALL the scripts that I have read, but since I don't know all the commands and syntax I can only program basics in ofp. My suggestion is that if you want to learn how to script in ofp then learn all the syntax and commands for scripting and if you decide to learn programming languages your knowledge will help you understand the programming languages better.

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Re:What Scripting Language Is This?
« Reply #8 on: 28 Feb 2003, 11:37:16 »
Hi,

as a professional Programmer and Master (German University Diplom Ingernieur Informatik) of Compter Sience:

Take a good Book of C or C++ and begin studying. The OFP Script language basic constructs are all from C (the basic version of C++). Although it might also be interesting for you to know that all "hype" programming languages like Java, php etc. use the basic contrusts of C.
Therefore if you want to learn something for your life and for OFP learn C or C++ !

Greetings
Kuro

alterego45

  • Guest
Re:What Scripting Language Is This?
« Reply #9 on: 02 Mar 2003, 18:42:37 »
Coolness!

  Now can anyone recommend a good C++ book for a beginner?

  Preferably one with color, or at least fun assignments that pull you in deeper?

  The last thing I want is some boring, series of letters that'll put my desire to script, to sleep, forever.

Since I'm asking for help, why not ask for what I really want? Right?
Thanks everyone!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:What Scripting Language Is This?
« Reply #10 on: 03 Mar 2003, 06:43:39 »
im ike sui and toady ;D

and i tried not 2 use TUTs as much as i can so i wont recomand on ny1  ;D (from da same reason u wanna somthin wid colors - but i didnt wanna search)

wat i think should b done is dat u need 2 grab da official command referance (find it in da editors dept right here) look @ som scripts around dat make things dat u like (unpbo misions or form scripts u D/L from da ED) - and learn dalogic of scripting - if u know da logic of scripting u can alwayz use dacommand referance 2 find ny command u need ;) - dats wat i did ;D - and i now gotten 9 in scriptin from kuro (professional Programmer and Master of Compter Sience :wow: kool) and im now da best student in my comp class - nd try 2 get very good @ maths 4 da harder scripts ;D

:cheers:

good luck bcomin master scripter ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta