Custom Character Issues

Mods, guides how to use and install mods go right in here.
Post Reply
PurpleWinterStache
Posts: 2
Joined: 03 Mar 2024, 04:46

Post » 03 Mar 2024, 04:58

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?

User avatar
vladimirdog2021
Posts: 110
Joined: 09 Aug 2022, 15:44
Contact:

Post » 18 Mar 2024, 02:20

Try starting over with a new custom character maybe?

User avatar
SankeySMM2
Posts: 230
Joined: 13 Feb 2021, 20:12
Contact:

Post » 18 Mar 2024, 05:40

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
}

PurpleWinterStache
Posts: 2
Joined: 03 Mar 2024, 04:46

Post » 20 Mar 2024, 19:39

SankeySMM2 wrote:
18 Mar 2024, 05:40
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
}
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!

User avatar
SankeySMM2
Posts: 230
Joined: 13 Feb 2021, 20:12
Contact:

Post » 21 Mar 2024, 05:25

anytime

Post Reply