lorinbeer's Forum Posts

  • I'm testing on a HTC Thunderbolt running 2.3.4

    I have these white bars, normal?

    <img src="http://www.edfarias.com/pentest.jpg" border="0" />

    no, the white bars aren't normal :)

    they don't appear on mine using the same project, could be more layout/android bs from eclipse

    do they appear as you run pender, or just when you take a pic?

  • 1. A unique thing about Pender is that it supports a DOM-less javascript environment. No html or css. So all render code has to go in it's own file

    1.A the Pender-Cordova Plugin allows crosstalk between the Pender runtime and Cordova

    1.B you may need to refactor your code slightly so all the canvas calls are in their own file, you can then send javascript messages to the renderer javascript from the cordova javascript

    1.C check out the Pender.java file, that's the main entrypoint for the framework. You'll see in the constructor that it refences assets to load into the javascript framework

    1.D check out assets/client/penderdemo.js to see the implementation of the demo. Note that all of the texture map image processing takes place on the javascript side, just like it would in a desktop html5 project. Note that this does not preclude Pender from providing helper functions in the future, which would be optimized and natively implemented

    2. yessir! I wrote a Canvas Renderer for iOS, and I need to tie it in with the iOS Pender proof of concept here

    github.com/lorinbeer/Pender-iOS-POC

    3. no, you da man! Thanks for sticking it out!

  • ok dude, easy fix!

    the android project specifies your main activity as arcaded, but that's not present in your project.

    rename src/com/arcaded/PenderActivity.java to src/com/arcaded/arcaded.java

    then change the Activity Class name to match

    public class PenderActivity extends Activity

    to

    public class arcaded extends Activity

    that got the project working! Remember to disconnect the debbuger or unplug the phone from the machine once it's running, and behold 50 sprites rendering at 30fps, each with it's own texture bind event (equivalent to 50 unique sprites!)

    -- edit --

    lol, missed your fix before posting, good work mate! How's it look? What device are you running it on?

  • Yeah, the stack trace seems to indicate that it can't load your main activity, which doesn't have anything to do with Pender perse. It's claiming it can't find your main activity class in the package it compiles from your main activity class <img src="smileys/smiley17.gif" border="0" align="middle" />. Gotta love Eclipse.

    can you zip up your whole project folder and send it to me? If I can see the code, I can probably sort this out in under 30 seconds,<swordfishref> with John Travolta pointing a gun at my head and yelling at me to hack </swordfishref>

  • what does the log say when the app boots up?

    do this:

    adb logcat

    that will bring up the log, and show you a stacktrace of the error

  • ok, no worries, I see the problem in project.properties, we can fix it easy

    simple problem: the android library reference has to be given as a relative offset from the root of your project,

    so instead of

    android update project --path <projectpath> --library <librarypath>

    it should be

    update project --path <projectpath> --library <offset/path/to/library/from/project/root>

    in your case, that's:

    android update project --path arcaded --library ../PenderAndroidLibrary

  • ok, I need to see what's in a few files, can you skype?

    files I need a peak at are

    libraryproject/com/pender/Pender.java

    and the project.properties files

    yeah, I should crash too. Given that the AndroidLibrary is throwing no errors, I think you did everything fine. This is an eclipse bs thing, it's not seeing the LibraryProject in the workspace.

    There's a couple of things we can try, should only take a few minutes

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • try f5 or right clicking on the workspace navigator and choosing "refresh"

    if that doesn't work, try deleting the project and library from eclipse and re-importing them. Just make sure "delete off of filesystem" is unchecked

  • AH! we forgot a step!

    go back to cygwin, we need to update the example project with the library project

    run: android update project --path <path> --library <libloc>

    where "<path>" is path to example (arcaded) and "<libloc>" is path to the library

    --edit-- whereby "we", we mean "I"

    --edit 2-- Eclipse won't properly compile and include the library project unless it is in the workspace, so we need to import it as well. It will also allow us to properly debug Pender if a problem occurs in the Library, which is likely as the Client project includes almost no native code

  • build the project, the library will automatically build, what errors are showing up in your project?

  • Scratch that, just gonna go with eclipse. So I imported both folders, now what?

    Click on the example project, connect your device click on run or debug, and let it run!

    Make sure the debugger is disconnected, or just unplug your phone when it starts. The debugger will slow down the app by an order of magnitude.

  • OK, importing as existing project doesn't work. I choose the directory (Either one) and it doesn't give me the option to import. I can do import existing android code though.

    yeah, that's the one. Existing project looks for an Eclipse project, which hasn't been created yet. Import android code is the option we want

  • oh, one thing I should mention:

    there is an irritating issue that took a long time to solve: specify a min-sdk version in the manifest. Otherwise, the onSurfaceChanged function in the renderer misreports the device screen size, and you get smaller canvas. Pender handles this gracefully (no crash, no error) but it won't do the demo justice :)

    --edit-- ok, no ant. It must be *somewhere* on your system, as that's what the Eclipse Android SDK plugin uses as a backend, but let's not worry about that. Just go "file->import" and choose import existing Android project. Import both the ExampleProject and the PenderLibraryProject

    --edit 2--

    for the manifest, open AndroidManifest.xml, and right under the top Manifest tag, put:

        <uses-sdk android:minSdkVersion="8" />

    that'll prevent the canvas shrinkage issue :)

  • Ok, I'm up to the build part. I've done everything in the past in Eclipse, what would be the command to build?

    Or should I just use eclipse?

    Step 11: run ant build

    Step 12: adb install bin/yourapkfile.apk

    running in eclipse is fine, I have to resort to it to debug :)

    Just be warned, eclipse will give you a bunch of bullsh*t errors which aren't actually errors.

    command line is quick, try it out, but open up eclipse and "file->import" the example and library project anyway.

    That way you can step through the code on the native side, if you like.

  • I do, I'm on the final few steps and I'll give it a whirl

    woot!