Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Character Customization Help


GalacticGlum
 Share

Recommended Posts

Hello, 

Tutorial I used: [http://www.eclipseorigins.com/community/index.php?/topic/132296-eo-30-character-customization-hair-hair-color/](http://www.eclipseorigins.com/community/index.php?/topic/132296-eo-30-character-customization-hair-hair-color/)

I was adding character customization into my game and I got a "Variable not defined" error for "Player(Index).Hair = Hair" and

    "Player(Index).HairTint = HairTint" so I added "Dim Hair as Long" and "Dim HairTint as Long" and it fixed the issue but when I tested it out the hair didn't show up in game so I am guessing this is the reason why. Can someone help me out?

.Hair is the highlighted object right beside "Player(Index)"

EDIT:
I was able to fix this by making a global variable so all code has it, I'm not sure if that will work but if I go ingame the hair is still not showing up.

Here is how one hair file looks like:
![](http://i57.tinypic.com/315ok5u.png)
Format: .PNG
–-------------------------------
![](http://i57.tinypic.com/2ia7h42.png)
Link to comment
Share on other sites

The error was telling you that the **Player** type didn't have the variables **Hair, HairTint** so what you have to do is go into **modTypes**, scroll till you find **PlayerRec** and add:

**Hair As Long**

**HairTint As Long**

to the bottom of **PlayerRec** before the **End Type**. Then create a new account and try it out.
Link to comment
Share on other sites

I have already tried that and I'm still getting the same error  :( Would you like my source so you can take a look at it?

I have declared the variable inside the function by doing "Dim Hair as Long" and doing "Dim HairTint as Long" and it works but when I go ingame and make a new account and customize the hair the hair doesn't show up when I'm actually playing.
Link to comment
Share on other sites

> The error was telling you that the **Player** type didn't have the variables **Hair, HairTint** so what you have to do is go into **modTypes**, scroll till you find **PlayerRec** and add:
>
>  
>
> **Hair As Long**
>
> **HairTint As Long**
>
>  
>
> to the bottom of **PlayerRec** before the **End Type**. Then create a new account and try it out.

Read what he said… PlayerRec
Link to comment
Share on other sites

You really should of made sure you added it correctly, If you just went over the tutorial and made sure each bit was added correctly then it would of saved 3 people trying to help you when you could of done this your self.
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...