We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [xml]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
38 views

Need some help for reading JSON/XML structured files in Lua language for Corona SDK

I have been trying to read a JSON/XML or simple text file in Lua language for Corona SDK with little to no success. All the tutorials I followed, people were basically writing a file and then reading ...
0
votes
1answer
25 views

Unable to select MonoDevelop to open XML file from Unity project

I am developing games in Unity but I have encountered a problem. After updating Unity I can no longer find MonoDevelop for editing XML files like my Android Manifest:
1
vote
0answers
47 views

Built in windows font wont load correctly in MonoGame

I am currently attempting to load this font in the MonoGame pipeline: I set the .spriteFont file to this: <?xml version="1.0" encoding="utf-8"?> ...
1
vote
0answers
48 views

Creating Customization System in Unity

I'm making a game with customization system for both characters and weapons and I don't know exactly what's the best way of doing the customizations themselves. I'm thinking of creating separate ...
1
vote
1answer
23 views

XML, how to have two variables under the same node?

I have XML sheet that I use in my game. In my unity(C#) game, a game's monster can spawn at predetermined position or random position. ...
0
votes
1answer
304 views

Don't know what to do with XML file and Spritesheet (Swift 3)

I'm new to spritesheets and game development in general. I have two files: 1) a .png spritesheet with tons of sprites and 2) a companion XML file with coordinates, anchor points, image names, and ...
0
votes
1answer
3k views

C++ and TinyXML2 Error: **this** was nullptr

I'm trying to make a video game using Microsoft Visual Studio Community 2017 and Simple DirectMedia Layer 2 (SDL 2.0.5, and SDL image loading file version 2.0.3). A map editor called 'Tiled!' was ...
0
votes
1answer
723 views

In Unreal4, Can I use switch case in C++ with FString?

I'm making XML parsing code with FXmlNode. I want to iterate through GetChildrenNodes(), and use switch-case with FString which is return value of FXmlNode::GetTag(). Is there someway to do that? Or ...
0
votes
2answers
187 views

Relational Databases vs XML vs public static finals: Pros and Cons [closed]

I'm working on a game (single player, metroidvania type, Java) and I'm torn as to how data should be stored. For example, monster stats, dialogues, flavor text for weapons, gear stats... there is all ...
1
vote
1answer
365 views

Way to deserialized or load last save state scene with GameObject and other classes instead of storing normal fields via binary format?

I humbly ask for help in order to solve this problem. I successfully take a quick guide to learn more about save and load state of the game. Basically first, I know how to use ...
1
vote
2answers
238 views

How to securely store xml/json information about actors in a game?

I'm developing a 2D "small" offline rpg game, and to this point I have many actors (mobs, heroes, NPCs) and what I did, is created a class named "Actor" and each time I have a new actor I create a ...
0
votes
1answer
74 views

Data Driven Design and Game Screen Resolution

So I have just begun studying Data Driven Design and implementing it into a project. I just encountered an issue and I have not be able to locate any material that suggests an elegant if not practical ...
1
vote
2answers
187 views

Updating an XML Document to Match New Save Data?

The Problem I'm developing a game and using the XmlSerializer to store some user data. While it isn't an immediate problem, I'm trying to conceptualize what would happen if I needed to update Save ...
0
votes
1answer
174 views

Should I use SAX or DOM to parse Game dialogue/text events in XML?

I'm planning to put all my text dialogue/events in an XML file and then use either SAX or DOM parser in Java to retrieve the correct text. I'm intending for there to be A LOT of text in this game, so ...
1
vote
1answer
496 views

NPC interaction depending on conditions stored in XML

I am developing a RPG game for Android using LibGDX, at this moment the NPCs in the game have some moving AI (pathfinding), like random directions and stuff. Now I am working on the dialogue system, ...
1
vote
0answers
133 views

XNA Deserialization Error: XML element “Type” not found

I want to deserialize an xml file that contains a path for an image I have 3 projects: One with the Program.cs class and the main template stuff from xna, another with classes such as the default '...
1
vote
1answer
127 views

Best practice to store level data in a rhythm based game

Setup: I'm planing to do a rhythm based game, where a level is a music score similar to Frets on Fire, but with real music. I've two options to store that level data, namely a MIDI file and a ...
-1
votes
3answers
2k views

IEnumerable Elements 'Where' and 'Select' In Unity?

I have a C# program that has a function that reads an XML. I took that function and brought it over to my Unity game which will be using the same XML. However, my reading method doesn't seem to work. ...
3
votes
0answers
226 views

Tower Defence stat storing system

I'm trying to find a smart way to store and retrieve stats for a tower defence game, but am currently unsure as to which approach would be best. Description: The stats system should quite basic, ...
1
vote
1answer
559 views

Problem in Unity ad

I am trying to place ad in my game. i am using unity 5. trying to place admob in my game. in unity editor it displaying dummy message. tried to build the game in android phone after build completed ...
0
votes
2answers
351 views

Reading XML working in my computer but not in my Android phone

Following code works perfect in my computer but when I try to run it in my Android Phone, it does not work. ...
1
vote
1answer
105 views

How to make a levels map page?

I'm trying to make a levels map page that shows number-buttons in the page. I want to make this page in a XML layout file and I'm actually trying to make something like this: I know that I should ...
-1
votes
1answer
328 views

C# XNA - Can't Deserialize Element

So This is my XML file: ...
2
votes
0answers
2k views

Unity (C#): How can I create dialogue to be used in my game? (also critique my system?) [closed]

I've created my own system for handling dialogue. There's a class for each 'node' or part of dialogue. It contains the following variables: identifier (identifiers are unique for each NPC, but not ...
1
vote
0answers
165 views

From XML to class method

I'm trying to implement a dialogue system for a game in Unity(c#). I'm going to use xml cause I want the dialogues to be editable/added from outside. I have a practical problem. Let's say I got this ...
1
vote
1answer
240 views

Store game events data with XML

I am new in the game development and now I am at the stage when you need to fill the game content. I want to create the events that occur with the player (like in FTL). Now I make these events with ...
0
votes
1answer
101 views

XML format for dialogs with choices [closed]

I'm trying to figure out a good way to implement dialogs (that is, talks, not UI's). My thoughts so far: I see a dialog as a tree of sentences (or better, a forest), so I think that XML is a good ...
0
votes
1answer
316 views

How to Render an xml tile grid in java [closed]

So i decided to write my games data files in xml since a lot of people recommend it security wise for an online game, but how exactly does one render an xml tile grid in java? format will be as ...
3
votes
1answer
199 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 ...
2
votes
2answers
188 views

Should I 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
2k 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
975 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
414 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
43 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 ...
3
votes
1answer
3k 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
2answers
5k 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 ...
0
votes
1answer
972 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
135 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
652 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 a ...
1
vote
1answer
231 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
308 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
626 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: ...
0
votes
1answer
1k 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: ...
-2
votes
1answer
153 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
3k 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
6k 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 ...
5
votes
2answers
6k 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
162 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
751 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 ...
-1
votes
1answer
2k 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 ...