I made some triggers to save data in a bank. The data is written there correct but when loading the bank, I get values 0 (I saved a few ints), even when I ints where not 0 at all. This are my triggers to load the bank:
Player Group - Pick each player in Players and do (Actions)
Actions
Bank - Open bank "MagniWare - Sneak Peak" for player (Picked player)
Apply Unit Preferences Data Unit Type (Load "Unit Type" of section "Unit Preferences" from bank (Last opened bank) as integer value) and Unit Suit (Load "Unit Suit" of section "Unit Preferences" from bank (Last opened bank) as integer value) for Player (Picked player)
As you can see I use the functions that load data from the bank to pass it to an other action I made. But it seems that always the values 0 get passed.
I saw someone on an other website which had the same problem as me, but fixed it with changing the player argument in the open bank action to a literal value, like player 1. But that didn't work for me.
Etc, I don't know why the fuck, but that fixed my problem.
[EDIT] Sorry, just read the end of your post. Disregard this if you've tried it already. I suggest Paste Bin and copy/paste your whole trigger. http://www.pastee.org
Hi all,
I made some triggers to save data in a bank. The data is written there correct but when loading the bank, I get values 0 (I saved a few ints), even when I ints where not 0 at all. This are my triggers to load the bank:
Player Group - Pick each player in Players and do (Actions) Actions Bank - Open bank "MagniWare - Sneak Peak" for player (Picked player) Apply Unit Preferences Data Unit Type (Load "Unit Type" of section "Unit Preferences" from bank (Last opened bank) as integer value) and Unit Suit (Load "Unit Suit" of section "Unit Preferences" from bank (Last opened bank) as integer value) for Player (Picked player)
As you can see I use the functions that load data from the bank to pass it to an other action I made. But it seems that always the values 0 get passed. I saw someone on an other website which had the same problem as me, but fixed it with changing the player argument in the open bank action to a literal value, like player 1. But that didn't work for me.
Any help is appreciated! Thank you.
@magnificence7: Go
I've found out that when loading a bank you have to use a literal player number, you can't pass a variable.
So loading a bank like
For Each Int PlayerID 1,16 Do Actions LoadBank("BankName", PlayerID) End
Won't work, You have to do
LoadBank("BankName", 1) LoadBank("BankName", 2) LoadBank("BankName", 3) LoadBank("BankName", 4)
Etc, I don't know why the fuck, but that fixed my problem.
[EDIT] Sorry, just read the end of your post. Disregard this if you've tried it already. I suggest Paste Bin and copy/paste your whole trigger. http://www.pastee.org
youcan'tusespacesinbanknames
@Dustin374: Go
That really sucks :(. I want to do Dynamic bank loading! Would help so much :(