The Powder Toy
Download
Forum
Browse
Wiki
FAQ
Play online
Register
Login
Discussions
/
Help
/
Variable Strings
«
1
»
Variable Strings
Colton-Bates
27th Mar 2012
Member
0
Permalink
Can tmp or tmp2 store strings?
jacksonmj
27th Mar 2012
Developer
0
Permalink
No. However, another property could be added to store a string.
Colton-Bates
21st Apr 2012
Member
0
Permalink
(Yes, I do realize this is necro, but it relates closely enough to go here.)
@jacksonmj
(View Post)
Does ctype store a string, or does it just store the index (DUST=1, WATR=2, etc.) of the ctype particle?
mniip
21st Apr 2012
Developer
0
Permalink
Type and ctype are bytes
vx, vy, x, y, life, tmp, tmp2 are floats on client and words on server
dcolour is doubleword
Colton-Bates
21st Apr 2012
Member
0
Permalink
Okay dokey. So currently, no strings can be stored easily in a particle's properties.
mniip
21st Apr 2012
Developer
0
Permalink
I dont think it would be possible because variable length strings would eat allocation heap, and not-variable length would eat memory too much, like 50mb
«
1
»