cem3cem3 / CostCalculatorIssues

A node based production cost calculation tool for the game Eco.
0 stars 1 forks source link

Bug Report - Cant import file #14

Closed vrobin95 closed 2 years ago

vrobin95 commented 2 years ago

Server version 9.5.1 Mod version 2.7.0.9.5.0R

Error The graph you are trying to load is from a newer version of the CostCalculator: v 2.7

Info The json is a fresh one. If we export a graph and try to import it just after, we have this error.

{
    "version": "2.7",
    "nodeGraph":
    {
        "nodes":
        [
            {
                "type": "costCalculator.ingredient",
                "position":
                {
                    "posX": 100,
                    "posY": 300
                },
                "titleColor":
                {
                    "red": 255,
                    "green": 255,
                    "blue": 255,
                    "alpha": 255,
                    "ansiColor": 7
                },
                "titleBackgroundColor":
                {
                    "red": 101,
                    "green": 162,
                    "blue": 57,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "bodyBackgroundColor":
                {
                    "red": 247,
                    "green": 247,
                    "blue": 247,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "title": "Ingredient",
                "collapsed": false,
                "id": 0,
                "item": "Eco.Mods.TechTree.BirchLogItem",
                "currency": "",
                "value": 0
            },
            {
                "type": "costCalculator.ingredientsList",
                "position":
                {
                    "posX": 700,
                    "posY": 200
                },
                "titleColor":
                {
                    "red": 255,
                    "green": 255,
                    "blue": 255,
                    "alpha": 255,
                    "ansiColor": 7
                },
                "titleBackgroundColor":
                {
                    "red": 101,
                    "green": 162,
                    "blue": 57,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "bodyBackgroundColor":
                {
                    "red": 247,
                    "green": 247,
                    "blue": 247,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "title": "Ingredients List",
                "collapsed": false,
                "id": 4
            },
            {
                "type": "costCalculator.craft",
                "position":
                {
                    "posX": 350,
                    "posY": 200
                },
                "titleColor":
                {
                    "red": 255,
                    "green": 255,
                    "blue": 255,
                    "alpha": 255,
                    "ansiColor": 7
                },
                "titleBackgroundColor":
                {
                    "red": 101,
                    "green": 162,
                    "blue": 57,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "bodyBackgroundColor":
                {
                    "red": 247,
                    "green": 247,
                    "blue": 247,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "title": "Crafting Recipe",
                "collapsed": false,
                "id": 3,
                "lastTable": "Eco.Mods.TechTree.WorkbenchObject",
                "craft": "Campfire"
            },
            {
                "type": "costCalculator.table",
                "position":
                {
                    "posX": 100,
                    "posY": 100
                },
                "titleColor":
                {
                    "red": 255,
                    "green": 255,
                    "blue": 255,
                    "alpha": 255,
                    "ansiColor": 7
                },
                "titleBackgroundColor":
                {
                    "red": 101,
                    "green": 162,
                    "blue": 57,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "bodyBackgroundColor":
                {
                    "red": 247,
                    "green": 247,
                    "blue": 247,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "title": "Crafting Table",
                "collapsed": false,
                "id": 2,
                "table": "Eco.Mods.TechTree.WorkbenchObject",
                "currency": "",
                "minuteFee": 0,
                "craftFee": 0
            },
            {
                "type": "costCalculator.ingredient",
                "position":
                {
                    "posX": 100,
                    "posY": 450
                },
                "titleColor":
                {
                    "red": 255,
                    "green": 255,
                    "blue": 255,
                    "alpha": 255,
                    "ansiColor": 7
                },
                "titleBackgroundColor":
                {
                    "red": 101,
                    "green": 162,
                    "blue": 57,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "bodyBackgroundColor":
                {
                    "red": 247,
                    "green": 247,
                    "blue": 247,
                    "alpha": 255,
                    "ansiColor": 0
                },
                "title": "Ingredient",
                "collapsed": false,
                "id": 1,
                "item": "Eco.Mods.TechTree.GraniteItem",
                "currency": "",
                "value": 0
            }
        ],
        "links":
        [
            [
                3,
                0,
                4,
                0
            ],
            [
                0,
                0,
                3,
                2
            ],
            [
                1,
                0,
                3,
                3
            ],
            [
                2,
                0,
                3,
                0
            ]
        ]
    }
}
cem3cem3 commented 2 years ago

Fixed in 2.8.0.9.5.1R.