PDA

View Full Version : FGC to FGU conversion



Weepdrag
July 20th, 2023, 00:21
Hello,
Is there a document someplace that gives the significant changes between FGC and FGU? I have a collection of extensions that were written for FGC years ago that don't have a FGU equivelent. I was thinking to try my hand at hacking them. These were written by a friend that has since passed away, so I can't go back to the original programmer.
Thanks in advance

Moon Wizard
July 20th, 2023, 05:37
No, there is not. There have been several waves of changes in both the features and rulesets that would preclude any sort of simple migration document.

You're probably best using the old extension code as a general guideline for the kind of feature you are building, but modify the most recent coding.

Regards,
JPG

Weepdrag
July 20th, 2023, 15:35
Thanks Moon Wizard,
The extensions mostly work but throw some errors. I'll just start chasing those and see where they lead. I think that most of the errors I'm getting are related to the window image frames and window content, we'll see.
Thanks again

wndrngdru
July 20th, 2023, 16:24
You could take a look at various Developer Notes threads (https://www.fantasygrounds.com/forums/search.php?searchid=3527048) (I even did the search for you :) ) for Ruleset Updates in the Laboratory (https://www.fantasygrounds.com/forums/forumdisplay.php?55-The-Laboratory) forum. They detail most, if not all, of the changes that broke things for extensions.

Trenloe
July 20th, 2023, 16:43
I'd also recommend Monn Wizard's approach. Whereas you may be able to remove all of the errors from the FGC extensions, you may still have old CoreRPG/other ruleset code within the extensions and this may result in different functionality than expected - sometimes extensions break things, but it's not obvious if there's no errors.