Hello Kodular Community,
I need help fixing the existing Login System of my Si Math Kodular project.
I have been working on this Login System for around 10 days, but I am still facing several problems.
IMPORTANT:
I do NOT want a UI redesign.
I do NOT want unnecessary screens or components.
Please keep my existing UI, component names, screen structure and Si Math V1 architecture.
I only need help debugging and completing the existing Login System.
I have attached my latest Si_Math.aia project and relevant screenshots.
CURRENT LOGIN SYSTEM:
My project uses:
• Firebase Authentication
• Firebase Realtime Database
• Guest / Anonymous Login
• Google Login
• Facebook Login
PROBLEMS:
- DUPLICATE NICKNAME PROBLEM
My nickname requirements are:
• Minimum 3 characters
• Maximum 15 characters
• Every nickname must be unique.
• Two different Firebase users must NOT be able to use the same nickname.
I am using:
name_registry/{PlayerName}
Expected behavior:
If name_registry/{PlayerName} does not exist:
→ reserve the nickname
→ save the Firebase UID
→ create the player under players/{FirebaseUID}
→ complete registration.
If the nickname already exists:
→ reject the nickname
→ do not overwrite the existing player’s name.
Currently the duplicate-name protection is not working correctly.
Please inspect my existing blocks and Firebase rules and identify exactly why this is happening.
- GOOGLE LOGIN
Google Sign-In currently gives an error / Permission denied during the login flow.
Please check my existing Kodular blocks and Firebase configuration and identify the actual cause.
- FACEBOOK LOGIN
Facebook Authentication is enabled in Firebase, but my Facebook login flow is not completed correctly in Kodular.
Please check what is missing and tell me exactly what needs to be configured.
- NEW PLAYER / EXISTING PLAYER FLOW
After successful authentication:
If players/{FirebaseUID} does NOT exist:
→ treat the user as a new player
→ show the existing nickname registration UI.
If players/{FirebaseUID} already exists:
→ treat the user as an existing player
→ skip registration
→ continue to the appropriate next screen.
- CURRENT KODULAR EVENTS
Please inspect these existing events/blocks:
• LoginScreen.Initialize
• BtnGuest.Click
• BtnGoogle.Click
• BtnFacebook.Click
• Firebase_Authentication1.LoginSuccess
• Firebase_Authentication1.LoginFailed
• Firebase_Realtime_Database1.GotValue
• Firebase_Realtime_Database1.FirebaseError
• BtnContinue.Click
• Clock1.Timer
Please check the complete flow:
Authentication
→ LoginSuccess
→ Firebase UID
→ check players/{UID}
→ new/existing player detection
→ nickname validation
→ check name_registry
→ reserve nickname
→ create/load player
→ continue.
- FIREBASE DATABASE
My current RTDB structure includes:
players
leaderboard
match_history
daily_rewards
missions
achievements
inventory
player_settings
player_progress
exam_system
name_registry
si_uid_registry
system
Please do not remove or redesign unrelated database structures.
- SECURITY RULES
I have attached/provided my current Firebase Realtime Database Security Rules.
Please check whether my current rules are compatible with my Kodular blocks and Firebase Authentication flow.
I am currently getting:
FirebaseError – Permission denied
during the login/database flow.
Please identify the exact reason if possible.
- IMPORTANT
Please do not redesign my UI.
Please do not add unnecessary screens.
Please do not change unrelated game systems.
Please do not remove existing Firebase nodes without explaining why.
Please work with my existing project and existing architecture.
I am looking for help identifying the exact problems in my current project and the exact changes required to fix them.
I have attached:
• Latest Si_Math.aia project
• Login System block screenshots
• Firebase Authentication screenshots
• Firebase Realtime Database screenshots
• Current Security Rules
Please first inspect the attached project and screenshots.
Thank you.
Si_Math.aia.zip (8.1 MB)
Firebase Realtime Database Security Rules
These are my current production rules. I am getting
“FirebaseError – Permission denied” during the login/registration flow.
Please check whether my rules are compatible with my Kodular
Firebase Authentication and Realtime Database blocks.
“name_registry”: {
“$playerName”: {
“.read”: “auth != null”,
“.write”: “auth != null && !data.exists()”,
“.validate”: “newData.isString()”
}
}
During the login flow I receive:
FirebaseError – Permission denied
The Firebase UID is being received, but the database operation then fails.
Please check whether this is caused by my Realtime Database rules or my Kodular blocks.
Si_Math.aia.zip (8.1 MB)
The attached Si_Math.aia.zip is my latest project.
Please inspect the actual .aia project before suggesting changes.










