-
May 10th, 2020, 17:14 #271
- Join Date
- Sep 2015
- Location
- Blighty, UK
- Posts
- 81
Managed to fix this for myself after a little more experimentation- something it didnt like in the format of the CSV data I created. Unfortunately I "fixed" two things at once so I don't know if either or both made the difference. I changed the sub_type entry from "one shot" to "one_shot" to make it more xml friendly, and the ID field I copied the syrinscape format of combining a letter + a unique number ie "m:1" etc for each of my sound file listings. Everything copied and pasted first time around then. Still a lot easier than creating 100's of sound links manually
-
May 11th, 2020, 01:43 #272---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
May 11th, 2020, 12:34 #273
- Join Date
- Sep 2015
- Location
- Blighty, UK
- Posts
- 81
I've been using libre office/open office for spreadsheet. I suspect it may have been the ID field which was originally set up as just a sequential number (although I thought I had formatted the cells to make sure it was still exported to CSV as a string) that created some sort of issue. Opened the CSV up in Notepad and copied/pasted into AO from there. As I reported in earlier post got this weird behaviour where I think the last 11 CSV lines would actually "stick" as links in the AO sound directory, everything else claimed to have imported via the console output but seemed to get overwritten by the final 11 entries whichever combination of lines I chose. Definitely something in the data format it didn't like. I'll try dud csv.jpgworking csv.jpg and attach a copy of the duff info and the successful csv for you to look at if that might help. But as I said, working great now. My one remaining problem is finding out what the LUA pattern matching can and can't do in the chat box under SWADE/DLR. Got the pattern matching fine for anything at beginning of line but I don't seem to have grasped from any of the lua tutorials how to look for a match JUST at the end of the chat line- for example I have a sound set up to play whenever someone shoots a shotgun, and I also have a sound that plays for a critical failure when rolling a trait die roll, but I can't get the latter to play after or as well or instead of the shotgun sound when the line is "Shooting {+2 shotgun}: Double-Barrel (12g) Shotgun, [Critical Failure!]" unless I set up a pattern match for the entire sentence and then do the same for every weapon in the game perhaps!
Ha- what a dumbass! Just noticed while recreating the dud version, I managed to fail to format the ID number cells as strings when Libre Office "helpfully" assumed otherwise as I entered them, and then exported to CSV as numbers instead. I bet that was what happened first time around too. Was hard to spot in with everything else. Probably the switch to the "M:1" format just forced the spreadsheet's hand in having to export as a string. Still was quite odd behaviour to seemingly allow the import successfully but do the overwrite of the chosen few in my defence
-
May 11th, 2020, 12:54 #274
- Join Date
- Sep 2015
- Location
- Blighty, UK
- Posts
- 81
Found the problem with my critical failure example above- nothing wrong with the lua pattern matching I had set up. The Shotgun sound is triggered first and then the "critical failure" is ignored. If I switch off the shotgun trigger, the crit failure plays fine. I don't suppose there is a way the separate sound triggers could be set to play sequentially in this sort of case- I seem to recall this was how I had things set up under the old DOE extension and was quite amusing to hear the default attack sound immediately followed by a crit failure sound ( I find an anguished scream works particularly well
-
May 11th, 2020, 15:14 #275
I asked because Excel will strip out the "" that the Syrinscape people put in the CSV file. If those are missing the parser will have issues. Libre might do the same.
Use a standard text editor to open it to select the entire thing into a copy buffer and it should work.---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
May 11th, 2020, 18:21 #276
- Join Date
- Sep 2015
- Location
- Blighty, UK
- Posts
- 81
Thanks for that. If anyone else out there using Libre/Open office it might help to know there is an option when saving the file as CSV called "edit filter settings" that allows you then to tick a box to encapsulate all text fields in quotations. Thought I'd cracked it when I found that one, but then I went and set up the ID field as a number and didn't notice the missing quotations for that field. That's what must have triggered the weird behaviour. Import function working fine now, was just user error on my part!
-
May 13th, 2020, 06:14 #277
- Join Date
- Jan 2020
- Posts
- 45
-
May 13th, 2020, 06:30 #278---
Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
Documentation for AD&D 2E ruleset.
Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.
-
May 14th, 2020, 00:16 #279
- Join Date
- May 2020
- Posts
- 6
-
May 14th, 2020, 00:56 #280
welcome Kalaru
The chat message is what triggers the sound. No message, no sound.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks