Ultimate Gear War
Join the alien war, prepare your gear and protect your base at all cost!
4.15 / 5.00 16,733 ViewsI added Metals to my game http://www.newgrounds.com/portal/view/612788. but it doesn't seem to be unlocking medals. On the preview page, it shows it being unlocked in the API Output when i call API.unlockMedal(inString). But the icon is still locked when i test it on the actual game. Am I missing a step or something?
Any help would be great.
Have you dragged the medal component onto your stage?
At 3/13/13 06:02 AM, FlyingColours wrote: Have you dragged the medal component onto your stage?
The component is just for display purposes, and shouldn't effect unlocking.
Have your medals been approved? Check the status column on your medals page.
They say un-tested. is there a special procedure to test them?
In the api output i get something along these lines
10 medals initialized.
0 scoreboards initialized.
0 save groups initialized.
Connection complete!
Loading flash ad...
Ad destroyed.
Unlocking medal "Basics"...
At 3/13/13 10:24 AM, Mattster wrote:At 3/13/13 06:02 AM, FlyingColours wrote: Have you dragged the medal component onto your stage?The component is just for display purposes, and shouldn't effect unlocking.
Have your medals been approved? Check the status column on your medals page.
At 3/13/13 06:59 PM, ZeroCreativity1 wrote: They say un-tested. is there a special procedure to test them?
Ah. Try unlocking them on your Project page (NOT the portal page). If that doesn't work, try just unlocking them locally.
Just an afterthought... You didn't publish it in Debug mode did you?
What determines if the flash is in Debug Mode?
At 3/13/13 07:17 PM, Mattster wrote: Just an afterthought... You didn't publish it in Debug mode did you?
At 3/13/13 09:22 PM, ZeroCreativity1 wrote: What determines if the flash is in Debug Mode?
At 3/13/13 07:17 PM, Mattster wrote: Just an afterthought... You didn't publish it in Debug mode did you?
Not the flash, but the API. If you use the connector, there would be a property on the component inspector. If it's done in code, then you'd have a line specifying so (which I assume you don't)
At 3/13/13 09:39 PM, Mattster wrote:At 3/13/13 09:22 PM, ZeroCreativity1 wrote: What determines if the flash is in Debug Mode?Not the flash, but the API. If you use the connector, there would be a property on the component inspector. If it's done in code, then you'd have a line specifying so (which I assume you don't)
At 3/13/13 07:17 PM, Mattster wrote: Just an afterthought... You didn't publish it in Debug mode did you?
i added API.debugMode = API.RELEASE_MODE; to the code. but it doesn't seem to make a difference.
At 3/13/13 09:39 PM, Mattster wrote:At 3/13/13 09:22 PM, ZeroCreativity1 wrote: What determines if the flash is in Debug Mode?Not the flash, but the API. If you use the connector, there would be a property on the component inspector. If it's done in code, then you'd have a line specifying so (which I assume you don't)
At 3/13/13 07:17 PM, Mattster wrote: Just an afterthought... You didn't publish it in Debug mode did you?
well i put i try catch around the unlockmedal function, and i get ReferenceError: Error #1074. when its on the newgrounds server. any ideas?
have you done this step:
Enter your API Entry information into the API Connector parameters.
In Flash CS5 or higher, look in the Properties tab. Enter your API ID and Encryption Key in the available fields. You can find your API entry information in the API Tools section of your project.
Can you post the code you are using to unock them?
At 3/21/13 07:47 AM, Mattster wrote: Can you post the code you are using to unock them?
try
{
API.unlockMedal(inString);
}
catch(e:Error)
{
//Global Textfield added to stage so i can see the error.
Constants.DebugText.text = "ERROR " + e;
}
At 3/21/13 06:19 AM, nitokov wrote: have you done this step:
Enter your API Entry information into the API Connector parameters.
In Flash CS5 or higher, look in the Properties tab. Enter your API ID and Encryption Key in the available fields. You can find your API entry information in the API Tools section of your project.
I've been using api id and encryption key when i call API.connect. It seems to be working for ads, so i don't imagine the problem for medals. I am not using adobe cs for me project though.