Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Having problems Reimporting To PVZ2

Featured Replies

  • Author
  • Localization

aaron5015, posted Sun Nov 01, 2015 11:03 pm (9198)


I've been trying to edit textures and audio on PVZ2 and i keep getting
Textures
Code:
- signature of 4 bytes at offset 0x013e0000 doesn't match the one
  expected by the script:

  this one: "48*"
  34 38 2a 12                                       48*.

  expected: "pgsr"
  70 67 73 72                                       pgsr

- 0 files reimported in 0 seconds
  coverage file 0     0%   35264      572571648

Sound
Code:
- signature of 4 bytes at offset 0x013e0000 doesn't match the one
  expected by the script:

  this one: "48*"
  34 38 2a 12                                       48*.

  expected: "pgsr"
  70 67 73 72                                       pgsr

- 0 files reimported in 0 seconds
  coverage file 0     0%   35264      572571648

What am i doing wrong?...tbh i doubt i'll get a straight forward answer.
  • Author
  • Localization

aluigi, posted Sun Nov 01, 2015 11:27 pm (9200)


As far as I know there are no problems with the reimporting using 1bsr_pgsr.bms.

Just for being sure that it's all ok, are you using the script 0.2.1a and a quickbms >= 0.6.7 ?

That error means that while parsing the input 1bsr archive, it didn't find the "pgsr" header.
Extraction and reimporting are exactly the same operation so if you were able to extract it, you should be able to re-read it again during reimporting.

My guess:
- you have selected the wrong input file/folder, you must do the EXACT same operations you did for extraction (read section 3 of quickbms.txt)
- the original file has been modified in the meantime so it's not the same used for extraction.
  • Author
  • Localization

aaron5015, posted Sun Nov 01, 2015 11:29 pm (9201)


aluigi wrote:
As far as I know there are no problems with the reimporting using 1bsr_pgsr.bms.

Just for being sure that it's all ok, are you using the script 0.2.1a and a quickbms >= 0.6.7 ?

That error means that while parsing the input 1bsr archive, it didn't find the "pgsr" header.
Extraction and reimporting are exactly the same operation so if you were able to extract it, you should be able to re-read it again during reimporting.

My guess:
- you have selected the wrong input file/folder, you must do the EXACT same operations you did for extraction (read section 3 of quickbms.txt)
- the original file has been modified in the meantime so it's not the same used for extraction.

okay well i can give you the .PTX and .WEM files *for streamingwaves because it uses that unlike the others using .BNK* to see if you can figure it out because my mind is being busted out so much from trying to figure out how to texture edit.
  • Author
  • Localization

aaron5015, posted Sun Nov 01, 2015 11:44 pm (9202)


aluigi wrote:
As far as I know there are no problems with the reimporting using 1bsr_pgsr.bms.

Just for being sure that it's all ok, are you using the script 0.2.1a and a quickbms >= 0.6.7 ?

That error means that while parsing the input 1bsr archive, it didn't find the "pgsr" header.
Extraction and reimporting are exactly the same operation so if you were able to extract it, you should be able to re-read it again during reimporting.

My guess:
- you have selected the wrong input file/folder, you must do the EXACT same operations you did for extraction (read section 3 of quickbms.txt)
- the original file has been modified in the meantime so it's not the same used for extraction.

Further noting this.
idk about script 0.2.1a but i am using 0.7.0
*i was using an older version but i upgraded*
as said i can give you the things but i don't know why its not working. as i am following the instructions as said *did the script, did the obb, selected the folder where the files are at*
Image
Unless i'm supposed to be something different like actually edit the files within the actual folder of ALL of the textures. then i need to wait another 2-3 hours for it to reimport >.> ...i hope thats not the case.
  • Author
  • Localization

aaron5015, posted Mon Nov 02, 2015 2:25 am (9205)


Okay i got it to work after extracting the files again. but 2 things.
the music is not there even though it got imported and my custom textures wont be imported. it keeps saying 0 files reimported press enter to exit
  • Author
  • Localization

aluigi, posted Mon Nov 02, 2015 6:15 am (9207)


The "0 files reimported" message means that while reimporting files using the same names of extraction, it didn't find the expected file.
That happens when the steps of extraction and reimporting were different.
You can do this test by command-line where it's more easy to understand how extraction and reimporting work:
Code:
quickbms script.bms       c:\path\input_file.dat c:\path\output_folder
quickbms script.bms -r -w c:\path\input_file.dat c:\path\output_folder  (now output_folder acts as an input folder)
Are you sure to have selected the same files and folders you selected during extraction?
  • Author
  • Localization

aaron5015, posted Mon Nov 02, 2015 2:22 pm (9218)


aluigi wrote:
The "0 files reimported" message means that while reimporting files using the same names of extraction, it didn't find the expected file.
That happens when the steps of extraction and reimporting were different.
You can do this test by command-line where it's more easy to understand how extraction and reimporting work:
Code:
quickbms script.bms       c:\path\input_file.dat c:\path\output_folder
quickbms script.bms -r -w c:\path\input_file.dat c:\path\output_folder  (now output_folder acts as an input folder)
Are you sure to have selected the same files and folders you selected during extraction?

SO let me get this straight i'm supposed to
1. Edit the textures
2. Copy the textures into the output *where i extracted the obb* folder
3. Use importer.bat *select the script,obb,output/input folder*
4. wait 2-3 hours because apparently backgrounds take forever to import.
and thats it? or am i completely wrong
  • Author
  • Localization

aluigi, posted Mon Nov 02, 2015 5:11 pm (9224)


If you edit only one file and delete all the others it takes just few seconds.
In section 3 of quickbms.txt it's written everything in detail.

Your point 1 and 2 don't seem to be ok because it looks like you want to add textures, while you have to overwrite those you want to reimport.

If you extracted 1000 files, modify 2 of them (the original extracted files) and delete all the others.
Then click on reimport.bat.
That's all.
  • Author
  • Localization

aaron5015, posted Mon Nov 02, 2015 5:19 pm (9227)


aluigi wrote:
If you edit only one file and delete all the others it takes just few seconds.
In section 3 of quickbms.txt it's written everything in detail.

Your point 1 and 2 don't seem to be ok because it looks like you want to add textures, while you have to overwrite those you want to reimport.

If you extracted 1000 files, modify 2 of them (the original extracted files) and delete all the others.
Then click on reimport.bat.
That's all.

I don't want to add textures i'm editing current textures. and yes they are same or below the original size.
  • Author
  • Localization

aluigi, posted Mon Nov 02, 2015 5:30 pm (9228)


Here I have a main.rsb that I'm using just now for the tests for trying to replicate your problem.
I extracted all the *uiimages*files and then I used reimport.bat.
It worked correctly: 6 files reimported in 13 seconds
No problems just as expected.

The only side-note I have seen, but it's absolutely not related to your problem, is that there are various duplicated files that have an impact while reimporting. But this is another problem.
  • Author
  • Localization

aaron5015, posted Mon Nov 02, 2015 5:33 pm (9229)


aluigi wrote:
Here I have a main.rsb that I'm using just now for the tests for trying to replicate your problem.
I extracted all the *uiimages*files and then I used reimport.bat.
It worked correctly: 6 files reimported in 13 seconds
No problems just as expected.

The only side-note I have seen, but it's absolutely not related to your problem, is that there are various duplicated files that have an impact while reimporting. But this is another problem.

Well i'm still importing every single file as i said earlier *don't ask why...just go with it.* its at slider tiles. so its almost done. the downside is droid4x takes so long to import the obb...thats not related its just me complaining how long it takes.
  • Author
  • Localization

aluigi, posted Mon Nov 02, 2015 5:55 pm (9234)


Right, they are quiet old.
I guess there are some modding communities for this game.
I worked just on the extraction script so I'm not update about the status of communities, modding and so on.
  • Author
  • Localization

aaron5015, posted Mon Nov 02, 2015 6:00 pm (9235)


Well i'm trying to get it to work. i know theres something under this tutorial i found
Image
However i am still confused by it alot. but i couldn't find any other kind of tutorial for editing textures within PTX format. i can give the entire tutorial to see if you can figure out what i'm doing wrong by this tutorial. this is just a part of it.
so i have all the pictures prepared if you need to see the tutorial. it would be worth knowing if i am doing something right or wrong. because i absolutely have no idea.
  • Author
  • Localization

aaron5015, posted Mon Nov 02, 2015 6:26 pm (9237)


i'll just post anyways because idk.
Image Image Image Image
  • Author
  • Localization

aaron5015, posted Sat Nov 07, 2015 11:31 pm (9425)


Okay i'm getting "0 files reimported" even though the file name is the same. how do i fix that? considering its the same file name.
  • Author
  • Localization

aluigi, posted Sun Nov 08, 2015 10:46 am (9434)


I'm really sorry but I can't help you further.
  • Author
  • Localization

aaron5015, posted Tue Nov 10, 2015 4:09 pm (9575)


aluigi wrote:
I'm really sorry but I can't help you further.

well i don't understand at all but i appreciate for trying to help :/
  • Author
  • Localization

aaron5015, posted Fri Nov 13, 2015 2:05 am (9661)


Okay idk about this but PVZ2 updated with a soft release. do i need to update the script to reimport things or not? because it seems to be looking for where to reimport into a different place. than said in the obb.
  • Author
  • Localization

aluigi, posted Fri Nov 13, 2015 9:21 pm (9684)


Usually with the updates just few files many change their name/location, for example old files removed and new files introduced.
Being this format not easy and so some files may be extracted without name, and so breaking the sync with the previous file version (file 00001234 now may be 00001257), I suggest to re-extract the files from the new archive.
  • Author
  • Localization

khong_co_ten, posted Mon Jul 26, 2021 11:54 pm (65377)


aluigi wrote:
I'm really sorry but I can't help you further.

I only reimported 17 files
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.