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 / AGK Version 2 Alpha 7

Author
Message
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 00:13
I've uploaded Alpha 7 to the download area with the following changes



For those targeting iOS I recommend keeping your test devices on iOS 7 for now, so you can fall back to XCode 5 again if upgrading to XCode 6 and iOS8 SDK doesn't work. I will be looking at iOS 8 after this update.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Sep 2014 00:28
@Paul,
Quote: "Moved AppGameKit write folder for apps from "My Documents/AGK" to "AppData/Local/AGKApps" on Windows"

arrr, why u move the data folder,
the appdata is a hidden folder, i don't like, also because
some old apps had save data in "My Documents/AGK/..."
or did i missunderstand you.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 00:44
The AppData folder is the recommended place for data files, you could change it with SetRawWritePath if you need a specific folder for your data.
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 25th Sep 2014 01:24
Hi Paul,

can you check the Command GetResumed ?
I think that is not working correct in Alpha 6...
Windows and Android do nothing...
I stop the Physics an Create a Picture...
Example:

if GetResumed() = 1
"go to"
Showpausescreen()
endif

But that never call the function...

Thanks Sascha
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Sep 2014 01:25
@paul,
hmm, but if my apps save private data it belongs the user.
means i create my level, my hiscore, my screenshot, input text.

please can u make a function GetPathMyDocuments for input in
SetRawWritePath or a function SetWritePathMyDocuments?

i really dislike this AppData folder, it make only trouble for users.
its better a app or game save the non user data in the installed folder
and not anywhere on my harddisc.

AGK 108 (B)19 : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
sdl
AGK Developer
12
Years of Service
User Offline
Joined: 5th May 2012
Location: Germany
Posted: 25th Sep 2014 01:37
+1 @ Markus
Das mit den versteckten Ordern finde ich auch nicht so gut.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 25th Sep 2014 02:43
An IDE for MAC???
I'm downloading, and if it is what i'm imaging.... good job Paul, really!


xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 25th Sep 2014 02:55 Edited at: 25th Sep 2014 02:59
Wow IDE on MAC!!!
It works, and well!!
Great Paul, this is a great step forward for TGC. I like it very much!!!!

How it compile? The app file that launch is a really app or is it a pre-processed?
I'm too curious!!

Edit : Add a ".." to go down 1 folder in the "open project" window. To go down a folder users need to start again from desktop every time.

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 03:05
Quote: "can you check the Command GetResumed ?"


Thanks, fixed for next version.

Quote: "please can u make a function GetPathMyDocuments for input in"


That sounds like a good idea.

Quote: "i really dislike this AppData folder, it make only trouble for users.
its better a app or game save the non user data in the installed folder"


I agree, but Windows doesn't allow this. The Program Files directory is write protected and only apps running in administrator mode can write there, this is why previous versions of AppGameKit recommended UAC to be turned off. But this is not a good practice and we must abide by Microsoft's decision for security, and ease of use.

Quote: "How it compile? The app file that launch is a really app or is it a pre-processed?"


It's precompiled, since the interpreter never changes. It just adds your bytecode and media into the bundle then packages and signs it.

Quote: "Add a ".." to go down 1 folder in the "open project" window."


Yeah I'm going to take a look at those dialogs at some point and see if I can improve them.
xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 25th Sep 2014 03:44
Quote: "- Moved AppGameKit write folder for apps from "My Documents/AGK" to "AppData/Local/AGKApps" on Windows"


The benefit of the original 'My Documents/AGK' write folder was that it could be parsed in AppGameKit to determine the user's root My Documents folder, which I used to create a folder specific to my app for screenshots and such. However, making a separate command to return the user's My Documents folder would solve this and ease the process.

I should mention that the 'My Documents' directory AppGameKit uses (where the "AGK Projects" folder is stored and where project files previously were) always assumes the user's Documents folder is default to Windows and on the C:. I have my Documents directory on a different drive and custom path [in Windows 8 this is done by right-clicking the Documents folder, Properties, Locations] but AppGameKit Projects still get put on the C: in C:\Users\Me\Documents\ even if my real directory is F:\Data\Documents\. I've seen some other apps also stick all documents in the default directory but am certain the custom Documents path can be acquired?

Edit: I can't seem to locate the "AGK Projects" folder after installing Beta 7 at all.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 04:10
Quote: "always assumes the user's Documents folder is default to Windows and on the C:"


The installer we use has a variable for the documents folder, I would have expected it to pick up the correct path but perhaps it is a bug.

Quote: "I can't seem to locate the "AGK Projects" folder after installing Beta 7 at all."


Looks like it installs them to the "All Users/Shared Documents" or the "Public/Public Documents" folder depending on the Windows version, I'll change that for the next version.
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 25th Sep 2014 10:08 Edited at: 25th Sep 2014 10:15
Quote: "I agree, but Windows doesn't allow this. The Program Files directory is write protected ..."

OT
yes, stupid implementation from ms.
they could also protect the installed files/folders and allow
creating sub folder or files for this app with user permissions.
than this created files only exist for the user that used this app.
but i believe ms can not handle it because other user can
save the same file and they go the easy way.
my opinion is that a app need get extra permission and not belongs to a user that
had start this app.

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265
baxslash
Valued Member
Bronze Codemaster
17
Years of Service
User Offline
Joined: 26th Dec 2006
Location: Duffield
Posted: 25th Sep 2014 10:12
Quote: "Added SetSkeleton2DFlip to flip a skeleton in the horizontal or vertical axis"



Great work Paul!!
JimHawkins
15
Years of Service
User Offline
Joined: 26th Jul 2009
Location: Hull - UK
Posted: 25th Sep 2014 11:41
Just don't install into Program Files. It is not a requirement.

-- Jim - When is there going to be a release?
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 25th Sep 2014 14:38
Still no go on OX 10.7.5

EXC_BAD_ACCESS (SIGSEGV)
KERN_INVALID_ADDRESS at 0x00007fff5fc01028

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 25th Sep 2014 16:24
Quote: "I should mention that the 'My Documents' directory AppGameKit uses (where the "AGK Projects" folder is stored and where project files previously were) always assumes the user's Documents folder is default to Windows and on the C:"


My Windows OS drive is J:\, and it works ok for me (unless it's changed in V2)

Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 16:57
Quote: "Still no go on OX 10.7.5"


Right click on AGK2.app and show contents, then browse to "Contents/MacOS", replace the file geany-bin with the attached version and let me know if it works.

Attachments

Login to view attachments
bjadams
AGK Backer
16
Years of Service
User Offline
Joined: 29th Mar 2008
Location:
Posted: 25th Sep 2014 20:12
great work on the regular updating
BobH0905
19
Years of Service
User Offline
Joined: 3rd Feb 2005
Location: Portsmouth
Posted: 25th Sep 2014 22:06 Edited at: 25th Sep 2014 22:43
Just downloaded 2 Alpha 7 and it seems to compile programs OK, but when trying to run the compiled program, I get the error message

Uncaught exception:
Failed to open file for writing/JoystickOuter.png

So I tried compiling and running the example program SnakeSnacker. I get exactly the same result.
Don't even know what it means, and just letting somebody know. Going back to 2 Alpha 6 until next release.
I'm running in Windows 7 and my My Documents folder is on drive F:.

OK, I reinstalled 2 Alpha 6, played with it, then reinstalled 2 Alpha 7.
And now it works. I have no idea why, but please ignore the first par of this message. (I tried to find a way of deleting it but failed)
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 22:48
Quote: "And now it works. I have no idea why"


That's good, I was searching around to see if there was some reason that the AppData folder might not be writable but wasn't having much luck. Your message is still useful as it might help someone with the same problem, that reinstalling seems to have fixed it.
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 25th Sep 2014 23:04
Close all projects on OSX Alpha 7 does nothing.
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 25th Sep 2014 23:06
Open selected file always brings Could not open file xxxx (File not found) on OSX and ALpha 7.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 25th Sep 2014 23:12
Quote: "Close all projects on OSX Alpha 7 does nothing."


Thanks, fixed for the next version

Quote: "Open selected file always brings Could not open file xxxx (File not found) on OSX and ALpha 7."


This only works on "#include" lines, it should open the included file
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 26th Sep 2014 00:07
Quote: "This only works on "#include" lines, it should open the included file "


Ah ok, I understand. You also have to set the cursor on the name itself.
aviles22
10
Years of Service
User Offline
Joined: 1st Dec 2013
Location: New Jersey, USA
Posted: 26th Sep 2014 02:51
Exported my app to an ipa file on my mac then using Application Loader all goes through except 1 error:

ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'Icon-72.png'"

Please help as I am wowed by the new export to ipa in AGKV2 and this is the only problem from getting me published.
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th Sep 2014 03:16
Quote: "ERROR ITMS-9000: "Invalid Image Path - No image found at the path referenced under key 'CFBundleIconFiles': 'Icon-72.png'""


Thanks, fixed for next version
aviles22
10
Years of Service
User Offline
Joined: 1st Dec 2013
Location: New Jersey, USA
Posted: 26th Sep 2014 03:50
Quote: "Thanks, fixed for next version"


Hey Paul, I am ready to publish to the App Store. Is there any thing I can do to fix this til I wait for the next version?

Also, would be nice to change the splash screens that AppGameKit creates in the IPA. I tried changing them in the interpreter_ios folder but they are obviously being generated from a different location from AppGameKit Exporter.

Default-568h@2x.png and Default.png
Paul Johnston
TGC Developer
22
Years of Service
User Offline
Joined: 16th Nov 2002
Location: United Kingdom
Posted: 26th Sep 2014 03:57
Quote: "Is there any thing I can do to fix this til I wait for the next version?"


The new version will be going up shortly, but if you want to have a go, the file you need to change is inside the AGK2.app file. Right click it and show contents, browse to "Contents/Resources/share/geany/ios/source/AGK 2 Player.app". Right click that and show contents, double click the Info.plist file and look for the "Icon files" entry, with (4 items), expand it and change "Icon-72.png" to "icon-72.png". You can also change the Default.png files in here, or add some more, and they will get included in your app.
BobH0905
19
Years of Service
User Offline
Joined: 3rd Feb 2005
Location: Portsmouth
Posted: 26th Sep 2014 12:47
Quote: "That's good, I was searching around to see if there was some reason that the AppData folder might not be writable but wasn't having much luck. Your message is still useful as it might help someone with the same problem, that reinstalling seems to have fixed it. "


V2 Alpha 7 running on Windows 7.

Fired up AppGameKit this morning, compiled my program (with no changes), and got the same problem again.

-----------------------------------------
Uncaught exception:
Failed to open file for writing/JoystickOuter.png
------------------------------------------

(Just to be clear, I have no idea what the "JoystickOuter.png" file is, it's not one of mine, or one that I'm knowingly referencing)

Also restarted my PC with no effect, problem still there.
As I've said a day ago, this problem appeared, and then disappeared.
It seems to prove the adage that "problems that go away on their own can come back on their own" (used to be a poster on the programmers' wall where I worked)

Not a problem for me, I can simply go back to 2 Alpha 6, just letting you know again.
This time I really will be waiting for the next release before updating.
I do find it odd that nobody else has reported this. Makes me think that I'm doing something that's initiating it. I'd be inclined to work on the basis that if 100 people report a problem, it's a problem. If 1 person reports it, that person's doing something wrong.
Impetus73
13
Years of Service
User Offline
Joined: 28th Aug 2011
Location: Volda, Norway
Posted: 26th Sep 2014 20:57
I abandoned OS X 10.7.5 and my old mac out in the cold, and got myself a brand new macbook air. Now it all works

----------------
AGK programmer
Did Amiga / AMOS programming in the 90's.

Login to post a reply

Server time is: 2024-11-25 10:28:32
Your offset time is: 2024-11-25 10:28:32