Old POIs gone - How To Access New Locations?

Discussion in 'Programming' started by Q_Hung, Nov 26, 2023.

  1. Q_Hung

    Q_Hung
    Expand Collapse

    Joined:
    Jul 2, 2021
    Messages:
    21
    Evening all,

    I've found this forum to be extremely helpful in the past and very much appreciate everyone's openness and the positive community vibes I get here. I've spent a fair amount of time building an experimental vehicle control system over the past couple years. Have needed to take a small break from it in recent months because of work obligations but am back in it, trying to pick up where I left off before. Things were progressing well before I set it on the shelf, it just needs more manhours and effort to get to the finish line.

    Part of the system required me to place a series of POIs (Points Of Interest) around one of the stock tracks in the World Editor. I was then loading the information in via lua code and processing it further as needed. All of this was working well.

    I've now installed the latest version of Beam on my computer and put my old unpacked mods, including the modified circuit, into the directory structure. Everything is tied together, but the POIs are all gone.

    It seems like I need to put the POIs in again, this time as part of the Sites / Locations system. I'm gathering that's why the old ones are gone, because it looks like the POI system has been replaced and upgraded. This is fine, if I need to do it I need to do it.

    Am I seeing this correctly? And if so, would someone please tell me how to access the new Sites / Locations as placed in the World Editor via Lua?

    I was previously able to access them via scenetree.findObject(poi_Name)

    Thanks very much -

    Q
     
  2. DaddelZeit

    DaddelZeit
    Expand Collapse

    Joined:
    Jul 17, 2019
    Messages:
    3,472
    Hi,
    as I understand, you previously used "Point of Interest" objects, right?
    upload_2023-11-26_20-37-6.png
    This was indeed replaced with the sites system. However, the object type is still there and should still work as expected.
    upload_2023-11-26_20-38-19.png

    In case you do end up needing to use gameplay sites, you can use these functions:
    Code:
    gameplay_sites_sitesManager.loadSites(filepath, true, true)
    and
    Code:
    gameplay_sites_sitesManager.getCurrentLevelSitesByName(name)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice