Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Fix for TrueType crash  (Read 805 times)

Carnes

  • Bay Watcher
  • Near a good old-time canteen.
    • View Profile
Fix for TrueType crash
« on: June 22, 2011, 11:58:42 pm »

Hey guys, gal, and lurkers.  This is my first topic post(please be kind!).

I recently had the CTD (crash to desktop) when {v}iew Units->{i}nventory was used on a military dwarf.  Some searching through the bug/mantis thing said it was a TrueType font problem.  Their solution was to turn off TrueType or wait for a fix.  I tried turning off TT but text scrolls right off the screen, i'm probably spoiled but it didn't look right. 

The solution is to replace font.ttf (located in /data/art/) with a font from here: http://www.fontex.org/download/Gentium-basic.ttf  I also replaced "default font.ttf" but i don't think that is the one used.

Further exploration of the original problem.  I recreated the problem and fix to make sure it worked.  The problem (for me anyways) will only crop up in a maximized window.  Default window size didn't CTD.  I'm also using Ironhand's tileset v0.57 for 31.25 located here: http://www.bay12forums.com/smf/index.php?topic=53180.0 and Fortress Defense mod (basic) from here: http://www.bay12forums.com/smf/index.php?topic=62874.0

I hope this is helpful to someone here.  Even with seasonal saves, losing progress sucks.  Also, i wanted to ask if anyone has solved this with a different font?  Does anyone have different font suggestions?
Logged
You call that breaking my spine?! You Forgotten Beast ladies wouldn't know how to break a spine if-
SNAP
AUGHHH! MY SPINE!

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Fix for TrueType crash
« Reply #1 on: June 23, 2011, 12:14:50 am »

This font has working ☼≡♂♀ symbols, and has never crashed for me, even when I play fullscreen:
http://dffd.wimbli.com/file.php?id=4460

Not to try and hijack the thread, but the font preview on that sight didn't give me any of those symbols, so I put for this one that does.

Carnes

  • Bay Watcher
  • Near a good old-time canteen.
    • View Profile
Re: Fix for TrueType crash
« Reply #2 on: June 23, 2011, 01:45:24 am »

so I put for this one that does.

Nice!  Yes, the working symbols is very welcome.  I like the text a little bolder and found a version of Tuffy with several different variations: http://www.dafont.com/tuffy.font  The version number (1.220) is identical to yours, so hopefully it will be crash free as well.

Thanks for the font!  I previous abandoned a fort after multiple crashes.  Even though it was only a month or two lost each time.. it is frustrating and depressing.  How long have you been using a custom font?  and do you have any other game "enhancements" i could borrow?
Logged
You call that breaking my spine?! You Forgotten Beast ladies wouldn't know how to break a spine if-
SNAP
AUGHHH! MY SPINE!

Girlinhat

  • Bay Watcher
  • [PREFSTRING:large ears]
    • View Profile
Re: Fix for TrueType crash
« Reply #3 on: June 23, 2011, 02:07:55 am »

Hmm, been using it since I found it in late .18 early .19, sometime around then.  Aside from that, lower your graphical framerate a bit (how fast the images refresh), and there's some sort of g-input thing or something, that checks for commands.  If it's set high, it checks fast and never misses a button.  If it's slow, it might miss it if you press a button, but usually the "low range" is very fast and catches all commands.  Both of these can help FPS greatly and are often overlooked in favor of kitten slaughters.

Try making the corner wall tiles slanted, this should make diagonal walls easy and (with the default tileset) should be very easy to change using MSPaint or such.  Instead of building a circle and having it look like "stairs", it looks like "smooth ramps".  I downgraded my Phoebus tileset so I could get my diagonal walls.  So much better!

Poking the init, you can change the priority higher so that DF requests more CPU power, can push up your FPS while leaving non-essential background things like chat programs and music players to make due with less.  I also changed my announcements to pause and recenter every time a dwarf dies, so that I don't miss any important deaths, and changed the init.txt option to give a half-second break after the game pauses.  This way, when someone dies, I don't accidentally hit some key and unpause/mess up what I was doing.

There's a lot of little tweaks you can make to enjoy the interface more.  I turned off the FPS gauge at the top, it stressed me out too much to watch it slowly fall :P