I've been trying to make a custom character on the "Alesan's Entities" mod. Haven't had too much trouble until recently. I had the player character switched to my custom character, Winter, for a while. One day I went to switch the player to Mario for a bit, but when I tried to switch back to my custom character, it gave me an error message. Something about unpacking, and expecting a table, and receiving a number? Please take a look.
"Error
menu.lua:474: bad argument #1 to 'unpack' (table expected, got number)
Traceback [13.1005]
main.lua:2749: in function <main.lua:2704>
[C]: in function 'unpack'
menu.lua:474: in function 'menu_draw'
main.lua:1189: in function 'lovedraw'
main.lua:1161: in function 'draw'
[C]: in function 'xpcall'
version: 13.1005"
The weird thing is that my custom character was working fine up to this point. Here's my character code for anyone who's curious:
{
"colors": [
[0,123,140],
[0,0,0],
[181,239,239]
],
"defaultcolors": [
[0,123,140],
[0,0,0],
[181,239,239],
[0,123,140],
[0,0,0],
[181,239,239],
[0,123,140],
[0,0,0],
[181,239,239]
],
"flowercolor": [[99,173,255], [216,40,0], [255,107,206]],
"iceflowercolor": [[255,255,255], [0,0,0], [99,173,255]],
"superballcolor": [[99,99,99], [0,0,0], [255,255,255]],
"hats": false,
"dbljmppls": true,
"noportalgun": true
}
Has anyone experienced a similar, if not the same problem? Can anyone please explain what I did wrong or how to fix it?
Custom Character Issues
- vladimirdog2021
- Posts: 110
- Joined: 09 Aug 2022, 15:44
- Contact:
Try starting over with a new custom character maybe?
- SankeySMM2
- Posts: 230
- Joined: 13 Feb 2021, 20:12
- Contact:
I fixed it
Code: Select all
{
"colors": [
[0,123,140],
[0,0,0],
[181,239,239]
],
"defaultcolors": [
[[0,123,140],
[0,0,0],
[181,239,239]],
[[0,123,140],
[0,0,0],
[181,239,239]],
[[0,123,140],
[0,0,0],
[181,239,239]],
[[0,123,140],
[0,0,0],
[181,239,239]]
],
"flowercolor": [[99,173,255], [216,40,0], [255,107,206]],
"iceflowercolor": [[255,255,255], [0,0,0], [99,173,255]],
"superballcolor": [[99,99,99], [0,0,0], [255,255,255]],
"hats": false,
"doublejump": true,
"noportalgun": true
}
-
- Posts: 2
- Joined: 03 Mar 2024, 04:46
I completely forgot I made this post and ended up solving the issue on my own. Thank you for responding though! I really do appreciate it!SankeySMM2 wrote: ↑18 Mar 2024, 05:40I fixed itCode: Select all
{ "colors": [ [0,123,140], [0,0,0], [181,239,239] ], "defaultcolors": [ [[0,123,140], [0,0,0], [181,239,239]], [[0,123,140], [0,0,0], [181,239,239]], [[0,123,140], [0,0,0], [181,239,239]], [[0,123,140], [0,0,0], [181,239,239]] ], "flowercolor": [[99,173,255], [216,40,0], [255,107,206]], "iceflowercolor": [[255,255,255], [0,0,0], [99,173,255]], "superballcolor": [[99,99,99], [0,0,0], [255,255,255]], "hats": false, "doublejump": true, "noportalgun": true }