Starfinder Playlist
  1. #1

    Programming Basics

    As I continue in this hobby, I've become more interested in the programming aspect and how things work. Do any of the programmers here have any recommendations on how to begin a self-taught journey? I've done internet searches and have some youtube links and book recommendations, but what would you recommend from a fantasy grounds specific perspective (languages and resources....Lua and....?

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    First question - are you learning programming from scratch, in addition to learning how to program in FG? Or can you program in another language and you want to learn the details of programming in FG?
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    From scratch -complete newbie. Mostly looking to understand as much as possible. No illusions as to learning how to create my own ruleset.

  4. #4
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    This is what I've recommended in the past: https://www.amazon.com/Beginning-Lua.../dp/0470069171

    Unfortunately, I don't think there's a digital version and it can be quite expensive as it's been out of print for a while - but you may be able to find a reasonable used copy out there. FG uses LUA 5.1, which was released in 2006, so there's no need to worry about the book being published in 2007 - in fact, it's probably a good thing!
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    For XML you won't need to spend much time learning it - just the basic syntax of tags and properties. You can start with something like this: https://www.w3schools.com/xml/
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #6
    Trenloe - not to hijack the thread, but what about people with experience programming that are just looking to learn

  7. #7
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    Quote Originally Posted by jasonthelamb View Post
    Trenloe - not to hijack the thread, but what about people with experience programming that are just looking to learn
    There's the LAU 5.1 reference manual: https://www.lua.org/manual/5.1/

    Then there's the basics on FG scripting here: https://fantasygroundsunity.atlassia...et+-+Scripting

    And the API doc here: https://fantasygroundsunity.atlassia...+API+Reference

    Then it's a case of diving in and looking at examples. Unfortunately, there's not really any documentation on how the FG rulesets are tied together - but broadly, there's XML to define the GUI components, which will be layered across CoreRPG and your ruleset of choice. Then there's LUA that is tied to the GUI XML, and also LUA event handlers - like the action managers in the \scripts directory.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  8. #8
    For experienced developers, I would give the whole developer guide index a quick scan to familiarize yourself with where topics are located:
    https://fantasygroundsunity.atlassia...eveloper+Guide

    Then, I would open up both the CoreRPG ruleset as well as an example ruleset closest to the system you want to make (5E, 3.5E, Cypher, Fate, ...)

    Regards,
    JPG

  9. #9
    Thanks Trenloe, I'll check them out!

  10. #10

    Join Date
    Apr 2018
    Location
    Sydney, Australia
    Posts
    214
    There is also an online course at Udemy, about an hour long on LUA Core Syntax
    https://www.udemy.com/course/luas-core-syntax/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Character Create Playlist

Log in

Log in