Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Database/World Building

Development::Database/World Building World Building forum, dedicated to the EQEmu MySQL Database. Post partial/complete databases for spawns, items, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-07-2010, 04:02 PM
Brewhaus
Sarnak
 
Join Date: Aug 2010
Posts: 38
Default

Just kinda talking to myself now...

Thinking a little more about how it works, it seems that in the perfect world in order for mobs to always take the shortest route possible you would want a node at every external corner. What I mean by external is that if you are at a corner and you are on the side with > 180 degrees, you need a node. This would allow mobs to path from one corner to the next perfectly. The amount of connections would be pretty ridiculous though. I'm assuming that at some point you would hurt performance or the algorithm for finding best path would fail or something. But take the following two rooms for example:

Code:
O                                          O
 ------------------------------------------
 |                                        |
 |  O  O                                  |
 |   XX                                   |
 |   XX                                   |
 |  O  O        O                         |
 |               -------------------------|
 |               |                         O
 |     O  O      |                         
 |      XX       |    O                    O
 |      XX       |     |------------------|
 |     O  O      |     |                  |
 |               |     |            O O   |
 |               |     |      O  O   |    |
 |               |     |       XX    |    |
 |               |     |       XX    |    |
 |       O       |     |      O  O   |    |
 -------- --------     |             |    |
O        O        O    |	     -----|
O                   O  |            O     |
 ------------------- --|		  |
 |                  O   O                 |
 |                              O         |
 |    O  O                       ---------|
 |     XX                       O         |
 |     XX                                 |
 |    O  O                                |
 |                                        |
 ------------------------------------------
O                                          O
And my original example would be:
Code:
__________________________________________
|                                        |
|  O  O   O  O    O  O    O  O    O  O   |
|   XX     XX      XX      XX      XX    |
|   XX     XX      XX      XX      XX    |
|  O  O   O  O    O  O    O  O    O  O   |
|                                        |
|  O  O   O  O    O  O    O  O    O  O   |
|   XX     XX      XX      XX      XX    |
|   XX     XX      XX      XX      XX    |
|  O  O   O  O    O  A    O  O    O  O   |
|                                        |
|  O  O   O  O    O  O    O  O    O  O   |
|   XX     XX      XX      XX      XX    |
|   XX     XX      XX      XX      XX    |
|  O  O   O  O    O  O    O  O    O  O   |
|                                        |
------------------------------------------
You wouldn't need any nodes along the walls because whenever the mob got to the last corner they would have LOS on you. The node I labeled A would have 10 connections; I guess that isn't that bad.
Reply With Quote
  #2  
Old 09-07-2010, 04:23 PM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

Yeah you most likely have to resort after deletes to avoid crashes in game.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 07:50 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3