@stan
You need help with code side, openfeint side, or both [import]uid: 7911 topic_id: 2645 reply_id: 11909[/import]
Well a little of both. I got on the OpenFeint site and got a product key and product secret. Not sure if I need to create a new template under invites or anything else? Then the code. Do I add it all into the main.lua? or do I need to call .lua files? Thanks for the response!!
Stan- [import]uid: 10062 topic_id: 2645 reply_id: 11910[/import]
Openfeint site
Setup leaderboard and get id number for leaderboard
Setup achievements and get id number for each
Setup iPurchase
App side
In main.lua
require OF at top of code
init OF after you hide status bar
then what I did was at end of game if you got hi score it was sent to OF
And during game if certain things were done you got an achievement
Soyy for the shorthand I’m driving [import]uid: 7911 topic_id: 2645 reply_id: 11919[/import]
Cool thanks. I’ll give it a try. No need to replay while driving! [import]uid: 10062 topic_id: 2645 reply_id: 11920[/import]
Email me and I’ll send you my code to look at when I get home
(jstrahan73 at me dot com) [import]uid: 7911 topic_id: 2645 reply_id: 11921[/import]
I was replying at red lights that’s what took so long
My wife won’t let me on phone while driving lol [import]uid: 7911 topic_id: 2645 reply_id: 11923[/import]
Sounds good. Whats your email? Mine is stanimation@me.com Thanks! Drive safely!! [import]uid: 10062 topic_id: 2645 reply_id: 11924[/import]
Gregh - I may recall the name, although if you weren’t active perhaps just from seeing you signed in. Glad to see you here either way; indeed the idea of in App purchases is thrilling to say the least.
Corona is a truly magical program and the support is great; both from the community and from the staff - communication is also fantastic, which is something that sadly was severely lacking at GS.
Now, as to the talk on OpenFeint, I just finished part 1 of a tutorial I’m putting together for someone else here who requested it; part 2 will involve achievements and highscores and will be up in a few days, but part 1 does cover how to get it all set up, do the initial launch and then add a button to open the dashboard again.
http://techority.com/2010/11/24/adding-openfeint-to-your-iphone-app-part-1/
I’m not sure how useful it will be, but hopefully it helps some people [import]uid: 10144 topic_id: 2645 reply_id: 11956[/import]
NIce Peachpellen! For sure this will help me. And I’m sure many others too. Very kind and generous for you to share!
Stan- [import]uid: 10062 topic_id: 2645 reply_id: 11989[/import]
@Stan
I didn’t get home till late last night and as always Att wireless turned my Internet off cause of the 5 gb limit so I have to transfer the files to my phone then email to you from phone
I’ll be home earlier today so I’ll get that sent to you later [import]uid: 7911 topic_id: 2645 reply_id: 11990[/import]
Thanks Jstahan. No rush for sure. really appreciate the help! [import]uid: 10062 topic_id: 2645 reply_id: 11992[/import]
Seems to work? I’ll have to wait to get on my home computer and build for device to see if it works. I have 1 question. Why the “Icon.png”? I just created a generic file for this as it would not work without it. But still i’m not sure whats happening here.
Thanks again
stan- [import]uid: 10062 topic_id: 2645 reply_id: 11998[/import]
Hey, sorry - I haven’t been online since that post
The Icon.png is file is how it tells whether you are on your iPhone or your computer running the simulator; it isn’t something I invented, heh, it’s in a few “proper” tutorials ^-^; It’s very useful. [import]uid: 10144 topic_id: 2645 reply_id: 12051[/import]
Part 2 is done; originally it was going to cover achievements and leaderboards however to keep it as simple as possible it only covers leaderboards with part 3 (coming in a few days) to cover achievements instead
http://techority.com/2010/11/25/adding-openfeint-to-your-iphone-app-–-part-2/
Using this along with part 1 you should have no trouble getting OF all set up with a working leaderboard
On a side note, I have my first Corona app waiting for review at the moment (it’s taking forever!) and if you’d be willing to review it for me when it comes out, email me please? (my name here @gmail) (Anyone who might read this, not exclusively Stan :))
I know I’m shameless - I’m just trying to get together a little list so I can get some reviews done in it’s first 24 hours on the store. Heh ^-^;
No hard feelings if not - but please, do let me know if the tutorial helps you if you end up using this particular one at all [import]uid: 10144 topic_id: 2645 reply_id: 12068[/import]
@ peach and J- Well I got things working thanks to both of you. I am having a bit of an issue though. OF only open at the beginning of the app. It wont “launchDashboard” to the friends section when I tap an event listener. below is the code for tap. What do you think?
– new Openfeint button
local openfeintbutton = display.newImage(“OpenFeint.png”)
openfeintbutton.x = display.contentWidth * 0.5
openfeintbutton.y = display.contentHeight -30
–function to launch openfeint when touched
local function opendash (event)
if event.phase == “ended” then
openfeint.launchDashboard(“friends”)
end
end
openfeintbutton:addEventListener(“tap”, opendash) [import]uid: 10062 topic_id: 2645 reply_id: 12396[/import]
@Stan
I don’t think phase works with tap
Either change it to touch or remove event and phase from function [import]uid: 7911 topic_id: 2645 reply_id: 12399[/import]
yea I tried that also. Still nothing? I’m not trying to add leaderboards, just friend so people can share. [import]uid: 10062 topic_id: 2645 reply_id: 12400[/import]
It maybe an of problem cause I clicked to add fb friends a week ago and still no friends it just says it may take time to check back later
Also a problem of my own with of does anyone know if the fb connect button inside of works I set it up two weeks ago and have not seen any post from of on my fb [import]uid: 7911 topic_id: 2645 reply_id: 12401[/import]
question…I’ve searched for ‘score’ on the forum and found some ‘frameworks’, but none that says how to save high scores to local device.
thanks to peach, I got the posting score to facebook (awesome ;), but haven’t been able to find a sample that allows me to display a high score every time I ‘open’ my game on my device.
any feedback would be appreciated.
Thanks,
RD [import]uid: 7856 topic_id: 2645 reply_id: 12404[/import]
Maybe this
http://developer.anscamobile.com/content/file-demo
[import]uid: 7911 topic_id: 2645 reply_id: 12405[/import]