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.
100
questions
0
votes
1
answer
199
views
How to read/edit data compressed in ZXML format for modding the game Chocolatier?
I'm trying to mod the game Chocolatier from 2007. It has two .xml files, but they don't look like conventional XML when I open them in VS Code or Notepad++. Here's a sample of what they look like:
...
0
votes
0
answers
17
views
xml Dialogue issue with reading node children
im trying to make a dialogue/monologue system using XML to direct the flow. all is working well and good but i have an issue with the dialogue setup , My issue is that although i can change the index ...
2
votes
1
answer
488
views
How is data regarding items in RPGs and other loot-based games stored and implemented?
I am currently practicing game design and development by implementing singular (or a small set) of mechanics in Unity.
For example, -- and this is relevant towards the end -- I've just finished a ...
0
votes
1
answer
249
views
`System.Xml.XmlDocument.Load(Path)` doesn't work on Android
I'm making a little game on Android with Unity. And I use XML file to store different languages using System.Xml. The language selection is done when I first start ...
0
votes
1
answer
45
views
How to create a re-usable layout of text fields that can be bound to in world space?
Current tools:
Unity 2020.3.2f1 (Win10)
UI Builder preview package
My end-goal is to do the following:
At varying intervals, change values for many data objects in the background, such as prices, ...
0
votes
0
answers
139
views
Creating iOS shortcut game with levels
How can I make levels in iOS shortcuts?
i'm making a game which will be about changing some settings to finish levels (logic game) i had idea to make autosave because levels will require that. my idea ...
0
votes
0
answers
43
views
XML Serializer deleting player files
I've been getting reports from my users that sometimes the game isn't saving. I've recently been provided with the game save files from one of these reports and found all the XML files were completely ...
2
votes
0
answers
512
views
How can I use an inherited Activity in C#?
I am using Unity. I want to set the status bar to be permanent in opaque black. I set Start in Full Screen Mode in the Player Settings to ...
0
votes
1
answer
202
views
Directory.CreateDirectory() created a folder with name that was supposed to be a file
i am experiencing some problem here , i have a path :
"/folder/folderagain/file.xml"
i tried to use Directory.CreateDirectory() to create all folder (in case one of them is missing) and then reuse ...
0
votes
1
answer
45
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
0
answers
71
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
0
answers
70
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
1
answer
47
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
1
answer
1k
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
1
answer
6k
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
1
answer
5k
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
2
answers
203
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
1
answer
581
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
2
answers
265
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
1
answer
84
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
2
answers
412
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
1
answer
214
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
1
answer
696
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
0
answers
171
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
1
answer
251
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
3
answers
3k
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
2
answers
320
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
1
answer
617
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
2
answers
460
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
1
answer
165
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
1
answer
438
views
C# XNA - Can't Deserialize Element
So This is my XML file:
...
2
votes
0
answers
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
0
answers
178
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
1
answer
294
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
1
answer
153
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
1
answer
418
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
1
answer
210
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
2
answers
196
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
1
answer
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
1
answer
986
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
1
answer
431
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
1
answer
49
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
1
answer
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
2
answers
6k
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
1
answer
1k
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
2
answers
164
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
1
answer
700
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
1
answer
304
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
2
answers
342
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
2
answers
707
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:
...