-
November 23rd, 2020, 13:15 #1
- Join Date
- May 2020
- Posts
- 9
DB.export() function displaying text in chat
Hi. After the last update to FG Classic, the DB.export() function is now displaying "Exported record(s)" in the chat window now where before it would only display in the console. One of the extensions I created relies on this function heavily and is now flooding the chat with the message. In Unity, it still works great by only showing that message in the console window. Is there any way to get this behaviour back to how it was or a known way to prevent it from displaying in the chat on my end?
-
November 23rd, 2020, 13:25 #2
You can override the performExport function in CoreRPG utility\scripts\export.lua - the end of that function outputs a success (or failure) message to chat. The issue would be that you'd need to keep this override function updated with future CoreRPG updates. Maybe the devs will add an option to not export to chat. But in the meantime you can look at overriding the base code in your extension.
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!
-
November 23rd, 2020, 13:26 #3
- Join Date
- May 2020
- Posts
- 9
Thanks so much!!
-
November 23rd, 2020, 14:27 #4
- Join Date
- May 2020
- Posts
- 9
Ok, so I found the place the exact string links to for this message in manager_campaigndata.lua but it does appear that this was accidentally implemented on the wrong export function so I do think this may need to be addressed in an update by the devs.
-
November 23rd, 2020, 17:35 #5
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 20,557
I looked at all the changes to that file that were implemented since April (as part of v3.3.12 changes). From all I can tell, the export message was already part of the core code back in April.
Also, the export message only posts a local notification; it is not shared to players.
Regards,
JPG
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks