doubleaxe / daxfb-calculator

Calculator/Factory Planner for factory management games. Evospace. Captain of Industry.
https://doubleaxe.github.io/daxfb-calculator/
MIT License
3 stars 4 forks source link

Can we update Evospace to 0.19, maybe add CI #13

Closed wavelet-noise closed 3 months ago

wavelet-noise commented 3 months ago

Hello, looks like data from 0.19 is no longer supported, i have added Colors field to recipes, but not sure what else is incompatible

You can use https://github.com/wavelet-noise/evospace-vanilla-gen/tree/main to generate new json's with Generate.py without steam or evospace client

static #recipeSchema = _commons.compileJsonSchema({
        type: 'object',
        additionalProperties: false,
        required: ['Name', 'Ticks', 'Input', 'Output'],
        properties: {
            Input: {$ref: '#/$defs/IO'},
            Output: {$ref: '#/$defs/IO'},
            ResourceInput: {$ref: '#/$defs/Item'},
            ResourceOutput: {$ref: '#/$defs/Item'},
            Name: {type: 'string'},
            Ticks: {type: 'number'},
            Tier: {type: 'integer'},
            Loss: {type: 'integer'},
            Scaled: {type: 'boolean'},
            Locked: {type: 'boolean'},

            >>>
            Colors: {
                type: 'array',
                items: {
                    type: 'array',
                    items: {type: 'number'},
                    minItems: 4,
                    maxItems: 4
                }
            }
            <<<
        },
wavelet-noise commented 3 months ago

I managed to run node prepare.mjs locally with some minor changes, but I can't seem to build the entire site. I'm not very familiar with JS =(

wavelet-noise commented 3 months ago

Some icons now not 32x32 also, but still 1:1 and power of 2

doubleaxe commented 3 months ago

Ugh, you have compatible json export tool :) I thought I should deal with your new lua format, write converter lua mod, etc.. It should be much easier, I'll take a look a bit later.

What do you think about version 18? Should I keep both versions of calculator or just move everything to v19?

wavelet-noise commented 3 months ago

Yes, I decided not to use Lua for vanilla, at least for the basic information. I will need an independent JSON generator for the wiki site in the future myself

The changes in the recipes are minor for now, balance adjustments and changes will come later. I think version 0.18 is not needed

doubleaxe commented 3 months ago

Fixed in v1.0.21