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 / BlackBerry via Tier2

Author
Message
polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 16:11
I have tried everything to create some kind of starting template that I can build on for creating Tier2 applications, but I'm having no luck at all. Does anyone have a basic Tier2 template/app that they can post that I can build on? Tier1 is all well and good but I find writing c/c++ code easier than BASIC lol

Thanks...

Blackberry App Development & ZX Spectrum Game Development.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Apr 2012 17:14 Edited at: 26th Apr 2012 18:47
What do you have to do:

1. Delete interpreter.cpp & interpreter.h
2. Inside Core.cpp place this: #include "template.h" instead of this #include "interpreter.h"
3. Do the same to CoreForApp.h
4. Add these


inside


(Basically, somewhere inside template.h, inside app class in public)
5. You're done.


Here's how my template.h looks like:




Here's how my template.cpp looks like:




6. Delete functions:
void AppQuitNow ( void )
void AppGatherData ( DWORD dwhWnd, char* lpCmdLine )
void RuntimError ( const char* pErrorString )

from CoreForApp.h. They're in there for interpreter, which you don't use.

After that, simply edit bar-descriptor.xml for things you need.


And here's stupid error to fix:

Be able to rename your project to something else than AGKProject. (When you rename it to something else, it stops working)

polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 17:34
Thank you kamac, I'll try that, then try to figure out how to rename the project

Thanks again.

Blackberry App Development & ZX Spectrum Game Development.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Apr 2012 17:41
You're welcome

I have figured out that the reason of why you cannot change project name is because "Includes" list has "AGKPlayer/include/agk" which - after renaming - doesn't change to proper project name.

polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 18:26 Edited at: 26th Apr 2012 18:26
Ok, I've followed your instructions, but I am getting errors concerning missing functions.. eg...



etc..

Any idea what I've done wrong? I've probably made a simple mistake, it's been years since I messed about with C++,

Blackberry App Development & ZX Spectrum Game Development.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Apr 2012 18:43 Edited at: 26th Apr 2012 18:47
There are some unuseful functions which you have to delete (From what I remember). Have you got team viewer? I could eventually look into that by using team viewer (One can steer other's computer and another one can observe that)

@EDIT

Delete functions:
void AppQuitNow ( void )
void AppGatherData ( DWORD dwhWnd, char* lpCmdLine )
void RuntimError ( const char* pErrorString )
from CoreForApp.h. They're in there for interpreter, which you don't use.

@EDIT2

Added that to the step-by-step "guide" above.

polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 18:51
It's building fine now,

I commented out those 2 functions and one more
void RuntimError ( const char* pErrorString )


I'm gonna make sure I can send it to my PB now, then I'll take a look at that project renaming problem.

Thanks

Blackberry App Development & ZX Spectrum Game Development.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Apr 2012 19:01
Quote: "I commented out those 2 functions and one more
void RuntimError ( const char* pErrorString )"


It is enlisted too, but after few edits. Possible that you have missed that edit

Quote: "then I'll take a look at that project renaming problem."


If you solve that, share the solution please

Quote: "Thanks"



You're welcome.

polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 21:12
ok, I'm not using the Simulator build, and for some reason it now complains...


I've pointed the linker to the "${workspace_loc:/${ProjName}/libs/sim}" but I'm still getting the above error,

I'll keep trying though, I'm determined lol

Blackberry App Development & ZX Spectrum Game Development.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Apr 2012 21:21
Are you using Playbook's NDK for some special commands (for keyboard manipulation here)?

polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 21:30 Edited at: 26th Apr 2012 21:31
No, I'm not.. I just removed the items you mentioned from the AGKPlayer project, and those are the errors I get. I'll keep digging around and see what I can find out,

EDIT: Did you create a project from scratch or did you edit the AGKPlayer project? I'm editing the AGKPlayer project, although I'm thinking about trying to create a project from scratch.

Blackberry App Development & ZX Spectrum Game Development.
kamac
13
Years of Service
User Offline
Joined: 30th Nov 2010
Location: Poland
Posted: 26th Apr 2012 21:41
Well, I've edited AGKPlayer project and it seems way easier to me.

As you see, QNX + AppGameKit are quite unstable. Everything's because AppGameKit for Playbook was rushed (To be able to enter playbook competition by AppGameKit users).

polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 26th Apr 2012 21:51 Edited at: 26th Apr 2012 22:03
I've just noticed that when I put the "${workspace_loc:/${ProjName}/libs/sim}" into the Libraries, next time I go back to it then it has disappeared, strange...


EDIT: Are you on messenger? It would be easier to get feedback from you,

EDIT 2: As for the problems renaming the project and the build failing, I would expect that all references in the project settings which have AGKPlayer hardcoded changing using ${ProjectName} so that everything is resolved using the current project name..

Blackberry App Development & ZX Spectrum Game Development.
polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 27th Apr 2012 13:07
Ok, now the /libs/sim is staying in the Libraries. Seems it was something to do with Windows file/directory permissions (I'm connecting via RDP to a PC elsewhere in this house).

Still getting those build errors though (mmrenderer, virtualkeyboard etc).

Blackberry App Development & ZX Spectrum Game Development.
polomint
12
Years of Service
User Offline
Joined: 3rd Apr 2012
Location: Lancashire, United Kingdom
Posted: 27th Apr 2012 19:06
I started all over again, lol

Device-Release build works fine (signs the bar etc.)
Simulator build now builds fine, and sends to my PB (I get error 8 when trying to start it on the PB, but I can sort that out I think hehe)

This is how I rename projects, which works perfect for me. Note that I haven't removed all unused AGKPlayer code yet.

1. Right click on the project name and select Rename. Enter the name you want and click OK, let it rename everything. If you try building now you will end up with around 1300 errors heh.
2. Go into the Project Properties and select C/C++ General then GNU C. You will see two items that say /include/agk and include/interpreter. You may not have interpreter,
3. Click on one of them, then press the EDIT button, then click on the WORKSPACE button, and then locate the INCLUDE/AGK folder. Click OK, then APPLY/OK again.
4. The project should now build fine. Works here fine, all I need to do now is follow your instructions on removing the interpreter files again and creating the template files,

Hope it works for you....

Blackberry App Development & ZX Spectrum Game Development.

Login to post a reply

Server time is: 2024-05-04 10:45:36
Your offset time is: 2024-05-04 10:45:36