Rich2 / openstrat

Cross Platform Scala 2d graphics (but 3d compatible), basic geometry, maps, Earth maps, hex-tiling and strategy library(s).
https://richstrat.com
Apache License 2.0
22 stars 8 forks source link

RSON #133

Closed Rich2 closed 3 years ago

Rich2 commented 3 years ago

Created a general issue for this. Not going to look at this until most urgent Graphics and possibly tiling stuff completed.

Rich2 commented 3 years ago

loadFile from CanvasPlatform.scala will only attempt to load a file called "test" regardless of the filename passed

eg: val loadData = canv.loadFile("myDataFile.txt")

Fails silently with SBT output:

Bad(List(FilePosn(Java Exception,1,1)/home/thisUser/AppData/Local/OpenStratData/test (No such file or directory)))

renaming the file to "test" then successfully loads the data

tried resolving following the hierarchy which drew a blank and also tried searching for test which wasn't the nicest term to search for ;)

Rich2 commented 3 years ago

So this issue is being divided up and folded into #143, #144 and #141.