jilleb / mib2-toolbox

The ultimate MIB2-HIGH toolbox.
MIT License
624 stars 145 forks source link

[BUG] Invalid Syntax #153

Closed Sensei1978 closed 3 years ago

Sensei1978 commented 3 years ago

Hello. What do i make wrong? I have the Skin0 folder with the extract-mcf.py on drive N: But i always geht an invalid syntax error. I used phyton 2.7 and 3.9 N:\skin0\extract_mcf.py images.mcf .\extracted\

vwjap commented 3 years ago

It’s not a underslash it’s a - char

Sensei1978 commented 3 years ago

The underslash was a mistake in my post.

Also it should be ‘python extract-mcf.py n:\skin0\images.mcf .\extracted\’

Thank you. But how did phyton know where the extract Script is? (Drive and path).

vwjap commented 3 years ago

It doesn’t if it’s not in a path directory, if extract-mcf.py isn’t in it it will come up with a error, you could just change to the n:\skin0\ directory and run python extract-mcf.py images.mcf .\extracted\

Sensei1978 commented 3 years ago

I don't know what i make wrong. I installed phyton with the installer on windows 10. But what must i do now to run the script in N:\skin0.

vwjap commented 3 years ago

you sure BOTH images.mcf and extract.mcf are in the n:\skin0 folder?

Type CMD in the search bar Run command prompt Type n: Type cd skin0 Type python extract-mcf.py images.mcf .\extracted\ Then the skin .png should be in the extracted directory, to get to that type cd extracted Or use windows explorer now if you get a error about python then it might not have been installed in the path (for some reason I didn’t have that on another pc)

Sensei1978 commented 3 years ago

Yes both files are in the folder. I tried it. N:\skin0>python extract-mcf.py images.mcf .\extracted\ Der Befehl "python" ist entweder falsch geschrieben oder konnte nicht gefunden werden.

vwjap commented 3 years ago

Can you take a picture for me? Did you put a \ after extracted at the end (as this is dos not Linux)

Sensei1978 commented 3 years ago

Now it's running. It was an installation error of pyhton. But now i get a new error message: N:\skin0>python extract-mcf.py images.mcf .\extracted\ Do you want to print the image number on each image(y/n)?: y Traceback (most recent call last): File "extract-mcf.py", line 56, in print_number = input("Do you want to print the image number on each image(y/n)?: ") File "", line 1, in NameError: name 'y' is not defined

vwjap commented 3 years ago

I don’t know what that means, sorry, it’s never asked me about the image number, I just type in and the progress bar shows how far thro it is, have you tried typing yes instead of y?

Sensei1978 commented 3 years ago

No. I only typing y. When i am typing n its the same error message only with n.

Sensei1978 commented 3 years ago

I deleted all sections wie y in the script. Now it works.

Sensei1978 commented 3 years ago

I see that my car is in the skin 0 with many other cars. But how can i activate my car in MIB2?

vwjap commented 3 years ago

What I did was change one thing (on the car that looked like mine e.g bumpers not gti) then compressed it up, loaded it into car and See if it changed, if it didn’t I went on to the next, I think it was the last batch of pictures (img900 odd) that did it