Jump to content
The Dark Mod Forums

WYSIWYG readable editor not so WYSIWYG?


Recommended Posts

OK, so this is bothersome. Take any of the books or scrolls GUIs and the DarkRadiant readables editor will either show that they can fit text that is a line over or under what actually shows in-game. As an example, "guis/readables/books/book_hand_jd_hand.gui" will fit, in the preview, an extra line at the bottom that won't show up when I test inside the map.

Now what I've noticed is that the GUIs in the preview and those in-game have a different aspect ratio. I play on a 16:10 resolution. Is it that the GUIs get stretched rather than centered, could that be the cause? So, in the end, is it really a problem on DR's side or on TDM's? This kind of mismatch is dangerous because you can type out text lines in-editor and have them get cut short for players even if you see them yourself (provided resolution stretching really is the issue). Imagine it's some mission critical information that's in the readable and you have yourself a soft-lock.

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

Link to comment
Share on other sites

The GUI text placement code is definitely not perfect, I've been reverse-engineering it back in 2010.

If you have a concrete example, I can look into it and compare to it to the TDM sources, which we have available in the meantime.

Link to comment
Share on other sites

I've tested several now and it seems only the jd_hand GUIs give me trouble. (When I said "take any of the books or scrolls" I should've been read as meaning "any of this particular one that struck me as wrong 🙃") The double sided book one skips two lines at the end and the paper one skips a single line. I have not tested every single common-use GUI with its font thoroughly, to see if I catch another mismatch between the editor and in-game, but I'll provide the little test map here in a pk4 (the jd_hand ones have been set up to exhibit the bug, they are on a table in front of the player spawn). For testing, one can just go down the list in the readable editor, hit save, and reload xdata in-game to see if the number of lines matches.

wysiwyg.pk4

 

 

Edited by Spooks
adding a self-own
  • Thanks 1

My FMs: The King of Diamonds (2016) | Visit my Mapbook thread sometimes! | Read my tutorial on Image-Based Lighting Workflows for TDM!

 

 

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

    • 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.
      · 4 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
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...