Asphalt 7 DeviceConfig

xSvenHD

Senior Member
Aug 19, 2012
170
18
0
Hi,

I got Asphalt 7 for free from gameloft because moderncombat 3 doesn't work on my tf300 and they can't fix it.
The race game works good but i saw that u can change the graphics and other things in deviceconfig.xml but when i change something the game will download the normal deviceconfig.xml again and replace it with the one i changed. Is there a way i can bypass that data checking thing?
 

damagedgoods

Senior Member
May 31, 2012
159
70
0
You need to make sure the edited .xml file is exactly the same size as the one you pull out of the .obb

Also, the tweaks that were done for v1.0 won't work for the latest release. Seems GL are determined to cripple every release on all Tegra 3 devices.

Hamdir did the initial research on this but last time I saw he wasn't looking to spend any more time on it. I've got a working config for the One X I just need to get around to doing the final tweaks but once its done I'll look at getting one here too. The I/O may be an issue on the Asus but I don't know without checking.

Sent from my ASUS Transformer Pad TF300T using xda premium
 

xSvenHD

Senior Member
Aug 19, 2012
170
18
0
Ok thanks for your reply but the asphalt 7 data is stored in a map not in a file on my tf300

I will try to have it the same space

Sent from my ASUS Transformer Pad TF300T using xda app-developers app
 

damagedgoods

Senior Member
May 31, 2012
159
70
0
Unless the tf300 is different to the One X the files are in /sdcard/Android/obb/com.gameloft.android.ANMP.GloftA7HM

Inside this directory is a bunch of .bin files and an archive called main.101.com.gameloft.android.ANMP.GloftA7HM.obb

To access the files you need you change that .obb extension to a .zip and open the archive on your computer. DO NOT UNPACK IT. Just open it and navigate to /data/DeviceConfig/ and unpack DeviceConfig.xml It should be 22.15kb

This is the file that tells your device to pretend it's not as good as a Samsung Galaxy S3. Can't imagine why that would be....;) I would imagine the Tegra tablets like the tf300 are classified the same as the One X and use the settings labelled 'Android_Medium' Edit the settings to suit your requirements but do be careful not to go too crazy. Some settings will really send the game for a Burton. A safe bet is to copy the S3 settings and w ork from there. Go with 'true' for the high quality shaders on cars and buildings and turn reflections on for starters.

Now, this is the key bit. The file you finish with must be EXACTLY the same size as the one you started with. If a setting changes from "false" /> to "true" /> be sure to include an extra space. Tweak the spaces until the file sizes match. SAVE A BACKUP OF THE ORIGINAL DEVICE CONFIG FILE!!!

Save the edited file to your desktop and drag it into the /data/DeviceConfig/ archive. It will take a long time to copy across even though its only 22kb. Finally, once the file has been copied and compressed you must rename the archive back to .obb from .zip or the game will want to download the 1.4Gb of data again. Every time I've done this the game has told me it needs to install another 1mb of data before it runs. As long as the file I create is the same as the original the changes seem to hold. Not sure what it downloads and quite frankly I don't care. Now the game runs as it should and looks lush.

Fuuuuck you Gameloft!!!!

Sent from my partners TF300T - That's what your mum said!!

EDIT: Thanks go to Hamdir for doing this. I'm simply spreading the luuuuurve.
 
Last edited:

xSvenHD

Senior Member
Aug 19, 2012
170
18
0
Well the game data on my tf300 is stored like this: sd/android/data/nameofthegamemap there are all the files including devicecofig.xml
I bought the game from gameloft website it self.

EDIT: for some reason i can't upload photo's.
And when i replace or put 1 letter the file goes from 22.94 to 22.52 and when i change it back to normal it stays at 22.52
Sent from my ASUS Transformer Pad TF300T using xda app-developers app
 
Last edited:

damagedgoods

Senior Member
May 31, 2012
159
70
0
Well yeah that's what you'd expect. I've given an example below:

--Stock DeviceConfig.xml-- - section copied from Medium-Hidev class devices : "android_medium"

Code:
<bool name="use_dynamic_reflection_on_cars"  value="false"   />
<string name="showTrackLowLODDistance"  value="MEDIUM"    />
<bool name="use_gamma_luminance"	   value="false"     />
Look at that. Once you've shaken off the natural urge to burn whoever set those values take a look at how the different values are laid out.

--Tweaked DeviceConfig.xml-- - section pasted into Medium-Hidev class devices : "android_medium"

Code:
<bool name="use_dynamic_reflection_on_cars"   value="true"   />
<string name="showTrackLowLODDistance"  value="FAR"        />
<bool name="use_gamma_luminance"	    value="true"      />
On every line you remove a letter, you add a space. If you add a letter, you remove a space. Just be mindful that there is a lot of tabulation in the file which I've removed here. Just set the values you want, play around with the formatting and when the file sizes match it's happy days.

Get involved.
 
Last edited:

xSvenHD

Senior Member
Aug 19, 2012
170
18
0
Ok thanks for your short tutorial :)

But when even if the file is the same size i get the 1mb download data. And when i download that it replace the edited deviceconfig with the normal one. :confused:

Do you know a solution?

Thanks
 

ppmeis

Senior Member
Jun 7, 2012
135
46
0
La Coruña
Ok I made some modifications on this game...and now it looks AMAZING! Compare yourselve with screenshots below:

Before:



After:




BUT if you copy the game on internal SD framerate will be very laggy. I used DirectoryBind to move data files to External SD and now I can play almost smooth all the time (almost means if there's lot of cars on the screen game will lag a bit).
 

xSvenHD

Senior Member
Aug 19, 2012
170
18
0
I got it working now guys :D

I used a diffrent editor and it worked i used s3 settings and made it a little bit better looking from that.
Thanks for the help!

Sent from my ASUS Transformer Pad TF300T using xda app-developers app
 

ppmeis

Senior Member
Jun 7, 2012
135
46
0
La Coruña
I got it working now guys :D

I used a diffrent editor and it worked i used s3 settings and made it a little bit better looking from that.
Thanks for the help!

Sent from my ASUS Transformer Pad TF300T using xda app-developers app
Could you please share your DeviceConfig.xml for compare with mine? Thanks.
 

jzen

Senior Member
Oct 9, 2010
720
254
0
I would love to have the high GFX config! Please share it when you get a chance!

How do i work the directorybind app? Very interesting if it allows for games to run smooth.

I tried getting gameloft games to move to sd with it but I can't figure it out.
 
Last edited:

marcomesa

Senior Member
Sep 18, 2012
297
19
0
asphalt 7

I guys, I try yours procedure but without success. I tried to rename the obb file in zip, find the deviceconfig. XML and then paste the one I find here, nothing.. The game is still low res... Did you notice there is a device configuration. XML also in the main game directory? Do we have to do something with this one?
I guess my Asphalt 7 version is the latest... Waiting for your tips... ****ing gameloft...

Sent from my HTC one S using xda app-developers app
 
Last edited:

marcomesa

Senior Member
Sep 18, 2012
297
19
0
Today I did another try:

1) I try to open the xxxxxyy.obb file and add the devicecongig.xml...no software can do this. In fact from 7 zip to winrar they sad me impossible, archive corrupt and so on.
2)I try to manual edit the devicecongig.xml and add in every row of "medium device" "FAR" or "true". I start the game nothing change, same crappy graphic. I come back and I find out the devicecongi.xml come back to the previous version.

This is very annoying, in the screenshot it seems very cool game, and I have a tegra 3 that is supposed to be the best in graphic gaming...and in my tablet asus tf300 the game look like a ps1 game

daoes anybody find out a solution and want help me?

I guys, I try yours procedure but without success. I tried to rename the obb file in zip, find the deviceconfig. XML and then paste the one I find here, nothing.. The game is still low res... Did you notice there is a device configuration. XML also in the main game directory? Do we have to do something with this one?
I guess my Asphalt 7 version is the latest... Waiting for your tips... ****ing gameloft...

Sent from my HTC one S using xda app-developers app
 

ppmeis

Senior Member
Jun 7, 2012
135
46
0
La Coruña
OK I'm back again, but I have to do some changes on my tablet and I have to test it again. Once I'm done and tested I'll share my DeviceConfig file. Stay tuned.
 

marcomesa

Senior Member
Sep 18, 2012
297
19
0
Thanks, and could you tell me how to add the deviceconfig.xml file to the obb archive...no software actually ca do it. Every software say "archive corrupted" or something similar...
OK I'm back again, but I have to do some changes on my tablet and I have to test it again. Once I'm done and tested I'll share my DeviceConfig file. Stay tuned.