Page 1 of 1

Inside DataSection

Posted: Mon Nov 14, 2005 6:35 pm
by Psychophanta
Ability to do:

Code: Select all

DataSection
Data.l
Blue:$efa284,$8c4131,$ffc3a5
GreenBlue:$bdcf00,$7b7d00,$e7f700
Green:$a0ee00,$307a00,$c0fe00
Data.b
Red:$00,$40,$45
Violet:$bd,$84,$e7
EndDataSection
instead to have to

Code: Select all

DataSection
Blue:Data.l $efa284,$8c4131,$ffc3a5
GreenBlue:Data.l $bdcf00,$7b7d00,$e7f700
Green:Data.l $a0ee00,$307a00,$c0fe00
Red:Data.b $00,$40,$45
Violet:Data.b $bd,$84,$e7
EndDataSection

Re: Inside DataSection

Posted: Mon Nov 14, 2005 6:53 pm
by traumatic
Maybe I don't fully understand your request, but what about mixed datatypes then?

Re: Inside DataSection

Posted: Mon Nov 14, 2005 6:57 pm
by Psychophanta
traumatic wrote:Maybe I don't fully understand your request, but what about mixed datatypes then?
Nice, but how to write it? can you write an example of how it could be?

Posted: Mon Nov 14, 2005 7:17 pm
by va!n
@psychophanta:
sorry, i dont understand your point :roll:

Posted: Mon Nov 14, 2005 7:28 pm
by Psychophanta
I mean that Data command is needed now to be writen one per line.
And i request to be able to write once only. Until data stuff ends or until a new type must be written.
If this would be, then DataSection and EndDatasection commands would be a surplus.
For example, there should be:

Code: Select all

Data.l;   <- Data section beginning
; line with long values....
; another line with long values
; another one
; ...
Data.s
; line with string values....
; another line with string values
; another one
; ...
;etc...
EndData;   <- Data section end
Each Data.<type> would be like DataSection command, but besides of that, it defines a type for the next bytes stuff.

Posted: Mon Nov 14, 2005 7:33 pm
by va!n
ahhhh :lol: ok, i think i got the point...

you can save your datas as binary and include to the datasection, so you dont have to write data.x each line... but its not so easy when you want to change any value in the *.bin inlcuded file...

Posted: Mon Nov 14, 2005 7:41 pm
by Psychophanta
For included files or binaries would be:

Code: Select all

Data.b
  MapLabel:
  IncludeBinary "Data\map.data"
EndData

Re: Inside DataSection

Posted: Mon Nov 14, 2005 7:47 pm
by traumatic
Psychophanta wrote:
traumatic wrote:Maybe I don't fully understand your request, but what about mixed datatypes then?
Nice, but how to write it? can you write an example of how it could be?
That's what I mean, I see no way doing this using your approach. ;)

Posted: Mon Nov 14, 2005 8:00 pm
by va!n
Psychophanta wrote:For included files or binaries would be:

Code: Select all

Data.b
  MapLabel:
  IncludeBinary "Data\map.data"
EndData
@psychophanta:
thats the way i tried to explain ;)