Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5986117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:37:39+00:00 2026-05-22T22:37:39+00:00

Essentially, what I’m trying to do is to load/draw a map from a Tiled

  • 0

Essentially, what I’m trying to do is to load/draw a map from a Tiled map using Nick Gravelyn’s TiledLib. The map is saved in Tiled’s XML format. However, when I try loading the map with the line

TiledLib.Map map = Content.Load<TiledLib.Map>("Maps/Map1");

it throws an ArgumentException. The whole thing renders like this in Tiled itself:
enter image description here

The map’s XML source looks like this (not posted directly onto StackOverflow for obvious size reasons).

It worked at first (with a pretty simple map using only one tileset) but when I edited it to include a bit more stuff then it suddenly started doing this. Could it be related to my usage of tile objects?

EDIT: I have been able to work out that using tile objects was not the culprit; this map structure still creates the same error.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T22:37:39+00:00Added an answer on May 22, 2026 at 10:37 pm

    you get an exception because you didn’t name the objects in the map, this will cause ArgumentException in TiledLib. So, to solve this issue you need to go back to Tiled program, (re)edit this map, and select every object in the map and give it a name (not property but name) then export the map again and (re)import it into the game content. This should fix the problem.

    BTW: I recommend using regular layer for collide check not object layer.
    Like this: Make small png file with a transparent red rectangle tile in it in the same map tile dimensions, add new layer to the map, name it CollideLayer, and in this CollideLayer put that red rectangle tile where you want to be a collide, and then in the game code you can check to see if the CollideLayer cell is empty or not. I find this is simpler.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Essentially I want to know if in VB.NET 2005 if using a sqlcommand and
So What I'm essentially trying to do is have something happen 70% of the
Essentially I want to embed some XHTML in an XML document that must validate
So essentially my question is this, I am creating an NSMutableDictionary using uint64_t objects
Essentially, I have a methods that manipulates data taken from a table to create
Essentially, I currently have an iPhone app that can query and parse an XML
Essentially I would like to add a UIImage programmatically to my interface, using: [[self
Essentially, I'm trying to achieve the affect of text-align:justify but with floating block elements.
Essentially what I'm trying to do at this point is build a program to
Essentially what I'm trying to do is fairly simple....pass more than one parameter (4

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.