I’ve been trying to think of ways to create a sort of Wikipedia or series of webpages with information related to characters, vehicles, locations, and more that the player can access if they choose to. This serves as a way to obtain additional lore about the world by accessing it through a console at the game’s hub world/headquarters.
I know enough html to make some simple files that have text (Hello world!), but the goal would be to create hyperlinks, show photos, and possibly play music(Is that even possible?).
Under the Edit menu>Plugin>Widgets there’s a Web Browser plugin, which if enabled allows you to load webpages in a widget. Tesla Dev has a great tutorial that got me started.
What I’d like to do is package the webpages with the game and use the above plugin to access them, but I’m not quite sure how to do such a thing. I come into a problem.
From the testing I’ve done so far, I can put a simple HelloWorld.html file in with the game files and point the WebBrowser Widget’s Initial URL to the file location (C:\Program Files\GameName\Content\HelloWorld.html). This opens the webpage which is neat.
The issue I see happening is that file locations change. Not everyone is going to install the game in the same directory. How do you work around that? Is there a way to grab the file location? How do all the hyperlinks work between the webpages then? (That last one is probably covered in an html tutorial)
Anyhow, any feedback is appreciated. And if anyone knows a better method please let me know.