User:1Zulu/OBBPatcher
TextureUnpacker
A second beta of the TextureUnpacker is finally out!
Please read the README file and report any bugs you find!
Once the bugs in it are ironed out, this program will be incorporated into OBBPatcher.
What's new in Beta 2
- RSB support: Added PVR and BGR32 (uncompressed with inverted R and B channels) support.
- Multi-textures: Added support for multiple textures in the same block. For an example of a texture like this, see offset 309297152 (0x126f8000)
- UI Tweaks: Minor UI tweaks.
- Better instructions: Hopefully some people will read these.
OBBPatcher
OBB Patcher is a small Java application that allows you to edit compressed OBB (and RSB) files like you did with pre-4.2.1 OBBs.
Please read the instructions before asking me questions!
For instructions on how to edit the file itself, read this guide: User:Ballistic Planet/CTG Hacking Guide
Discussions
#1 #2 #3
New Offsets
Edit the versions.cfg and add the following lines:
124_4.2.1.obb: 610553856, 73494528, 471028 117_4.1.1.obb: 572571648, 67981312, 455329 107_4.0.1.obb: 571449344, 67883008, 441212 104_3.9.1.obb: 557973504, 66908160, 427628 100_3.8.1_obb: 518524928, 61304832, 419054
You can also replace the cfg file with the latest version, which you can download from here: versions.cfg
Change Log
- v0.05b: Fixed bug where versions.cfg doesn't load properly in some systems
- v0.05: Added configurable version definitions and 3.7.1 support
- v0.04b: Added iPad RSB definition; added expected filesizes
- v0.04: Added extraction functionality and RSB (iOS) support
- v0.03: Added support for multiple OBB versions (3.4.4, 3.5.1, and 3.6.1)
- v0.02: Added GUI
- v0.01: Initial release
Road Map
- Next Release: Incorporating TextureUnpacker into OBBPatcher; sound asset extraction; resource finder (making it easier to find textures/sounds/RTONs/etc)
And then, for future releases:
- High priority: Automatic resource extractor: scan the file and automatically extract stuff (user will be able to select what to include/exclude); texture repacker
- Medium priority: RTON editing with fewer restrictions (+visual RTON editor); texture atlas decomposer (automatically split sprites in a texture atlas)
- Low priority: Animation unpacker
(Subject to change)
Proof of Concept
Now we can use “Pvrtextool“ to repack texture :
Offsets
For use with TextureUnpacker (OBB version 96/3.7.1)
Game Resources
256937984 seedpackets 272400384 zombiepackets 261206016 ui_store
Basic Zombies
442974208 beach 455282688 dark 460365824 egypt 465903616 future 475774976 iceage 483758080 lostcity 490233856 pirate 496316416 tutorial 497336320 west
Gargantuars
443944960 beach 450695168 cowboy 455671808 dark 461545472 egypt 466493440 future 477003776 iceage 485195776 lostcity 491405312 pirate 495792128 tutorial 496783360 vase
Plants (High Res)
57368576 akee 57880576 banana 58470400 bloomerang 58851328 blover 59023360 bonkchoy 59248640 bowlingbulb 60108800 cabbagepult 60448768 chardguard 61444096 cherry_bomb 61767680 chilibean 62099456 chomper 62812160 citron 64344064 coconutcannon 64774144 dandelion 65536000 empea 66076672 endurian 66437120 firepeashooter 66973696 fumeshroom 67354624 ghostpepper 68218880 goldleaf 68415488 gravebuster 68669440 guacodile 68890624 holonut 69103616 homingthistle 69480448 hotpotato 69705728 hurrikale 70029312 hypnoshroom 70365184 iceburg 70766592 imitater 71028736 jalapeno 71258112 kernelpult 71540736 laser_bean 71983104 lavaguava 73252864 lightningreed 73723904 lilypad 73900032 magnetshroom 74162176 magnifyinggrass 74899456 marigold 75149312 melonpult 75649024 peanut 75866112 peapod 76292096 peashooter 76533760 pepperpult 77324288 potatomine 77635584 powerlily 77893632 powerplant 78266368 puffshroom 78594048 redstinger 79302656 repeater 79884288 sapfling 80486400 snapdragon 81223680 snowpea 81584128 spikerock 81870848 spikeweed 82243584 splitpea 82468864 springbean 82726912 squash 83075072 stallia 83492864 starfruit 83738624 stunion 84250624 sunbean 84848640 sunflower 85012480 sunshroom 85368832 sweetpotato 85684224 tallnut 85921792 tanglekelp 87412736 threepeater 87678976 toadstool 88367104 torchwood 88743936 twinsunflower 88915968 wallnut 89174016 wintermelon 89751552 xshot
Plants (Medium Res)
0x36d1000 akee 0x3769000 banana 0x37d6000 bloomerang 0x382f000 blover 0x3864000 bonkchoy 0x38c4000 bowlingbulb 0x397b000 cabbagepult 0x39c9000 chardguard 0x3acb000 cherry_bomb 0x3b0f000 chilibean 0x3b6e000 chomper 0x3ce0000 citron 0x3d97000 coconutcannon 0x3e05000 dandelion 0x3ed9000 empea 0x3f3b000 endurian 0x3f89000 firepeashooter 0x3ff0000 fumeshroom 0x408f000 ghostpepper 0x4128000 goldleaf 0x4156000 gravebuster 0x418c000 guacodile 0x41d5000 holonut 0x4208000 homingthistle 0x4256000 hotpotato 0x429c000 hurrikale 0x42e1000 hypnoshroom 0x4353000 iceburg 0x4387000 imitater 0x43d7000 jalapeno 0x440d000 kernelpult 0x447a000 laser_bean 0x450f000 lavaguava 0x4613000 lightningreed 0x4661000 lilypad 0x4693000 magnetshroom 0x46f7000 magnifyinggrass 0x4791000 marigold 0x47f2000 melonpult 0x4834000 peanut 0x4888000 peapod 0x48d8000 peashooter 0x495c000 pepperpult 0x49e6000 potatomine 0x4a2f000 powerlily 0x4a6c000 powerplant 0x4abe000 puffshroom 0x4b37000 redstinger 0x4bc0000 repeater 0x4c4f000 sapfling 0x4d1c000 snapdragon 0x4d9d000 snowpea 0x4ddf000 spikerock 0x4e2b000 spikeweed 0x4e7d000 splitpea 0x4ebf000 springbean 0x4efc000 squash 0x4f54000 stallia 0x4fb8000 starfruit 0x4fff000 stunion 0x508a000 sunbean 0x50fd000 sunflower 0x5123000 sunshroom 0x517a000 sweetpotato 0x51da000 tallnut 0x5278000 tanglekelp 0x5373000 threepeater 0x53d0000 toadstool 0x547a000 torchwood 0x54b3000 twinsunflower 0x54f2000 wallnut 0x555e000 wintermelon 0x55b4000 xshot