This PR makes it easier to make new instances. Instead of hardcoding server_bfs for instances in init_game it will now dynamically acquire them from G.maps. and run server_bfs if there are npcs or monsters in the instance.
This change was initially part of the bee dungeon branch i'm working on.
This is the console output from my ptr server with added debug, keep in mind create_instance in server_functions.js will also call server_bfs if precompute has not been run.
log output from my change where i've added a console log for precomputed.
2024-08-13 20:48:46 tomb is precomputed
2024-08-13 20:48:46 dungeon0 is precomputed
2024-08-13 20:48:46 shellsisland is precomputed
2024-08-13 20:48:48 crypt is precomputed
2024-08-13 20:48:48 winter_instance is precomputed
This PR makes it easier to make new instances. Instead of hardcoding
server_bfs
for instances ininit_game
it will now dynamically acquire them from G.maps. and runserver_bfs
if there are npcs or monsters in the instance.This change was initially part of the bee dungeon branch i'm working on.
This is the console output from my ptr server with added debug, keep in mind
create_instance
inserver_functions.js
will also callserver_bfs
if precompute has not been run.log output from my change where i've added a console log for precomputed.