-
November 26th, 2022, 11:46 #1
- Join Date
- Sep 2018
- Posts
- 4
A way to get Occluders from Image Node?
Hi,
I was developing a specific script to extract in runtime the occluders information from an image (map) and I want to know if there is a way to get the "layers" from an Image node type. The getChild("layers") for that node returns nil and I can't find a way to address properly the layers tag in the database (taking into account that the image can be in a category).
Thanks
-
November 26th, 2022, 13:36 #2
I do not think you can. I posted a similar question about writing lighting to the DB via script.
https://forge.fantasygrounds.com/shop/items/199/view
Old School Essentials Ruleset
https://www.dmsguild.com/product/352...eon-Builder-5E
5e Random Dungeon Generator!
-
November 26th, 2022, 18:26 #3
- Join Date
- May 2016
- Posts
- 521
Nope layer information is locked away. No API to access it. My FoWEnhanced does do some magic with the FoW info but it is not something easy to accomplish and has some drawbacks since it is relatively slow to do work it needs to do.
Jason
-
November 26th, 2022, 18:27 #4
- Join Date
- May 2016
- Posts
- 521
-
November 26th, 2022, 19:07 #5https://forge.fantasygrounds.com/shop/items/199/view
Old School Essentials Ruleset
https://www.dmsguild.com/product/352...eon-Builder-5E
5e Random Dungeon Generator!
-
November 26th, 2022, 19:30 #6
- Join Date
- May 2016
- Posts
- 521
In a round about way yes. If there are people who want to manipulate the layer information I'm willing to write other extensions that can do particular tasks. Let me know what you need and I'll see if its something that can be done. However, the method I use is not elegant and certainly has the potential to corrupt things so the simpler the task the better. Let me know and if I think it is not a good fit I'll let you know.
Jason
-
November 27th, 2022, 11:06 #7
- Join Date
- Sep 2018
- Posts
- 4
The idea is to extract the occluders information to be able to reconstruct logically the obstacles in a way that our engine can treat them to create AI controllers to play. We get the information about the players and the overall terrain configuration (length, width, hexsize...) but I want to get the occluders.
I can manipulate directly the XML files, but I don't find an accurate mechanism to locate the XML files given an image...
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks