Thread: Programming Basics
-
June 5th, 2023, 15:52 #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....?
-
June 5th, 2023, 16:07 #2
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!
-
June 5th, 2023, 17:08 #3
From scratch -complete newbie. Mostly looking to understand as much as possible. No illusions as to learning how to create my own ruleset.
-
June 5th, 2023, 17:27 #4
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!
-
June 5th, 2023, 17:28 #5
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!
-
June 5th, 2023, 18:39 #6
Trenloe - not to hijack the thread, but what about people with experience programming that are just looking to learn
-
June 5th, 2023, 19:03 #7
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!
-
June 5th, 2023, 21:21 #8
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 19,646
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,
JPGFG Wish List - https://fgapp.idea.informer.com/
-
June 6th, 2023, 02:45 #9
Thanks Trenloe, I'll check them out!
-
June 9th, 2023, 08:00 #10
- Join Date
- Apr 2018
- Location
- Sydney, Australia
- Posts
- 167
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