Jump to content

faramir118

Members
  • Posts

    541
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

faramir118's Achievements

Advanced Member

Advanced Member (3/3)

0

Reputation

  1. s, v are used forclient authentication and initializing the RC4 stream cipher. CMS authentication doesn't need them
  2. more changes to the utility, trying to automate the work as much as possible If anyone has feature requests or suggestions, let me know
  3. pushed updates to my repo, it now outputs in a format like the example in my last post.
  4. Basically, there are 4 parts: Framework which represents conditions. These come in the form of methods like HasAura, HasItem, etc An expression tree representation that we can store in the database. In our case, we probably want SQL insert statements Conversion from the former to the latter Mangos Core implementation to rebuild and execute the expression tree [h]Database Structure[/h] Conditions will go in a table, similar to Schmoo's design but with a small difference (my approach sacrifices space for simplicity): (id, Type, Val1, Val2) eg: (0, 1, 1234, 1) (1, 6, 67, 0) (2, -2, 0, 1) (3, 1, 1235, 1) (4, 6, 469, 0) (5, -2, 3, 4) (6, -1, 2, 5) Where Type = -2 := AND Type = -1 := OR From the rows above, we can build condition 6 by repeated expansion of each expression: 6 2 OR 5 (0 AND 1) OR (3 AND 5) ((Aura 1234 idx 1) AND (Team Horde)) OR ((Aura 1235 idx 1) AND (Team Alliance)) [h]Code Format[/h] A very expressive, extendible way to represent the above condition expression in C#: (c.HasAura(1234, 1) && c.IsHorde()) || (c.HasAura(1235, 1) && c.IsAlliance()) [h]Conversion[/h] Basically, the database developer will just need to write some C# code, and the framework will convert it into a suitable format. I have pushed the code to http://github.com/faramir118/MangosUtil/ - it works with MonoDevelop and Visual Studio 2010. It demonstrates that complex logic is easily parsed and formatted (currently not the format we need) For an example, just look at https://github.com/faramir118/MangosUtil/blob/master/MangosUtil/Runner.cs. You can step through with the debugger if you wish to learn how it works.
  5. If people don't mind C#(or mono), I can do the tooling for this... probably a bit different from what you expect, but it will work. Can push something tomorrow maybe.
  6. cmake -DACE_USE_EXTERNAL=1
  7. If you have tile unload enabled, and only 1-2 players, you don't even need 1gb to run mangos, regardless of what other options you enable. If you have tile unload disabled, mmaps will add well over a 1gb to your peak memory requirement. I think it's somewhere around 1.5gb on disk of just data, which doesn't include runtime allocations for navmesh and pathfinding. If you have a small server, just leave tile unload enabled.
  8. use this: telnet address port replace address with your server's IP or hostname replace port with the port you have configured for RA follow the prompts to login (push enter to send) after you are logged in, just use it like you would the mangos console
  9. make sure GM mode is off and you are visible
  10. During development, only MovementGenerators needed access to the path. Now things are different, with MoveSplineInit using path also and other development trying to take advantage of pathfinding (and also trying to reduce performance impact with caching or reuse of existing path). Maybe it makes more sense now to have the path as a member of Unit, and let all of these other things access it?
  11. What about this at beginning of Unit::AttackedBy: if (attacker == this) return;
  12. Fel Reavers are there, just that they are static, don't have waypoints implemented. Also, visibility distance doesn't work on mangos like it should. On official servers, fel reavers are visible from half way across a zone. This is not a simple issue.
  13. You found the correct solution; add a declaration in the header (.h), definition in the source (.cpp)
×
×
  • 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