Author Topic: freespacelancer, aka why you modders should learn scripting  (Read 3387 times)

0 Members and 1 Guest are viewing this topic.

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
freespacelancer, aka why you modders should learn scripting
linky

i put this in modding instead of scripting because i want people to know what scripting can do, and hopefully inspire some modders to use it. that said this is merely a demo or a proof of concept. the code is crude and is currently hard coded to one ship. check the remote turret thread in scripting for more technical info.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline NGTM-1R

  • I reject your reality and substitute my own
  • 213
  • Syndral Active. 0410.
Re: freespacelancer, aka why you modders should learn scripting
Didn't Goober already name something Freespacelancer?
"Load sabot. Target Zaku, direct front!"

A Feddie Story

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: freespacelancer, aka why you modders should learn scripting
I teach programming. I can code C#, C++, C, Java, and Visual BASIC. I want to know how to use it. I've tried to use it. I won't touch it again with a barge pole. The documentation is inadequate gibberish. It's a black art and unless you've got an active practitioner   on speed dial you're doomed to faliure.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: freespacelancer, aka why you modders should learn scripting
Just check the examples Nuke and others have posted.. Its sometimes a bit trial and error but it isn't that difficult.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: freespacelancer, aka why you modders should learn scripting
I've tried to use it. I won't touch it again with a barge pole.

I honestly wouldn't have said anything but the thread title really got my goat.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: freespacelancer, aka why you modders should learn scripting
i put this in modding instead of scripting because i want people to know what scripting can do, and hopefully inspire some modders to use it. that said this is merely a demo or a proof of concept. the code is crude and is currently hard coded to one ship. check the remote turret thread in scripting for more technical info.

Looks pretty cool Nuke. Scripting is on the list of things I want to learn in the near future. (In fact it's pretty close to the top of that list).
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 
Re: freespacelancer, aka why you modders should learn scripting
Is that how freelancer is actually played like? Thank god i didn't buy it then yuck.  (No offense to nuke, but to the makers of freelancer)

Also how debuggable is the script?
« Last Edit: January 31, 2007, 04:37:15 pm by Scooby_Doo »
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

  
Re: freespacelancer, aka why you modders should learn scripting
Actually, freelancer only used a mouse and you can aim anywhere on the screen, this looks like a camera script with targetting cursors that move to indicate where your shots will move. This looks extremely useful when in third person view where your standard aimer is way off and your ship constantly moves off the screen if it is very maneuverable.
I have created a masterpiece.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: freespacelancer, aka why you modders should learn scripting
well i didnt use a camera at all. i ripped some lines of code from my mouse script to manuver by. i also wrote a function to convert the mousejoy coords to a normal, which is hacked into the remote turret function so as to aim the turrets.

script debugging is gettig alot better. there are so fewer errorless crashes. thing is you cant do much in a 3.6.9 build and anything you do probibly wont work in future builds so the best bet is to script with a recent build from the scripting forum. thing is wmc needs more feedback on the scripting system to help finalize it and get all the bugs out. so far we got maybe 3 people who are scripting and that number needs to come up greatly.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: freespacelancer, aka why you modders should learn scripting
I made earlier something to FSwiki.. very basic tutorial for scripting

Unfortunaly that is written for 369 builds... i gotta update that for post-369 builds too

EDIT: There.. now it should be good for post-369 builds...

For older builds.. just check the older article revision.. Link to 369 version
« Last Edit: February 01, 2007, 06:38:32 am by Wanderer »
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline MetalDestroyer

  • Starwars reborn!
  • 210
Re: freespacelancer, aka why you modders should learn scripting
Wouaw !! I didn't know that scripting could offer a lots a good feature like that. And that scripting is all done in LUA ? (I didn't look into the link that Wanderer gave).

 

Offline DaBrain

  • Screensniper
  • 212
    • Shadows of Lylat board
Re: freespacelancer, aka why you modders should learn scripting
Wow, very impressive!

I want that script for SoL! Especially the "3d" crosshair.
--------------------------------------------------
SoL is looking for a sound effect artist
Please PM me in case you want to apply
---------------------------------
Shadows of Lylat - A Freespace 2 total conversion
(hosted by Game-Warden)
----------------------------------

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: freespacelancer, aka why you modders should learn scripting
that crosshair is a cheap hack, i got a better one that il implement later on.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Re: freespacelancer, aka why you modders should learn scripting
I teach programming. I can code C#, C++, C, Java, and Visual BASIC. I want to know how to use it. I've tried to use it. I won't touch it again with a barge pole. The documentation is inadequate gibberish. It's a black art and unless you've got an active practitioner   on speed dial you're doomed to faliure.

Say you had a student who failed to turn in a major project weeks after it was assigned. One day in class you hear him complaining that he wasn't able to complete the assignment because it was impossible to understand what exactly you wanted him to do in the assignment.

Would you believe the student if he went on to say that he 'wanted to complete the assignment' and had 'tried to complete the assignment', even though he had never said one word to you about the problems he was having?
-C

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: freespacelancer, aka why you modders should learn scripting
heh, busted!

surely you have enough examples to go on. the scripting forum is loaded with em. all the freespace related handels and functions are neatly discribed in the scripting.html. the syntax is so straight forward its almoast boring. while the lua manual is crap, all you really need to look at is the built in math funcs. and surly if nuke can get it winged you can too :D
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: freespacelancer, aka why you modders should learn scripting
Would you believe the student if he went on to say that he 'wanted to complete the assignment' and had 'tried to complete the assignment', even though he had never said one word to you about the problems he was having?

Have you ever heard the phrase "If you haven't got anything good to say don't say anything"?. I became extremely annoyed with the standard of documentation for the scripting system the last time I tried to do anything constructive with it, but I didn't want to put a downer on your good work in public. That's why I didn't say anything! I shouldn't have said anything this time either. Nuke's attitude irritated me but responding to it really wasn't worth the hassle. In fact I should even be responding to your provocative post now. So just forget I said anything. Oh and I'm sure your scripting system is a fantastic piece of work even if I cannot use it. So chill out.

As for you Nuke. Go wipe your nose.
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline Axem

  • 211
Re: freespacelancer, aka why you modders should learn scripting
Unless your comments about the scripting system weren't constructive at all, being quiet about is a surefire way to make sure things stay the same. It doesn't do anything to address any issues that you or anyone has with the scripting system.

Does no comments about a feature mean people find it stupid?

 

Offline IPAndrews

  • Disgruntled Customer
  • 212
  • This site stole my work
Re: freespacelancer, aka why you modders should learn scripting
Clearly I'm damned if I do and damned if I don't. It's like being back on the good 'ol VBBQ.  :lol:
Be warned: This site's admins stole 100s of hours of my work. They will do it to you.

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: freespacelancer, aka why you modders should learn scripting
Would you believe the student if he went on to say that he 'wanted to complete the assignment' and had 'tried to complete the assignment', even though he had never said one word to you about the problems he was having?

Have you ever heard the phrase "If you haven't got anything good to say don't say anything"?. I became extremely annoyed with the standard of documentation for the scripting system the last time I tried to do anything constructive with it, but I didn't want to put a downer on your good work in public. That's why I didn't say anything! I shouldn't have said anything this time either. Nuke's attitude irritated me but responding to it really wasn't worth the hassle. In fact I should even be responding to your provocative post now. So just forget I said anything. Oh and I'm sure your scripting system is a fantastic piece of work even if I cannot use it. So chill out.

As for you Nuke. Go wipe your nose.

didnt mean to sound like an ass, i just want the scripting system to get the attention it deserves.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 
Re: freespacelancer, aka why you modders should learn scripting
I'm still wondering how you debug scripting?  I remember doing some scripting for Morrowind and it was a pain in the ass  :hopping:
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"