Synthetic Reality Forums   
my profile | directory login | register | search | faq | forum home

  next oldest topic   next newest topic
» Synthetic Reality Forums » Our Archives » WoS World Developer Tips » Attack Paths

   
Author Topic: Attack Paths
Jacius
Veteran Member
Member # 265

Member Rated:
4
Icon 1 posted      Profile for Jacius   Email Jacius   Send New Private Message       Edit/Delete Post 
I've been looking around, and I haven't found anything on this in the forums.

I was wondering if I could make new attack paths like you make spell paths, and where exactly the attack paths are found (txt file?)

If this is in some obvious location, please direct me there, and refrain from the yelling

-Jacius


Posts: 508 | From: Illinois | Registered: Apr 2000  |  IP: Logged
Lady Griffon
Verbose Member
Member # 189

Member Rated:
5
Icon 1 posted      Profile for Lady Griffon   Author's Homepage   Email Lady Griffon   Send New Private Message       Edit/Delete Post 
Jacius, here's what I found about attack paths as related to WEAPONS. It's in the Items portion of the instructions:

--------------------------------------
arg 16 (optional) ATTACK PATH (used with right-hand weapons to animate motion of attacker)

syntax is:
Path.Image.Flags.Weather.Effect where Path is 0-63, image is 0-199, flags are 0-63, weather is 0-63,and effects are 0-63

WEATHER and EFFECTS are same as for spells, so see spells.txt for info

FLAGS are the sum of any combination of these values:
0-3 - duration of attack (0 is quick, 3 is slow)
4 - if this flag is set, each of the 8 frames of animation consumes one eigth the entire attack (instead of rolling through the frames over and over)
8 - If this is set, the images is not 'flipped' when attacking from left to right.
16 - reserved
32 - reserved

IMAGE is used with attacks which hurl objects. Each image is an eight-frame animations stored in a file named attackNN.bmp Each file contains 10 such
filmstrips where the topmost filmstrip is the '0' index of that file. SO, image 143 would be index '3' in the file attack14.bmp I hope that's not too confusing. The first one hundred images (files 00-09) are reserved for ME to use, while the rest (attack10.bmp to attack19.bmp) are reserved for world designers (and go in your world's ART folder) PATHS are defined below:

(note: use "-1" as the path if you want one picked randomly, or "0" if you want no path at all.)

-1 Pick random path for this item when world is loaded
0 No attack path (this is the default)
1 LUNGE - Attacker runs up to target then runs back
2 JUMP - Attacker jumps straight onto target, then runs back
3 LEAP - Attacker HIGH jumps straight onto target, then runs back
4 STAB - Attacker runs straight to target, then does attack frame, then runs back
5 DBL-STAB - Attacker runs straight to target, does attack frame twice, then runs back
6 TRAMPLE - Attacker does one Big hop to target, then hops again on top of it
7 HOP Attacker reaches target in several hops, each getting higher.
30 ARROW - Image follows straight line from attacker to target
31 STONE - Image follows short arc from attacker to target
32 LOB - Image follows high arc from attacker to target

[This message has been edited by Lady Griffon (edited 10-22-2000).]


Posts: 1463 | From: Myzan | Registered: Dec 1999  |  IP: Logged
Josh
Healthy Member
Member # 57

Icon 1 posted      Profile for Josh   Email Josh       Edit/Delete Post 
I just thought I'd make a small post on the nature of 'thrown weapon' animations. The frames animate from RIGHT to LEFT, and though the actual animation is exectuted in the same direction, should the player be attacking a player/monster to the RIGHT the frames will be flipped. Most of the time, this is barely noticeable (ninja stars, etc.), but it is something to keep in mind.

I've found that most weapons look best when rotated on an axis, and not around one. I made a small diagram to help clarify that statement.

For a more realistic spin, you might want to rotate weapons on 45% angles, and not 90% like in the diagram. PSP and such tend to blur any image rotated less than 90%, but some like this effect.

[This message has been edited by Josh (edited 10-23-2000).]


Posts: 449 | From: NJ | Registered: Dec 1998  |  IP: Logged
samsyn
Administrator
Member # 162

Member Rated:
4
Icon 1 posted      Profile for samsyn   Author's Homepage   Email samsyn   Send New Private Message       Edit/Delete Post 
And you can also micro-pixel deblur after the fact if it really bothers you that much :-)

I'm reminded of the "go-motion" trick (as opposed to stop-motion) where each frame of the animation is intentionally blurred to more accurately capture the fluid effect one gets when real film is used to record movement.

I think, especially for 'linear' objects like swords, the 45 degree rotation is crucial or else it just looks like it is flipping back and forth between two images (since the eye doesn't see enough difference between the handle end and the pointy end)

PLus, there just aren't that many places in the game where you even have the OPTION of an eight-stage animation, so you should take advantage of it

-------

To answer the original question though, no, you can't create new paths on the fly since they have to be individually coded (I mean the actual 'path through the air' You can add additional images of things being thrown, of course, as LGH detailed above).

I am interested in hearing ideas however, both for attack paths and for magic paths.

And I'd love to get some more 8-stage animations for those teensy magical effects.

I suppose I should break the magic effects file into pieces as well, to make it easier on world developers to just add a few rows, rather than having to replicate the whole file.

----

Oh, and isn't Josh cool to not only explain but to make an infographic as well? He's cool!

[This message has been edited by samsyn (edited 10-23-2000).]

[This message has been edited by samsyn (edited 10-23-2000).]


Posts: 10567 | From: California | Registered: Dec 1998  |  IP: Logged
Josh
Healthy Member
Member # 57

Icon 10 posted      Profile for Josh   Email Josh       Edit/Delete Post 
You never requested magic animations! A new project!
Posts: 449 | From: NJ | Registered: Dec 1998  |  IP: Logged
samsyn
Administrator
Member # 162

Member Rated:
4
Icon 1 posted      Profile for samsyn   Author's Homepage   Email samsyn   Send New Private Message       Edit/Delete Post 
you'll hate magic animations, Josh. They are SO DINKY! 16x16 and only 256 colors still. :-)

But they look so purty when they are all swirling around.

check out the file art\effects.bmp for the horrible truth of it all.

For A48 I will turn that into effects00.bmp to effectsNN.bmp with 10 animations per file again.

In fact, it is now the same as for attacks. You can think of each effect as being one ROW of a big table. The total table has 200 rows, numbered 0 to 199.

The table is actually broken into ten files where each file has ten rows. So, effect #143 would be at offset 3 in the file "effects14.bmp"

The first 100 rows are MINE (well, Josh gets 50 coz he's cool) and the second 100 rows belong to the world designer.

And, of course, I accept donations to help fill up "my" 50 rows. I'm not proud. Josh has done some kick-A** effects already in his rows.

I've written a little helper tool for attack/effect animators which you can find here:
http://www.synthetic-reality.com/wosAttack.exe

[This message has been edited by samsyn (edited 10-28-2000).]


Posts: 10567 | From: California | Registered: Dec 1998  |  IP: Logged
Josh
Healthy Member
Member # 57

Icon 10 posted      Profile for Josh   Email Josh       Edit/Delete Post 
Making spells rocks!
Posts: 449 | From: NJ | Registered: Dec 1998  |  IP: Logged
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Synthetic Reality

Copyright 2003 (c) Synthetic Reality Co.

Powered by UBB.classic™ 6.7.3