i have a dialog that has two edit box's one labelled Username the other Password, and when the “new account” button is clicked is saves the edit values of the two edit box’s get saved to a bank file, and once the map is reloaded they can type there username and password into the edit box and click the login button and it will gain them access or deny them if the fields are wrong.
Everything works when I open the map create a new account and try the username and password, how ever when I reload the map it fails and wont read.
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering player) == Player Loop
Then
Variable - Set Number Loop = Player Loop
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Login Items[Number Loop][7]
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
Login Dialog String[Number Loop][1] == (Edit value of Login Items[Number Loop][4] for Number Loop)
Login Dialog String[Number Loop][2] == (Edit value of Login Items[Number Loop][5] for Number Loop)
Then
UI - Display "Open " for (All players) to Cinematic area
Else
UI - Display "Closed" for (All players) to Cinematic area
The problem is in your bank initialization. You can't load and initialize banks via loops or with variables. You have to initialize and open each bank for each individual player. One at a time.
i have a dialog that has two edit box's one labelled Username the other Password, and when the “new account” button is clicked is saves the edit values of the two edit box’s get saved to a bank file, and once the map is reloaded they can type there username and password into the edit box and click the login button and it will gain them access or deny them if the fields are wrong.
Everything works when I open the map create a new account and try the username and password, how ever when I reload the map it fails and wont read.
I can paste the code in if anyone needs
Sounds like a problem with your code. Paste away!
This is my Bank initialization
Game - Map initialization
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
Bank - Open bank "Testing" for player Player Loop
Variable - Set Testting bank[Player Loop] = (Last opened bank)
Bank - Preload and synchronize bank "Testing" for player Player Loop
Variable - Set Login Dialog String[Player Loop][1] = (Load key "Username" of section "Login" from bank Testting bank[Player Loop] as a String)
Variable - Set Login Dialog String[Player Loop][2] = (Load key "Password" of section "Login" from bank Testting bank[Player Loop] as a String)
My New Account Button
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering player) == Player Loop
Then
Variable - Set Number Loop = Player Loop
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Login Items[Number Loop][8]
Then
Variable - Set Login Dialog String[Number Loop][1] = (Edit value of Login Items[Number Loop][4] for Number Loop)
Variable - Set Login Dialog String[Number Loop][2] = (Edit value of Login Items[Number Loop][5] for Number Loop)
Bank - Store string Login Dialog String[Number Loop][1] as "Username" of section "Login" in bank Testting bank[Number Loop]
Bank - Store string Login Dialog String[Number Loop][2] as "Password" of section "Login" in bank Testting bank[Number Loop]
Bank - Save bank Testting bank[Number Loop]
Else
Else
My Login Button (this is the problem)
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering player) == Player Loop
Then
Variable - Set Number Loop = Player Loop
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Login Items[Number Loop][7]
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
Login Dialog String[Number Loop][1] == (Edit value of Login Items[Number Loop][4] for Number Loop) Login Dialog String[Number Loop][2] == (Edit value of Login Items[Number Loop][5] for Number Loop)
Then
UI - Display "Open " for (All players) to Cinematic area
Else
UI - Display "Closed" for (All players) to Cinematic area
The problem is in your bank initialization. You can't load and initialize banks via loops or with variables. You have to initialize and open each bank for each individual player. One at a time.
thanks soooooooo much!!!
This may have some potential, then when your trigger is clear you could post here as a resource. What do you think?
Wow im flattered Tekaichi! Yeah when I make a 100% working version ill post it for sure.
This indeed will be a very usefull sistem. Keep the good work.