Bennu Game Development

English Forums => Projects => Topic started by: josebita on August 25, 2012, 09:19:37 PM

Title: BennuGD Packager
Post by: josebita on August 25, 2012, 09:19:37 PM
I'm releasing a preview version of my BennuGD Packager.
Right now the idea is that it should allow you to package your games for Android easily although it doesn't -yet- allow you to do much more than the basic. Still, I believe that it includes a few useful features:


Hope it's useful:
http://bennugd-mobile.blogspot.com/2012/08/man-on-moon-packager-release.html
Title: Re:BennuGD Packager
Post by: josebita on August 29, 2012, 11:58:09 PM
In case it's of interest to anybody, I'm releasing updated binaries for Android with scaling fixed and scaling support in mod_multi (until now when using scaling the coordinates returned by mod_multi were wrong). Download them here:
https://www.dropbox.com/s/wxhf1wd4bp01p8x/bennugd_android_20120830.tar.bz2

And replace the contents of the templates/android/libs folder with those in this package.
Title: Re:BennuGD Packager
Post by: handsource-dyko on August 30, 2012, 07:10:52 AM
So, I have finally installed the android sdk on my mom's computer (a lot of packages need to be installed by googles sdk manager) and created two emulators. I looks pretty nice, but the emulators seem very slow. What do you recommend? Using a virtual device with an intel cpu?
Also, I noticed that the keyboard on the emulator window doesn't fully work. B.t.w I ordered a usb on the go adapter, and from what I've seen on youtube it looks like you can use a usb keyboard out of the box!  :)   
Title: Re:BennuGD Packager
Post by: josebita on August 30, 2012, 08:02:51 AM
Quote from: handsource-dyko on August 30, 2012, 07:10:52 AM
So, I have finally installed the android sdk on my mom's computer (a lot of packages need to be installed by googles sdk manager) and created two emulators. I looks pretty nice, but the emulators seem very slow. What do you recommend? Using a virtual device with an intel cpu?
Also, I noticed that the keyboard on the emulator window doesn't fully work. B.t.w I ordered a usb on the go adapter, and from what I've seen on youtube it looks like you can use a usb keyboard out of the box!  :)   
OS?

PS: You don't really need ALL the packages the SDK Manager offers you, just the ones you're interested in :)
Title: Re:BennuGD Packager
Post by: handsource-dyko on August 30, 2012, 09:51:19 AM
Windows 7 64 bit. I installed it on my mom's pc because it's faster (core I3) mine is a pentium 4 with XP sp3.
Title: Re:BennuGD Packager
Post by: josebita on August 30, 2012, 10:15:59 AM
Quote from: handsource-dyko on August 30, 2012, 09:51:19 AM
Windows 7 64 bit. I installed it on my mom's pc because it's faster (core I3) mine is a pentium 4 with XP sp3.
Ok. The binaries I posted support x86 for situations like this.
Be sure to install and set up the "Intel Hardware Accelerated Execution Manager" from the SDK manager. You can find installation instructions here:
http://developer.android.com/tools/devices/emulator.html (http://developer.android.com/tools/devices/emulator.html)
Section "Configuring VM Acceleration on Windows".
Then download (if you haven't done so yet) an Android 4.0.3* Intel Atom x86 image and create an AVD for that. In the AVD options, "Hardware" section, add a field for "GPU emulation" and set it to "yes". Also, add keyboard support there.

That AVD should run pretty fast.

* x86 images for 4.1 don't seem to be available yet.
Title: Re:BennuGD Packager
Post by: josebita on November 18, 2012, 11:03:59 PM
I've updated the win32 build of the packager, in case it's useful to anybody.
You can get it from here:
http://code.google.com/p/bennugd-monolithic/downloads/detail?name=BennuGD_Packager-win32_20121118.7z
Title: Re:BennuGD Packager
Post by: josebita on December 13, 2012, 11:44:46 PM
I've updated the PPA version and now you can add AdMob ads to your games. Right now support is limited but it's working.
You should have packages available for Ubuntu Precise and Quantal in my PPA.

You can expect win32 binaries tomorrow.
Title: Re:BennuGD Packager
Post by: josebita on December 14, 2012, 08:04:49 PM
Updated windows binaries are here:
http://code.google.com/p/bennugd-monolithic/downloads/detail?name=BennuGD_Packager-win32_20121214.7z

You now need the android-13 SDK as that's what the AdMob SDK requires.
Title: Re:BennuGD Packager
Post by: josebita on December 29, 2012, 05:40:15 PM
Windows packager binaries updated. There's some bugfixing and compatibility with the latest official BennuGD release (after Splinter added the CD->CHDIR alias). There's some more stuff in the mix, but I'll comment when it's finished.

https://code.google.com/p/bennugd-monolithic/downloads/detail?name=BennuGD_Packager-win32_20121229.7z
Title: Re:BennuGD Packager
Post by: josebita on May 05, 2013, 12:44:16 AM
Uploaded new version of the Packager for Ubuntu to my PPA, some changes:
* Added support for XHDPI icons
* Check that "main.dcb" is present in the given directory, don't assume it. If it's not present, refuse to accept the directory.
* Try to find the AdMob Ads SDK Jar, don't just assume it's the same version as mine (future-proof the packager a bit for those of you where the packager was failing because you had a more recent version of the SDK than expected).
* Only try to find the AdMob Ads SDK if you actually asked for AdMob Ads
* (Possible) Adreno GPU fix

I'm gonna create an updated version of the packager for windows, JDK and all, wish me luck.

[Edit] Binary version for Windows available here:
https://code.google.com/p/bennugd-packager/ (https://code.google.com/p/bennugd-packager/) (Please note that the packager has moved from its previous location to a new project page separate from bennugd-monolithic)

It includes binaries for ANT and Java JDK for windows but not the Android SDK because of licensing issues. You shouldn't need to install the JDK separately anymore, just run the included BAT file.
If you have any doubts, please have a look here:
https://code.google.com/p/bennugd-packager/wiki/WinSettingUpPackager (https://code.google.com/p/bennugd-packager/wiki/WinSettingUpPackager)
And then ask any remaining questions here.

Let me know if this works at all for you.
Title: Re:BennuGD Packager
Post by: josebita on August 26, 2013, 02:38:22 PM
I have updated the packager to support earlier versions of Android (2.3 seems to be working, now).
https://code.google.com/p/bennugd-packager/downloads/detail?name=packager-win32-20130826.7z (https://code.google.com/p/bennugd-packager/downloads/detail?name=packager-win32-20130826.7z)

Remember to unpack it to a path without spaces and run the included ".bat" file. You'll still need to install the Android SDK separately.

The BennuGD port is not newer than the one found in the previous build. If you want to use the latest code, you must compile my code manually.
Title: Re:BennuGD Packager
Post by: BlackCurtain on August 27, 2013, 09:33:26 PM
Is this new update working for OUYA as well?
Title: Re:BennuGD Packager
Post by: josebita on August 28, 2013, 08:35:52 AM
Quote from: BlackCurtain on August 27, 2013, 09:33:26 PM
Is this new update working for OUYA as well?
Nope.*

The code for OUYA has some small issues. If you want to create things for OUYA you have to directly compile the source code:
https://code.google.com/p/bennugd-monolithic/source/browse/#svn%2Fbranches%2Fmy_monolithic (https://code.google.com/p/bennugd-monolithic/source/browse/#svn%2Fbranches%2Fmy_monolithic)


* The code does work, but joystick support is not there and pressing any button in the controllers will make your app quit.
Title: Re:BennuGD Packager
Post by: BlackCurtain on August 28, 2013, 11:01:03 AM
I see. Will you be continuing working on OUYA support later?
Seems pointless for me trying to compile it myself if controller input doesn't work.
Thanks for the update!
Title: Re:BennuGD Packager
Post by: josebita on August 29, 2013, 01:29:53 PM
Quote from: BlackCurtain on August 28, 2013, 11:01:03 AM
I see. Will you be continuing working on OUYA support later?
Seems pointless for me trying to compile it myself if controller input doesn't work.
Thanks for the update!
Yes, I've got some -unreleased yet- code that is working beautifully in the Ouya.
It's got joysticks and GPU scaling.

As I said, it's unfinished yet but as soon as it's working fine I'll release the code.
Title: Re:BennuGD Packager
Post by: tmoney on August 29, 2013, 10:19:13 PM
excellent  ;D
Title: Re:BennuGD Packager
Post by: cmunoz on May 14, 2014, 11:53:55 PM
Awesome, I finally got past all the confusion about java paths!
Now I can see my app on the phone!
Well, mostly. Images from the fpg are not there, and sound is missing too. Also, touching the screen doesn't work. What am I missing?
Title: Re:BennuGD Packager
Post by: cmunoz on May 20, 2014, 01:47:08 AM

UPDATE:Ok I was able to figure out the touch thing using mod_multi. So now the touch works!
But no sound or images. I tried pulling in loose png files, in case the fpg was causing the problem, but no success there either.
I also read somewhere that using more than one sound could cause the sounds to crash, but I couldn't even get one sound working. Any advice? I'll update if I can figure anything out....
Title: Re:BennuGD Packager
Post by: josebita on May 20, 2014, 02:24:12 PM
Please, make sure that your FPG files are not compressed. Compressed FPG files are not supported.

Also, please user Pixel's Pixplantilla, which includes a much newer version of BennuGD for Android which works much better.

Kind regards,

http://www.pixjuegos.com/descargas/pixplantilla.rar
Title: Re:BennuGD Packager
Post by: cmunoz on May 21, 2014, 01:27:42 AM
Thank you so much, I can't wait to try it out! We are living in exciting times!
Title: Re:BennuGD Packager
Post by: cmunoz on May 21, 2014, 07:46:48 PM

Hello, sorry to bother everyone again. I'm just really trying to figure this out. If there's a better place to ask about this, or if anyone knows some documentation to point me to, I would appreciate it very much.

I couldn't find much advice on how to use plantilla, except for this:
http://www.bennugd.fr/index.php?mod=forum&ac=voir&id=512\

I didn't understand what to do about the keystore, but I tried it anyway.
I tried following the instructions, but I think I'm missing something.


compilar.bat ran my program in bgdi
exportar-android.bat ran a command window and then opened up a temp folder with nothing in it.
The window mentioned a missing file: *release.apk
I'm not sure if that's important. I tried creating that file manually and putting it in a few different locations but the compiler never picked it up.
Here's the entire window message:



Compilando ...
BGDC 1.0.0 (Dec 9 2012 03:53:41)
Bennu Game Development Compiler

Copyright ⌐ 2006-2012 SplinterGU (Fenix/BennuGD)
Copyright ⌐ 2002-2006 Team Fenix ​​(Fenix)
Copyright ⌐ 1999-2002 JosΘ Luis Cebrißn his page and ⁿ (Fenix)


File plantilla.dcb compiled (69282 bytes):

  Processes                    13
  Global data                 360 bytes
  Local data                  220 bytes
  Private data                 48 bytes
  Public data                   0 bytes
  Code                      11300 bytes
  System processes            240
  Globals vars 45
  Local vars 28
  Private vars 12
  Publics vars 0
  Identifiers                 682
  Structs                       6
  Strings                      41 (402 bytes)

        1 file(s) moved.
CREANDO FPGS...
-Fnt1-
-Template-

gzip: moneygfx.fpg.gz: not in gzip format
Exporting ...
Copying base Bennu-android ...
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
Creating folders ...
Copying resources from android ...
The system cannot find the path specified.
        0 file(s) copied.
The system cannot find the path specified.
        0 file(s) copied.
The system cannot find the path specified.
        0 file(s) copied.
The system cannot find the path specified.
        0 file(s) copied.
The system cannot find the path specified.
        0 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
'xcopy' is not recognized as an internal or external command,
operable program or batch file.
Copying the game ...
The system cannot find the file specified.
fpg\fnt1.fpg
fpg\moneygfx.fpg
FPG \ plantilla.fpg
        3 file(s) copied.
ogg\*.ogg
The system cannot find the file specified.
        0 file(s) copied.
wav\1_r.wav
wav\1_r_old.wav
wav\2_l.wav
wav\3_l.wav
wav\4_r.wav
wav\5_l.wav
wav\6_r.wav
wav\7_l.wav
wav\intro.wav
        9 file(s) copied.
        1 file(s) copied.
Exported correctly. Now instalarß in ≤ m vil ...
'cmd' is not recognized as an internal or external command,
operable program or batch file.
'cmd' is not recognized as an internal or external command,
operable program or batch file.
The system cannot find the path specified.
*release.apk
The system cannot find the file specified.
        0 file(s) copied.
'taskkill' is not recognized as an internal or external command,
operable program or batch file.
Press any key to continue . . .
Title: Re:BennuGD Packager
Post by: Odif on May 21, 2014, 09:22:28 PM
Check the "export/bin" folder in your game folder, there you should find  the file "yourgame"-debug.apk, which you can then copy to your android device/emulator and try it!  ;)
That "temp" one always comes up empty, as far as I know. Just ignore it.
Title: Re:BennuGD Packager
Post by: cmunoz on May 24, 2014, 09:20:30 PM
Hmm, thanks for the tip. I couldn't find the folder or file you referred to. Is it in the pixplantilla folder?
Title: Re:BennuGD Packager
Post by: handsource-dyko on May 26, 2014, 06:54:31 AM
Strange that you get an error message with xcopy. What windows version are you using?
Title: Re:BennuGD Packager
Post by: cmunoz on June 03, 2014, 03:09:45 AM
Hello, sorry for the slow reply =)
I'm on Windows 7 - 64 bit.