Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Firebase Realtime Database with AGK Tire1

Author
Message
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 9th Mar 2018 17:59
I make a Snake and ladder game which I want to published in play-store . But before that I want to make a multiplayer option to play online where no one need to make a server . If any one know about firebase realtime database operation with app game kit tire 1 or have any link about this topic . please forward this to me and thanks in advance ...
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 9th Mar 2018 19:49
please help me to setup fire-base real-time database with app game kit Tire1 ....
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 13th Mar 2018 16:42
AGK does have a set of socket commands, so I believe it is possible. To do that, i'm going to need information on how the protocol works for communication with the firebase server. If you can find that (my brief search hasn't found anything), I think I can help you build a connection framework to use.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 18th Jun 2019 07:40
hi I solved this after 1 year but face some problems .. can any one help me here ?
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 18th Jun 2019 07:48
@Tambam calm down and exercise some patience
Phaelax is offering to help and im sure there are others who would help if you can provide
some information on firebase protocols
fubarpk
fubarpk on Itch...………...https://fubarpk.itch.io/
fubarpk on googleplay..https://play.google.com/store/apps/developer?id=fubarpk
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 26th Jun 2019 09:46
Thanks for your replay
the problem is when I push new data to database, am getting a new ID as root of one of the child.
enter image description here

this is my agk code

now after run agk code == >

this is after run my code .. looks good and ok

but problems is here ==>
this pic in my firebase section ..

please help

thanks in advance ..

Attachments

Login to view attachments
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 27th Jun 2019 08:48
please help why this extra key come every time ?
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 27th Jun 2019 18:08
Most databases generate a unique identifier for each record

If you are having trouble parsing it to your type fromJson, you could string operations to remove it from the json first or adjust your type structure to include the field
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 27th Jun 2019 18:30
no i actually want to update "x" value and "y" value under a particular key like "speed" . but its not update its generate a new random key inside this its makes "speed" and new value insert into that key . Couldnot understand how to solve https://forum.thegamecreators.com/images/smilies/cry.gif
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 28th Jun 2019 17:52
Ah, i see. Most likely if/because you are not passing the record back to firebase with that id, it believes it to be a new record.
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 28th Jun 2019 18:46
thanks 4 your replay . can you give me any solution ? I need update on previous record thanks again
Ortu
DBPro Master
16
Years of Service
User Offline
Joined: 21st Nov 2007
Location: Austin, TX
Posted: 28th Jun 2019 19:16
I've never used firebase, but i assume that if you want to update an existing record you first need to query for it to get the id and data of the existing record, then update the data and pass it back, including the id. There may be different api calls to tell it to update vs insert
http://games.joshkirklin.com/sulium

A single player RPG featuring a branching, player driven storyline of meaningful choices and multiple endings alongside challenging active combat and intelligent AI.
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 29th Jun 2019 04:17
@Ortu thanks you are very friendly and supporting . I have done this yesterday night with php . and call it to AppGameKit and its working . recently I work with a Fantasy Cricket game like "dream 11". If you need any help for your project you can mail me at tambamgames@gmail.com .I am from INDIA . Thanks again
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 29th Jun 2019 04:17
Looks like the "name" of your array, as the structure looks similar to what they're talking about here: http://mariechatfield.com/tutorials/firebase/step2.html

That's all I can really say. I tried looking up info about firebase but google's docs on it suck so much I don't have the patience to figure out their horrible interface on how to even set up a table.
Tiled TMX Importer V.2
XML Parser V.2
Base64 Encoder/Decoder
Purple Token - Free online hi-score database
Legend of Zelda

"I like offending people, because I think people who get offended should be offended." - Linus Torvalds
TamBam
12
Years of Service
User Offline
Joined: 29th Nov 2011
Location: India
Posted: 29th Jun 2019 04:25
@Phaelax thanks for your time . I have done thin with PHP yesterday night and call it to AppGameKit and working good . I want to make a Multiplayer Server platform for all AppGameKit developer . Thanks again ..

Login to post a reply

Server time is: 2024-05-12 19:08:09
Your offset time is: 2024-05-12 19:08:09