Jump to content
  • 0

[Resolved] Custom Pet Illustration


ngek202

Question


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

Is there anyway to change/modify it instead of just the Poring Illustration?

Link to comment
Share on other sites

13 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  398
  • Reputation:   140
  • Joined:  01/04/12
  • Last Seen:  

Could you please explain what exactly you want?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

oh this is what I mean.

petillustration.jpg

so by default when you add a Custom Pet the Illustration is a Poring anyway to change that?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

Open ../Lua Files/datainfo/petinfo.lua

Add:

PetIllustNameTable = {

...

[jobtbl.JT_MONSTER_NAME] = "filename.bmp"
}

Then put your custom illustration in ../data/texture/À¯ÀúÀÎÅÍÆäÀ̽º/illust/filename.bmp

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@FatalEror Thanks man I've been thinking the same thing though I don't have a petinfo.lua I will try to get onto some clients., I will try this :)

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  70
  • Topics Per Day:  0.02
  • Content Count:  1245
  • Reputation:   392
  • Joined:  11/19/11
  • Last Seen:  

Feel free to use my petinfo.lua, I can't promise its the latest one tho.

petinfo.7z

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

Thanks Syouji :)

---

Maybe this isn't really possible tried adding infos on petinfo.lua still didn't work..

I also tried to replace the Porings Illustration just to check if will also change the Custom Pets Illust and yes it change. so I think all Custom Pets are attached to the Poring LOL..

or if anyone already did this and if it's possible can you share :D

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

Messing around with my own petinfo.lua, I came upon some pretty odd behavior. (or is this expected? 0.o)

Well, taking it from the top:

npcidentity.lua, make sure that the monster you want to pet is between "JT_MON_BEGIN" and "JT_MONSTER_LAST".

Also, the stuff between the quotes is important. You don't have to use that name exactly, but when you choose something, make sure to stick to your choice.

jobtbl = {
-- other monsters here
["JT_4_M_CUSTOM00"] = 3000, -- //or whatever MonsterID you'd like.
-- other stuff
}

jobname.lua

Notice what's inside the square brackets, it's important that you stay consistent with this.

JobNameTable = {
-- stuff nuff said
[jobtbl.JT_4_M_CUSTOM00] = "mymob",
}

petinfo.lua

Again, we're using the same name in the square brackets.

PetIllustNameTable = {
-- stuff here
[jobtbl.JT_4_M_CUSTOM00] = "유저인터페이스\\illust\\펫_SUCCUBUS.bmp",
}

From all this, what I'd expected to see was my pet having Succubus' pet illustration, but instead I got this.

petinfo-behavior.jpg

So it seems like my client (2011-01-11aRagexeRE) uses the first frame from the sprite as the illust. (I've tried making it try using some nonexistent file, but it seems that as long as the monster is defined in petinfo.lua then it will do this.)

Whether that's what is expected, or if it's because my client is heavily hexed I'm not sure. You might want to try a later client perhaps?

If all fails, you might as well fire up Olly, and try to figure out how to hex it into the client.

Just thought I'd at least give ya what I got.

Hope it works out for ya.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

It's possible to add a custom illustration image

Untitled-2.png

Here what i've got after test it:

showing Poring illustration → Client doesn't read your petinfo.lua or you didn't add it in petinfo.lua correctly

showing monster sprite → Client can't find your pet illustration image

Gravity Error → Your illustration image size is incorrect

BTW, what is your client date and what monster did you want to add as a pet?

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

2010-07-30

I'm motivated to try this on my own now :) Thanks for that Screenshots.

Oh yeah and the Pet I was trying was a Custom Monster too., Lhz Biolab Dungeon 5

@Shag & FatalEror guys can request if you can try it also with Custom Monsters?

for example:

http://rathena.org/board/files/file/653-ayame/

Edited by ngek202
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  187
  • Reputation:   35
  • Joined:  01/01/12
  • Last Seen:  

Please take note that petinfo.lua was implemented in 2010-12-01

what what my log says

http://trac.assembla.com/ClientSide/changeset/104

this means that it wont work before that date.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   3
  • Joined:  12/22/11
  • Last Seen:  

2010-07-30

I'm motivated to try this on my own now :) Thanks for that Screenshots.

Oh yeah and the Pet I was trying was a Custom Monster too., Lhz Biolab Dungeon 5

@Shag & FatalEror guys can request if you can try it also with Custom Monsters?

for example:

http://rathena.org/b...file/653-ayame/

The mob I was trying, Azenis is quite custom.

Didn't try a non-custom one, but I doubt that there's a difference between a custom mob and an 'official' mob nowadays. (With luas and all.)

Make sure your client supports(reads) petinfo.lua I guess.

(If you're unsure whether your client reads petinfo.lua. I'd try seeing what happens, if you try running the client with an empty petinfo.lua. Just to know if it's actually looking there.)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  530
  • Reputation:   33
  • Joined:  01/17/12
  • Last Seen:  

@Shag yeah I did try Running the client w/o the petinfo.lua and yes it still Run.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   0
  • Joined:  02/18/12
  • Last Seen:  

Same problem, I reopened a topic :

http://rathena.org/board/topic/75175-qpets-picture/

The client see the lua, because others pets aren't poring.

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