FG Spreadshirt Swag
  1. #1

    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

  2. #2
    I do not think you can. I posted a similar question about writing lighting to the DB via script.

  3. #3
    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

  4. #4
    Quote Originally Posted by luispenya View Post
    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
    What were you hoping to do with the layer data?
    Jason

  5. #5
    Quote Originally Posted by jharp View Post
    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
    Did you figure out how to edit the DB for the FOW info?

  6. #6
    Quote Originally Posted by bayne7400 View Post
    Did you figure out how to edit the DB for the FOW info?
    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

  7. #7
    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)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
5E Product Walkthrough Playlist

Log in

Log in