Jump to content


Photo

Migrating from rAthena


  • Please log in to reply
4 replies to this topic

#1 chriser

chriser

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 20 April 2017 - 08:23 PM

Hi guys!

 

I'm currently migrating our server (custom rAthena, about 1 year old version) to hercules, and I have some questions:

  1. Is there any nice way to convert my item/mob/... MySQL db to the .conf format? I only saw .txt -> .conf converters.
  2. Regarding HPM function overloading: What happens if two plugins overload the same function? To my understanding, only the plugin which was loaded last gets to overload that function.
  3. Is it possible to add custom params using HPM? (by params I mean stuff like Zeny or Hp inside scripts)
  4. Is it possible to add custom mapflags using HPM?
  5. Is there any documentation for the HPM (except the wiki)?
  6. Is there a communication channel outside of the forums for devs?

Looking forward to your answers :)

 

Cheers,

 

chriser



#2 4144

4144

    Advanced Member

  • Core Developers
  • 225 posts
  • Emulator:Hercules
  • Github:4144

Posted 20 April 2017 - 09:46 PM

2. depend how plugin hook type and is it block other functions with same name.

It can hook pre function, and if it not call hookStop() other plugins and server can execute oroginal function. If it call hookStop(), all other plugins and original function will be blocked.

It can hook post function. Then it will be called after pre, and normal function.

 

3. yes

 

4. yes

 

5. try see other plugins.

 

6. irc



#3 chriser

chriser

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 21 April 2017 - 06:37 AM

thanks for your answers!

by function overloading I dont mean the hooks, I mean using this:

pc->additional_bonus = &my_own_bonus_func

With hooks it is pretty clear that all plugins get called, but using this method it seems that only one plugin gets his function called.

#4 4144

4144

    Advanced Member

  • Core Developers
  • 225 posts
  • Emulator:Hercules
  • Github:4144

Posted 21 April 2017 - 02:37 PM

Yes overloading block other plugins if they overloaded this function before



#5 chriser

chriser

    Newbie

  • Members
  • Pip
  • 3 posts

Posted 23 April 2017 - 10:02 AM

ok, as expected, thanks :D

 

let's see if I can manage to convert my sql database to the conf format. shouldn't be that hard, libconfig format seems pretty nice.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 41 user(s)