go-tiled icon indicating copy to clipboard operation
go-tiled copied to clipboard

Failed to open infinite map. Is it a bug or go-tiled will never support infinite map?

Open ankisme opened this issue 1 year ago • 4 comments

func TestLoadBigMapFromTiled(t *testing.T) {
	tiledDirectory :=`xxxxxxxxxxxxxxxx`
	bigMapUrl := tiledDirectory + `/BigMap.tmx`

	// Parse .tmx file.
	gameMap, err := tiled.LoadFile(bigMapUrl)
	if err != nil {
		panic(err)
	}

	fmt.Println(gameMap)
}

The error is "illegal base64 data at input byte 0".

And is go-tiled stop updating?

I am so confused, because I see the last update time of go-tiled is 2023/03, but the basic load .tmx file functionality is not support.

ankisme avatar Apr 22 '23 12:04 ankisme

I have read the issue https://github.com/lafriks/go-tiled/issues/10.

And the date of issue is 2019, so what's happening?

Is there any trouble on parsing infinite map?

ankisme avatar Apr 22 '23 12:04 ankisme

To be honest I have not had need and have not used infinite maps so it's hard to tell how hard it is but help on implementing it would be appreciated

lafriks avatar Apr 24 '23 12:04 lafriks

I have add some code to go-tiled in my project, and have support infinite maps, but the problem is that it only support "Orthogonal Orientation", and perhaps it may not support some other mode of tiled, I don't know.

These day I am so busy, so maybe I will pull request after some days, maybe 2 week later.

ankisme avatar Apr 24 '23 13:04 ankisme

I am so busy these days, and here is my code which support infinite map.

https://github.com/ankisme/go-tiled

The reason why I not send pull request, is that the code is not full test right now.

ankisme avatar Jun 27 '23 06:06 ankisme