Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to change mouse image, giving 'Value type error in config.json'? #193

Open
Dragon911XX opened this issue Oct 4, 2023 · 1 comment

Comments

@Dragon911XX
Copy link

Dragon911XX commented Oct 4, 2023

I've added a bit of code to see if it's possible to change the mouse image on mouse key presses, but it's throwing an error. I just want to confirm if it's something that is possible, or if I'm trying to do something that isn't possible.

{
    "mode": 5,
    "resolution": {
        "letterboxing": false,
        "width": 1920,
        "height": 1080,
        "horizontalPosition": 0,
        "verticalPosition": 0
    },
    "decoration": {
        "leftHanded": false,
        "rgb": [255, 255, 255],
        "offsetX": [0, 11],
        "offsetY": [0, -65],
        "scalar": [1.0, 1.0]
    },
    "osu": {
        "mouse": true,
        "paw": [255, 255, 255],
        "pawEdge": [0, 0, 0],
        "key1": [1],
        "key2": [2],
        "smoke": [248],
        "wave": [249]
    },
    "taiko": {
        "leftCentre": [88],
        "rightCentre": [67],
        "leftRim": [90],
        "rightRim": [86]
    },
    "catch": {
        "left": [37],
        "right": [39],
        "dash": [16]
    },
    "mania": {
        "4K": true,
        "key4K": [68, 70, 74, 75],
        "key7K": [83, 68, 70, 32, 74, 75, 76]
    },
	"custom": {
		"mouse": true,
		"paw":[255, 255, 255],
		"pawEdge": [0,0,0],
		"background": "img/custom/mousebg.png",
		"mouseImage":[
			{
			"defaultImage": "img/custom/mouse.png",
			"keys":[
				{
				"image": "img/custom/mouse1",
				"keyCodes":[1]
				},
				{
				"image": "img/custom/mouse2",
				"keyCodes":[2]
				}
			]
			}
		]
	}
}
@ZackeryRSmith
Copy link

ZackeryRSmith commented Jan 15, 2024

If I had to guess your issue seems to be due to excluding the file extension of your images

{
    "mode": 5,
    "resolution": {
        "letterboxing": false,
        "width": 1920,
        "height": 1080,
        "horizontalPosition": 0,
        "verticalPosition": 0
    },
    "decoration": {
        "leftHanded": false,
        "rgb": [255, 255, 255],
        "offsetX": [0, 11],
        "offsetY": [0, -65],
        "scalar": [1.0, 1.0]
    },
    "osu": {
        "mouse": true,
        "paw": [255, 255, 255],
        "pawEdge": [0, 0, 0],
        "key1": [1],
        "key2": [2],
        "smoke": [248],
        "wave": [249]
    },
    "taiko": {
        "leftCentre": [88],
        "rightCentre": [67],
        "leftRim": [90],
        "rightRim": [86]
    },
    "catch": {
        "left": [37],
        "right": [39],
        "dash": [16]
    },
    "mania": {
        "4K": true,
        "key4K": [68, 70, 74, 75],
        "key7K": [83, 68, 70, 32, 74, 75, 76]
    },
    "custom": {
        "mouse": true,
        "paw": [255, 255, 255],
        "pawEdge": [0, 0, 0],
        "background": "img/custom/mousebg.png",
        "mouseImage": [
            {
                "defaultImage": "img/custom/mouse.png",
                "keys": [
                    {
                        "image": "img/custom/mouse1.png",
                        "keyCodes": [1]
                    },
                    {
                        "image": "img/custom/mouse2.png",
                        "keyCodes": [2]
                    }
                ]
            }
        ]
    }
}

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

No branches or pull requests

2 participants