Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Budaniel

Pages: 1
Ask a Question / Re: Error when compiling for Android
« on: January 13, 2015, 07:28:33 am »
I am having the same issue.  I have tried several different games (including one with just a blank colored stage, to make it as easy as possible on both Stencyl and the device), each on several different phones. I have reinstalled the Android kit multiple times, as well, and I'm still getting errors like:
Code: [Select]
[LOG] 3097 KB/s (17695804 bytes in 5.579s)
[LOG] Running command: RUN
[LOG]  - Changing directory: C:\Users\***\AppData\Roaming\Stencyl\stencylworks\android-sdk/android-sdk-windows//platform-tools/
[LOG]  - Running command: adb.exe shell am start -a android.intent.action.MAIN -n com.aaghgames.chickenboom/com.aaghgames.chickenboom.MainActivity
[LOG] Starting: Intent { act=android.intent.action.MAIN cmp=com.aaghgames.chickenboom/.MainActivity }
[LOG] Error type 3
[LOG] Error: Activity class {com.aaghgames.chickenboom/com.aaghgames.chickenboom.MainActivity} does not exist.

What really ticks me off is that it used to work. I have no idea what broke it, but I'm getting pretty frustrated.

Resolved Questions / Re: Can't POST Text Global Variables?
« on: December 20, 2014, 10:57:52 pm »
I did that, and it echoed the same thing, that everything but the n variable was reaching it.

Interestingly, I just did a check of the name variable, printing out each symbol it was getting via the text input, and apparently one problem I had was that I was getting shift key codes into the name, identifiable by blank spaces when I would hit the shift key. They don't show in the final variable, but I think that may have been an issue, because I eliminated receiving those, and that seems to have helped. That, along with using the 'eliminate blank spaces" and "as text" modifiers, and the n variable seems to be going though finally. Thereby it looks like it was an text input issue - which explains why the default value would send.

As for changing the values to static in script.hx, it broke the POST block in every scene (though it didn't seem to error global block anymore). I've since changed it back, but no, that didn't work. It would be nice if that was addable as an extension, since it seems like it would work if I could make another block to go along with the default one,  but that's another problem for another person on another day.

Thanks for the help!  :)

Resolved Questions / Re: Can't POST Text Global Variables?
« on: December 20, 2014, 05:31:01 pm »
I'm beginning to think I'm out of luck here lol. Here's what the code looks like now.
Code: [Select]
        /* ======================== When Creating ========================= */
        _Send = (("" + "n=") + ("" + (("" + (("" + (("" + getGameAttribute("playerName")) + ("" + (("" + "&e=") + ("" + "Testing"))))) + ("" + "&s="))) + ("" + getGameAttribute("total_score")))));
        propertyChanged("_Send", _Send);
        trace("" + _Send);
        postToURL("", _Send, function(event:Event):Void
Here's what it outputs.
Code: [Select]
[LOG] [Flash] scripts.SceneEvents_13#init(96): n=Newbie&e=Testing&s=0And yet, the 'n' variable doesn't submit while everything else does. My problem - I'm starting to assume - is  either in my php or sql parts, which I am really not good with and am learning about as I go.

Resolved Questions / Re: Can't POST Text Global Variables?
« on: December 20, 2014, 04:58:56 pm »
Odd that it doesn't work. Could you hit ctrl+j for a preview of the code and paste what's there? It would be easier to see what exactly is happening.

As for the global custom block, the POST data function doesn't seem to be static. I glanced at the code and don't really see why it shouldn't be, so if you open it and make the change it might work.

[stencyl install]/plaf/haxe/lib/stencyl/1,00/com/stencyl/behavior/Script.hx
Around line 3575 you can find the web services functions. Just change the 5 of them to static and see if it works.
public/private function -> public/private static function

Here's a snippet of the code.  The getGameAttribute("total_score") - which is  a number - sends fine.
Code: [Select]

/* ======================== When Creating ========================= */
postToURL("", (("" + "n=") + ("" + (("" + (("" + (("" + getGameAttribute("playerName")) + ("" + (("" + "&e=") + ("" + "Testing"))))) + ("" + "&s="))) + ("" + getGameAttribute("total_score"))))), function(event:Event):Void
I might try the function change if I can't get this to work, but I'd rather not monkey with Stencyl's settings if I don't have to.

Resolved Questions / Can't POST Text Global Variables?
« on: December 20, 2014, 03:59:17 pm »
I'm struggling with setting up a custom scoreboard/analytics system for my games. My issue is that I can't submit text-filled global variables, while number filled ones post fine. I'm currently submitting to a php page that stores the data in an SQL database and for an earlier game I did it works fine since I didn't need any text. For my new game I want to use user names, but if I change my global variable for the player name from its default setting at any point it shows up blank.

The weirdest part is that if I don't change it it sends the default string that I set just fine, but even changing it to the same exact word (I default user names to all caps, but I have also tried all lower case and not changing it at all), it shows up blank along side all the other data, which does go through. When I type text directly in the POST block it also sends fine, but that precludes using player-entered usernames.

Also, I can't use POST at all inside of a global custom block without getting unknown identifier compile errors. Is that normal?

I included an example of what I'm trying, as well as my global custom block that doesn't work. Any help would be appreciated.

Ludum Dare 30 / Re: Ludum Dare 30 - Are you in?
« on: August 08, 2014, 12:14:34 pm »
I'm going to give it a shot.   :) I like challenges like this and am looking forward to seeing what I can create. This would be my first try; any tips or things I should know?

Pages: 1