openFileDialog not returning file path
by Max vE · in Torque 3D Professional · 09/06/2014 (5:03 pm) · 1 replies
I'm trying to implement a basic save/load system into my game, and I figured I'd use openFileDialog because the user could just select the save file they wish to load. I've set it up just as it shows, with the addition of calling another function with the file path to do the actual loading. However, when I run %openFileDlg.execute(), and then set %filePath = %openFileDlg.file/filename, I just get a blank string.
It says it needs a tools build of Torque, which I'm assuming I'm using. Any ideas?
Thanks.
It says it needs a tools build of Torque, which I'm assuming I'm using. Any ideas?
Thanks.
Associate James Urquhart
On a related note, I should point out that the native file dialog might not be the best option for creating a save/load game system since it causes the game to hang while you are using it.