Skip to content
This repository has been archived by the owner. It is now read-only.

Voxel Tycoon mod listing allows mods with unconventional json files #128

Closed
GameBurrow opened this issue Jul 31, 2019 · 1 comment
Closed
Labels
modding

Comments

@GameBurrow
Copy link

GameBurrow commented Jul 31, 2019

Describe the bug
I've found a mod in Voxel Tycoon's mod list, that has broken pack.json file. This is the file:

{
    "Title" : "Mighty Griffin v2.0",
    "Description" : "Pack of Scania 5 generetion R-, P-, T-series.
    LQ version: pack contain trucks without overdetilization, so it will save your FPS at initial state.
    V1.0 (21.07.19): initial release.
    V2.0 (28.07.19): Fully reworked models. Added curtain and flatbed body types. Added semirtailers and HCT roadtrains.
    In next update: More body types for trucks and trailers, more semitrailers"
}

Most JSON parsers (what I've tried so far) by default fail to parse that file and that is because of the multiline string added to Description field. Json files should be validated before mod is allowed to be uploaded.

I stumbled upon this issue when I tried to make a small mod manager for myself.

Mod details:

  {
    "Author": "SpaceCossaX",
    "Updated": "2019-07-28T12:22:08.491Z",
    "Disabled": false,
    "Name": "scania_p_r_t_pack"
  },

Steps to reproduce
Download Mighty Griffin v2.0 mod and try to parse the pack.json file outside of the game (for example online json parsers like http://json.parser.online.fr/)

Build version
image

Platform
Windows 10 Pro x64

Reproducibility
N/A

@GameBurrow GameBurrow added the bug label Jul 31, 2019
@polak-jan polak-jan added the modding label Aug 2, 2019
@andrewpey andrewpey removed the bug label Apr 4, 2020
@andrewpey
Copy link
Collaborator

andrewpey commented Jun 3, 2020

Fixed in 0.84.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
modding
Projects
None yet
Development

No branches or pull requests

3 participants