Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Skilleffects and other skilldata stuff (https://postpacific.loc-online.com/showthread.php?t=4845)

Alien003 17.06.2006 14:39

Skilleffects and other skilldata stuff
 
I'm searching for information how to add new effects to skills, or even adding anything new to the skilldata

so everyone that knows something about it could leave me a pm? I'll post a tutorial how to make/add one in the end, if someone gives me some tips.

(its doesn't need to be very hex specific, just a few tips would be great)

Alien003 22.06.2006 22:44

since noone posted, I'll reply a bit myself

Tips

1º everything you can find in the rdata about skills is just debug information, good for finding functions names, nothing else

2º the skilldata file is fully parsed by yacc. The effect names are NOT compared with names in memory, everything is done using parser states. So to add a new skill effect directly in the skilldata file we would need to re-write a the parser completly

Forget that!

3º there are 3 important structs for skills
CSkillInfo, CSkillEffect. and another one that I dont know the name , lets call it CSkillParam (oh and also a CSkillAction , but I'm not sure what for, or if its the one that I dont know the name)

then a skill is readed from skilldata it creates a CSkillInfo,
a CSkillInfo has a list of CSkillParam
each CSkillParam has a pointer to a CSkillEffect and the parameters for that skill in the skilldata

the CSkillEffect has 6 functions pointers

So I guess that with that information you guys can find a way to do the rest, I did.

I could post more ..but since noone tryed to help, I dont feel that I should.

khul 22.06.2006 23:36

thanks for the information Alien003 maybe some1 else will se the light the way you did on this matter.

tpuNIsher 24.06.2006 04:06

Please do post. Noone prolly knew about it even, forget helping :p


All times are GMT. The time now is 15:26.