Jump to content

Modded Characters In Main Menu (TUTORIAL)


Recommended Posts

2 hours ago, Romanful said:

Amazing job!

For aesthetics sake though, is there a trick to get certain characters to spawn out of the portal? For me it is always a base game character on the left and a modded character on the right.

That's just the luck of the draw really... There's a massive table that gets developed up made up of all the players you've played with in the past and what character/skins they were using + the skins you have equipped to every single character in the game (modded characters included) and it picks 2 at random

Link to comment
Share on other sites

5 minutes ago, Fidooop said:

all the players you've played with in the past

would this mean that if I wanted a character to appear more often on the main menu, i could just play as them more? that would make sense because some characters who i've never played don't seem to ever appear.

Link to comment
Share on other sites

6 minutes ago, Romanful said:

would this mean that if I wanted a character to appear more often on the main menu, i could just play as them more? that would make sense because some characters who i've never played don't seem to ever appear.

Yup!

Link to comment
Share on other sites

Think I've found a problem, can't figure it to be anything else other than this mod.

My character's name is Won-il. I think the dash in the name is messing the menu-assets command in modinfo. I'll attach my client_log. I've commented out the menu-assets lines and the mod worked fine.. I tried changing the name in the one line by removing the dash,  etc, didn't work. The problem is that when active, it basically makes the modinfo.lua doesn't exist. 

You can find the error in the log by ctrl+f and search won-il. 

Thanks for any help!

client_log.txt

Link to comment
Share on other sites

  • Developer

@Cherryzion
The - in the name is certainly causing you issues, but it's also a character used in lua to do operations on variables (subtraction).
 

Try doing this.

characters = {
	["won-il"] = { gender = "MALE", skins = {} }
},

 

In general with coding you probably want to avoid variable names or internal names with special characters like that. That's why WX-78 is named wx78 everywhere in the code. Only the display name has the dash (minus symbol).

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...