Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ankisme opened this issue Apr 22, 2023 · 4 comments

Comments

@ankisme
Copy link

ankisme commented Apr 22, 2023

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
Copy link
Author

ankisme commented Apr 22, 2023

I have read the issue #10.

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

Is there any trouble on parsing infinite map?

@lafriks
Copy link
Owner

lafriks commented Apr 24, 2023

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

@ankisme
Copy link
Author

ankisme commented Apr 24, 2023

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
Copy link
Author

ankisme commented Jun 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants