A way to unpack textures online [like fnf's]
All credit to @cabalex [His code]
- On repl
- Getting to the site
- Google drive setup
- Where to put png and xml
- Connecting colab to drive
- Final code
Go here and you'll see this
Congrats you finished Step 1
First create a new folder [name it Code
CASE SENSITIVE unless you wanna change some code]
After, inside that folder create 2 new folders named Input
and Output
[CASE SENSITIVE unless you wanna change some code]
Go inside Input
folder and add your Image
and it's .xml
straight from the game or source code(I will be using a neo bf assets for this example)
To connect colab to Google drive run the first section of code, you will get a message saying it's not athorized from google just click run anyways (It's safe trust me :D, It's just google gets suspicious of github files XD)
it should look something like this after running
Click the link and sign into the google account you used for your folders, and click sign in (allow access)
Then copy the code that appears on-screen in the box where the code was run
Now click the next line of code [change this if your folder is named somthing other than Code
]
Congrats colab is now connected to google drive
After all that your pretty much done just run the last peice of code and everything should work
Code output:
After your all done go to your Output
folder to find your images!
You can also run this on repl!!!
Import this github to repl
(Press plus at top right)
[no image yet]
(then pres import from github)
[no image yet]
(and type frostzzone/xml-unpacker)
[no image yet]
Ported to google colab and replit by @frostzzone