Jump to content
  • 0

Multiple grf for custom item


mrlongshen

Question


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   79
  • Joined:  12/04/12
  • Last Seen:  

Hi all.

I want to ask, how do i make a many grf,

then how do i put the custom item on it,

for example.

1. customitem.grf

At this grf, only custom item..

2.customweapon.grf

At this grf, only custom weapon.

Is that possible ? if yes, what folder should i create. can the client read the grf ?

if not..

Please guide me.

Edited by mrlongshen
Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   174
  • Joined:  12/14/11
  • Last Seen:  

Yes, it is.

First, diff your client so that it can read multiple GRFs.

Next, if you have your custom items working on the client, you can separate them from each other..

Then, you can simply put them on the GRF and make as much GRFs as you want.

Note that the folder structures inside the GRF will be the same, which will allow all files to be put inside the same folder when you merge them all.

Have a nice day!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   79
  • Joined:  12/04/12
  • Last Seen:  

thx winz for the reply, and then for the below i bold where should i put it ?

i have to put at the two grf or only one ?

post-12126-0-52016500-1356522802_thumb.png

and for this below pic, i had to copy what?

all ?

or just what? idk

post-12126-0-71069900-1356523027_thumb.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   174
  • Joined:  12/14/11
  • Last Seen:  

I recommend at least you make 2 GRFs, data and Pallete. the data here consists of custom weapons and headgears. If you want to separate all of them, well, you might need:

  • palette.grf > If you put the palettes on the main GRF of yours, when it's patched, it will take a long time, especially on slower computers.
  • MainData.grf > this will hold lua files, "book" folder, and other txt and xml files.
  • CustomWeapon.grf > holds your custom weapon sprites as you intend
  • CustomHeadgear.grf > holds your custom headgear sprites as you intend

you may refer to luafiles514/datainfo/accname.lua and accessoryid.lua to determine which the custom sprites are. then, you will be able to separate them all.

The folders in custom grfs are: sprite/ and texture/

Depends on you, whether you want to put lua files/datainfo/accname.lua and lua files/datainfo/accessoryid.lua on your MainData.grf or CustomHeadgear.grf. I am not sure whether custom weapons need this too or not.

*If you're referring to the lua files I mentioned above, just don't bear with the ASCII characters, unless your custom also has ASCII characters in it. the easiest way is to refer to accessoryid.lua and see the numbers, starting from 1000, on the right side of the '=' sign.

Should be there any other question, feel free to ask me.

Have a nice day!

*P.S: This might be a though thing to do. Otherwise, the result will bring so much satisfaction :D

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   79
  • Joined:  12/04/12
  • Last Seen:  

thx alot bro :)

+1 for u.

now i understand. i try 1st. later i ask u again :)

btw i have add u in YM.

:)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   174
  • Joined:  12/14/11
  • Last Seen:  

sure, no problem. thanks for that too.

just post your question here or on my PM or on my YM. I'll be glad to help you.

Have a nice day!

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   79
  • Joined:  12/04/12
  • Last Seen:  

topic closed . :) thx winz

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  59
  • Reputation:   0
  • Joined:  08/22/13
  • Last Seen:  

May I ask how to diff the client so I can enable multiple grf?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  116
  • Reputation:   4
  • Joined:  01/11/12
  • Last Seen:  

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