PDA

View Full Version : Cannot get Reference Module to load (Unity)



Casimir
April 6th, 2021, 19:44
I've been fighting with this for the last couple days, and I cannot see where I've gone wrong here.

I have this module I've been working on just to test out how to set up an Equipment table for Adventuring Gear, Weapons, etc., and I have the definition.xml file set to <ruleset>Any</ruleset>. It will not show up in any ruleset at all. I've tried to change it to 5E just to test, and it won't show up in 5E either. I have no idea what I've done - this is the second time I've completely rewritten this .MOD file to try to work out the problem. Could someone take a look and educate me on what I'm doing wrong?

This isn't the first reference module or .MOD file I've created... I've cut and pasted sections from my other ones and this one just won't load... in fact, every one I've tried to create has done this recently.

Zacchaeus
April 6th, 2021, 20:30
Comparing your client.xml to the SRDData client.xml there are considerable differences. I'd suggest that you have a look at the 5e SRDData module and you'll see the structure that's required. Your equipment opes fine from the items tab but there's too much missing for it too open from the library.

superteddy57
April 6th, 2021, 20:44
Here is a working version. I didn't break down the exact cause, but worked through grabbing the data from a working module and plugged in your information. There are still issues with getting the library links set up, but it does show in the module activation screen now.

Zacchaeus
April 6th, 2021, 21:19
Oh, I should have said I got it to show just fine in the module activation screen. One thing though I unzipped it first just to have a look at the structure (in case it had been zipped up from the folder instead of the contents) and then I zipped it back up. So given that scenario if you don't see it in module activation screen at all then I'd suggest that it was zipped up in an incorrect format.

Casimir
April 8th, 2021, 17:19
Thanks superteddy57 - I'll give it a look over when I get home tonight. Really appreciate it.


Oh, I should have said I got it to show just fine in the module activation screen. One thing though I unzipped it first just to have a look at the structure (in case it had been zipped up from the folder instead of the contents) and then I zipped it back up. So given that scenario if you don't see it in module activation screen at all then I'd suggest that it was zipped up in an incorrect format.

This begs the question - how should one zip it up? The method I've always used is to create a folder with the client.xml, definition.xml, and thumbnail.png file in the folder root, with an /images subfolder for images... and then use the standard Windows 10 method to highlight them all and then "Sent To" a compressed file (ZIP), after which I rename it with a .MOD file extension. Is that not the correct method?

Zacchaeus
April 8th, 2021, 18:50
Thanks superteddy57 - I'll give it a look over when I get home tonight. Really appreciate it.



This begs the question - how should one zip it up? The method I've always used is to create a folder with the client.xml, definition.xml, and thumbnail.png file in the folder root, with an /images subfolder for images... and then use the standard Windows 10 method to highlight them all and then "Sent To" a compressed file (ZIP), after which I rename it with a .MOD file extension. Is that not the correct method?

Yes, that is the correct method. I was just speculating that if you were using something like 7zip or winRAR that the incorrect method was being used. But that's clearly not the case.

Casimir
April 8th, 2021, 19:00
Hmm. Well I do have WinRAR installed - I'll have to double check. Maybe it's defaulting to that and I've just never noticed. The odd thing though is that I never had an issue before (with WinRAR installed), but it's likely one of those things that one doesn't realize they're doing until suddenly something breaks, lol.

Casimir
April 10th, 2021, 18:29
Okay, I was able to get the Module to show up - apparently it was indeed WinRAR as the culprit and the way I was zipping up the files. I've also found a couple errors I had in the code and fixed them. So now I'm seeing the Reference Manual information, as well as the Equipment list.

The issue I'm having now seems to be a ruleset issue - perhaps due to classes? I'm trying to get this to work in MoreCore.

When I open it up in 5E the Equipment List opens up fine and I can click on the subcategories and see the equipment in the lists... but when I attempt to open it up in MoreCore, the Equipment List itself will show up, but none of the subcategories open a window when clicked (i.e., Adventuring Gear, Armor, Weapons).

In fact, as an anecdote, the Equipment Lists subcategories won't open in any other ruleset than 5E - but my goal is to get this working in MoreCore primarily.

Zacchaeus
April 10th, 2021, 18:44
You'll need to ask in the MooreCore extension thread whether categories are supported for equipment.

Varsuuk
April 14th, 2021, 04:42
Okay, I was able to get the Module to show up - apparently it was indeed WinRAR as the culprit and the way I was zipping up the files. I've also found a couple errors I had in the code and fixed them. So now I'm seeing the Reference Manual information, as well as the Equipment list.

The issue I'm having now seems to be a ruleset issue - perhaps due to classes? I'm trying to get this to work in MoreCore.

When I open it up in 5E the Equipment List opens up fine and I can click on the subcategories and see the equipment in the lists... but when I attempt to open it up in MoreCore, the Equipment List itself will show up, but none of the subcategories open a window when clicked (i.e., Adventuring Gear, Armor, Weapons).

In fact, as an anecdote, the Equipment Lists subcategories won't open in any other ruleset than 5E - but my goal is to get this working in MoreCore primarily.

I'm trying to get my ext/mod to load now on an updated FG (been months for me using the outdated one for dev) so I can't LOOK at it now until solve that but checking to see if you means just seeing the subcategories like in this pic or if you mean like adding buttons on side or top for them?

45721

Casimir
April 15th, 2021, 02:02
No, not like that - what I was referring to was the DnD (5E, 4E, 5E SRD, etc.) method of this through the Library window:

Varsuuk
April 15th, 2021, 02:14
Ooo I get it. That worked for me in Classic I haven’t checked mine on Unity because last night my transfer to unity on my win box wouldn’t load items and a bunch of others stuff. I thought something was incompatible since I originally did it on older morecore but when I updated my mac’s unity and morecore it showed up fine. So now I’m suspecting an issue like maybe some embedded Mac encodings messing it up since literally same file works.

To your issue, I’ll go look at my Mac unity version now and get back to you. On phone in another room.

———
I could swear I saw it like that on my older Classic. But now that look it is not. I’m in the middle of another investigation. If no one gives you the answer I’ll definitely look at what needs to be done since I want to display it that way too. Maybe I just imagined it being that way since I work on so many of these.

damned
April 15th, 2021, 05:42
I have tested this and shared with Casimir. I need to work out whether to include this as part of MoreCore or not if it negatively impacts other non D&D style games.