Narc files and their contents

Discussion in 'NDS - ROM Hacking and Translations' started by advancewars161, Apr 21, 2009.

Apr 21, 2009
  1. advancewars161
    OP

    Newcomer advancewars161 Newbie

    Joined:
    Apr 21, 2009
    Messages:
    6
    Country:
    United States
    I am trying to get the images from a game, specifically Advance Wars: Days of Ruin. I see some files that look promising using Ndsts but they are in the .narc format. I looked around online to see what the heck to do after that, but I found nothing what so ever. I had extracted the contents with NARC Explorer 2, and came up with .cg .cl and .sc files. (specifically, wallp_ending.narc extracted to wallp_ending.cg, wallp_ending.cl, and wallp_ending.sc)

    Could someone please explain what I'm either doing wrong or just not doing period? Thanks in advance.
     
  2. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    Most likely...
    cl = color palette
    cg = individual tile graphics
    sc = tile map forming full picture

    The image is broken up in this way so that duplicate or palette-swapped tiles only have to be stored once. It will be fairly complicated to build the image... have you considered taking screenshots in an emulator as an alternative?
     
  3. advancewars161
    OP

    Newcomer advancewars161 Newbie

    Joined:
    Apr 21, 2009
    Messages:
    6
    Country:
    United States
    Well, the image I am wanting to try and grab is at the end of the game, so i figured that it would just be quicker to try to rip it straight from the game.

    By complicated, do you mean that it will be time consuming, hard to piece it together, or both?


    I'd also like to know how people would make their own sprites and put them into any game they have, if that's not too much to ask.
     
  4. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    The cg and sc files are LZ77-compressed, so they have to be unpacked first.

    [​IMG]

    Warning: Spoilers inside!


    As for making custom images, you'd have to do the opposite - take a starter image and break it apart into individual tiles, mapping each one appropriately in the screen coords file. A bit more complicated.
     
  5. advancewars161
    OP

    Newcomer advancewars161 Newbie

    Joined:
    Apr 21, 2009
    Messages:
    6
    Country:
    United States
    Alright then, thank you much for the prompt help. Is that Java by the way?
     
  6. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    No, it's C#. Great for making quick GUI applications.
     
  7. advancewars161
    OP

    Newcomer advancewars161 Newbie

    Joined:
    Apr 21, 2009
    Messages:
    6
    Country:
    United States
    Ok, so I've been trying to use that code to extract the other pictures. My problem is now that, when I try to put it together in SharpDevelop, I get
    Warning: Spoilers inside!
    as an error.

    I'll admit that I do not know what I am doing, but I did change the baseName to the file I currently have out. I chose windows application; should I have gone with something else?

    Also, I managed to use the lzssdemo thing to extract the lz77, but I don't know if it worked.


    Reason I'm trying is because I don't know exactly which file is the image I'd like and I don't want to make someone else get all the images just for me.
     
  8. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    You may need to do a few things in the Design tab.
    1) Create a panel and rename it panelImage.
    2) Add event handlers (lightning bolt icon in the Properties view) for the form and the panel. Select the background form and double click Behavior -> Load to generate MainFormLoad, then select panelImage and double click Paint to generate PanelImagePaint.

    If that doesn't get rid of the error, post the line that's causing the error.

    As for dealing with LZ77, here's a drag-and-drop utility I made: BatchLZ77 v1.1
     
  9. advancewars161
    OP

    Newcomer advancewars161 Newbie

    Joined:
    Apr 21, 2009
    Messages:
    6
    Country:
    United States
    Well, I added a "User Control" template from the Projects window (on the left), right-click, add new item, in the c# windows app. changed name from usercontrol1.cs to panelImage.cs. Don't know if that was the panel you are speaking of.

    Found the Lightning bolt and put MainFormLoad and PanelImagePaint in.

    Now I get these errors
    Warning: Spoilers inside!


    Also, thank you very much for the lz77 utility!
     
  10. DarthNemesis

    Member DarthNemesis GBAtemp Maniac

    Joined:
    Feb 19, 2008
    Messages:
    1,208
    Country:
    United States
    No, not a custom component. In the bar on the left there's a Tools tab, go to Windows Forms -> Panel.
     
  11. advancewars161
    OP

    Newcomer advancewars161 Newbie

    Joined:
    Apr 21, 2009
    Messages:
    6
    Country:
    United States
    Ok, got it! Thank you again for all you're help.
     

Share This Page