How to play Dungeon Defenders on a Droid or Milestone

Varking

Member
Joined
Nov 5, 2009
Messages
574
Reaction score
0
Location
Winston Salem
This comes to you via Progor on the official forums for Dungeon Defenders which can be found here: Dungeon Defenders Forum

And the original thread he created can be found here: How to play on a Motorola Droid or Droid Milestone.


Progor writes:

Want to play Dungeon Defenders, but have the Motorola Droid or Milestone? Well, it's not officially supported due to only having 256 MB of RAM. However, it does have the GPU to support the Unreal graphics, so if we can work around the memory limitations, we can get it to work. Luckily, the game itself only requires 256 MB of RAM, it just needs that much left over after the OS and any other running services take their portion, so it can work! This procedure may also work on other phones that only have 256 MB of RAM, but have the graphics muscle to handle it. It won't help phones with ARM11 processors like the G1, Hero, and such, though. As far as I know, the Motorola Droid is the most popular android phone right now, so this should help a lot of people.

Here's what you have to do. First, root your phone. I recommend following this guide for the Droid:

http://www.droidforums.net/forum/droid-labs/74028-root-droid-1-regardless-os-version.html

I don't have a Milestone, but even with its locked bootloader, it has been rooted. Try following this guide if you have the Milestone:

How to Root Motorola Milestone on Android 2.1 My Digital Life

Once you do that, the rest of the instructions should be just the same for both phones.

Then you'll need a rom with a kernel that supports swap space. I recommend Ultimate Droid 2.5, but any custom rom should do. Download it from:

The Ultimate Droid - Forums -> Download Manager -> Motorola Droid -> The Ultimate Droid 2.5.0

Then, get "Rom Manager" from the market. The free one is fine. (There are other ways to install custom roms, but this is among the simpler ones). You'll need to flash the Clockwork Recovery (the first option in the program - allow it super user privileges when it asks), then choose install from SD card, navigate to your downloads folder, or wherever you put the rom you just downloaded, and select it. It will reboot your phone, act like it's doing an OTA update, and when it reboots you'll have a custom rom.

Then, you'll want to overclock to get the speed to handle the game. Ultimate droid provides an easy way to do this. From the home screen, press the menu button, then settings, UltimateDroid Settings, Built-In Overclocking. Make sure Enable CPU frequency scaling is checked, Check that the scaling governor is set to ondemand, set your minimum overclocking speed to 250 (any lower and it will not wake up for phone calls well), and set your maximum overclocking speed to 800.

Then, download an app from the Market called Swapper 2. For anyone interested in the technical details, this creates a file on your SD card to use as swap space, and enables swap usage in the kernel. Launch Swapper 2, go to menu, busybox, and Download it. Then, go to menu, settings, and set the swap size to 128 MB (DunDef is choppy at 64 MB, but works pretty well at 128 MB - you may need to experiment with higher values if you have lots of services running). Also, set the swappiness to at least 20. You may want to experiment with even higher values to try to improve system responsiveness i.e. if the phone rings in the middle of a game. Finally, exit the menu and click the On button at the top. There may be a few errors, but give it a minute or two. It takes a little while to allocate that large of a file on an SD card. You may have to turn swap off and back on a few times to get it to work, but make sure you have 256MB free on your SD card if you have problems, and be sure to give it at least 5 minutes if it looks like it's not doing anything. Note that this app greatly increases SD card usage (particularly writes), so it will shorten its lifespan. Also, it may actually degrade system performance to leave this on all the time. If you plan to do that, consider getting a Class 6 micro SD card to replace the cheap one that came with the phone. Its higher speed will make it better suited for swap space. If all you care about is running DunDef though, turn on Swapper 2 before a play session, and off after you finish, and any card should work. Just don't expect to actually be able to answer a phone call in the middle of a game.

Now, finally, you should be able to run Dungeon Defenders. It does take longer to load this way - it has to move all the operating system and any other running apps to swap during the loading process to free up space for the game, but at least it gives us a way to run it. I am able to run the game at full resolution with little to no graphics lag. One thing I noticed is that if I get a phone call during a session, I had to reboot the phone to get the game to load back correctly. This may not be the case with a larger swap file. And I was not able to answer the phone in time to actually get my phone call, either. Maybe higher class SD might resolve that issue.

Either way, for those of us who have the original Motorola Droid/Milestone and are either not up for an upgrade yet or are waiting for Tegra 2 phones to show up (like the Motorola Etna), then this represents the only way to get Dungeon Defenders going on this phone. My Droid has yet to fail me, and for a phone that was released before the Snapdragon/Hummingbird line of processors became available, it has proved to be a very resilient and powerful machine. Dungeon Defenders does, however, represent pretty much the top end of the phone's capabilities. I'm just happy to see my phone can run a game that was originally slated to only be able to run on Tegra GPUs.

Post if you have any issues, and I'll answer any questions I can.

Thanks goes out to him but I really just wanted to help spread the word to us original Droid users who wanted to play this awesome game but unfortunately couldn't upgrade or wanted to wait for one. Thanks to him again!
 

cydetrakd

Member
Joined
Feb 6, 2010
Messages
209
Reaction score
0
has anyone got this working yet? i cant seem to get it to work running cm6.1.2
 
OP
Varking

Varking

Member
Joined
Nov 5, 2009
Messages
574
Reaction score
0
Location
Winston Salem
I confirmed it works on my Motorola Droid. I have it running UltimateDroid, overclocked to 1.25ghz, and all my settings are higher for my swapper2 than he used.
 

cydetrakd

Member
Joined
Feb 6, 2010
Messages
209
Reaction score
0
I confirmed it works on my Motorola Droid. I have it running UltimateDroid, overclocked to 1.25ghz, and all my settings are higher for my swapper2 than he used.

what are the settings do you have for swapper2 to get it running smoothly if you dont mind me asking i have it oc'ed to the same spec but it only loaded once. i just wasnt patient enough for it load all the way. I tried with comp cache on and off oc'ed at 1.25ghz and my swap settings are 256 and 60 swappiness. id like to know you swapper2 config to see if that helps cause ud doesnt like my girl's og droid because right now it runs but not too smoothly.
 

taktix101

New Member
Joined
Dec 26, 2010
Messages
7
Reaction score
0
Confirmed working on my Moto Droid 1 (A855). Configuration as follows:

ROM: Cyanogenmod 6.1.2
Kernel: CVPCS 7-slot 1000Mhz low-voltage
RAM: AutoKiller Memory Manager (preset 6/12/16/82/90/98), Compcache set to 26%
Swap: 256Mb Linux-Swap partition* (created manually using Gparted), swappiness at 60

*I don't know if there are any in-game performance benefits to using an actual partition, but it sure beats waiting around for Swapper 2 to allocate a 128Mb+ swap file.

I'll be interested to see if anyone has any heat issues running their CPU higher than 1Ghz. I have my SetCPU set to reduce clock speed at specific heat increments, and when I exited my CPU was running 45 degrees celcius @ 800 Mhz

You know what's hilarious? I tried this approach the day the game came out (bought the app without checking its compatibility first....) and was furious that I couldn't get it to work....now I realize it's because my 'swappiness' was too low: THANK YOU VARKING/PROGOR!!!!! :D
 
OP
Varking

Varking

Member
Joined
Nov 5, 2009
Messages
574
Reaction score
0
Location
Winston Salem
I confirmed it works on my Motorola Droid. I have it running UltimateDroid, overclocked to 1.25ghz, and all my settings are higher for my swapper2 than he used.

what are the settings do you have for swapper2 to get it running smoothly if you dont mind me asking i have it oc'ed to the same spec but it only loaded once. i just wasnt patient enough for it load all the way. I tried with comp cache on and off oc'ed at 1.25ghz and my swap settings are 256 and 60 swappiness. id like to know you swapper2 config to see if that helps cause ud doesnt like my girl's og droid because right now it runs but not too smoothly.

First, I have compcache turned off in UltimateDroid Settings.

I do not have Swapper running at startup since I do not want to abuse my SD Card. I turn it on to play Dungeon Defenders, and off right after.

Swap size is set to 128 mb but I am going to set it to 192 and see how it goes.

He said set swappiness to at least 20, I have mine at 60.

I have SetCPU and UltimateDroid Settings set to have me run the game at 400mhz at the slowest, and 1.25ghz at its fastest, while using the OnDemand setting but I will test to see how putting it on Performance effects it.
 

overtwo

Member
Joined
Dec 22, 2010
Messages
78
Reaction score
0
Working~!

Droid1 - ProjectElite v4 - Slayher 1.1ghz - Compcache (enabled)

Thank you very much for this find! I bought the game the day it was released on the market but haven't been able to launch it since. And while it took a half hour to download the game directory, I was out of time for a return (which I didn't mind much since I figured there would be a fix soon!). :)
 
OP
Varking

Varking

Member
Joined
Nov 5, 2009
Messages
574
Reaction score
0
Location
Winston Salem
Yeah I was out of the refund period as well but kept it anyways because I will download it again once it is out for PS3. Glad it is working for more people. Sometimes even after a swap it won't load so I just reboot the phone real quick and then end up playing for about two to three hours.
 

joeybarclay

Member
Joined
Jun 30, 2010
Messages
703
Reaction score
1
I couldn't get this working on Gingerbread but I guess thats what I should expect since I cant even play angry birds
edit: What is the difference between swapper and compcache?
 
OP
Varking

Varking

Member
Joined
Nov 5, 2009
Messages
574
Reaction score
0
Location
Winston Salem
I couldn't get this working on Gingerbread but I guess thats what I should expect since I cant even play angry birds
edit: What is the difference between swapper and compcache?
The way it handles the command to offload all that stuff is different. It is explained on the dungeon defenders forum in the thread I linked.
 

joeybarclay

Member
Joined
Jun 30, 2010
Messages
703
Reaction score
1
which kernels work with swapper? I couldn't get the one thats default with UD to work
I get
Code:
 turning swap off(file) FAIL
 swapoff: cant stat /sdcard/swapfile.swap': No such file or directory
Removing swap file FAIL
rm: cant remove '/sdcard/swapfile.swp': No such file or directory
 
OP
Varking

Varking

Member
Joined
Nov 5, 2009
Messages
574
Reaction score
0
Location
Winston Salem
It still works after the fail. Follow the steps, wait to minutes after it's over, and then try Tue game. I get the fails too.
 

taktix101

New Member
Joined
Dec 26, 2010
Messages
7
Reaction score
0
Compcache and swap are 2 totally different things. Compcache is a portion of the system's normal RAM that is compressed in order to increase the overall amount of information that can be cached. This boosts the total amount of RAM available, but the compressed portion will read/write slower.

Swap (controlled by Swapper) is not true RAM: its a portion of your sd card that your system uses as supplementary memory. It is MUCH slower than RAM, and should avoid being used under normal operating circumstances as overtime it will degrade the life of your SD card. In between playing, reset your "swappiness" to 0 in order to disable swap without having to recreate the swap file.
 

taktix101

New Member
Joined
Dec 26, 2010
Messages
7
Reaction score
0
BTW, the way you can test to see if swap is truly enabled even after all the "Fail" messages, is press menu > info in swapper, and see if there is a number assosciated with swap.

You can also check this by opening the android terminal emulator and entering "free" and checking to see if your system currently has any swap space enabled.
 
Top