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

    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 1 reply
    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 7 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
×
×
  • Create New...