PDA

View Full Version : Custom Calendar Module



Jesternario
October 17th, 2019, 23:04
Hello. I am completely new to Fantasy Grounds. I wanted to add a custom calendar to my game, but I don't know anything about programming, so I was wondering if there was anyone out there who had free time and was willing to make a new calendar I could use.

I understand this is a common question, so thank you for looking at this message thread.

LordEntrails
October 17th, 2019, 23:38
There is a custom calendar tutorial, I think in the workshop. I'm on my phone so cant find it, but if you do a site search it should show up, plus lots of other custom calendar examples.

Jesternario
October 17th, 2019, 23:40
I don't know the first thing about programming. It is my understanding that making a custom calendar requires an understanding of lua script. That is why I was asking if someone would be willing to make it for me.

LordEntrails
October 17th, 2019, 23:41
It depends on what you want to do. I believe in that post are instructions, including the offer to make the lua for you if needed.

Jesternario
October 17th, 2019, 23:44
I will search again, but the threads I found earlier were saying things like "open up this XML file and do this programming."

mattekure
October 18th, 2019, 00:14
Here is the calendar tutorial I prepared https://www.fantasygrounds.com/forums/showthread.php?47885-Fantasy-Grounds-Custom-Calendar-Tutorial

Currently, making a calendar in FG requires at a minimum of editing in XML. And some calendars may require some programming in LUA. It depends entirely on what your calendar is like. Can you describe your calendar?

Zacchaeus
October 18th, 2019, 00:17
Hi jesternario welcome to FG.

I think it would be useful if you said what calendar you hope to make since it is very possible that it already exists. So for those that could help you they would need to know how, many months there are, the number of days each month has, the length of each week and number of days in the week and when and how long any special holidays are.

It is entirely possible that an existing calendar can simply be edited with the names of your months, dats etc.

This is the tutorial that LE is referring too. https://www.fantasygrounds.com/forums/showthread.php?47885-Fantasy-Grounds-Custom-Calendar-Tutorial

Jesternario
October 18th, 2019, 00:34
That makes sense. My calendar is a custom one I pretty much made up from scratch, so I doubt it's available anywhere.

My calendar has twelve months, consisting of four eight-day weeks.

The months are named Leon, Masta, Sela, Stelfas, Vallum, Baerun, Mann, Logsid, Zeun, Fallas, Belfas, and Zelas.

The days are Allut, Suren, Valun, Tiet, Bayo, Rosta, Vour, and Eyo.

Days are not referred to by a number, but by the week (so first Suren, or third Tiet, for example)

There are two days not on the calendar, one after Baerun and one after Zelas.

mattekure
October 18th, 2019, 00:39
Ok. thats a pretty basic calendar, should be relatively simple do to in XML. One question, you mention the two extra days after Baerun and Zelas. how are the days handled around the extra day. For example if the 32 of Baerun is the last day of the week, Eyo, then the special day happens. what day of the week is the first day of Mann? Is it Allut, the first day of the week, or is it Suren, the second day of the week? OR, do the special days not really follow the standard week pattern, and each month just restarts on the first day of the week?

Jesternario
October 18th, 2019, 00:45
The first day of every month is always the first day of the week. The first day the week is Allut. I know that is unrealistic.

The extra days, called Baertols, are considered "non-days" and technically do not count as a day of a month or day of the week. Calendar-wise, it goes "4th Eyo of Baerun, Baertol, First Allut of Mann," then "4th Eyo of Zelas, Baertol, First Allut of Leon"

I have a open office worksheet I use for my not-online games, if that helps.

mattekure
October 18th, 2019, 00:48
Ok, that actually makes it easier. the way you describe it, it can be done entirely in XML. no LUA required.

Jesternario
October 18th, 2019, 00:49
that's good. I still have no idea how to work an XML file. I hope you can help.

mattekure
October 18th, 2019, 00:56
Try the mod I've attached here.

Jesternario
October 18th, 2019, 00:57
Do I just add this to the mods folder?

mattekure
October 18th, 2019, 00:59
Yes, download it, move it to your fantasy grounds data folder\modules directory. Then start fantasy grounds, load your campaign, and load the module from the library.

Jesternario
October 18th, 2019, 01:00
This works well. Thank you. Glad to see the community is so friendly.

Zacchaeus
October 18th, 2019, 01:12
This works well. Thank you. Glad to see the community is so friendly.
That’s just mattekure. The rest of us aren’t :)