Page 1 of 1

Import/export DSA

Posted: Sun Mar 13, 2005 1:43 am
by Zyx
I tried the export feature and I got this txt file:

Code: Select all

Description = Relay MSG to A
State = 0
StateLocation = 0
GroupID = 0
Number of States = 1
First Displayed State = 0
Number of non-empty states = 1
State Number = 0
Number of Actions = 12
S0 = MS
C0 = MC
T0 = MT
S1 = OP1 MS
C1 = OP1 MC
T1 = OP1 MT
S2 = OP2 MS
C2 = OP2 MC
T2 = OP2 MT
S3 = OP3 MS
C3 = OP3 MC
T3 = OP3 MT
signature = 76E28FE785747F041228D2488E4848C8
Now, would it be possible to add, even if fot the txt file only, some comments? When importing them, CSbuild would ignore them of course.

Posted: Sun Mar 13, 2005 5:29 pm
by Paul Stevens

Code: Select all

Description = Water Overlay
State = 0
StateLocation = 1
GroupID = 0
Number of States = 2
First Displayed State = 0
Number of non-empty states = 2
State Number = 0
Number of Actions = 5
#
#Another comment goes here
#
S0 = LB &1+ 
#
#Comment here
#
S0+ = L16 &% SB L0 L50 L0 L0 LB &1+ &OVERLAY M1S LB L0 &= ?JS1
C0 = 1L0 L100 L0 L0 L1 &OVERLAY
T0 = J
S1 = L228 L50 L0 &SOUND
State Number = 1
Number of Actions = 1
T0 = 0J0
signature = EA4F73134923D2C696C50E398EACA911
This is your "Water Overlay"

Notice four things.
1) Comments
2) Split lines. So comments can be interspersed within a line.
3) No help with compile errors. I can probably add line numbers to
error messages if you find that you cannot debug your compiler errors.
4) If the DSA loads properly then I tell you the correct signature so
you can put it in your release version.

So now you can treat your DSA source as I treat my C code. The comments are
in the source but get stripped when the program is compiled to binary.