Trying to change mouse image, giving 'Value type error in config.json'?
Dragon911XX opened this issue · comments
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]
}
]
}
]
}
}
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]
}
]
}
]
}
}