Slatepaws Jun 30, 2013 @ 10:59am
A quick and dirty guide to Minimize crashes.
As the title says this is a quick and dirty guide to minimize your dungen defenders game from crashing. it won't eliminate crashes, has not for me. but it will lower the number of them.
I feel this is needed due to trendy ignoring many calls from many people on fixing the many problems in the game. Especially since it seems to have been shipped in an alpha/beta quality.

Please note, do at your own risk.
Also what you do in step 2 will prevent you from being invited, or to invite people to games.
And step 3 only works for non trendynet games. When you connect to trendynet it seems to use a config file of their servers ignoring yours clientside.

We will start simple.

Step 1:
After hours of using gdb(gnu debugger) and trying to get error statements on the console by running steam and dungeon defenders from the console. As well as looking through forum posts and bug reports i have found the following will help.

Ban/kick ANYONE who uses or brings in series ev to a game.
Not because that character is over powered and unblances the game, she doesn't.
It's because from what i can tell, the majority of 'my' crashes at least stem from what i think are multiple bugs in the code for her towers.
the character doesn't even have to be 'active', but series ev's towers have to be.
There seems to be a bug in the shader code for them and/or an error in the texture that either triggers and exception in your graphics driver(flgrx for amd and the propritary drivers from nivida) or in the 'experemental' sdl2 library.

The other bug with them has to deal with the effects of the towers too, either damage or blocking.
Under light attack there seems to be little chance of it triggering, though that chance goes up to a near certanty under heavy load.
I can trigger it on a near constant bassis by placing a physical beam and then putting a photon beam right in front of it to damage anything that attacks the former.

It also goes without saying that you yourself can not use series ev or play the tinkerers lab maps yourself till this is fixed. That is of course if your lucky enough to have them even after buying them.
As it seems the content is ip region locked to only a part of the united states.

Also disable the floating text for damage.

This applies to all platforms, windows, linux, and mac/bsd

Step 2:
Disable all steam in game functions.
This includes the overlay, the window pop up for acheivements, the window pop ups and sounds for friends coming online or sending you texts. etc.
Heck i would go as far as to say IF you want a less buggy version of the game, get the NON steam version.

I could buy four or five copy's of this game if i had a dollar for every time it segfaults when i get a notice that a friend has come online, or has started to play a game.

This applies to all platforms, windows, linux, and mac/bsd

Step 3(linux only, possibly mac too);

Unlike the windows version, we do not get the full suite of options from within the game, so prepare your favorite file browser and text editior.

first navigate to.
/home/(username)/.local/share/Steam/SteamApps/common/Dungeon Defenders/UDKGame/Config
Where (username) is the name of your user account.
The file we are looking for is 'DefaultEngine.ini'
Open it with your favorite editior and look for the following.

Upping the numbers in the

[TextureStreaming]

section as well as setting the following.

UseTextureFileCache=

To true helps a bit.

But THIS is what we are looking for.

bRendererUsesOneThread=

Set this to true.
There seems to be a BIG bug in their multi-threading code for the renderer, granted this kind of coding is not easy so it not entirely their fault.
What is though is the lack of in game option for this AND that said bug has not been squashed.
You will also see that trendy is using BOTH steam and gamespy for their online component, WTF trendy? O.o

Lowering this from 8 to four or less helps.

MaxAnisotropy=

The rest of the settings for this file appear to be for extra quality tweaks, and logging.
If anyone knows how to enable a verbose(detailed) logging for the game via this i would like to know. With it we can narrow in on what is causing the crashes.

We are not done yet though, this was just for the normal textures.
Save the file, then set it to read only or steam will undo this.
We have to go here for the shader settings.

/home/(username)/.local/share/DungeonDefenders/UDKGame/Config/

And open the file 'Mac-UDKEngine.ini' Yes it says mac in it but it seems the linux version uses this config file for 'your' settings.

We are looking for this.

bAllowMultiThreadedShaderCompile=

Change this from true to false.
The rest of the file seems to more or less be a clone of the other one, what ever you have set the other one too will reflect here after your next start up.
Like with the last one change the file properties to read only so you don't have to come back here.

Step 4 (optional):
Trendy has a physical address, I suggest a mass snail mail writing campain.
They seem to ignore emails, fourm posts and other things that ask for help or call for them to fix this fun but very flawed game.
The quality of this game will be highly reflective on the possibility of people actually getting dd2 with or without the moba mode.
I for one most likely will not unless they can show that it will be better made by fixing the problems with the original dd.

As a parting note, if anyone knows for example.
what settings in the ini files to enable logging or output on the console as for what the game is doing i would be glad for the information.
Showing 1-15 of 37 comments
< >
ruleof3rds Jun 30, 2013 @ 12:22pm 
Interesting info! Hmm. I don't think I've ever had this game crash on me (the occasional disconnect sure), and I've played over 500 hours on at least 3 different machines with different operating systems and video card brands. Maybe I've been lucky. I wonder what would account for the differences in our experiences. I've definitely not noticed the problem with the series EV. If you can't use the series EV in your game, the game is essentially broken for you, since the character is necessary for things like NMHC survival. Personally, I would be more interested in finding a fix then trying to play difficult levels without buff beam - "don't use an EV" is not going to be considered a viable option for most, I'd think.
Slatepaws Jun 30, 2013 @ 2:23pm 
Originally posted by ruleof3rds:
Interesting info! Hmm. I don't think I've ever had this game crash on me (the occasional disconnect sure), and I've played over 500 hours on at least 3 different machines with different operating systems and video card brands. Maybe I've been lucky. I wonder what would account for the differences in our experiences. I've definitely not noticed the problem with the series EV. If you can't use the series EV in your game, the game is essentially broken for you, since the character is necessary for things like NMHC survival. Personally, I would be more interested in finding a fix then trying to play difficult levels without buff beam - "don't use an EV" is not going to be considered a viable option for most, I'd think.
Then your a rare case in deed.
In googling many of the errors i found while getting this up. I discovered that these bugs are present in all platforms. and many people have them.
Noname Jul 1, 2013 @ 12:53am 
Great post. I'll try these today. I suffer from ev crashes making the game totally unplayable in nightmare (due to ev's joining). I think steam just upgraded to contain newer sdl, hope it will help too. I use 319.32 ndidia binaries.
Bons Jul 1, 2013 @ 2:53am 
The biggest issue for me is indeed the Series EV crash (Linux user here),i have this bug since i bought Dungeon Defenders for linux, and i regret it. The series EV crash makes gaming online unplayable,

I had hopes that Trendy net has fixed this bug with the release of the thinkerslab DLC, but i had too high hopes.

I hope that trendynet takes this bug seriously and fix this soon as possible, this game breaking bug is far too long in the game as i read how many people having problems with this bug and they not respond to it.

I think they are only caring about Dungeon Defenders 2 development now. its a shame to see a company port a game to Linux ( Its great that there are doning this, dont get me wrong). but after the port no bugfixes gets released (for Months), in this non-stable state i think they better had not released this game for linux :(,

Waste of my money, if if knew this i had bought an other game from a developer that stoot behind his game and fixed the game breaking bugs, It seems Trendynet has only one goal Money, Money, Money.
Last edited by Bons; Jul 1, 2013 @ 3:17am
Noname Jul 1, 2013 @ 4:09am 
Game was worth the money for me. I thought of buying extra heroes for nightmare but now it makes no point since nightmare pretty much always crashes.I had no problems with crashing before nightmare difficulty. Maybe easy/med/hard/insanse lack ev players... and thus i had no problems before.
Noname Jul 1, 2013 @ 4:10am 
btw. Still no tinkerer's lab for linux. Do you have it Bons?
I can join tinkerers lab games that others host but it doesn't show in my maps list at all.
Last edited by Noname; Jul 1, 2013 @ 4:12am
Bons Jul 1, 2013 @ 5:53am 
Originally posted by NoName:
btw. Still no tinkerer's lab for linux. Do you have it Bons?
I can join tinkerers lab games that others host but it doesn't show in my maps list at all.


it's not visible for me neither. it seems a issue with the linux port (can join hosted, tinkeres), a frend of mine is on Windows and he has accees to the DLC and its listed in his map list, if its listed on the Mac i don´t know.

I wonder if the Windows version of the game is newer than the linux build?
Tydo Jul 1, 2013 @ 6:04am 
windows version is 7.50. Not sure about linux.
Have you tried using the windows client in WINE to get it to unlock?
Bons Jul 1, 2013 @ 6:12am 
Linux is on version 7.48, (not changed since the port, i think). But i think that could explan why the map is not listed on the linux version.

I can try your wine suggestions, maybe the game runs better in wine also :(.
MarMar Jul 1, 2013 @ 6:35am 
Thanks a lot! It helped me and I have not crashed so far
Noname Jul 1, 2013 @ 1:53pm 
THANKS! played 2 hours straight, nmhc with series ev and monks. No crashes! I think it's bRendererUsesOneThread that helped me. I didn't have bAllowMultiThreadedShaderCompile in any config file. Or then it was 29 july steam beta client update (updated sdl libs).
Last edited by Noname; Jul 1, 2013 @ 1:56pm
Bons Jul 1, 2013 @ 2:12pm 
Originally posted by NoName:
THANKS! played 2 hours straight, nmhc with series ev and monks. No crashes! I think it's bRendererUsesOneThread that helped me. I didn't have bAllowMultiThreadedShaderCompile in any config file. Or then it was 29 july steam beta client update (updated sdl libs).


Hmm, i will try it, see if the crashes minimize :-), thanks :)
Last edited by Bons; Jul 1, 2013 @ 2:12pm
Slatepaws Jul 1, 2013 @ 6:46pm 
to bons: I can safely say that state of dungeon defenders 1 is highly influcing my desire to purchase the sequal. if this is how they are going to treat a paying customer.

to noname: did you mean the 'june' 29th one? well i just opted into the beta, copied the lib over from the 32bit lib folder and it is still crashing. will try again later with that lib removed from the game dir.

right now trying to get the windows version to work in wine(complaining about the visual studio redist..). this is why i prefer native.

to both, i am starting to think the only way to get their attention is to look up their mailing address and send them polite requests. maybe after a few hundred they will take notice.
Noname Jul 1, 2013 @ 9:55pm 
aah yes, june i meant :)
Noname Jul 1, 2013 @ 9:59pm 
i also took "postprocessing" away. Thats inside game in the video options.
Showing 1-15 of 37 comments
< >
Per page: 15 30 50
Date Posted: Jun 30, 2013 @ 10:59am
Posts: 37