The json tag has no usage guidance.
0
votes
0answers
16 views
Where to store a blockstate json for a minecraft mod
I am following the forge guide to learn how to create a minecraft mod and I'm a bit confused where should I store the blockstate json files. I am using eclipse, I have a block called BlockExample and ...
0
votes
1answer
27 views
Updating Json files in a Unity game - What am I doing wrong?
I am working in Unity, on my first project. I am working on a turn-based RPG, and I am having a hard time figuring out my back end.
I'm currently using JSON files to store my data, which are then ...
1
vote
1answer
29 views
jsonutility doesnt exist in the current context
I am working on converting a string into json format and sending the json formatted data to the server.Everything is working fine. I tested the project and exported the project.Current version of ...
0
votes
1answer
39 views
C# modal to represent Nesting JSON in Unity JSONUtility
I am wanting to build the C# data object to represent the following JSON. I am using unity's JsonUtility. I have used the JSONUtility before but only with a simpler JSON structure. However I am not ...
0
votes
1answer
36 views
Converting to JSON String with JsonUtility.ToJson
I am working on converting and displaying the JSON String with unity. I have done coding for it
using UnityEngine;
using System.Collections;
using LitJson;
using SimpleJSON;
using System.IO;
public ...
1
vote
1answer
73 views
Communicate Unity application via a series of Json
I am working on communicating unity application via a series of Json. Since I am new to JSON, I don't have any idea how that work with Wnity.
Here is my JSON structure
{
"id": “id",
"payload"...
-1
votes
1answer
145 views
UPDATED: Deserialise Nested JSON with JSON Utility Unity 5.4 [duplicate]
I am trying to deserialise a JSON with Unity 5.4's JSON utility (here).
This is what my JSON looks like: {"series":[{,"points":[{"ts":"1473850836254","value":"11.27"},{"ts":"1473851256637","value":"...
-1
votes
1answer
107 views
Deserialise Nested JSON with JSON Utility Unity 5.4
This is what my JSON looks like: {"series":[{,"points":[{"ts":"1473850836254","value":"11.27"},{"ts":"1473851256637","value":"6.44"}]}]}
I am trying to access the values in "points" by calling ...
0
votes
1answer
30 views
Json format to request to Java Server
I have this class in java, I'm using Jersey.
@Path("/bandas")
public class BandaResource {
static private Map<Integer, Banda> bandasMap=someSource();
@GET
@Produces({ "application/json" ...
1
vote
1answer
63 views
Deserializing component array using JSON
I have a collection of serialized components in JSON format:
{
"components": [{
"class": "com.package.component.PositionComponent",
"x": 100,
"y": 100
}, {
"...
1
vote
1answer
41 views
Unable to remove class information in serialized json file using libgdx
I am encountering a problem in serializing an array of objects to json file. Please let me know where I'm making the mistake.
Object to be serialized :
package components;
public class UserGameInfo ...
0
votes
1answer
87 views
How to store level data in a libgdx game if implementing ECS pattern
I am writing a beat'em up like game in Libgdx while following the ECS pattern brought up by ashley. For setting up the stage, I am using TileMap and Tiled. An object layer for collisions, and a tile ...
31
votes
5answers
6k views
Use an instance or a class for game resources (wood,iron,gold)
So I'm making a game where you can send ships to locations to sell or buy resources like wood, iron, gold, etc.
Now I was wondering how the resources should be created in de game. I came up with 2 ...
0
votes
1answer
226 views
Monogame - custom json content importer
I am trying to build a JSON tile map importer for the content pipeline of Monogame but I'm having difficulty doing so. I have been following this tutorial and got something... But now it appears my ...
0
votes
1answer
80 views
WebGL Redirecting URL
If player's browser don't support WebGL, I want to redirect Web Player version. I think it's possible in UnityLoader.js file but how?
function CompatibilityCheck(){hasWebGL?mobile?confirm("Please ...
0
votes
0answers
113 views
Monogame - tile map with XML instead of JSON
I'm working on the levels for my game so I've built these classes to read my maps:
Tiles.cs:
protected Texture2D texture;
private Rectangle rectangle;
public Rectangle Rectangle
{
get
{
...
0
votes
0answers
69 views
How can the new Yggdrasil Minecraft authentication be utilised in java?
A while ago I had a custom launcher for my modpack in minecraft and it used the old login.minecraft.net method of authentication but now I see they have changed this method. Here is a link to the new ...
3
votes
1answer
236 views
“Industry Standard” JSON formats for game assets [closed]
This question is inspired by my venture into the Phaser game engine but seems to apply to any engine that uses JSON for its asset format.
Phaser relies on PhysicsEditor to export and create the JSON ...
1
vote
1answer
236 views
How to load sprite from JSON?
i know how to load text, but idk how to load texture from json..
this my c#:
public void soalbegin(){
filepath = System.IO.Path.Combine(Application.streamingAssetsPath, "soal.json");
...
3
votes
1answer
243 views
Get array from JSON in Libgdx?
I wanted to load in map information using JSON, is there a way to get String, Int, float etc lists or arrays from JSON in Libgdx?
My structure looks like this
{
"data": [{
"name": "...
1
vote
0answers
288 views
How to parse HTTP response (JSONdata) in cocos2d-x
I am making a HTTP request to a server and I am getting data from the database. Now I want to parse the JSON data and get the data into variables like this:
std::vector<char> * buffer = ...