Bennu Game Development

English Forums => Platforms => Android => Topic started by: tmoney on August 06, 2013, 10:50:10 PM

Title: help with android
Post by: tmoney on August 06, 2013, 10:50:10 PM
Could someone please help out an android novice? i've never done anything with an android device before, and i'm hoping to port my game to the ouya, but i don't really know what i'm doing. i've been trying to use the packager by josebita, but i'm running into a problem and i don't know how fix it.

when i try to package my game, i'm getting this message:

Traceback (most recent call last):
  File "packager.py", line 286, in package
UnboundLocalError: local variable 'admobjar' referenced before assignment

does anyone know what i'm doing wrong? i assume i haven't set up the packager right, could someone list the steps i need to take to set it up properly?

thanks
Title: Re:help with android
Post by: FreeYourMind on August 07, 2013, 04:14:04 AM
we have a similar english post, search the last posts by Black Curtain Studio
Title: Re:help with android
Post by: tmoney on August 07, 2013, 09:48:43 PM
hmm, his problem does look similar to mine, but unfortunately, his solution doesn't solve my problem. i guess i will wait until josabita updates the packager and see how it works then. thanks
Title: Re:help with android
Post by: BlackCurtain on August 09, 2013, 04:16:31 PM
Quote from: tmoney on August 07, 2013, 09:48:43 PM
hmm, his problem does look similar to mine, but unfortunately, his solution doesn't solve my problem. i guess i will wait until josabita updates the packager and see how it works then. thanks
You have to run the packager from the jar file and then check the admob checkbox and input some random user ID in the field (if you don't actually have a real one). That worked for me. Though I haven't actually gotten the game to run on a OUYA yet, I still get errors that I cannot fix on my side. Still waiting on the new version to be fixed.
Title: Re:help with android
Post by: tmoney on August 10, 2013, 12:20:31 AM
i'm not familiar with jar files, could you be more specific? what is the file called? also, i just realized that the packager file i downloaded has "win32" in the title:
[size=140%]BennuGD_Packager-win32_20130505.7z (https://bennugd-packager.googlecode.com/files/BennuGD_Packager-win32_20130505.7z)[/size] 

is there a 64bit version somewhere? i can't find one.
Title: Re:help with android
Post by: tmoney on August 27, 2013, 03:33:33 AM
ok, thanks to josabita for posting the new update of the packager, i've managed to successfully get a program up and running on the ouya. but when any button on the controller is pressed, the program exits. I'm guessing it's crashing, but I'm not sure why. i started very simple, here is the entire program:


#ifdef __VERSION__
import "mod_text"
import "mod_string"
import "mod_key"
import "mod_screen"
import "mod_proc"
import "mod_video"
#endif

GLOBAL


BEGIN
   
    write(0,100,100,0,"hello world");
    set_mode(1920,1080);
    LOOP

        FRAME;
    END
END


anyone know why it's exiting the program?
Title: Re:help with android
Post by: FreeYourMind on August 27, 2013, 04:33:53 AM
remove set mode
Title: Re:help with android
Post by: tmoney on August 27, 2013, 12:19:38 PM
hmm... still exits when any button is pushed, it must be something i'm doing wrong outside the code i guess. i also noticed if i import mod_joy it crashes immediately.