-
October 10th, 2020, 04:52 #61
- Join Date
- Aug 2018
- Posts
- 10
-
October 10th, 2020, 05:45 #62
- Join Date
- Aug 2018
- Posts
- 10
Solved. Exploited leaving an empty periodvarcalc string in the definition file. Not a perfect rendering, but it produces the right number of days and keeps the weeks aligned with the start of the month and doesn't require any additional code to work.
-
October 11th, 2020, 00:58 #63
- Join Date
- Aug 2020
- Posts
- 3
Is this still relevant for unity? I'm having trouble finding the path I need to dump my xml files into (I'm working off windows and there seem to be dirs for fgu all over).
-
October 11th, 2020, 01:12 #64
Yes, nothing related to creating custom calendars has changed between Classic and Unity. The easy way to get to the right path for Unity files is to use the folder icon on the launcher to open the FG data folder. Then Extensions go into the extensions folder, and modules go into the modules folder.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
October 11th, 2020, 01:16 #65
Also, remember that the xml files will become part of the calendar module, which needs to be zipped up and the file extension renamed to .mod. That will be copied to the modules directory. Calendar Extensions (not always needed, but sometimes) would be copied into the extensions folder so it can be loaded. Most fantasy calendars would only ever need the generic lunar day handler extension included in the first post.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
November 24th, 2020, 17:39 #66
I'm hoping you can help me with a calendar related question. I'm using the default Golarion calendar that comes with Fantasy Grounds for my PFRPG2 game. The current year on the Golarion calendar is 4720 but mirrors 2020 of the Gregorian calendar. However the 1st day of the year 4720 is an Oathday (Thursday) but should be Wealday (Wednesday). So the whole year is one day off for me. I know that the Golarion and Gregorian calendars are the same except for names of the week and holidays. in the following thread here Moon Wizard was able to provide me with an answer, but I'm afraid I don't understand it or how to proceed. After reviewing the info you provided I think I need to do something with your Generic Lunar Day Handler but am a bit lost. With 4720 (2020) being a leap year cause problems too? Any light you can shed on this issue would be greatly appreciated.
-
November 24th, 2020, 17:51 #67
The main issue as I see it is that while on the surface, the Golarion and the Gregorian calendar seem to align, there is one big difference. Leap years. The gregorian calendar has a very complicated system of leap years, every 4 years except when its divisible by 100 unless if its divisible by 400. This means that my generic lunar day handler wont work because the system does have leap years.
The Golarian calendar has leap years only every 8 years. So the calculations for the days and weeks really need a modified version of the gregorian calendar system that takes the 8 year cycle into account rather than the gregorian leap year system.
I'll take a look to see what changes need to be made. It doesnt sound particularly difficult.For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
November 24th, 2020, 18:01 #68
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,566
@mattekure,
If you come up with the lunarmonth and lunarday calc functions, and you don't mind me incorporating into CoreRPG; I can add them into the base code. I just in the middle of fixes and trying to put together a release; so didn't have time to work out all the details specific to Golarion.
Regards,
JPG
-
November 24th, 2020, 18:04 #69
no problem. I'll post the functions here once done. If you are touching the calendar code in CoreRPG, you might also consider adding the generic lunar day handler function which will do the days of the week rollover for any normal calendar that doesnt have leap years.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
November 24th, 2020, 18:07 #70
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks