Coder Social home page Coder Social logo

godot-firebase-lite's People

Contributors

juanitogan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

godot-firebase-lite's Issues

Code executing out of order

Describe the bug
Even though I think I've made the code synchronous, the code is executing out of order.

To Reproduce
Example code and steps to reproduce the behavior:

func _ready():
	_init_firebase()
	_update_room_list() # SHOULD run first
	room_code = R.generate_room_code()
	var room_free = is_room_free(room_code) # SHOULD run second
	if !room_free:
		return true
	var room_made = establish_room(room_code) # SHOULD run third
	if !room_made:
		return true
	print(room_code + "Room established.")

Log outputs in this order:

  • Firebase initialized.
  • Room code is free.
  • Room established.
  • Room list fetched. [DRVS, HRUD, JSEL, OTUY, SPZE]

Expected behavior
Log should output in this order:

  • Firebase initialized.
  • Room list fetched.
  • Room code is free.
  • Room established.

Screenshots
If you're absolutely sure everything is installed correctly, you can skip all screenshots. Otherwise:

  • Screenshot of your FileSystem tab showing your firebase_*_lite folders.
  • Screenshot of your Project > Project Settings > AutoLoad tab showing your firebase singleton.
  • Anything else you want to show us.

Platform and versions (please complete the following information):

  • Godot version: 3.5.stable.official
  • Godot Firebase Lite version: 0.1.1
  • OS: Windows 10
  • Mobile device (if applicable): N/A
  • Browser (if applicable): N/A for now, though I want to target HTML in the future

Additional context
Add any other context about the problem here.
I'm making a Jackbox style game where inputs are infrequent and games can be joined from across the globe via a Web browser.

[feature request] - When game is connected successfully to Firebase, or when game cannot connect

If requesting a feature, please add links to the Firebase API or SDK document pages that describe the feature you want. If one of the SDKs does not have the feature you are looking for, odds are it will not be invented for this "Godot SDK."

https://firebase.google.com/docs/reference

If you don't know which SDK to start digging through for your feature, it may help to know that this project runs on the Firebase REST API and is based heavily on the JavaScript SDK, with bits from the Java and Unity SDKs.


I want to know how I can tell when my Godot game could successfully connect to the Firebase database, and when my Godot game could NOT connect there, so that I can implement some kind of loading screen, error display, or dedicated "offline mode".

Question: What does `func _init(ref: Object).(ref):` mean?

This is not a bug, but I've been trying to translate this library from GDScript 3 to GDScript 4, and came across this line in firebase_auth_lite/event_processor.gd:

I've never seen this syntax before, so I don't know what it's doing or what it would be in GDScript 4.

Though, since there's nothing in the function except pass, I wonder if I can just comment it out of the script.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.