So, my problem is that I want to reduce the space that the texts (player names) occupy in my bank by putting them into 1 text and saving them into one key.
But when I load text I couldnt find a way to cut the texts into its original form. (aka cutting them into new texts)
(also its player names so I cant convert it into strings)
Any idea how can I make it?
You can only concatenate strings, not text. So that's your first problem. You can probably use the player handle functionality to figure out player names as strings, so that might help.
Well I want to make top 100 player ranking. I am using player handle to make difference between people, but I want to people to see the player's name in the top 100 and not their handle.
Its not a small thing:
I would say 1 name takes up about 10 character space, but each new key takes up 36 more character in the bank, so If I could make the top 100 player name list into 2 texts and save it into the bank like that, than I would save up 3600 character which is almost half of the maximum bank size.
than I would save up 3600 character which is almost half of the maximum bank size.
wait woot? My notepad++ shows 132769 characters (5175 lines) in my bank file and it's not yet complete. I didn't notice any lags while saving or any potential limits. Bank size being 139KB (come on it silly small still)
It seems it's impossible because only operations on text's are combine or search replacement. It's possible to extract something only if you know the rest (funny how texts are actually strings with tags and even search replace treats them like strings)
You cant store players names into bank files, just their IDs.
If you want to work with names you have to let the players type the name they wanna use or smth similar.
Yeah, but not in one key. And thats what you want.
Text cant be manipulated like Strings and cant be converted, that means that it will be impossible to cut the stored text later. So if you want to store all names in one string you HAVE to make the players type their name at least once in order to get it as string.
You could save the typed name in a seperate bank or key, like that the players would just have to type their names the first time they enter your game.
So, my problem is that I want to reduce the space that the texts (player names) occupy in my bank by putting them into 1 text and saving them into one key.
But when I load text I couldnt find a way to cut the texts into its original form. (aka cutting them into new texts)
(also its player names so I cant convert it into strings)
Any idea how can I make it?
not really unless you know the actual names.
but really do you need to compact such small thing??
You can only concatenate strings, not text. So that's your first problem. You can probably use the player handle functionality to figure out player names as strings, so that might help.
Well I want to make top 100 player ranking. I am using player handle to make difference between people, but I want to people to see the player's name in the top 100 and not their handle.
Its not a small thing:
I would say 1 name takes up about 10 character space, but each new key takes up 36 more character in the bank, so If I could make the top 100 player name list into 2 texts and save it into the bank like that, than I would save up 3600 character which is almost half of the maximum bank size.
wait woot? My notepad
++
shows 132769 characters (5175 lines) in my bank file and it's not yet complete. I didn't notice any lags while saving or any potential limits. Bank size being 139KB (come on it silly small still)@Nerfpl: Go that bank wont work in multi.
It will be messed up with other player's banks (keys will change place in player's banks), if you have more than about 7.8kb bank for a player (including all banks for that player).
I listed all the stuff I know about banks here: http://www.sc2mapster.com/forums/resources/tutorials/28875-trigger-bank-facts/#p1
@Hookah604: Go
bad news ;/ Stone age, here we come!
@Hookah604: Go
So whats exactly your problem? Storing multiple Strings in one String and later cutting it back to its original form or getting the player names?
@Mille25: Go Non of that.
You can get players names only into texts and you cant convert text into string, so I want to cut text.
It seems it's impossible because only operations on text's are combine or search replacement. It's possible to extract something only if you know the rest (funny how texts are actually strings with tags and even search replace treats them like strings)
Yeah I figured that out.
Its so bad that we cant convert text into strings.
You cant store players names into bank files, just their IDs. If you want to work with names you have to let the players type the name they wanna use or smth similar.
@Mille25: Go Abrakadraba: Bank - Store text (Name of player (Triggering player)) as "x" of section "x" in bank (Last opened bank)
(you can store text in banks)
@Hookah604: Go
Yeah, but not in one key. And thats what you want. Text cant be manipulated like Strings and cant be converted, that means that it will be impossible to cut the stored text later. So if you want to store all names in one string you HAVE to make the players type their name at least once in order to get it as string.
You could save the typed name in a seperate bank or key, like that the players would just have to type their names the first time they enter your game.
that would be silly.
"Hello Joe, please type your name"
@Nerfpl: Go Exactly.
So I will just keep saving it into new keys.