Jump to content
  • 0

Sword sprite doesn't show weapon trail on swing.


Satoh

Question


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/24/12
  • Last Seen:  

So I glanced at this thread, which helped with some of my issues, but my custom weapon isn't displaying the weapon trail or playing the correct sound when swung.

 

My item ID is 13500, and is listed thus:

Weapon_IDs = { 
    --normal IDs here...
    WEAPONTYPE_Wizardy_Staff = 97,
    WEAPONTYPE_Blackrose = 98
}

WeaponNameTable = {
    [Weapon_IDs.WEAPONTYPE_NONE] = "",
    -- ....
    [Weapon_IDs.WEAPONTYPE_Blackrose] = "_13500"
}

Expansion_Weapon_IDs = {
    [Weapon_IDs.WEAPONTYPE_Main_Gauche] = Weapon_IDs.WEAPONTYPE_SHORTSWORD,
    --...
    [Weapon_IDs.WEAPONTYPE_Blackrose] = Weapon_IDs.WEAPONTYPE_TWOHANDSWORD
}

WeaponHitWaveNameTable = {
    [Weapon_IDs.WEAPONTYPE_NONE] = "_hit_mace.wav",
    --...
    [Weapon_IDs.WEAPONTYPE_Blackrose] = "_hit_sword.wav"
}

(Commented lines represent the rest of the entries)

 

The sprites are in this folder as such:

±â»ç/±â»ç_¿©_13500.spr

±â»ç/±â»ç_¿©_13500.act

±â»ç/±â»ç_¿©_13500_°Ë±¤.spr

±â»ç/±â»ç_¿©_13500_°Ë±¤.act

 

The weapon itself appears as it should, but as I said before, but the 'woosh' animation that accompanies a swing, doesn't show up, and the sound effect is a generic club sound. (This is a sword, so that's incorrect)

 

I'm using 2012_04_10a RE.

 

Am I forgetting something?

Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  


Weapon_IDs = {

--normal IDs here...

WEAPONTYPE_Wizardy_Staff = 97,

WEAPONTYPE_Blackrose = 98

}

WeaponNameTable = {

[Weapon_IDs.WEAPONTYPE_NONE] = "",

-- ....

[Weapon_IDs.WEAPONTYPE_Blackrose] = "_Blackrose"

}

Expansion_Weapon_IDs = {

[Weapon_IDs.WEAPONTYPE_Main_Gauche] = Weapon_IDs.WEAPONTYPE_SHORTSWORD,

--...

[Weapon_IDs.WEAPONTYPE_Blackrose] = Weapon_IDs.WEAPONTYPE_TWOHANDSWORD

}

WeaponHitWaveNameTable = {

DO NOT CHANGE ANYTHING HERE

}

±â»ç/±â»ç_¿©_Blackrose.spr

±â»ç/±â»ç_¿©_Blackrose.act

±â»ç/±â»ç_³²_Blackrose.spr

±â»ç/±â»ç_³²_Blackrose.act

 

 

@EDIT

In your luafile's you need to set the view_id of Blackrose to 98

Edited by Tales
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/24/12
  • Last Seen:  

 

@EDIT

In your luafile's you need to set the view_id of Blackrose to 98

 

 

In which file would I place that? I don't see any files that handle view IDs except accessoryid.lua

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

Go to your/path/ro/server/System
Open the systeminfo.lua and dont forget to Increase my Reprep_up.png

let's rock

I mean ClassNum
In your "/serverFolder/System", open the file itemInfo.lua and add this code:
 

[13500] = {
        unidentifiedDisplayName = "Black Rose",
        unidentifiedResourceName = "Blackrose",
        unidentifiedDescriptionName = {
            "A rose that's increase your life.",
            "^000088+45 HP^000000.",
            "^FFFFFF_^000000",
            "Weight: ^7777777^000000"
        },
        identifiedDisplayName = "Black Rose",
        identifiedResourceName = "Blackrose",
        identifiedDescriptionName = {
            "A rose that's increase your life.",
            "^000088+45 HP^000000.",
            "^FFFFFF_^000000",
            "Weight: ^7777777^000000"
        },
        slotCount = 0,
        ClassNum = 98
    },
Edited by Tales
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/24/12
  • Last Seen:  

I was afraid you were going to say that.

For some reason my client completely ignores that file.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

Do you have some screens? Some Warnings/Errors?



Press this button rep_up.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  06/24/12
  • Last Seen:  

There are no errors. My client doesn't read any information from iteminfo.lua or .lub

Its still reading from the old plaintext files. I don't know why.

 

I know its not being read at all, because I don't even have a translated version of iteminfo, yet all my items are in english, and modifications to num2*** and idnum2*** files work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...