XML (Extensible Markup Language) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable.
0
votes
2answers
126 views
Store voxel type data in XML or Java classes?
So, I want it to be very easy to create all the entities of my game and for other people to come in and do the same. I was thinking I could just let the users/myself create an XML sheet the stores all ...
2
votes
2answers
208 views
Unlimited inventory system?
I am working on a small game, I need to add an unlimited inventory to the game but I am not sure how to do it.
I have an inventory system with a specific amount of slots, here it is:
<?xml ...
0
votes
2answers
113 views
Load different levels in XML
my question is more about a theoretical gener than a pratical way to make things happen.
I'm about start developing a game for android, text based so i won't need sprites or animation, nor a game ...
0
votes
1answer
65 views
Get sprites from XML and spritesheet in Java
I have a SpriteSheet that have a lot of images in one in .png format, and the XML file with the all names of every sprite (x,y,width,height) like this:
<TextureAtlas imagePath="sheet.png">
...
-1
votes
1answer
97 views
Data driven tool for gamedesigner [closed]
I'm looking for a software my gamedesigner can use setting monster characteristics.
Like one row of all monster types (and ability to add new ones)
One column of all 'templates' (normal, small, big, ...
2
votes
1answer
234 views
AndEngine - Moving Rectangle using Accelerometer
I'm learning how to create games with this great engine and I'm trying to put my knowledge in order to create a simple game. My first goal is to make a Rectangle moving using accelerometer and create ...
4
votes
3answers
907 views
Loading levels in XNA from XML
I'm trying to load levels in XNA from XML files.
I have currently got a system to do this working, but it looks like it might get horribly complex as I add more objects later on.
My world currently ...
2
votes
2answers
792 views
How do I store level-data in Android?
I'm building a game where enemies come in waves. I want to create a file where I can define data about the waves (# of enemies, spawn times, speeds, etc.). I come from a background in iOS and would ...
1
vote
1answer
93 views
XML serialization error on XBOX 360
When try to save game on an xbox with xml serialization i get a code 4 error. I made sure t oadd all the xml referances and there is no errors until i run the game. Any suggestions?
6
votes
2answers
263 views
What is an elegant way to localize level data?
I'm writing a simple android game. I planned to store all levels in xml files that contain info about level, including a level_name field. The Level class would load an appropriate level by parsing ...
-1
votes
1answer
443 views
Writing to XML issue Unity3D C#
I'm trying to create a tool using Unity to generate an XML file for use in another project. Now, please, before someone suggests I do it in something, the reason I am using Unity is that it allows me ...
1
vote
3answers
262 views
Opening an XML in Unity3D when the game is built
At the moment, my game can open up an XML file inside the editor when I run it. In my XMLReader.cs I'm loading in my file like so:
_xmlDocument.Load(Application.dataPath + ...
4
votes
3answers
661 views
How do I use Content.Load() with raw XML files?
I'm using the Content.Load() mechanism to load core game definitions from XML files. It works fine, though some definitions should be editable/moddable by the players. Since the content pipeline ...
-4
votes
2answers
409 views
How can you store item data from a game? [duplicate]
Possible Duplicate:
Would it be better to use XML/JSON/Text or a database to store game content?
How to choose how to store data?
When I look at games such as warcraft 3, or Diablo, or ...
1
vote
1answer
73 views
Data model for unlockable card collection
My game has a collection of cards (about 64) that are unlocked (one by one) provided that 4 items are collected/gained in the game.
Right now the deck of cards is modeled with a plist file, like ...
2
votes
2answers
239 views
Convenience of mySQL over xml
Currently I use XML to store specific information to correctly load a few things such as a list of specfied characters, scenes and music, Once more I use JAXB in combination with standard ...
1
vote
0answers
110 views
Saving/loading code structure
I have a tree of game entities composed of components. I want to save/load everything to xml file, where my saving/loading code must be located:
Scene class containing root node and functions ...
3
votes
2answers
238 views
Does using the XNA Content Pipline eliminate the overhead caused by file IO when working with a large number of files?
I'm working on a game in XNA with my goal being that it is fairly data driven so that I can easily tweak the system without having to update code. The research I've done shows that using XML files ...
4
votes
4answers
1k views
Should NPC dialog be stored in XML or in a script?
I'm developing an action RPG with some friends. I would like to know the differences and pros/cons of making NPC's dialogue using a file in XMLformat instead of using a script.
I see that script ...
4
votes
2answers
401 views
How is xml being used for a game engine
In this question the first answer explains a way of defining components of a gaming engine in xml like this:
<?xml version="1.0" encoding="UTF-8"?>
<mobs>
<mob>
...
4
votes
3answers
643 views
Isometric tile map format
I've just knocked up a fairly basic isometric tile based game and I'm looking for the best way to store the level data.
Each tile coordinate is assigned one or more numbers that correspond to a tile ...
1
vote
1answer
119 views
How to split a string with negative numbers using ActionScript 3.0
I'm having trouble loading my level. I'm using Ogmo to create my level then I import it. I have no problem converting 0's and 1's into an Array, but I can't figure out how to do the same for -1's. It ...
3
votes
1answer
702 views
Loading class instance from XML with Texture2D
I'm having trouble with XML and XNA. I want to be able to load weapon settings through XML to make my weapons easier to make and to have less code in the actual project file. So I started out making a ...
7
votes
0answers
929 views
Why does XNA's ContentManager follow generic type parameters for serialization purposes?
I've finally gotten to the bottom of a problem and am wondering what my best recourse is. In short, the problem is that XNA's ReflectiveReader reflects into generic type parameters, even if no ...
-3
votes
1answer
638 views
xml file save/read error (making a highscore system for XNA game)
i get an error after i write player name to the file for second or third time (An unhandled exception of type 'System.InvalidOperationException' occurred in System.Xml.dll
Additional information: ...
3
votes
2answers
2k views
Using XNA's XML content pipeline to read arrays of objects with different subtypes
Using XNA's XML content importer, is it possible to read in an array of objects with different subtypes?
For instance, assume these are my class definitions:
public abstract class MyBaseClass
{
...
2
votes
3answers
2k views
Where do I place XNA content pipeline references?
I am relatively new to XNA, and have started to delve into the use of the content pipeline. I have already figured out that tricky issue of adding a game library containing classes for any type of ...
1
vote
2answers
204 views
When should I be implementing XML documents
I often struggle with the question of when to use XML docs. Does anyone have a good rule of thumb when it comes to deciding to use them or deciding not to use them.
At the moment I am working on a ...
2
votes
1answer
572 views
Building different game objects (EG Spells, Items,) for an rpg game
I believe the best way to manage item data would be to use xml?
For spells would the best option be to create a class (EG Fireball) and define all of the parameters inside of that class? Like ...
1
vote
0answers
202 views
Some help converting XML to LINQ (Also, Kerning Bitmap fonts)
I'm currently trying to devise a way to kern bitmap fonts in XNA 4.0. The two easiest ways I've found are to use either BMFontGen or BMFont.
I chose to work with BMFontGen, as it was made ...
1
vote
3answers
316 views
Help Reading this Data in XML as a List (ContentReader)
Edit:
So i'm going to rephrase the question a bit, seeing as now i think know how i'm going to read this data. Looking at this example as my guide:
...
4
votes
2answers
783 views
Setting variable values in XNA 4.0 from an XML file
I made a program that simulates an assembly line using the XNA 4.0. I made a 3D model, and divided it into 5 positions - start, 3 workstations, and end.
These positions represent the places on the ...
3
votes
2answers
271 views
Issue with loading XML
So recently i've been changing my XML files that i'm using in-game, to add in a bit more data to the files but i've also changed the way in which i load & save files, by now using the XDocument ...
2
votes
1answer
1k views
Xna, writing XML </Asset> end element
got another question here. Its not about actually writing/reading files in XML, i already know how to-do this. But rather something that has bugged me for awhile.
Ok, so when i write out my files, ...
4
votes
2answers
1k views
Recommended method for XML level loading in XNA
I want to use Blender as my level designer tool for an XNA game. Using an existing plugin, I can export my levels to DotScene format which is basically an xml file like this one:
<scene ...
1
vote
1answer
333 views
Deserialize inherited classes into the same list in XNA
I am writing a Gui for a game (for what else ...).
Therefor I wrote a class GuiElement which has some serializeable fields. From this class I deflect a Class "Button" which has one serializeable field ...
4
votes
1answer
211 views
Using heavyweight ORM implementation for light based games
I'm just about to engulf myself in an MVC-based/Component architecture in C#, using MySQL's connector/Net for the data storage, and probably some NHibernate/FluentNHibernate Object-relational-mapping ...
8
votes
1answer
452 views
Organising levels / rooms in a MUD-style text based world
I'm thinking of writing a small text-based adventure game, but I'm not particularly sure how I should design the world from a technical standpoint.
My first thought is to do it in XML, designed ...
11
votes
7answers
5k views
What is a good way to store tilemap data?
I'm developing a 2D platformer with some uni friends. We've based it upon the XNA Platformer Starter Kit which uses .txt files to store the tile map. While this is simple it does not give us enough ...
1
vote
1answer
1k views
XNA doesn't compile my XML to an XNB, because of namespaces?
I am sorry, because I know, that this question came up before, but that thread doesn't help me so I decided to aks my own question.
My problem is the following:
I have a XML-file with the following ...
30
votes
6answers
3k views
What is a good file format for saving game data?
I need to save some custom game data. Map, player, etc.
All of them will have "sub objects". For example, a map and map will have an "array" of tiles. ie, hierarchical data. Hopefully nothing ...
12
votes
5answers
671 views
Why place entity config outside of scripts?
I've seen a lot of games that define the entity components in script files, but when they configure each entity and specify what components it has, they use some other file format (like XML). Why do ...
1
vote
1answer
886 views
Going from using XMLSerializer to using the XNA Content Pipeline
A well known limitation of using the XNA Content Pipeline is that it is not included in the XNA redistributable. So, if you want to create an editor for your game, the designer must download the whole ...
5
votes
1answer
419 views
How can I pass an external instance to the constructor of an object that's being created using the default XNA XML content loader?
I'm trying to understand how to use the XNA XML content importer to instantiate non-trivial objects that are more than a collection of basic properties (e.g., a class that inherits from ...
5
votes
4answers
715 views
Drawbacks of using reflection for a component based system at loading-time
I'm coding a little casual game in Java using Slick2D.
This game use a lot of different "objects", managed in a composite way. So, firearms, furniture in the map, NPC and player character will be ...
3
votes
2answers
197 views
Simple Update loop to show questions one at a time
I have two lists which work with an XML file which holds questions and answers. At the moment the project displays all the questions at the same time so they "flicker" on the screen and iterate ...
2
votes
1answer
721 views
Using XML in XNA to display maths questions which are associated with objects
I've got a snake game with three objects: apple, pear & orange. I would like these to be associated with questions which I'm trying to create in XML. This is what I've done so far...
<?xml ...
8
votes
2answers
7k views
How to use XML files as content files in XNA?
I have an XML file representing different car manufactures that will be available in my game. The file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<XnaContent>
<Asset ...
6
votes
2answers
657 views
Can XNA Content Pipeline split one content file into several .xnb?
Let's say I have an xml file which looks like this
<Weapons>
<Weapon>
<Name>Pistol</Name>
...
</Weapon>
<Weapon>
<Name>MachineGun</Name>
...
...
12
votes
3answers
1k views
How to store a shmup level?
I am developing a 2D shmup (i.e. Aero Fighters) and I was wondering what are the various ways to store a level. Assuming that enemies are defined in their own xml file, how would you define when an ...