My layer isn't unlocking! what do i do?

i have multiply starting enabled but the layer isnt showing. only the stellaris layer! help. I tried making a tree but the only thing i see is the first layer - #21 by thepaperpilot

2 Likes

Can you post the code of the layer?

3 Likes

okay.

addLayer("M", {
    name: "Multiplication", // This is optional, only used in a few places, If absent it just uses the layer id.
    symbol: "M", // This appears on the layer's node. Default is the id with the first letter capitalized
    position: 1, // Horizontal position within a row. By default it uses the layer id and sorts in alphabetical order
    color: "orange",
    startData() {
        return {
            unlocked: true,
            points: new Decimal(0),
        }
    },
    requires: new Decimal(25), // Can be a function that takes requirement increases into account
    resource: "multipoints", // Name of prestige currency
    baseResource: "points", // Name of resource prestige is based on
    baseAmount() { return player.points }, // Get the current amount of baseResource
    type: "normal", // normal: cost to gain currency depends on amount gained. static: cost depends on how much you already have
    exponent: 0.5, // Prestige currency exponent
    gainMult() { // Calculate the multiplier for main currency from bonuses
        mult = new Decimal(1)
        return mult
    },
    gainExp() { // Calculate the exponent on main currency from bonuses
        return new Decimal(1)
    },

    row: 1, // Row the layer is in on the tree (0 is the first row)
    hotkeys: [
        { key: "m," description: "M: Resetting makes multi-points", onPress(){if (canReset(this.layer)) doReset(this.layer)}}
    ],
    layerShown() { return true },
    upgrades: {
        11: {
            title: "Multiplier",
            description: "Double your point gain.",
            cost: new Decimal (2),
        },

    }
})


2 Likes

Hmm, nothing here looks wrong to me. Is this at the bottom of layers.js? Are there any errors in the console?

3 Likes

0 errors, 10 warnings.

1 Like

heres a screenshot of the game.

2 Likes

ok whats the problem

2 Likes

@thepaperpilot its been 18 minutes

2 Likes

ITS BEEN 28 DAYS, please help

2 Likes

oh you mean devtools
here it is
Failed to load resource: the server responded with a status of 404 ()
then its talking about favicons.
which takes me to error with openresty

2 Likes

@thepaperpilot COME BACK!

1 Like

Oh well not too bad and I’m not a coding genius looks like it’s going to take like one two maybe even three years which I think is longer than the subreddit has been around so I brought it I mean fourm :joy:

1 Like

I don’t see anything that wrong, but try changing “orange” into its hex code

1 Like