Tagged Questions

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.

learn more… | top users | synonyms

0
votes
0answers
9 views

Monogame. Xml files not included on deployment

We are making a XNA game and porting it with MonoGame. The game works fine on deployment, it finds without a hitch the xml files we need for the content. On publishing however, the files are never ...
0
votes
0answers
34 views

How to run C++ functions from other files [duplicate]

I want to set up my game engine I'm making to essentially load C++ code from another file, and to load initialization variables from those files also. I was thinking a system that has files that store ...
3
votes
1answer
56 views

How do I make an XML-specified animation show completely?

I want to add animation to my game board when updating tile positions. I can start an animation at the right point, but there's a catch: When the translate animation starts, it seems like the ...
1
vote
1answer
81 views

Better to use one line per .wav or one scene per .wav for character speech?

I'm building a game in XNA and I wanted to know how I would organize the character speech portions of the game. These would include both cutscenes and anything else where characters interact. I ...
0
votes
1answer
213 views

Saving and retrieving high-score data in XNA 4.0 [closed]

I made a game in XNA 4.0 and now I need to save the points in a database or in a file (or in something else). My goal is to store and retrieve the highest score if I choose that option in the main ...
1
vote
1answer
378 views

How to store XMLs in Unity for web player deployment?

I've created with Unity a short demo that works as a standalone .exe on Windows, and I was interested in deploying it as a web player game too. When I run the game on the web player, though, I get ...
0
votes
1answer
127 views

read in an xml server from Unity3D 4.xx [closed]

I need examples of how to read an xml from a server, using Unity3D.. I think it's something like this.. but I can not retrieve the information from the nodes.. An example would be of great help.. ...
0
votes
1answer
37 views

implementing different users in XNA - XML

So I am making a simple 2D game in XNA, and I want to implement different users (players), so each person playing can have their own high score, can only play levels they've already played, can only ...
4
votes
1answer
518 views

How to store and parse story actions in XML

I been working on a game in Unity that reads its story (Actions, scene descriptions, NPC's, ect...) from an XML and have been wondering there was a better way to store actions based on player data ...
0
votes
1answer
1k views

How can I save an XML file with Unity on the Android platform?

I am writing a game that has a save function which looks like this public void Save() { System.Xml.Serialization.XmlSerializer ser = new ...
0
votes
1answer
172 views

Why is XmlSerializer adding junk to the end of my file?

I'm making a game and I am serializing the save game data. The data is simply a few lists of bools, ints and floats. But about 50% of the time I get an error when the data tries to save or load that ...
1
vote
2answers
81 views

Java: creating an instance of a user defined class by reading xml file

I am trying to write an engine for a game, in particular a component-based one (in my approach components contain both data and logic). So basically I have entities, and each entity has a list of ...
0
votes
1answer
274 views

OnClick events - using Scaleform UI with Cryengine 3.5.4

I've created a UI in Flash, set up an xml file for it and designed a flowgraph to ensure it displays when I launch. However, clicking on the buttons doesn't appear to do anything, despite me writing ...
1
vote
1answer
118 views

ContentManager in XNA cant find any XML

Im making a game in XNA 4 and this is the first time I'm using the Content loader to initialize a simple class with a XML file, but no matter how many guide I follow, or how simple or complicated is ...
1
vote
2answers
190 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
362 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
1answer
260 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
118 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
2k 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
2k 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 ...
4
votes
2answers
2k 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
112 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
409 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
1k 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
1k 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
1k 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
1k 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
78 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
275 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
132 views

Saving/loading code structure [closed]

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 ...
4
votes
2answers
276 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 ...
5
votes
4answers
3k 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
532 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> ...
5
votes
3answers
963 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
180 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
889 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 ...
8
votes
1answer
1k 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
877 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
3k 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
217 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
684 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
234 views

Some help converting XML to LINQ (Also, Kerning Bitmap fonts) [closed]

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
357 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
930 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
352 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
2k 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
2k 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
440 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
262 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 ...