Old 02-23-2011, 09:20 AM   #1
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 17,745
Default Q: Loading text strings from a file

Is there any way to load text strings into a JS FX?

The JS programming Guide only mentions loading a number from a line in a.txt file:
Quote:
The format of each line in the text file can be either a floating point number, a binary number beginning with 'b', i.e. b0101010111, or a hexadecimal number beginning with 'x', i.e. xDEADF000.
Also, what does this mean?
Quote:
Additionally text files can create their own symbolic constants (using =), and combine them using basic +, -, |, & etc operators.
__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Old 02-23-2011, 09:57 AM   #2
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,354
Default

Not really. You'd need to have the text stored as ascii character values on separate lines. Not exactly user friendly.

The bit about constants means you can do stuff like this...
Code:
x=10
y=10

0
x
4
y
y
x
x
I suppose you could do something like this to make text easier...

Code:
a=97
b=98
c=99
// etc.
z=122

t
h
i
s
i
s
a
s
t
r
i
n
g
.. but you'd have to be a bit of a masochist

Strings have been requested but I'm not sure whether an FR made it into the tracker as it's an old, old, old request.
IXix is offline   Reply With Quote
Old 02-23-2011, 11:53 AM   #3
DarkStar
Human being with feelings
 
DarkStar's Avatar
 
Join Date: May 2006
Location: Surrey, UK
Posts: 17,745
Default

Thank you for the info, IXix.

__________________
DarkStar ... interesting, if true. . . . Inspired by ...
DarkStar is online now   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.