android savefile location

20 replies [Last post]
Joined: 12/02/2011

Hey, I bought WoG just recently and I'm excited to play it while on the tram now! One thing I'd like to is to transfer my savefile from my desktop computer to my android phone, but I can't find pers2.dat anywhere on my android phone (which is supposed to be the savefile). Where can I find the savefiles on android? If anything I'd like to know how to back them up since I do a lot of re-flashing on my phone.

Thanks!

Joined: 12/23/2010

Well, the Android version of WoG is fairly new, and as such I don't think there's an awful lot known about any technicals such as pers2.dat, or at least on this site. I don't think anybody here even has WoG on an Android.
Even if we did know the location of the save file, I'm not sure if you'd be able to transfer it from your PC.

The best I can suggest is looking here at the information about the iPhone version. It might give some clues to where pers2.dat is hiding.

Joined: 07/08/2011

The mobile versions of World of Goo use "properties" rather than a file to save data. Look up where the World of Goo app properties would be, then find them. Get the data and do anything to make it look like the PC game's save format, then encrypt it and replace the file on the PC.

Joined: 08/06/2010

Other way around, Red.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 07/08/2011

Oh right. Tongue Check out the format of the file on the Android, decrypt the PC file, make it look like the Android's, replace the Android's. Either that or take the appropriate block of text from the PC's save file and replace that same block of text in the Android's.

Joined: 12/02/2011

Hi all, thanks for the comments. I think I managed to find the folder after all, my earlier mistake was looking after it only in the internal and external SD cards. The files seems to be into the phone internal storage:

/datadata/com.twodboy.worldofgoofull

Since you said there was a lack of information of how the android version behaves, I supply here a full file list of that folder gained with ls -R:

localhost com.twodboy.worldofgoofull # ls -R
.:
cache databases files lib shared_prefs
./cache:
webviewCache
./databases:
google_analytics.db webview.db webview.db-wal webviewCache.db-shm
manifest.db webview.db-shm webviewCache.db webviewCache.db-wal
./files:
WorldOfGoo.log firstRun of_prefs pers2.dat webui
./files/webui:
dashboard gamefeed index.html javascripts settings
facebook images intro ofx stylesheets
./files/webui/dashboard:
achievements.json local_game.json
compare_achievements.json me
developer_announcement.json offline.json
developer_announcement_list.json players.json
friend_requests.json profile.json
friends.json statusupdate.json
game.json tabs_home.json
games.json user.json
leaderboard.json user_search.json
leaderboards.json
./files/webui/dashboard/me:
friends.json games.json
./files/webui/facebook:
friends.json
./files/webui/gamefeed:
android ios
./files/webui/gamefeed/android:
config.json config.json.tweaked config_is_tweaked test.hdpi.png
./files/webui/gamefeed/ios:
config.json config.json.tweaked config_is_tweaked
./files/webui/images:
OF_Leaf.hdpi.png icon.user.male.hdpi.png
att_of_logo.png icon.user.male.large.hdpi.png
badge.hdpi.png icon_addFriends.hdpi.png
blue_bg_gradient.png icon_arrow_down.hdpi.png
blue_button.png icon_arrow_up.hdpi.png
blue_button_hit.png icon_check.hdpi.png
blue_line.png icon_facebook_large.hdpi.png
bottom_body.png icon_facebook_sm.hdpi.png
button.gray.hdpi.png icon_friends_small.hdpi.png
button.gray.hit.hdpi.png icon_games_small.hdpi.png
button.gray_price.hdpi.png icon_plus_white.hdpi.png
button.green.hdpi.png icon_wall.hdpi.png
button.green.hit.hdpi.png icon_x.hdpi.png
button_check.hdpi.png input.text.hdpi.png
button_checked.hdpi.png intro.achievements.hdpi.png
button_gray.hdpi.png intro.friends.hdpi.png
button_gray_hit.hdpi.png intro.games.hdpi.png
button_orange.hdpi.png intro.leaderboards.hdpi.png
button_orange_hit.hdpi.png intro_bg.png
button_store_disabled.hdpi.png loader.gif
carrot.gif loading.spinner.hdpi.png
carrot.png loading.spinner.light.hdpi.png
cell_table_hit.hdpi.png logo.hdpi.png
circles.hdpi.png logo.small.hdpi.png
complete_profile.png logo_icon.hdpi.png
dashboard mid_body.png
feint_spotlight.hdpi.png of_logo.png
find_friends.png price_box.png
frame.profile.hdpi.png replay.hdpi.png
frame.small.hdpi.png settings
frame_large.png smallFrame.hdpi.png
frame_small.png space.dark.hdpi.png
green_bar.png space.grid.hdpi.png
header_bg.hdpi.png space.light.hdpi.png
icon.achievement.gamerscore_coin.hdpi.png statusBubble_Landscape.hdpi.png
icon.achievement.hdpi.png statusBubble_Landscape_Hit.hdpi.png
icon.achievement.locked.hdpi.png statusBubble_Portrait.hdpi.png
icon.achievement.unlocked.hdpi.png statusBubble_Portrait_Hit.hdpi.png
icon.friend.hdpi.png tab.active_indicator.hdpi.png
icon.friends.hdpi.png tab.bg.hdpi.png
icon.game.hdpi.png tab.bg_hit.hdpi.png
icon.leaderboard.hdpi.png tab.divider.hdpi.png
icon.leaf.gray.hdpi.png textField_Large.hdpi.png
icon.leaf.green.hdpi.png textarea_bg.png
icon.leaf.white.hdpi.png top_body.png
icon.play.hdpi.png whiteDisclosure.hdpi.png
icon.search.button.hdpi.png white_left_gradient.png
icon.search.hdpi.png white_right_gradient.png
./files/webui/images/dashboard:
android_game.hdpi.png icon_profile_report_user.hdpi.png
higher_achievement.hdpi.png icon_wrench.hdpi.png
icon.achievement.small.hdpi.png ios_game.hdpi.png
icon.check.green.hdpi.png iphone.sad.hdpi.png
icon.disclosure.hdpi.png lower_achievement.hdpi.png
icon_announcement.hdpi.png more_options_collapsed.png
icon_disclosure.hdpi.png more_options_expanded.png
icon_friend_badge.hdpi.png offline.background.landscape.hdpi.png
icon_profile_block_user.hdpi.png offline.background.portrait.hdpi.png
icon_profile_remove_friend.hdpi.png tabs
./files/webui/images/dashboard/tabs:
tab_community_grey.hdpi.png tab_games_grey.hdpi.png tab_profile_grey.hdpi.png
tab_community_white.hdpi.png tab_games_white.hdpi.png tab_profile_white.hdpi.png
tab_divider_left.hdpi.png tab_green.hdpi.png
tab_divider_right.hdpi.png tab_grey.hdpi.png
./files/webui/images/settings:
button_radio_off.hdpi.png button_radio_on.hdpi.png
./files/webui/intro:
forgot_password.json index.json multiple_accounts.json tos.json
found_device.json login.json new_account.json
./files/webui/javascripts:
dashboard ofx webui-core.js
date-format.js settings webui-helper.js
game_channel_features.js template.js webui-page.js
game_channel_models.js underscore.js webui-pagestack.js
gswipe.js webui-action.js webui-profiler.js
head.js webui-analytics.js webui-touch.js
jquery.js webui-api.js webui.js
json2.js webui-control-tabs.js
./files/webui/javascripts/dashboard:
dashboard.js games.js statusupdate.js
dashboard_model.js models.js user.js
developer_announcement.js players.js
developer_announcement_list.js profile.js
./files/webui/javascripts/ofx:
ofx.js
./files/webui/javascripts/settings:
notifications.js profile_configuration.js
privacy_settings.js profile_secure.js
./files/webui/ofx:
confirm.json secure.json
./files/webui/settings:
email.json parental_controls_disable.json profile_secure.json
forgot_password.json parental_controls_enable.json remove_account.json
index.json password.json secure.json
name.json privacy_settings.json
notifications.json profile_configuration.json
./files/webui/stylesheets:
dashboard ofx webui.css
game_channel.css settings webui3.css
./files/webui/stylesheets/dashboard:
compare_achievements.css games.css statusupdate.css
developer_announcement.css players.css tabs_home.css
developer_announcement_list.css profile.css user.css
./files/webui/stylesheets/ofx:
ofx.css
./files/webui/stylesheets/settings:
privacy_settings.css profile_configuration.css profile_secure.css
./lib:
libworldofgoo.so
./shared_prefs:
FeintAnalytics.xml OFWebUI.xml 

note that pers2.dat is under ./files! I haven't looked into it yet or tried to replace it with my desktop version. Once i have done that, I'll post the results.

Joined: 12/02/2011

Just wanted to report back, copying pers2.dat from my linux desktop to android went without a hitch, no decryption or any other hassle was required. I'll try to post a mini step-by-step tutorial on how to do this.

Joined: 08/06/2010

Hm. It looks like there are a bunch of resource imnages and stuff.

But if there is a real pers2.dat, it can probably be transferred onto your computer! Just copy it to %APPDATA%\2D Boy\World of Goo.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 12/02/2011

Actually, I'm running linux and I was intrested into transferring it from my linux box to my android phone, which has been successfully done Smile

Here's a short guide on how I did the transfer:

1. First of all, find your savefile on your computer. Detailed instructions on where you can find your savefile are in this link: [http://goofans.com/developers/game-file-formats/profile-file-format](http://goofans.com/developers/game-file-formats/profile-file-format)

2. Once you've found your savefile (which is named pers2.dat), copy it anywhere to your android phone.

3. Make a backup of your existing savefile just in case things goes haywire, its located on the phone at this folder:

/datadata/com.twodboy.worldofgoofull/files/pers2.dat

Though the phones console, I did the backup through these commands

cd /datadata/com.twodboy.worldofgoofull/files/
mv pers2.dat pers2.dat.backup

4. Copy your desktop savegame into /datadata/com.twodboy.worldofgoofull/files/ and make sure its named pers2.dat (mind the lowercase).

I did a transfer from my linux native world of goo savegame into the phone and it worked fine, no need to change permissions, Ipad decryption or anything. My phone is rooted and I did this whole thing through webkeys web interface - however I doubt that rooting is required in order to do this. This is one way of doing it and I'm sure you will find an easier way.

I'm writing this because I'm notoriously lazy and don't want to the same work twice through the game. Since there isn't much documentation about the android port, I decided to share it here.

Enjoy!

Joined: 08/06/2010

Yep! It works with any version of the savefile, if the encryption is right (it needs to be 2DBoyAES). Convert if you're on a mac.

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 07/05/2011

adb pull /datadata/com.twodboy.worldofgoofull ../pulled/
remote object '/datadata/com.twodboy.worldofgoofull' does not exist

Failed. Sad
I'm running Windows and Android Debug Bridge and how can I get the profile?

Joined: 07/05/2011

I find that playing World of Goo with adb logcat is fun!

Joined: 08/06/2010

What would that do?

Another Planet finally has an official release! Download chapters 1 through 3 here! Thank you for waiting so long while I kept starting over.

Joined: 07/05/2011

Output fps, IO Error, etc.

Joined: 12/02/2011

Mygod wrote:
adb pull /datadata/com.twodboy.worldofgoofull ../pulled/
remote object '/datadata/com.twodboy.worldofgoofull' does not exist

Failed. Sad
I'm running Windows and Android Debug Bridge and how can I get the profile?

I'm running Cyanogenmod7 which MIGHT cause my folder structure to be different. In order to find your world of goo folder on the phone, start up the console and cd into the phones root folder. once there, you can initiate a search with:

find . -name "*twodboy*"

Let me know if you sort it out!

Joined: 07/05/2011

Only /mnt/asec/com.twodboy.worldofgoofull-2/ was found.
Under this directory, there's only one file called pkg.apk. Sad
Search result of pers2.dat was nothing.

Should I root?

Joined: 12/02/2011

Mygod wrote:
Only /mnt/asec/com.twodboy.worldofgoofull-2/ was found.
Under this directory, there's only one file called pkg.apk. Sad
Search result of pers2.dat was nothing.

Should I root?

notice your folder ends with a -2? i don't know if that is the correct folder where your savefile is stored. Since you already searched for pers2.dat, I don't know how you should proceed....

It's not a gurantee that rooting will find this file for you, rooting has many benefits but will void your warranty. Its your decision in the end.

Joined: 07/05/2011

Are you sure the file name is pers2.dat but not other something?

Joined: 12/02/2011

Absolutely positively undoubtfully sure.

Joined: 12/02/2011

Ok, I noticed my trick wasn't without problems, the game crashed on me yesterday by because the permissions on pers2.dat was incorrect. Also I learned that root permissions is required in order to write into the folder /datadata. So yes, in order to make this trick work you need to have a rooted phone. Also you need to make sure that the new pers2.dat has the same permissions as the old pers2.dat (which is rw-rw-rw, done by "chmod 666 pers2.day). Unless you do that you risk not having your progress saved. I still get crashes, but my progress is saved and I think these crashes has to do with ownership of the file. I will update as I learn more!

Joined: 12/02/2011

The savegame ownership is changed, but the crashyness remains (with saved progress). I'm out of ideas, I'll email 2d boy support about this and post updated to the thread.