RPTools / maptool

Virtual Tabletop for playing roleplaying games with remote players or face to face.
http://rptools.net
GNU Affero General Public License v3.0
799 stars 261 forks source link

MapTool 1.5.0 Hero Lab support truncates token & GM names #337

Open Azhrei opened 5 years ago

Azhrei commented 5 years ago

The character name was Frieda Daa Syvahnya L8 W1/M3/R4 and it was displayed as R4.

I'm guessing the code is trying to trim the filename to just the base name, but doesn't take into account that the image is part of a portfolio so the "/" is not a pathname delimiter.

JamzTheMan commented 5 years ago

Don't use /'s man lol

The name should have came from the index.xml. Was that the name of your portfolio as well? Feel free to attach the por file here if you want?

Azhrei commented 5 years ago

I'll look into it myself, no problem. The portfolio name was something short, probably Frieda. The code that extracts the base name from the file was also used to take the base name of the hero name inside the XML file (?!) as that's where the string was stored. No worries, I got this. :)

JamzTheMan commented 5 years ago

Hmm ya, I guess what may be valid for a tokens name may not be appropriate for the rptok name but same value is probably used.

Let me know if you have any questions.

thelsing commented 1 year ago

@Azhrei did you figure something out or can this be closed?