-
July 20th, 2021, 20:11 #91
- Join Date
- Mar 2009
- Posts
- 16
Follow-up from that thread for this one: Resetting the calendar was helpful and seems to have resolved the glitch.
-
August 17th, 2021, 21:04 #92
- Join Date
- Apr 2020
- Posts
- 105
Mattekure,
Been a while since I've messed with my calendar, but after creating a new campaign to baseline issues I noticed something small bothering the heck out of me and can't figure out which *lua file to edit the line in the following highlighted portion of this pic:
Capture.PNG
It is not part of the manager.calendar.lua and I have no clue where it might be! LOL!
I'd also love to know how to edit the frames so that the names populate without truncation as in this high lighted example from the calendar:
Capture2.PNG
Also, any ideas for displaying holidays in the 'Output Date to Chat' function?
So if anyone has any ideas please let me know where to find these assets at and thanks in advance!
ChipDancer
-
August 17th, 2021, 21:45 #93
The line "The date is" is not defined in one of the lua files. It is defined in the CoreRPG\strings\strings_common.xml. This value is concatenated to whatever the getCurrentDateString() function returns and output to chat.
Code:<string name="message_calendartime">The time is</string> <string name="message_calendardate">The date is</string>
Code:<basicstring name="currentepoch" source="current.epoch"> <anchored to="currentyear" position="righthigh" offset="10,0" width="30" height="20" /> <font>calendarbold</font> <center /> </basicstring> <label_fieldtop> <anchored to="currentepoch" /> <static textres="calendar_label_epoch" /> </label_fieldtop>
you can see examples of this in the manager_calander.lua onInit() function. Then when the outputDate() function is called, it calls getDateString with the specific date and passes all the info like year, month, etc into it. If there is a custom display function defined then it will pass that data on to it and return whatever it returns. Within your custom function, you can use isHoliday(nMonth, nDay) and getHolidayName(nMonth, nDay) to get any holiday that might be on that day to return it.Last edited by mattekure; August 18th, 2021 at 15:01.
For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
August 18th, 2021, 16:05 #94
- Join Date
- Apr 2020
- Posts
- 105
Mattekure,
I did not expect anyone to actually know what I was talking about in so much detail; ARIGATO!
(^_^)
With your help I was successful in making the alterations to my game's calendar!
Capture3.PNG
Capture4.PNG
My next goal, besides figuring out how to add holidays to the chat message, is to figure out how to insert a carriage return to split the name of my months into two lines as the current length of the whole name is simply overrunning the space of the month frame as in this example:
Capture5.PNG
Any help from the community would be extremely grateful and I hope by the time I'm done all this information will be able to be posted in a single post so that others who are desiring a custom calendar will have something to follow!
Thanks in advance,
(^_^)
ChipDancer
-
August 18th, 2021, 16:14 #95For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
August 18th, 2021, 16:52 #96
- Join Date
- Apr 2020
- Posts
- 105
私の日本は笑を吸う!
(^_^)
-
September 29th, 2021, 20:30 #97
- Join Date
- May 2020
- Posts
- 11
Is there a way to export user and GM entries from a calendar in FGU? If so, is there a way to import those entries on the same date to an updated version of the original calendar.
Hurray, I solved it. The original entries were preserved when I switched the calendars in a test campaign. And, then successful when I <right click on calendar> and RESET the calendars by bringing in the NEW version of the original calendar. The new version had the same months and days in the month. I had just renamed two of the days of the week and edited the names of the holidays.Last edited by cwright45; October 1st, 2021 at 16:15.
-
October 25th, 2021, 01:30 #98
- Join Date
- Jan 2017
- Posts
- 23
Hello! I made a topic about this issue on the forum but I was recommended to post it here as well. When I'm outputting the date in my calendar, Fantasy Grounds is adding the wrong suffix to certain days of the month. Specifically, it is changing the 11th, 12th, and 13th to the 11st, 12nd, and 13rd respectively. What is causing this and is there any solution to fix it? I have attached a screenshot illustrating the error.
-
October 25th, 2021, 01:43 #99
I'm not seeing anything in that screenshot like what you describe. Are you seeing it in the chat output? The chat output for a date is typically formatted in the CalendarManager.getDateString() function. It gets the last digit of the day number, and then references one of the 10 strings "message_calendarsuffix" 0-9. This returns the suffix "th", "st", "nd", or "rd".
So if you are getting something other than that behavior, you must have changed either the display function or strings.
Can you give any more detail on how you have your calendar set up. Do you have any custom calendar extension in use?For support with any of my extensions, visit my #mattekure-stuff channel on Rob2e's discord https://discord.gg/rob2e
-
October 25th, 2021, 03:32 #100
- Join Date
- Jan 2017
- Posts
- 23
So if you look at the screenshot, specifically in the "Date" category, it lists the date as "Arnesmer, 13rd Mared" instead of "Arnesmer, 13th Mared," with 13rd being the weird issue in this example.
I'm also using a custom calendar extension, which I have included in the attached zip file.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks