Jump to content
  • 0

Odd sprite error?


GreenMagic793

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

Hey guys,

 

So here's the deal. I've been trying my hand at adding a custom monster sprite to the game. However, I'm encountering some issues.

 

First, I went into my mob_db and created a mob called purple_plant and gave it the mobid of 3005.

I created the .spr and .act files for my monster and placed them in the correct folders. However, when I try to spawn the monster, I get errors that say things like  "can't find file \gibberish\npc\1_etc_01.act".

 

So I then realized, oh, I need to add the monster data to the .lua files. I went into my lua folder, went into datainfo, downloaded jobname.lua and npcidentity.lua. I then added my own mob in the same format as the rest of the mobs.

 

The problem is... When I try to spawn this mob, I'm still getting the 1_etc_01.act/spr error. What could be causing this? I have my sprites in the right folders, my mob is in the mob_db... I don't get it. Any help is appreciated.

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

make sure you have the 1_etc_01.act/spr files.

judge from the name, it's a npc.

 

1_ETC_01.gif

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

I'm not sure I'm understanding. What difference would having the files for that NPC make (which I do already btw)? If anything shouldn't it say "can't find file gibberish\npc\purple_plant.spr" since that's what I named my sprite?

 

I read through both rathena articles on custom mobs and spriting but I'm confused as to how exactly I link up a sprite I've created with a mobid and its corresponding script. By putting the purple_plant.spr/act files in all the right places, shouldn't that be enough for the game to recognize the sprite?

 

Thanks for the help.

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

 1_etc_01.act/spr files is missing, not your purple_plant.spr/act

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

So if I understand correctly, if I'm missing the 1_etc_01 files, I'm required to have those even to spawn purple_plant? Why is that exactly? Isn't 1_etc_01 a separate sprite that would have nothing to do with mine?

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

So if I understand correctly, if I'm missing the 1_etc_01 files, I'm required to have those even to spawn purple_plant? Why is that exactly? Isn't 1_etc_01 a separate sprite that would have nothing to do with mine?

Looks like you didn't install your sprite correctly, did you change max sprite count in source and add the sprite to the const.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  157
  • Reputation:   18
  • Joined:  08/18/15
  • Last Seen:  

I didn't know editing anything source related was necessary. Perhaps I skimmed over it but custom mobs article didn't seem to make any note of it that I recall. I thought it was as simple as inserting sprites/acts and editing the .lua files.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1443
  • Reputation:   337
  • Joined:  10/17/12
  • Last Seen:  

I didn't know editing anything source related was necessary. Perhaps I skimmed over it but custom mobs article didn't seem to make any note of it that I recall. I thought it was as simple as inserting sprites/acts and editing the .lua files.

If its an NPC sprite then yes have to make sure the max NPC Id is correct and the NPC is added to the const, if its a mob then you might have a typo in your lua files

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...