|
|
View Full Version : 9th skillpage
Dantalion 11-08-2009, 11:05 AM I was hoping to do this on my own, but, as always, it turned into more errors.
Added 9th skillpage and 65th skill to every place of the code, but it indicates 4 errors, 2 in skills.inl and 2 in storage_mysql - "array index out of bounds". No idea yet, where I can change this arrays size.
What's your opinion, Smokey?
The 9th skillpage is a thing we all need (in near future - almost definately) and we should code it with 1-2 template skills for beginning.
Yes, I'm asking this, because I'm almost out of "newskill" templates)
(--eRRoR--) 11-09-2009, 01:33 AM in the m mysql you have to add another camp for the new skill(s).
Why do you do this?
Did you create any more skills?
Dantalion 11-09-2009, 04:48 AM I did, still, errors.
Yes, only the last "newskill" template is left and I'm planning to do series of specialization skills (boosting some particular abilities, but you can have only one of them) and at least 3-4 new skills.
(--eRRoR--) 11-09-2009, 12:19 PM Are you going to make it personal ore are you going to release it here to so Smokey will implement them?
Smokey 11-09-2009, 04:59 PM That was an idea I had played arround with as well but never got to.
Could you try and post your errors?
Dantalion 11-10-2009, 03:43 AM Main problem with my skills is that they are still buggy, I'm testing and improving them. But I'm going to share anything worthy, you may be sure.
(--eRRoR--) 11-10-2009, 03:38 PM Main problem with my skills is that they are still buggy, I'm testing and improving them. But I'm going to share anything worthy, you may be sure.
Good to hear that.
But you can tel us about them in a new post.
Y am shure we could help.
Dantalion 11-11-2009, 03:49 AM Error log:
-uwc3mod/Storage_MySQL.inl(1065) : error 032: array index out of bounds (variable "p_skills")
second line is modified
Guests are not allowed to view code.-uwc3mod/Storage_MySQL.inl(1420) : error 032: array index out of bounds (variable "p_skills")
last line modified
Guests are not allowed to view code.uwc3mod/skills.inl(79) : error 032: array index out of bounds (variable "skill_minlev")
only added
Guests are not allowed to view code.uwc3mod/skills.inl(167) : error 032: array index out of bounds (variable "skill_limits")
same here, just one extra line
Guests are not allowed to view code.A note:
There is an UNUSED2 skill (id 65), it's not introcuded anywhere, so it'll be better to turn it also into a template.
Smokey 11-11-2009, 09:29 AM Start by changing this:
#define MAX_SKILLS 65 // Number of skills is this-1 ( 0 slot is unused )
Setting it to 65 means you can have 64 skills
Dantalion 11-11-2009, 09:54 AM This is obvious, so it was done in the beginning.
Or, you mean that if I set it to 66, number of active skills will be actually 65, and it could lead to "array out of bounds" error?
Smokey 11-11-2009, 10:37 PM yes, if you are trying to use a skill that has a numerical value higher than the max skills you will get an array out of bounds error.
That error basically means you are trying to read or write a value that doesnt exist in the array.
For example, if you do
new arrayVal[2];
And then try and set/read arrayVal[3] it will throw that error.
Not to mention you are doing this
p_skills[id][64],p_skills[id][66]
When I think you meant to do this
p_skills[id][64],p_skills[id][65]
You would also then need to set MAX_SKILLS to 66 so that you could use the index of 65 in the array.
|
|
vBulletin® v3.8.2, Copyright ©2000-2010, Jelsoft Enterprises Ltd.
|