You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Might be same issue as reported 4 months ago on this error message. Everything is where it should be in the file structure and the code is printing to console, but showing this message instead of displaying the tiles.
The text was updated successfully, but these errors were encountered:
ifstring.find( self.source, "../") thenprint("Lime-Lychee: Absoulute paths are not supported for TileSets. You may want to edit your map in a text editor to fix this." )
returnend
The lua string.find function treats the search string as a regex, therefore the "../" will match if you have an forward slash in your filepath, preceded by any other 2 characters. ie. if you had your filepath as "Maps/map1.tmx" then the search string matches the "ps/". Lua provides the option to turn off regex matching by the optional 4th param.
The fix is to change the line to:
ifstring.find( self.source, "../", 1, true ) thenprint("Lime-Lychee: Absoulute paths are not supported for TileSets. You may want to edit your map in a text editor to fix this." )
returnend
Lua will then conduct a plain text search, and won't find a false positive.
Might be same issue as reported 4 months ago on this error message. Everything is where it should be in the file structure and the code is printing to console, but showing this message instead of displaying the tiles.
The text was updated successfully, but these errors were encountered: