I think I get it... I'll get back to you on this.
I think I get it... I'll get back to you on this.
I'm going to upload a file, can you show me what I'm doing wrong?
sure
http://www.mediafire.com/?sharekey=18440b8ba9203607d9d5c56d04dfa8b0e04e75f6 e8ebb871
It's even worse than I thought...
For some reason on the save it deletes all my save info.
Can you make it so it loads the Group names? You loaded values, not group names which is done differently.
The scores are meaningless, just giving them values so they appear.
Sorry I don't get it. I use the normal Ini for my projects. Can Ini++ guess what groups you just created?
This is how my ini would look like.Code:[Players] Total=20 0=Player 1 1=Captain Amazing 2=Dude 3= ... 20= [Player 1] Score=1 [Captain Amazing] Score=685 [Dude] Score=0
You now have a reference from the name to the group. You use "Total" for the fastloop to get the names. If the string is "" then by default it will be "empty" (nice feature by Ini++ though I might change my project over to Ini++)
You then could run a second loop and delete all empty lines from the list.
If you click on currentline 0 it will select "Player 1" which means that you now know the groupname and can read the scores or whatever value you want from it.
Edit: In your example the file is emtpy because you have the encryption string on load. As I stated before, when you file is NOT encrypted then do not provide a encryption key! Remove the line with encryption. Hit S, then edit the event back in (the key) then it will work!
http://www.mediafire.com/?vg4dmzeyktz
This is my example with scores added.
Edit: This is limited to 5 players at the moment. What you need to do to add infinite player is just add a new line to "Profile" by using the ("Total") value (List is 0-based!) and adding +1 to the "Total" value after you added the new name.
before:
after:Code:[profile] Total=5 0=Robert 1=Peter 2=Max 3=John 4=Paul
Code:[profile] Total=6 ;(Total=5+1) 0=Robert 1=Peter 2=Max 3=John 4=Paul 5=my new name ;(5 = Total)
I think I figured it out... would you like me to post my solution?
EDIT: You and I are trying to do different things. You are displaying scores and whatnot, all I need to do is load the names and then have one selected and then you are loaded into the rest of the game :P
Sure post what you got![]()
I believe you are making this too hard... Hold on I figured it out, I just need to fix it because it skips over the first one.
I need the names in groups though, because I will have loads of items. It makes more sense, because there is no overall score or highscore board.
Make sure your List index is 0 based.