Author Topic: List of LUA Tutorials/Resources  (Read 16732 times)

0 Members and 1 Guest are viewing this topic.

Offline WMCoolmon

  • Purveyor of space crack
  • 213
List of LUA Tutorials/Resources
Tutorials
Object-oriented Programming - Outlines how to create an object and use operators with it.

Reference
General FS2_Open Scripting - Somewhat outdated, but it provides a general overview of core scripting concepts
Scripting.tbl - Guide on all aspects of scripting.tbl
Scripting.html - Somewhat outdated version of the scripting libraries/functions reference file. (Look up the -output_scripting command in the wiki for a fully up-to-date version)
-C

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: List of LUA Tutorials/Resources
The bottom of the FSO wiki scripting page also has links to the official Lua docs.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: List of LUA Tutorials/Resources
I'm getting a 404 on the scripting.html....  I also can't create one at the moment.

EDIT: Found a reference to a hidden Wiki article: http://www.hard-light.net/wiki/index.php/Scripting_functions
« Last Edit: March 21, 2016, 06:24:21 pm by Cyborg17 »

 

Offline m!m

  • 211
Re: List of LUA Tutorials/Resources
You should use the documentation generated by FSO. There is a flag in the Dev Tools section in the launcher. That will make sure that you always use the documentation that is up-to date for the build you are currently using.

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: List of LUA Tutorials/Resources
I have generated it before.  I really did not have access to FSO at the time.

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: List of LUA Tutorials/Resources
I have generated it before.  I really did not have access to FSO at the time.
...And you couldn't just download it? It's not like generating a scripting.html would require any assets...
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: List of LUA Tutorials/Resources
The connection I was on was incredibly bad.