Lone Wolf Development Forums

Lone Wolf Development Forums (http://forums.wolflair.com/index.php)
-   HL - Pathfinder Roleplaying Game (http://forums.wolflair.com/forumdisplay.php?f=62)
-   -   Question about importing custom data to iOS (http://forums.wolflair.com/showthread.php?t=64207)

Dakonofrath April 17th, 2020 11:40 AM

Question about importing custom data to iOS
 
Hello,

So I recently made a bunch of custom data files using the editor and then I exported it making a .hl file.
I have uploaded the .hl file to an online domain so I can download it. The HL file can be found here:

http://www.slingsandarrowscreative.com/FNO/falloutNO.hl

I also went to the 5e community pack forum and copied their text for the .xml file that they use for updates on their community pack and made changes to it to suite my URL and file.

The 5e community url I copied is here: http://www.shadowsoftware.net/herolab/5e/updates.xml

The .xml file I created from it is here:
http://www.slingsandarrowscreative.c.../FalloutNO.xml

I'm not good at any of the web work or linking sites or coding or anything that is needed to properly do this, so I know I've done it wrong. After posting the URL I opened Hero Lab on my iPad and added the .xml link to my Update Sources and got an error. The error just showed the code of the xml and didn't tell me what line the error occurred in.

Can anyone else me sort this out? I'm sure I've put a semi colon in the wrong spot or something.

ShadowChemosh April 17th, 2020 12:15 PM

The very top of your xml file has:
Code:

<document signature="dakonofrath" version="1">
It must contain the following:
Code:

<document signature="Lone Wolf Updates" version="1">
That tells HL the type of document its reading which is a "Lone Wolf Update" file. :)

Dakonofrath April 17th, 2020 12:24 PM

cool! I took your name out because I didn't want anything in it that didn't belong to me and I figured that was some sort of special ID that this code belonged to you guys.
I'll fix it!
Thanks.

Dakonofrath April 17th, 2020 12:31 PM

well I fixed that and I still get the error.
It says, "Error while retrieving http://www.slingsandarrowscreative.c...FalloutNO.xml: <document signature="Lone Wolf Updates" version="1">
<!--
then it cuts off there

Dakonofrath April 17th, 2020 12:41 PM

ok update status.
I made a change where I changed the file size to 15, to reflect the actual file size of the .hl file. I also added a date= section with today's date set for 1pm.

I no longer get the error, but the data doesn't actually upload into the iOS app.

Dakonofrath April 17th, 2020 12:46 PM

I just noticed that the 5e community pack has a different URL and HL file for the iPad version and the Windows version.

Do you have to make the HL file differently? Is there any reason I can't use the same .HL file for both ipad and windows?

ShadowChemosh April 17th, 2020 12:53 PM

1 Attachment(s)
I found you where missing a few attributes which I have added back in (date, company website etc). See the zip file attached to this post as it has an updated .xml file in it. I have tested it and it works and you just need to upload it to your site.

I also set this download to platform='any' instead of only desktop to allow you to use the same file for desktop computers and the iPad.

Dakonofrath April 17th, 2020 12:53 PM

good news. Once I added the ipad section back into the xml code I was able to load it up to the ipad and everything is working.
Thanks so much for your patience with me.

ShadowChemosh April 17th, 2020 12:55 PM

Quote:

Originally Posted by Dakonofrath (Post 287948)
I just noticed that the 5e community pack has a different URL and HL file for the iPad version and the Windows version.

Do you have to make the HL file differently? Is there any reason I can't use the same .HL file for both ipad and windows?

For the Packs they contain stock files for encounters and the iPad can't process those. Instead of eating up the extra space stock files contain I remove them from the iPad version. This is why the packs have two different .hl files.

As you don't have that and its such a tiny .hl file setting the platform to "any" allows all devices to download the same file.

Dakonofrath April 17th, 2020 12:56 PM

oooo your code is cleaner. I'll change to that.


All times are GMT -8. The time now is 07:30 AM.

Powered by vBulletin® - Copyright ©2000 - 2021, vBulletin Solutions, Inc.
wolflair.com copyright 1998-2016 Lone Wolf Development, Inc. View our Privacy Policy here.