I am actually laying down the framework for a very big, fun project called Beam.trader which is a site that will let you buy and sell other player's vehicles, and tracking the status of the cars you own through a UI app. (Before you ask, yes, I actually know specifically what I am going to do as this is also a learning project for me to practice HTML/CSS and Javascript I'm learning) I would like to know if it is possible to upload and/or manipulate files on my own web server in a UI app? Thanks.
I'm not sure how this works, but I'm pretty sure this is possible as BeamNG supports in game IRC chat.
For this trader you would need to upload the vehicle.save.json files from each user, you know this, right?
Unless I can access the current .PC file through the UI app I will have to leave it up to the user to upload it.
Nope, when you save your damaged car thru the radial menu, it creates a folder in documents/beamngdrive/vehicles and it creates a folder with vehicle name with the vehicles.save.json file, if you remove it, it will not load anything when load button in radial menu is pressed, if you put it back, it will load the damaged car
network communication is not allowed as the whole thing runs in a sandbox. There are some exceptions for BeamNG services
But didn't the multiplayer mod utilize UI apps? --- Post updated --- Is creating/reading/writing files on user's hard drive possible?
Just curious, is it not a security problem that you can read/write using the Lua side of the game? As that is entirely possible.
Possibly, as Chris Lucas did with the multiplayer mod, but I'd suggest, for a project like this, an RP thread with attached .json files. Any communication between the game and servers seems to be blocked.
That was exactly why I wanted to create a real website for this, it would be better if there was something that automatically kept track of stuff like that in a server including overall mileage.