[Help] Adding param to propitem

09/10/2020 08:20 adiguelii#1
Hey, I would like to add 2 values to my propitem.txt without updating the whole source to another version.

I added this to CProject::LoadPropItem
Code:
prop.bCanLooksChange = scanner.GetNumber();
prop.bIsLooksChangeMaterial = scanner.GetNumber();
and these values to struct ItemProp
Code:
BOOL bCanLooksChange;
BOOL bIsLooksChangeMaterial;
Now when I start my server the worldserver is crashing, because it doesn't read my propitem.txt correctly.

Is there any value holding the maxparam?
Can anyone give me some hints on how to make this work?

I appreciate your help!
09/10/2020 11:31 Drabur#2
did you add the parameters to every item?
09/10/2020 15:29 adiguelii#3
Quote:
Originally Posted by Drabur View Post
did you add the parameters to every item?
You are right, I had some mistakes in my propitem.

Now I'm getting an error for propSkill.
Code:
2020/ 9/10   16:27:46   propSkill.txt ID:0 last_read(ID:1 name:1)
Do I have to add the parameters there too?

Thanks for your help!

Nvm. Fixed!
09/10/2020 18:31 Drabur#4
Quote:
Originally Posted by adiguelii View Post
You are right, I had some mistakes in my propitem.

Now I'm getting an error for propSkill.
Code:
2020/ 9/10   16:27:46   propSkill.txt ID:0 last_read(ID:1 name:1)
Do I have to add the parameters there too?

Thanks for your help!

Nvm. Fixed!
both must have the same parameters.
09/10/2020 18:59 adiguelii#5
Quote:
Originally Posted by Drabur View Post
both must have the same parameters.
I set up a new functions to load the propskill individually.

Thanks for your help!