Jump to content

DasBlub

Members
  • Posts

    450
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

DasBlub's Achievements

Advanced Member

Advanced Member (3/3)

0

Reputation

  1. DasBlub

    MMaps Redux

    please do not post links to self-compiled programs. we can guarantee that those in our repository are "clean" (without any virus, from clean sources, etc.), but we cannot take the risk that anyone uploads infected programs.
  2. sorry, i don't have much time now, but those two articles should give you an idea of how to use bitmasks: http://en.wikipedia.org/wiki/Bitmask http://en.wikipedia.org/wiki/Bitwise_operators
  3. afaik the developers' island does not exist anymore. i think it has been removed from the client sometimes before version 2.4.3.
  4. why add git_id to it? only mangos devs use it and it almost never changes.
  5. i vote against translating any console output. console output (of any program, not just mangos) should *always* be in english, so that you can just copy&paste it and everybody will understand it. if you run into a problem and post your log here, we can understand it. if you have a translated version, we won't. the best example is visual studio: it always has translated versions, so if someone posts his VS-error-logs here, we don't understand them. but VS does it good too: they have error-codes. so you just have to search for those error-codes on MSDN and you'll find the english version of the error. it just takes more time.
  6. uh, i don't understand what you mean, lillecarl. yes, we do already have hooks and an example implementation of a library is here: https://github.com/mangos/mangos/tree/master/src/bindings/universal the idea of this thread here is to implement a new way for the hooks, because the current one is more c-like than c++-like (using function-pointers and other such stuff) and it's only usable for a few things (creatures and stuff). the new way will allow us to create hooks for anything in mangos, not just player-interactions.
  7. i just checked: i can edit the subject of other posts, it's just that one which doesn't work o_O
  8. that should also be pretty easy to do with cipherCOMs eventsystem. just drop the hook from an event (-> remove it from the unordered_set) and you're done. creating a command for doing that shouldn't be too hard.
  9. i just ate the easter bunny. sorry! and now let's find the bunnies made out of chocolate...
  10. you only pass one argument: the event. all events are based on the same base-class. that way, a hook can check what kind of event it is and then do something different with it. also, this is the only clean way how to do it with the UNORDERED_SET (we added it to mangos a while ago: https://github.com/mangos/mangos/blob/master/src/framework/Utilities/UnorderedMapSet.h) just have a look at cipherCOM's commit, you'll find examples for triggering events and for creating hooks for those. cipherCOM moved most of the output to events too, from what i can see. and why are you using my avatar? it makes reading the forum very hard, i always think that it was me who wrote a post when i see one of yours
  11. you need to register&login before being able to edit a page, that's all.
  12. if i do that, i can somehow only edit the content, not the subject =/
  13. you better look at cipherCOMs eventsystem: https://github.com/cipherCOM/mangos/commits/eventsystem my version was just some playing-around while he completely developed it and added many hooks. the idea behind is, that you fire all the events in the core, no matter if there's any hook for it set up. so a first step would be to add the basic eventsystem to the core and then add all events and fire them inside the core. as of then, anyone can write his hooks and hook them up to any event(s). i haven't looked at cipherCOMs eventsystem, but i think i remember correctly that he also had the m:n connection for events&hooks. so basically you can write a hook and hook it up to as many events as you want. on the other turn you can also hook up several hooks to the same event.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use