I’m not very experienced with any of this so apologies if I’m missing something basic. The current problem I have is that when I open my packaged .exe it displays the Tileset just fine as the Tileset URL is local to that PC. However when I try to open the Tileset on any other PC it will not display the Tileset as the URL is clearly no longer accessible.
I was wondering if there was a way I can get this to load on different PC’s that are not on the same network, without having to host the Tileset on a server.
Hi, Nick2
Taking terrain data as an example, here is the way of loading local data of tileset using relative paths.
Handling of local terrain data during development
(1) During the development process, put the terrain data in the directory shown below, noting that the directory of the .uproject file is the Project Directory .
(3) Set the url of terrain during runtime using relative paths,i.e Project Directory , so that the program can run on any other computer only if the package(including the terrain data) is copied.
Here is the Level Blueprint, EventBeginPlay to execute the following blueprint.
After packaging , the folder of the same name with the project and at the same directory as the .exe file is the Project Directory. You will need to manually copy the terrain data into it. The directory of this project is as follows:
I’m just struggling at the moment to create the blueprint properly. Are you able to send another screenshot with more details as to how the blueprint needs to be setup?
Hi @Nick2,
To check your results, add a Print String node with the result of the Append before you set it as the tileset URL, and verify that it matches a) what you expect, and b) the actual path on the file system.
Hi, Nick2,
It is hard for me to tell what’s wrong according to the screen shots. The Blueprint seems right. Kevin’s advice is very useful. Try the print string node.
I will briefly reiterate the key points again, so that you may review them once more and find something.
During the development process. the directory of the .uproject file is the Project Directory .
Additionally, it is important to note that when copying a package, the absolute path of the entire folder should not contain non-ASCII characters or strange symbols, and ideally, there should be no spaces either.