Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / ChooseRawFile() Ubuntu latest+AGK2 latest

Author
Message
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 16th Dec 2015 14:41
ChooseRawFile() command does not seem to be working in Ubuntu using the latest AGK2. Everything else runs fine.
Hail to the king, baby!
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 17th Dec 2015 21:31
If you run "zenity --file-selection" in the terminal do you get a file selection dialog?
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 17th Dec 2015 23:48
I do yes
Hail to the king, baby!
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 18th Dec 2015 03:48
Can you double check you are running the latest version of AppGameKit, as AppGameKit simply calls that command and lets zenity handle the file choosing. Tested on Ubuntu 14.04 64bit.
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 18th Dec 2015 14:44 Edited at: 18th Dec 2015 14:55
AGK

2.0.16

Ubuntu


david@david-HP-Compaq-6910p:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty
david@david-HP-Compaq-6910p:~$


*** Edit ***
Another thing I noticed,but not AppGameKit related,is that I am unable to copy/paste within the GUI, it simply does nothing, nor can I copy/paste from the browser to the GUI, though it does allow from the terminal to the GUI apparently (useless!!)
Hail to the king, baby!
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 22nd Dec 2015 18:12 Edited at: 22nd Dec 2015 18:16
Hate to dig this up again, but anything on this problem I am having, someone else has the same problem also as I had searched for ChooseRawFile() on this forum, nobody answered their post! At the moment I can work on my 2D editor I suppose which does not yet rely on this command, but in the future this will need it as I expand on the 2d editor code, but the 3D editor needs it as it has the ability,or had.... to load external models.
Hail to the king, baby!
CJB
Valued Member
20
Years of Service
User Offline
Joined: 10th Feb 2004
Location: Essex, UK
Posted: 23rd Dec 2015 10:02
You could write your own file chooser to avoid using ChooseRawFile()? I know it's not the ideal solution, but at least it means you can move forward with your project.
V2 T1 (Mostly)
Phone Tap!
Uzmadesign
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 25th Dec 2015 13:56
If only I knew how to!
Hail to the king, baby!
Digital Awakening
AGK Developer
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: Sweden
Posted: 25th Dec 2015 15:46
It's great that we have people trying out AppGameKit on Linux. I definitely plan to set up a laptop with Linux at some point so I can release games for it.

I suspect that Paul is on vacation and you will have to wait until after new years. Try working on something else in the mean time. I know it's annoying. Been there before. Paul can't test for everything himself. We will run into issues now and then and hopefully he can fix them soon enough.
shadey
14
Years of Service
User Offline
Joined: 25th Jan 2010
Location:
Posted: 27th Dec 2015 14:07
Okay.thanx for the reply and explanations! Interestingly this version of AppGameKit 2 runs the 3D fine in linux, yet in windows it didnt run correctly whatsoever on this same old notebook. It has one of those intel onboard chipsets and is pretty old, I think only supporting pixel shader 1.0, I was pretty amazed to see it run totally fine in Ubuntu!
Hail to the king, baby!
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 4th Jan 2016 16:16
Quote: "ChooseRawFile() command does not seem to be working in Ubuntu"

Fixed for the next version

Quote: "Interestingly this version of AppGameKit 2 runs the 3D fine in linux, yet in windows it didnt run correctly whatsoever on this same old notebook"

There are some old Intel integrated chips (e.g. Pineview) that physically can support OpenGL 2.0 but Intel haven't updated the Windows driver to expose that support. I'm not sure if Intel are responsible for the Linux driver or if it is open source, but that driver has been updated for OpenGL 2.0
Zigi
15
Years of Service
User Offline
Joined: 5th Jul 2009
Location:
Posted: 24th Feb 2016 21:33 Edited at: 24th Feb 2016 21:42
I have tested in AppGameKit V2.0.17 and Ubuntu 14.04 and I'm still having problem with the command.
Now I get the window displayed so I can choose a file, but it doesn't seems like the selected file get copied to the app directory or it name get returned.

This is the code I'm trying:


And the only thing I see is the "empty path" printed on the screen. The selected image never get loaded.
I don't get any error message in debug window nor terminal.
Only a single time I have received this error message in the terminal:

(zenity:10982): Gtk-WARNING **: Attempting to read the recently used resources file at `/home/ubuntu/.local/share/recently-used.xbel', but the parser failed: Failed to open file '/home/ubuntu/.local/share/recently-used.xbel': Permission denied.

But only a single time, most of the times I don't get any error message but I don't even get any selected images copied and loaded.

If I run zenity from terminal using the zenity --file-selection command, it returns the path and name of the selected file.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Feb 2016 16:46
Looks like I didn't test it thoroughly enough. Fixed for the next version.

Login to post a reply

Server time is: 2024-11-25 09:26:33
Your offset time is: 2024-11-25 09:26:33