4kB is limit for bank files of all player all together.
If you want to use starcode to its full potential:
First of all check size of each created string before compresion. You shouldn't try to create strings longer than 100 chars. (to avoid trigger execution time limit during decompresion) Check it by storing maximum value of value you are storing to get maximum string possible.
Create as many of uncompresed strings as you need and compres them one after another.
Remove "space" from characters used by starcode.
Create one big string from all strings you have created adding "space" between them.
Save it as a one string in bank file. (remember to name bank section with only one char becouse it takes space too)
When you load just load this one big string and extract each of substing using "get word" function.
Decompres each sting separatly and here you go.
Remmember to decompres each string in separate trigger to avoid trigger time execution limit.
When you create Bank file check it's size. Multiply it by amount of players. And you can check if you will fit into 4kB limit.
Bank Files:
4kB is limit for bank files of all player all together.
If you want to use starcode to its full potential:
First of all check size of each created string before compresion. You shouldn't try to create strings longer than 100 chars. (to avoid trigger execution time limit during decompresion) Check it by storing maximum value of value you are storing to get maximum string possible.
Create as many of uncompresed strings as you need and compres them one after another.
Remove "space" from characters used by starcode.
Create one big string from all strings you have created adding "space" between them.
Save it as a one string in bank file. (remember to name bank section with only one char becouse it takes space too)
When you load just load this one big string and extract each of substing using "get word" function.
Decompres each sting separatly and here you go.
Remmember to decompres each string in separate trigger to avoid trigger time execution limit.
When you create Bank file check it's size. Multiply it by amount of players. And you can check if you will fit into 4kB limit.