Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Tmx C# Loader for SFML  (Read 4281 times)

0 Members and 1 Guest are viewing this topic.

Epiplon

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Tmx C# Loader for SFML
« on: October 02, 2013, 04:38:46 am »
Hello!

I would like to share with the SFML community the project I've been working for the past week.
It's a library for C# project that makes use of both Tiled and SFML.

This project carries the following goals:
  • Load a .tmx file (what Tiled uses to save/load maps) in a fast and reliable way.
  • Organize data in an intuitive way.
  • Make it simple as possible for use in projects.

Important: the library right now only accepts .tmx formats with layers configured for CSV.

It can be used as a general-purpose library (in other words, with another frameworks), but I'm trying to make it even simpler for SFML users, so you can make your tiles and have each layer build as a SFML Sprite for you. Not much, it's really the only specialty right now. However, I hope to have more ideas as the project evolves and it's free to anyone to contribute.  ;)

Also, builds for Linux and Mac throught Mono is something I will look forward to after it turns in a solid release.

If you are interested, check the GitHub project on https://github.com/vncastanheira/TmxCSLoader_SFML.
There's a How-To Guide if you want to set up in your project and test it https://github.com/vncastanheira/TmxCSLoader_SFML/wiki/How-to-use-Tmx-C%23-Loader-for-SFML.

Windows beta release is on https://docs.google.com/file/d/0B96ycxJN-06jQXZ2clh6bDBrUkU/edit?usp=sharing.

I hope that can help a lot of people.
Thanks!
« Last Edit: October 05, 2013, 10:25:34 pm by Epiplon »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Tmx C# Loader for SFML
« Reply #1 on: October 02, 2013, 01:26:35 pm »
This looks like it might be useful, but could you elaborate more on the *.tmx format that you use. Maybe give some references on how that file is supposed to be laid out. And about the license, I noticed you used a GPL3 license and I was wondering if you would consider switching to a more free license like ZLIB/PNG such as SFML uses. I know a lot of people myself included do not like GPL due to various reasons.
« Last Edit: October 02, 2013, 01:28:41 pm by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Epiplon

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Tmx C# Loader for SFML
« Reply #2 on: October 02, 2013, 06:44:19 pm »
could you elaborate more on the *.tmx format that you use.

You mean, how the program uses it? I was assuming that everyone knew that it's a file exported by Tiled and is nothing more than a XML text.

And about the license, I'm gonna look at it. But why you and other people don't like GPL?
« Last Edit: October 02, 2013, 06:45:50 pm by Epiplon »

zsbzsb

  • Hero Member
  • *****
  • Posts: 1409
  • Active Maintainer of CSFML/SFML.NET
    • View Profile
    • My little corner...
    • Email
Re: Tmx C# Loader for SFML
« Reply #3 on: October 02, 2013, 07:23:16 pm »
You mean, how the program uses it? I was assuming that everyone knew that it's a file exported by Tiled and is nothing more than a XML text.

Don't assume everyone knows what and where the file format comes from. It just helps to mention it. Even myself, I have looked at the Tiled program but never actually used it - so I did not know that is what format your library can load.

Quote
And about the license, I'm gonna look at it. But why you and other people don't like GPL?

The biggest reason is because with GPL anybody's code whether it is dynamically or statically linking to an GPL library is considered a "derived work" of that GPL library. That then means your own code is therefore forced to use a GPL compatible license - meaning it is impossible to write code that uses a GPL library without releasing your own code under GPL. In simple terms, it would be impossible for me to write a non GPL compatible program that utilizes your library.

There is other reasons that I am sure a simple google search will turn up plenty of answers for you.

And if you still wish to stay with a GPL type license, you should at least consider LGPL.
« Last Edit: October 02, 2013, 07:29:51 pm by zsbzsb »
Motion / MotionNET - Complete video / audio playback for SFML / SFML.NET

NetEXT - An SFML.NET Extension Library based on Thor

Epiplon

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Tmx C# Loader for SFML
« Reply #4 on: October 05, 2013, 10:23:15 pm »
Thanks! I'm gonna explain better what format is it and where it comes from, both here and on the Wiki page.

About the license, I've never read GPL entirely. If zlib/png license gives the same freedom to share and modify, I can change to it.  :D
I just wanna help people use it and contribute.