Recent posts by Rainbow_King on Kongregate

Flag Post

Topic: Kongregate APIs / kv_parameters

Does it not put the kv_parameters into the url when a user clicks on the feed box after being posted?

 
Flag Post

Topic: Kongregate APIs / kv_parameters

So for this function

kongregate.services.showFeedPostBox({
content: “Come help defeat the boss!”,
image_uri: “http://your-domain.tld/feed-post-images/really-hard-boss-face.png”,
kv_params: { kv_doug: “Top doug!” }
});

would I access the parameter in a file by using [‘kv_doug’] or [‘doug’] from $_REQUEST?

thank you in advance for the reply

 
Flag Post

Topic: Kongregate APIs / Dynamic Order of Items API

so after talking to some peeps on here i tried instead of

print(json_encode(array(“state” => “completed”)));
return;

I tried

$object0 = array(“state” => “completed”);
print(json_encode(array_values($object)));
return;

and to no avail :(

also tried exit(); instead of return; sighs

 
Flag Post

Topic: Kongregate APIs / Dynamic Order of Items API

hmm…..weird because after the end of making a successful log to the DB i have this line

print(json_encode(array(“state” => “completed”)));
return;

 
Flag Post

Topic: Kongregate APIs / Dynamic Order of Items API

I am logging the data in my database in the API callback URL that I specified when uploading the game only when the (“item_order_placed” == $event) condition is satisfied

 
Flag Post

Topic: Kongregate APIs / Dynamic Order of Items API

Currently with the game I am working on, I make the user purchase or use Kreds to get Ocho (the in-game currency for my game)

I’m using the skeleton giving here
http://cdn1.kongregate.com/assets/files/0000/4388/dynamic-item-flow.zip
for the callback url.

All i did was make items for the $all_items array and added code to give the user Ocho under the commented line:
// Award items to the user here!

The problem I am having is that the Ocho is credited to the user, and the log in my database shows this as well saying the purchase is complete. However, once I’m done with this purchase, I get an email from Kongregrate saying:


You recently purchased the following item in *******:
» MWBS2
We were unable to communicate with the game server in order to deliver you the item in-game, so your account has been automatically refunded with 0 Kreds.
Please feel free to contact us with any questions at kreds@kongregate.com.
--

I’m not quite sure if it’s because I’m not ‘using’ the item via Kongregate’s API or not or something.

Could anybody be so kind to enlighten me possible reasons why this is happening?

btw, I have not published this game yet. Don’t want to publish it if the user can get unlimited Ocho’s for a cost of no Kreds lol