| Author |
Message |
Tarsus Dianoga
Joined: 15 Nov 2008
|
Posted: Nov 21, 2008 02:13 Post subject: WAX creation - X and Y offset parameters |
|
|
Well, if the readers on this board aren't tired of hearing from me yet . . .
Okay, I've got a working WAX. The only thing now is that when I try it out, the different frames of animation jump all over the place - to an absurd degree. This is extremely odd, as all the BMPs I used are the same size.
Obviously, I'm going to have to use the X and Y offset parameters in 2WAX, like so:
Frames 56
0: Cell=0 x=-47 y=-69
But I can't figure out what those X and Y coordinates are in relation to, or even what units they are. And I can't make any sense out of the values I've observed in other makefiles, either. (This is to say nothing of trying to understand the "world width and height" parameters, which are in the thousands!)
Can anyone clarify how these parameters work and how to use them appropriately? I can't find any info in the BMPDF documentation or the DF specs.
|
|
sheepandshepherd Trandoshan
Joined: 01 Apr 2008
|
Posted: Nov 21, 2008 22:27 Post subject: |
|
|
Ooooh my gosh, offsets I've never figured out how to do those myself . . . don't worry, asking questions is what this forum is here for
The_Mega_ZZTer wrote:
AFAIK the command line tools in BMPDF (which is what I meant) are the only ones that can handle WAX conversions.
Wait a second now . . . what about Cyra? I don't have any WAX editing experience, but I thought that tool was specifically designed for it . . . am I missing something here?? I do recall getting it to work once and actually exporting a DF WAX, but I never tried making a new one . . . lemme see if I can get it working again.
EDIT: I'm a silly idiot, I had my Cyra directory misspelled, that's why it wasn't working
Anyway, try using Cyra, Tarsus. It may make your WAX converting easier. You'll probably need to download the Cargo95 tools as well to get some .PAC and .PAL files for your Cyra directories, or it won't work.
Otherwise, someone who knows how to use offsets will have to help you. Good luck!
|
|
The MAZZTer Death Star

Joined: 25 Sep 2003
|
Posted: Nov 22, 2008 00:46 Post subject: |
|
|
I said AFAIK. I didn't know about Cyra. 
_________________ http://www.mzzt.net/ | I am a respectable admin with a respectable sig. |
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Nov 22, 2008 01:53 Post subject: |
|
|
Yeah some goofball wrote that Cyra thing back in the day to make waxes. Then later on the same nutter wrote a windows version but never released it. Go figure. But with some luck some new tools could be on the horizon.
|
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Nov 22, 2008 02:07 Post subject: |
|
|
Seriously though if I recall and I could be horribly wrong x, y is a bounding box offset or offset to the center of the frame. Otherwise the frames will jump all over and not center properly. I'm sure that the formula is pretty simple but I believe that Cyra should straighten it out for you.
|
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Nov 22, 2008 02:34 Post subject: |
|
|
This may be too much information but I ripped this from my DF_Hacked page from 2002.
01-20-2002
Here's a wax thought. Cloning the wax logic. Lets revisit some unfinished business. You can add multiple logics in an .O file to trigger a wax logic switch on an event. Cool effect and that cool trick has been around for awhile. The trick doesn't seem to work to combine two or more logics well with some combinations. That aside, it would be neat to be able to play new frames in a wax to accommodate both logics.
There are many available spaces open in the wax structure to accommodate new logics but sadly, DF won't play em. You get from 0 to 13 states as represented here.
Type WaxLOGIC_Normal
0 moving --eg.walking, floating
1 attacking (Primary)
2 dying (from punch)
3 dying (from shot or explosion)
4 lying dead
5 staying still (i.e. not sited player yet)
6 follow through of primary attack -- eg. kick from gun
7 secondary attack -- eg. TD for reeyees, green junk for int. droid, ...
8 follow through of secondary attack
9 jump (Kell Dragon)
10
11
12 getting injured (dianoga looking around)
13 special Action
The wax logic is represented as the first 32 longs and you can see that 13 actual logics is well below the 32 available. VB Code Header represents these 32 file pointers. There is only one array structure dimensioned for use.
Type WAX_Header_IS
Version As Long '// constant = 0x00100100
Nseqs As Long '// number of SEQUENCES
Nframes As Long '// number of FRAMES
Ncells As Long '// number of CELLS
Xscale As Long '// unused
Yscale As Long '// unused
XtraLight As Long '// unused
pad4 As Long '// unused
WAXES(0 To 31) As Long '// pointers to WAXES '// = different actions
End Type
Public WAX_Header_IS As WAX_Header_IS
This is certainly good news for Dark3d and Wax Makers alike!. It would be nice if we could modify the wax file itself to accommodate some extra frames. Or can we?
You can easily add more frames and cells to a wax but how could you tell Dark.exe to play those independently. Stay tuned!
Here is the wax structure for use in VB6
Type WAX_Header_IS
Version As Long '// constant = 0x00100100
Nseqs As Long '// number of SEQUENCES
Nframes As Long '// number of FRAMES
Ncells As Long '// number of CELLS
Xscale As Long '// unused
Yscale As Long '// unused
XtraLight As Long '// unused
pad4 As Long '// unused
WAXES(0 to 31) As Long '// pointers to WAXES '// = different actions
End Type
Public WAX_Header_IS As WAX_Header_IS
Type WAX_IS
Wwidth As Long '// World Width
Wheight As Long '// World Height
FrameRate As Long '// Frames per second
Nframes As Long '// unused = 0
pad2 As Long '// unused = 0
pad3 As Long '// unused = 0
pad4 As Long '// unused = 0
SEQS(0 to 31) As Long '// pointers to SEQUENCES // = views from different angles
End Type
Public WAX_IS() As WAX_IS
Type SEQUENCE_IS
pad1 As Long '// unused = 0
pad2 As Long '// unused = 0
pad3 As Long '// unused = 0
pad4 As Long '// unused = 0
FRAMES(0 To 31) As Long '// pointers to FRAMES // = the animation frames
End Type
Public SEQUENCE_IS() As SEQUENCE_IS
Type FRAME_IS
InsertX As Long '// Insertion point, X coordinate '// Negative values shift the cell left// Positive values shift the cell right
InsertY As Long '// Insertion point, Y coordinate '// Negative values shift the cell up// Positive values shift the cell down
Flip As Long '// 0 = not flipped '// 1 = flipped horizontally
Cell As Long '// pointer to CELL// = single picture
UnitWidth As Long '// Unused
UnitHeight As Long '// Unused
pad3 As Long '// Unused
pad4 As Long '// Unused
End Type
Public FRAME_IS() As FRAME_IS
Type CELL_Header_IS
SizeX As Long '// Size of the CELL, X value
SizeY As Long '// Size of the CELL, Y value
Compressed As Long '// 0 = not compressed '// 1 = compressed
DataSize As Long '// Datasize for compressed CELL,// equals length of the CELL// If not compressed, DataSize = 0
ColOffs As Long '// Always 0, because columns table '// follows just after
pad1 As Long '// Unused
End Type
Public CELL_Header_IS() As CELL_Header_IS
|
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Nov 22, 2008 02:43 Post subject: |
|
|
Now here is an interesting thought from back in 2002. Life was much harder back then.
As I sat down to write a combox to change file pointer display, I realized the key to combining two waxes. A change of approach is needed to see how a wax Really works. They key is not in what a wax logic can do but what it can't do. A Sewer Bug wax has Wax(13) enabled and I suspect that DF does indeed play that wax. SewerBugWax(0) contains 32 sequences that all point to Frame(0) that contains Cell(0) in the file. This is very important information! Bobafett has a completely different DNA! Of course. You DNA Match two waxes to find what they don't have in common. Write custom waxes that fill each others void then invoke the change in the O file! That didn't take long...now who is willing to build a clean map, a single wax file with DNA matching and O file?
|
|
Barry Brien Dark Trooper Phase 1
Joined: 26 Sep 2003
|
Posted: Dec 01, 2008 15:04 Post subject: |
|
|
Hi CarGo! Whats new?
|
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Dec 04, 2008 03:35 Post subject: |
|
|
Same ole Barry. Still alive and kicking just like this web site. Except I am more interesting than this web site. Well not really but I am more active than this site.
I am digging what lucius is creating. It plays pretty smoothly and brought back some fond memories.
Aside from that I ditched the wife, make a ton of money and spend it on recording equipment like a drunken-crack floozy hip hop producer. I changed my name from Carlos Gomez to G-Smitty.
How about you?
|
|
Barry Brien Dark Trooper Phase 1
Joined: 26 Sep 2003
|
Posted: Dec 04, 2008 13:57 Post subject: |
|
|
Good stuff Carlos. Glad to hear you're rich and happily single. Have you recorded any mad hip hop yet? I'm still messing around, nothing too serious. Hey how come we stopped those music contests anyway? Do we still have all that stuff some place?
|
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Dec 05, 2008 00:16 Post subject: |
|
|
Yes I have. As a matter of fact I am four songs into my new album. Its in the style of Rap-n-Roll. Its a concept album. Eight songs of angry rap-n-roll at three minutes each.
I am calling the album Yards Of Tards. The cover will be a row of little yellow school buses. The songs are about smart people doing stupid things. So far I have songs 1,2,3 and 7 written recorded and mixed. When I am complete with all eight I will take the tracks to a friends studio and hire a drummer for a day.
The songs are lyrically funny or so I say.
Track:
1. Two Yards Of Tard: A six foot guy gets a beatdown after his shopping cart scratches some paint on a car.
2. Worlds Wildest Tards: Patterned after Worlds Wildest Police Videos. I'm still working on the last 40 seconds.
3. Speed Racer: Rush hour maniacs. Bluegrassy music and rap-n-roll-n-pop
4. Doctor NotSoSharpie: Doctor Tards cutting off the wrong limbs etc. I have the first minute of music.
5.
6.
7. Ya Ruined My Favorite Song: A heavy rap-n-roll that pokes at Sean Combs for destroying Kashmir back in 98. The song samples the real Kashmir.
8. My God Can Kick Your Gods' arse: Religious irony. rap-n-blues
I still do have the stuff I made from back in the day and if I were to look around I may just find all of the contributors material. Those one minute music contests were a hoot. Something like everyone puts up a note/chord and the songs have to be composed using all of the submitted notes/chords and be of a specific length. Quite fun.
Anyway if you would like to listen to what I am currently working on I can email a couple mp3s and lyric sheets. For you I could mail you my last cd. It is called The Vanquished, has 10 songs and was completed earlier this year. I ponied up $600 for two hundred copies of duplication plus printing. I only distributed to friends and family. I still have about 50 left.
|
|
Burning Gundam Kell Dragon
Joined: 28 Sep 2003
|
Posted: Dec 05, 2008 03:35 Post subject: |
|
|
As much as I have a severe distaste for rap and/or hip hop, I actually want to hear this...
_________________ I don't think outside the box... I customize it. |
|
CarlosG Ree-Yees
Joined: 25 Sep 2003
|
Posted: Dec 05, 2008 04:43 Post subject: |
|
|
You can gohere http://www.taximusic.com/hosting/home.php_artist=CarlosGomez to listen to Two Yards Of Tard
Below is the lyric sheet in DF21 censored script.
Two Yards of Tard – Carlos M Gomez – Christopher Stevens
SpeedyGeez Studios 2008
I'm sick of you tards doing stupid snap. Next motherfucker better expect to get hit
It all started when I stepped out in the hall. Ended with a bloody bald phrik at the shopping mall
Parked my car at Wal*Mart, jackass scratched my fender with a shopping cart.
He started walking away but I ruined his day before he could get away he got a parting shot.
I threw eggs and hotdogs a frozen burrito too. Ran out of ammo threw my right shoe.
Motherfucker with egg on his face, what a disgrace now who’s put in their place.
Used a bag of apples, knocked him flat the phrik out. Left a note in his pocket "Had to let some anger out"
Stupid motherfucker looks like a regular guy. I didn't care I still put a boot in his eye.
Even though we breathe the same air I can tell you’re just not all there.
With a phone attached to your ear you can’t talk and think at the same time.
I hear you say “get out of my face” what I see you’re a moral disgrace
You’re lazy and have no respect and the cart that you didn’t put away scratched my paint.
Boy you’re gonna get killed. Boy you’re gonna get killed.
Hand cracked, need a pin in it and a burning inside my gullet.
Ya got jacked head cracked you know I did it. Now you gonna wear a head restraint.
A six foot tard sprawling on the ground, two yards of tard a pile of snap mound.
Looks like 10 tards in a 5-tard bag, General Bee without the battle flag.
I beat him so hard that he's starting to swell, a pumpkin head, just need a big pie shell.
Said it one way, explain it again, beating stupid fucks is better than Zazen.
I found my Hara, the center of me. The next motherfucker just better flee.
Even though we breathe the same air I can tell you’re just not all there.
With a phone attached to your ear you can’t talk and think at the same time.
I hear you say “get out of my face” what I see you’re a moral disgrace
You’re lazy and have no respect and the cart that you didn’t put away scratched my paint.
Boy you’re gonna get killed. Boy you’re gonna get killed.
Even though, even though we breathe the same air I can tell, I can tell you’re just not all there
Even though we breathe the same air buddy boy you are a moral disgrace.
Oh yeah yeah oh yeah yeah. Boy you’re gonna get killed. Oh yeah yeah oh yeah yeah. Boy you’re gonna get killed.
|
|
Burning Gundam Kell Dragon
Joined: 28 Sep 2003
|
Posted: Dec 05, 2008 06:42 Post subject: |
|
|
Sweet, thanks 
_________________ I don't think outside the box... I customize it. |
|
|