Jump to content
The Dark Mod Forums

.mtr Problem


Springheel

Recommended Posts

I committed two .mtr files to CVS a few days ago. All I did was paste a new entry at the end, but when I look at them now they look like this:

 

textures/darkmod/mansion/floor/manfloor01{    qer_editorimage  textures/darkmod/mansion/floor/manfloor01.tga    diffusemap      textures/darkmod/mansion/floor/manfloor01.tga        specularmap      textures/darkmod/mansion/floor/manfloor01_s.tga    bumpmap          textures/darkmod/mansion/floor/manfloor01_local.tga}textures/darkmod/mansion/floor/manfloor02{    qer_editorimage  textures/darkmod/mansion/floor/manfloor02.tga    diffusemap      textures/darkmod/mansion/floor/manfloor02.tga        specularmap      textures/darkmod/mansion/floor/manfloor02_s.tga}textures/darkmod/mansion/floor/manfloor02cen1{    qer_editorimage  textures/darkmod/mansion/floor/manfloor02cen1.tga    diffusemap      textures/darkmod/mansion/floor/manfloor02cen1.tga        specularmap      textures/darkmod/mansion/floor/manfloor02cen1_s.tga}textures/darkmod/mansion/floor/manfloor02cen2{    qer_editorimage  textures/darkmod/mansion/floor/manfloor02cen2.tga    diffusemap      textures/darkmod/mansion/floor/manfloor02cen2.tga        specularmap      textures/darkmod/mansion/floor/manfloor02cen2_s.tga}textures/darkmod/mansion/floor/manfloor03{    qer_editorimage  textures/darkmod/mansion/floor/manfloor03.tga    diffusemap      textures/darkmod/mansion/floor/manfloor03.tga        specularmap      textures/darkmod/mansion/floor/manfloor03_s.tga}textures/darkmod/mansion/floor/manfloor04{    qer_editorimage  textures/darkmod/mansion/floor/manfloor04.tga    diffusemap      textures/darkmod/mansion/floor/manfloor04.tga        specularmap      textures/darkmod/mansion/floor/manfloor04_s.tga}textures/darkmod/mansion/floor/manfloor05{    qer_editorimage  textures/darkmod/mansion/floor/manfloor05.tga    diffusemap      textures/darkmod/mansion/floor/manfloor05.tga        specularmap      textures/darkmod/mansion/floor/manfloor05_s.tga    bumpmap          textures/darkmod/mansion/floor/manfloor05_local.tga}

 

It's as if all the hard-returns disappeared. I suspect that's what is causing Demi-god's problem. I'll go through and fix it, but can anyone tell me why it might have happened in the first place? I was using notepad, if it matters.

Link to comment
Share on other sites

textures/darkmod/mansion/floor/manfloor02_s.tga}textures/darkmod/mansion/floor/manfloor02cen1{ 

 

So it will know that the above isn't one long path?

Link to comment
Share on other sites

Ok, then...if that's the case I have no idea why Demi-god's textures don't work. I still find it quite a coincidence that the only ones not working are the ones that were scrambled.

Link to comment
Share on other sites

You should not use notepad because it can not handle unix linefeeds.

 

What the heck are those and why would we need to have them in a .mtr file?

Link to comment
Share on other sites

I store everything with unix linefeeds. This means that the textfiles have only 0x0a as a linefeed. Windows uses 0x0a 0x0d as linefeeds. Any decent editro can handle it but notepad is not a decent editor. Since we are using it this way all the time, we should stick to it. And it is easier this way to use all the files on Linux without conversion. Though I think that the linux version of D3 can probably handle both ways anyway.

Gerhard

Link to comment
Share on other sites

Uniox doesn't use anything. But the usualy way to store flat ASCII files is to use the linefeeds I posted above. Unicode would be a binary enconding. There are certainly editors (I guess) which can support this, but it's not the native format.

Gerhard

Link to comment
Share on other sites

The way I usually do this is via FTP. If you have a flatrate like me than this is a rather convinient way to do. :)

 

Upload the file as ASCII to a UNIX FTP of your choice, switch to binary transfer and download it again. Of course this works only if the target FTP is a unix machine, because the FTP protocoll converts textfiles to the native format.

 

The other ways to do this would involve some unix scripting. At least that's how I do this usually. I don't know of an editor where you can specify this, because most editors that I use simply store it the way they loaded it.

Gerhard

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
Reply to this topic...

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

  • Recent Status Updates

    • Petike the Taffer  »  DeTeEff

      I've updated the articles for your FMs and your author category at the wiki. Your newer nickname (DeTeEff) now comes first, and the one in parentheses is your older nickname (Fieldmedic). Just to avoid confusing people who played your FMs years ago and remember your older nickname. I've added a wiki article for your latest FM, Who Watches the Watcher?, as part of my current updating efforts. Unless I overlooked something, you have five different FMs so far.
      · 0 replies
    • Petike the Taffer

      I've finally managed to log in to The Dark Mod Wiki. I'm back in the saddle and before the holidays start in full, I'll be adding a few new FM articles and doing other updates. Written in Stone is already done.
      · 4 replies
    • nbohr1more

      TDM 15th Anniversary Contest is now active! Please declare your participation: https://forums.thedarkmod.com/index.php?/topic/22413-the-dark-mod-15th-anniversary-contest-entry-thread/
       
      · 0 replies
    • JackFarmer

      @TheUnbeholden
      You cannot receive PMs. Could you please be so kind and check your mailbox if it is full (or maybe you switched off the function)?
      · 1 reply
    • OrbWeaver

      I like the new frob highlight but it would nice if it was less "flickery" while moving over objects (especially barred metal doors).
      · 4 replies
×
×
  • Create New...