I don't know where to get the byte from, but if you have a byte variable you can store it in a data table.
Also, you can convert bytes from and to integers in custom scripts, this is already done implicitly.
But remember, when converting an int to a byte, the resulting byte will contain only the lowest 8 bits of the integer.
I'm beginning to script with galaxy, and so I have my first question.
Are unions available in galaxy? If so, is the byte representation of data still system dependent?
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.
I made a Text variable where I wrote a little tutorial in to get you started with the game. However, when I put that text in a label dialog item, I get a little text line with "param/value/" and some code. This is only when I use large text values like that. Is there any way around? Or can I use something else than an dialog to show the large text nicely?
0
@BeLugh: Go
I don't know where to get the byte from, but if you have a byte variable you can store it in a data table. Also, you can convert bytes from and to integers in custom scripts, this is already done implicitly. But remember, when converting an int to a byte, the resulting byte will contain only the lowest 8 bits of the integer.
0
Hi,
I'm beginning to script with galaxy, and so I have my first question. Are unions available in galaxy? If so, is the byte representation of data still system dependent?
Thank you.
0
@Mille25: Go
it is -2147483648 to 2147483647. If galaxy would support the highest 32 bit value for its signed integer, then 2147483647 would be it, not 2147483648.
0
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.
0
Hi all,
I made a Text variable where I wrote a little tutorial in to get you started with the game. However, when I put that text in a label dialog item, I get a little text line with "param/value/" and some code. This is only when I use large text values like that. Is there any way around? Or can I use something else than an dialog to show the large text nicely?
Thank you!
0
hmmmm, ok. I don't see myself working with models. xD But thank you anyway!
0
Hello,
Does anybody know how I can change the texture of, lets say a marine unit with triggers?
Thank you.