Hi everyone,
I promise I was searching quit a while, but found nothing so far.
What am I looking for?
I want to have some kind of dynamic level BP Script so that I can:
- Open some kind of custom “Open File Dialog” so that the User can chose a File on his drive - but this is not the Main Problem here (from the other side - a good “Handle User input in Blueprint Tutorial would be great also”)
- Then I want to read the Data contained in the File - Text or Byte based - here the tricky part begins. I haven’t found any documentation on this topic and also none of the BP functions seems to be able to do that.
- The last part is easy - as the data in the File is well structured I will spawn some Geometry/Static Meshes etc. on various locations.
As you see, this is more about something like a “viewer” (I want to use it for some Visualization, not for a game). But I think that this could be also useful, for developers that want to have a “Level editor” inside their games - then they can have their cool and fancy Levels that come shipped with the game itself - and with this approach they could easily create also an “map editor” that saves a simple byte or text File and then read it during run-time dynamically into the custom level. This would be for sure fine for the most of simple Top down or sidescroller games with (for simplicity) cubic tiles.
Let me give you an example.
We have some cubic tiles/meshes/assets prepared (but in our case in 3d):
- “G” - is an Ground Brick
- “D” - is an destructible Brick
- “?” - is the ? Box
- “.” - is empty space
In our Text File that we want to Load we have then (it is not perfect but when you see the Final outcome you should get an idea what I mean):
…
…
…
…?D…
…?DDDDDD…
…GG…
…GG…GGGGGG…
GGGGGGGGGGGGGGGGGGG
GGGGGGGGGGGGGGGGGGG
And as we load this Text file it will create the following “Level” (lets ignore for now the clouds and the green pipe):
Is it in general possible to interact/manipulate Files from Blueprints?
Is there any chance for this in Blueprint or am I forced to use C++?
Can someone point me in the right direction please?
Thank you,
Best regards,
Jur4nd