Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Attack doesn't work, no sprites of attack
#1
Hi, I been trying to add a new character for 2 days now. Here's the problem. I wanted to play the character Dennis in LF2-Kate version in normal LF2 2.0 version but some of the attacks don't work.

What I did
I renamed all the files from dennis to dennisx because I want a completely new character instead of replacing the dennis in version 2.0. So I moved all the sprites
dennisx_s
dennisx_f
dennisx_chase
dennisx_ball
dennisx_2
dennisx_1
dennisx_0
dennisx_wsbk
dennisx_tornado
into the sprites folder, and all the data
dennisx
dennisx_ball
dennisx_chase
dennisx_wsbk
into the data folder.
Then I change the template.dat in the data.txt to dennisx.dat
and I added
id: 230 type: 3 file: data\dennisx_ball.dat
id: 231 type: 3 file: data\dennisx_wsbk.dat
id: 232 type: 3 file: data\dennisx_chase.dat
to it also.
The problem is that when ever I tried to use the tornado move, or the wsbk move, the custom attack sprite doesn't show up and it doesn't hit anyone. The frames of dennis still shows though. Just the energy attack frames don't pop up. I can't find any wsbk or tornado data in the folder of LF2-Kate anywhere. But I can still execute the attack in the LF2-Kate version. Anyone know why? Thanks.
Reply
Thanks given by:
#2
Did the attacks data are the same with the oid of the moves in the dat file when you move it?
Reply
Thanks given by: nads
#3
In LF2-Kate the attacks are on this id:
id: 205 type: 3 file: data\dennis_ball.dat
id: 351 type: 3 file: data\dennis_wsbk.dat
id: 215 type: 3 file: data\dennis_chase.dat
So if you changed it to:
id: 230 type: 3 file: data\dennisx_ball.dat
id: 231 type: 3 file: data\dennisx_wsbk.dat
id: 232 type: 3 file: data\dennisx_chase.dat
You have to change every oid: 205 to: 230, 351 to: 231, and 215 to: 232 in denisx.dat
If you already did this then I don't know why it doesn't work.
Reply
Thanks given by: nads
#4
Oh, I didn't know it has to be the same, I thought that every id needs to be unique. I just change wsbk id to 351, and the wsbk attack work, but can anyone explain why the tornado doesn't work? Am I missing a file? and another question, in LF2-Kate, the dennis energy chase ball have an id of 215, how can I make it so 2.0 version dennis chase ball isn't the same one as the one in LF2-Kate? Thanks
Reply
Thanks given by:
#5
I didn't mean that you have to change the id.
Put:
id: 232 type: 3 file: data\dennisx_chase.dat
in your data.txt
And change the OID: 215 to OID: 232
    DC-Code:
<frame> 298 chase_ball
   pic: 184  state: 3  wait: 1  next: 299  dvx: 6  dvy: 0  dvz: 0  centerx: 31  centery: 79  hit_a: 0  hit_d: 0  hit_j: 0
   wpoint:
      kind: 1  x: 44  y: 46  weaponact: 31  attacking: 0  cover: 1  dvx: 0  dvy: 0  dvz: 0 
   wpoint_end:
   opoint:
      kind: 1  x: 88  y: 42  action: 0  dvx: 0  dvy: 0  oid: 215  facing: 20  #oid: 232
   opoint_end:
   bdy:
      kind: 0  x: 12  y: 20  w: 36  h: 60
   bdy_end:
<frame_end>
Reply
Thanks given by: nads
#6
Ohhhhhhhhhh I see I see, so that's why I been seeing people putting o in front of id. Thanks again. Does anyone know how to fix the tornado problem then?
Reply
Thanks given by:




Users browsing this thread: 4 Guest(s)