1. Updated Resource Submission Rules: All model & skin resource submissions must now include an in-game screenshot. This is to help speed up the moderation process and to show how the model and/or texture looks like from the in-game camera.
    Dismiss Notice
  2. DID YOU KNOW - That you can unlock new rank icons by posting on the forums or winning contests? Click here to customize your rank or read our User Rank Policy to see a list of ranks that you can unlock. Have you won a contest and still haven't received your rank award? Then please contact the administration.
    Dismiss Notice
  3. The reforging of the races is complete. Come see the 14th Techtree Contest Results.
    Dismiss Notice
  4. It's time to choose your horse in the race - the 32nd Modeling Contest Poll is up!
    Dismiss Notice
  5. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Very interesting YouTube Video regarding Modding etc.

Discussion in 'StarCraft I & II' started by Na_Dann_Ma_GoGo, Feb 20, 2010.

  1. Na_Dann_Ma_GoGo

    Na_Dann_Ma_GoGo

    Joined:
    Apr 5, 2008
    Messages:
    367
    Resources:
    1
    Maps:
    1
    Resources:
    1
    Hi there,
    I just encountered the following videos (2 parts) where someone talks about SC2's folder structure and usage of files, file types and so on.
    *click*
     
  2. overload119

    overload119

    Joined:
    May 28, 2007
    Messages:
    362
    Resources:
    3
    Skins:
    1
    Tools:
    1
    Maps:
    1
    Resources:
    3
    Included Asset Types

    *.css (Cascading Style Sheet)
    *.db
    *.dds (texture)
    *.fx (shader)
    *.galaxy (Scripting language used for map creation)
    *.gfx (shockwave flash)
    *.m3 (geometry? (models/scenes?)
    *.ogg (audio)
    *.otf (font)
    *.png (graphic)
    *.SC2Layout (UI layout)
    *.ttf (font)
    *.txt (Plain text file)
    *.xml (Markup language file)
     
  3. MGCǂSpectre

    MGCǂSpectre

    Joined:
    Feb 4, 2005
    Messages:
    3,007
    Resources:
    2
    Tutorials:
    2
    Resources:
    2
    Yes, yes I already saw and posted some of the extentions

    - Why would they use OGG files, it's much easier MP3 to open, now this will require some codec installation for Windows Media Player. Can windows 7 read OGG files? only my Audacity can play them.
    - gimp cant open DDS what kind of texture is it? - FIXED there is a plugin for DDS
     
  4. Mcasdf

    Mcasdf

    Joined:
    May 13, 2009
    Messages:
    248
    Resources:
    0
    Resources:
    0
    My first guess was that ogg was loseless and mp3 wasn't but that turned out to be wrong. So I have no idea actually, aside that ogg is open source. Meaning that they won't need to pay royalties or whatever to the owners of the mp3 filetype.
     
  5. Reaper2008

    Reaper2008

    Joined:
    Jul 27, 2008
    Messages:
    1,117
    Resources:
    1
    Spells:
    1
    Resources:
    1
    Ogg is smaller too. Ogg@64kbps sounds as good as mp3@320kbps (generally). It's a good thing too.

    @TheTerran:Media Player Classic and VLC Media Player are two excellent programs with ogg support.

    But what's with XML and CSS?
     
  6. overload119

    overload119

    Joined:
    May 28, 2007
    Messages:
    362
    Resources:
    3
    Skins:
    1
    Tools:
    1
    Maps:
    1
    Resources:
    3
    XML for extreme customizablity. It's actually a god-send. You can see my other thread where XML is used for object editor stuff, kinda like .SLK was used in WC3.

    CSS is used since a lot BNet stuff is displayed like a rich webpage. It doesn't have anything to do with in-game stuff.
     
  7. bboy-tiger-

    bboy-tiger-

    Joined:
    Jul 28, 2007
    Messages:
    899
    Resources:
    0
    Resources:
    0
    .m3 is model file extension ? You sure ? I cant see on the video...
     
  8. FreshMobster

    FreshMobster

    Joined:
    Jul 4, 2007
    Messages:
    115
    Resources:
    0
    Resources:
    0
    Yeah, it's for model files. But there's good news about it which I just found out in my own wanderings. People at Blizzard are using 3DsMax for their model work, so they must have a converter for .m3 file format. Lets hope they will release it with the Galaxy Editor.

    As it seems, some of the UI elements are also in .m3 format. Maybe for better scaling at different resolutions? Doodads, other various models and even CLIFFS bare the same model file format.

    What intrigues me the most is that destructible/killable game objects (for instance units, buildings) have an additional mysterious .m3h file next to the original one. I looked through several of them and it looks that that file depicts the position of the attachment point (or maybe some other critical point) in the 3D model. This could very well mean, that we could add our own attachments to existing models, without the need to alter them. There are also a new set of files under name [Insert Unit Name]death.m3. Maybe a death animation file? Anyways, it seems that bigger, higher polycount models (such as the Mothership or buildings) have bigger (in KBs) "death animation" files than small ones, which have a close to 1:1 rate.

    Anyways, this adds much more freedom to the custom map creators on redefining already existing content, without the need of creating new, or altering existing. Also saves precious space.

    Oh and forgot to add. If my theoretical ramblings are correct the same effect model files (beams, explosions, floating bubbles, flying peons) could be used over and over without the need to include them with model (same is possible in WC3 but without such freedom of possible .m3h placement).

    I'm attaching screenshots for you to see. Explanation is also there.

    P.S. Don't look at .m3h endings in file property screenshots as I have selected both .m3h and .m3 files. .m3h files only take up to 8 KBs of space.
     

    Attached Files:

  9. Tigurius

    Tigurius

    Joined:
    Feb 23, 2010
    Messages:
    3
    Resources:
    0
    Resources:
    0
    We started documentation of *.m3, see http://www.madx.dk/wowdev/wiki/index.php?title=M3 for information about the fileformat. And *.m3h is just XML with another ending and containing things like attachmentpoints like FreshMobster mentioned.