Posted: 19th Aug 2011 21:03
Here is one bug.

All functions have to be on the same page. I have 3 pages. 1 is the main, another is the functions, and another is the setup.

I had a command to use a function but it didn't work until I moved it to the same page.


Cheers.
EDIT:
I found out that you have to use the "#include" command to get it to work with multiple pages.
Posted: 19th Aug 2011 22:55
Installer on Mac sets the "App Game Kit" access rights only for one user, other than the one you're logged in.

My Mac has two users (let's say UserA and UserB) , and both part of the Admin group.

When I did the installation I was logged as UserA. I had no problems during the installation itself, but when I tried to open the "App Game Kit" directory under /Applications I couldn't.

Checking the folder access rights, I saw that only UserB had full access to it, but userA hasn't none. The only way was to manually chance the access rights on that directory.

I hope it helps.

Paulo

Hehe, this is my first post without having to wait for moderator approval
Posted: 20th Aug 2011 0:04
While trying to run app on Windows Server 2003 Standard, i get these error messages


Are the servers using a 32bit color desktop?
Posted: 20th Aug 2011 5:16
I believe so. I forgot to mention though, I'm using RDP and I'm in a remote desktop session, that might cause odd behaviors...
Posted: 20th Aug 2011 5:29
Yes. Yes it would.
Posted: 20th Aug 2011 7:10
Still it would kind of suck if there is no way to make it work. I have a whole rented out rack at a datacenter with a pretty beefy server cluster to run server apps for my games...needless to say its all headless, so there is no other to way to run anything.
Posted: 20th Aug 2011 15:53
I'm reading in data into an array. AppGameKit is quicker than DBPro, but not as quick as load array. Anyway, here's the bug...

DBPro code

+ Code Snippet
dim Info(10) as string

open to read 1, "data.txt"

print
print "  DBPro test"
print ""
for L = 1 to 10
    read string 1,Info(L)
    print "  Line " ; str$(L) ; " is " ; len(Info(L)); " characters"
next L

close file 1
wait key


and AppGameKit code, exact same data file.

+ Code Snippet
Dim Info[10] as String
Print("")
Print( "  AGK test")
Print("")

OpenToRead( 1, "data.txt" )
    For Line = 1 to 10
        Info[Line] = ReadLine( 1 )
        Print( "  Line " + str( Line ) + " is " + str( len( Info[Line] ) ) + " characters")
    next Line
CloseFile( 1 )

sync( )

do
loop


and here's the output...



What happened at line 4? Seems to have picked up an empty line and bumped the rest down one.

EDIT: Oh, and if I use ReadString instead of ReadLine in AppGameKit, I get the whole file in the first array element, and nothing in the rest, but no EOF error at all.
Posted: 20th Aug 2011 18:42
I'm using RDP and I'm in a remote desktop session


I would say that is probably the cause. I once tried running a DirectX app through a remote desktop connection and it claimed the GPU was not DirectX compatible, even though the server had a very modern card.

In the end I had to use RealVNC and manage the server that way. You will need something that logs into a real account rather than a remote desktop connection account.

What happened at line 4? Seems to have picked up an empty line and bumped the rest down one.


Without seeing the file it is loading I can only guess that there is a double new line character where there is only meant to be one, thereby creating an empty line.
Posted: 20th Aug 2011 19:33
Without seeing the file it is loading I can only guess that there is a double new line character where there is only meant to be one, thereby creating an empty line.


I will examine the file closely. The problem doesn't show up in DBPro, reading the same data file, but I guess if it was a bug, it would show up on every line, just not between 3 and 4.

Thanks.

EDIT: I didn't find any extra CR/LF on the line in question, my workaround is to not add the string to the array if it has no characters.
Posted: 21st Aug 2011 0:11
Playing around with the AppGameKit today, I found that the Percentage Display will leave a Black border around the right and bottom where as the the virtual one will not.
Here is the example with the border. This used Percentage. To get 16 blocks I took 100/16 to get 6.25 for the width and -1 for the height

Here is the one without the border. The size of the blocks are 20x20 to get 320/16 and 480/24
Posted: 21st Aug 2011 6:13
I have an IDE bug which builds on what baxslash said. Remstart and remend don't work but /* and */ do...in a sense. The /* and */ act as remstart and remend but the compiler doesn't understand it. When this gets fixed would it be possible to keep /* and */ because I like to use those for comments.
Posted: 21st Aug 2011 20:12
found a small bug when music changes or loops there is a small pause in the app , prolly where it gets reloaded or the codec makes it pause.

chunks
Posted: 21st Aug 2011 20:32
Tier 2.

On iOS if i use agk::SetParticlesDirection with both x and y values, and agk::SetParticlesAngle the particle sprites are drawn rotated according to the above parameters.

On Windows there is no rotation, the sprites are drawn just like the image.
Posted: 21st Aug 2011 20:50
particle emitter bug:
Posted: 22nd Aug 2011 1:36
@chunks chunks: I noticed that also, hope we can have a sound loop without pause.
Posted: 22nd Aug 2011 6:05
I'm not sure if I'm doing something wrong, but I tried to use the scan codes in Basic, but the are not defined. For example:

key=GetRawKeyState(AGK_KEY_RIGHT)

doesn't work. USing the actual code 39 works perfectly.

I thought the AGK_KEY_RIGHT was some sort of constant pre declared.

Is it right?

Thanks
Posted: 22nd Aug 2011 12:52
GetFileExists() is crashing when it returns false.

*edit* It just crashes when called regardless of whether it returns true or not.
Posted: 22nd Aug 2011 14:37
I have the following line in my program
if GetVirtualButtonState( 1 ) = 1 then pAngle = pAngle - 2

This works perfectly.
However, as soon as I put a comment at the end of the line, it throws up an error message
IF THEN ELSE construct does not allow colon separators at line 31


Just thought I'd let people know
Posted: 22nd Aug 2011 17:33
@ nickydude Mabey its just a windows thing with mp3s , ive been using another sdk for ios dev and mp3s play and loop fine so hopefully when its on the devices it will not pause .

chunks
Posted: 22nd Aug 2011 18:14
I haven't noticed a pause when music loops on my project. The tune only lasts 50 seconds or so so loops quite a lot. I use an MP3 file. I have noticed a jitter in my scroll which is annoying at times. I have already mentioned this in another post and a dev confirmed this is the case.

Although the mp3 does fade out at the end, so if it is a noticeable gap in just
the sound play back, I wouldn't have noticed it.