Jump to content
  • 0
shiiifttt

Character head/body sorting layers?

Question

Replacing the novice sprite with another job sprite draws the head behind the body and I'm looking for potential fixes.

PJf3sTX.png
Novice with soul reaper sprite (left), soul reaper with same sprite (right).
 

'spreditinfo' and all the related files seem to only have stuff related to costumes.
Act Editor didn't seem to have any options related to sorting / layering.
data.grf seemed to have nothing related to layering/sorting for specific jobs.

I have found an ugly work around, but I would love to get this sorted out in a simpler way.

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0
On 12/15/2023 at 5:33 PM, shiiifttt said:

Update: its done by editing the imf files inside the data.grf

Hey! 

I attempted to edit it using the GRFEditor but was unable to do so. Then, by hand, it showed me some errors when I tried to compile it. How did you do it?

I even tried to decode it to JSON using the RagLite tools, but got stuck from there... 😔

Share this post


Link to post
Share on other sites
  • 0

//= METHOD A (fast): copy a known-good IMF
//= 1) Open data.grf in GRF Editor → Tools → IMF Editor (or Search “.imf”).
//= 2) Find a job that already layers correctly (e.g. Soul Reaper): data\imf\soul_reaper.imf
//= 3) Extract that file, then import it back renamed to your target job’s IMF (e.g. novice.imf),
//= or change the mapping in: data\luafiles514\lua files\datainfo\imfnametable.lub
//= 4) Save GRF → test in-game.


//= METHOD B (precise): reorder layers in the IMF Editor
//= 1) Tools → IMF Editor → open the target .imf
//= 2) Set draw order (top → bottom):
//= HeadTop
//= HeadMid
//= HeadLow
//= Body
//= Shadow
//= 3) Apply to ALL actions/directions → Save → import back → test.


//= IMPORTANT:
//= • Don’t use RagLite JSON to re-encode .imf (that’s why you saw “compile” errors).
//= Let GRF Editor open/save the binary .imf directly.
//= • If nothing changes, check you don’t have a loose “data\imf*.imf” overriding the GRF,
//= and make sure your custom GRF loads last.
//= • If your client uses imfnametable.lub, update the mapping there.




//===================================================
//= STEP-BY-STEP (DETAILED)
//===================================================
//= A) Prepare
//= • Backup data.grf/rdata.grf.
//= • Close the game client.
//=
//= B) Find/Map
//= • Path to IMFs: data\imf*.imf (use GRF Editor search).
//= • Optional map file: data\luafiles514\lua files\datainfo\imfnametable.lub
//= (links job → IMF filename).
//=
//= C) Fast Copy (no editing)
//= • Extract working job’s .imf → import it renamed to target job, OR edit imfnametable.lub to point to it.
//=
//= D) Manual Fix (if you must keep same filename)
//= • Tools → IMF Editor → open target .imf → set layer order:
//= HeadTop, HeadMid, HeadLow, Body, Shadow
//= • “Apply to all actions/directions” → Save → Import → Save GRF.
//===================================================


//===================================================
//= TROUBLESHOOTING
//===================================================
//= • Change not showing:
//= - Another GRF or a loose “data\imf*.imf” overrides yours. Ensure your custom GRF loads last.
//= • Only some animations fixed:
//= - You didn’t mass-apply to all actions/directions (walk/attack/cast/idle). Re-apply and save.
//= • “Compile” / invalid file when using RagLite:
//= - Stop using JSON route. Use GRF Editor’s IMF Editor to open/save binary .imf directly.
//= • Still weird on one class:
//= - Copy IMF from a class that renders correctly and map it via imfnametable.lub.
//===================================================

Edited by Checkmate

Share this post


Link to post
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.   Restore formatting

  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.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.