get_open_filename function problem

Marko03970

Member
Hi everyone!
I'm making a game and i want to make that players are able to import some files in game.
Problem is in get_open_filename function because this function can pick only one file.
Can i make that i can select multiple files in window that is arriving while using get_open_filename function?
 

Binsk

Member
Nope, as far as I know. You'll need an extension from the marketplace.

1) you'll need an extension to make the dialog that allows multiple file selection.

2) you'll need an extension that allows reading outside the sandbox since you won't be able to use get_open_filename
 
S

Sam (Deleted User)

Guest
There is a unique problem with my extension on Windows that I can't seem to figure out. If your files you are selecting are in system root the max files you may select are only 3. so if your files are located for instance "C:\file1.txt" or "I:\file1.txt" Pretty much kills it. but if it's located virtually anywhere else on your machine, whether program files, documents, the desktop, my pictures, etc it should load a lot more than that. If you try to load a specific amount or so more than the dialog can handle from its buffer size the dialog will close abruptly and return an empty string as if you pressed cancel.

I'm still trying to figure out a fix for these things, and intend to fix them, but right now I'm pretty busy and also stuck on that issue.

It's not a problem on Mac or Linux fortunately. Just a Windows-only bug with my extension.
 
Top