GithubHelp home page GithubHelp logo

Comments (10)

ds5678 avatar ds5678 commented on September 25, 2024 1

I am not sure if the linking of stand_0.asset <> stand.png is expected or not.

The fact that your method worked is mostly due to the popularity of png textures. If the developer had decided to use a different image format, the catalog path would have used that extension whereas AssetRipper would have still used png.

If it works, then I'll just close this issue. Does it work for you?

Sounds good. Nothing here sounds like an actual bug.

from assetripper.

github-actions avatar github-actions commented on September 25, 2024

Thank you for submitting your first issue here. Please be sure you have uploaded your AssetRipper.log file. It is in the same folder as the exe file. :)

from assetripper.

ds5678 avatar ds5678 commented on September 25, 2024

I had to read it several times, but I think I understand what you're saying:

  • You exported the project with AssetRipper.
  • You analyzed an addressable catalog with separate tooling and found a hash paired with a path.
  • You looked at yaml sprites in the ripped project and noticed that the render data key matched your hash.
  • You looked for a texture at the path cooresponding to the hash.
  • Apparently, there were two textures with that path, so only one of them had that exact path when exported.
  • Finding the wrong texture caused problems for your use case.

from assetripper.

RaenonX avatar RaenonX commented on September 25, 2024

I had to read it several times, but I think I understand what you're saying:

  • You exported the project with AssetRipper.
  • You analyzed an addressable catalog with separate tooling and found a hash paired with a path.
  • You looked at yaml sprites in the ripped project and noticed that the render data key matched your hash.
  • You looked for a texture at the path cooresponding to the hash.
  • Apparently, there were two textures with that path, so only one of them had that exact path when exported.
  • Finding the wrong texture caused problems for your use case.

Sorry if this seems complicated, I tried my best to simplify it 😆

Changed some texts and annotated them using [] to ensure clarity.

  • You looked at yaml sprites in the ripped project and noticed that [there is a] render data key match[ing my] hash.
  • You looked for a texture at the path cooresponding to the hash. [The texture I am looking for could be either stand.png or stand_0.png, which, I can only try to locate them using the sprite file name that contains my hash.]

Since my current way of locating the image might be either bugged or just unreliable, the texture I located is the incorrect one.
This is the current logic:

  • Hash found in render data key in stand_0.asset
  • Find stand_0.png and export it (stand.png is actually the one I am looking for)

from assetripper.

ds5678 avatar ds5678 commented on September 25, 2024

What's the purpose of all this?

from assetripper.

RaenonX avatar RaenonX commented on September 25, 2024

What's the purpose of all this?

On top of the ultimate goal listed in the first comment, I am grabbing all spine-related files, precisely files of *.atlas *.png *.skel to render the animation of them on my website.

image

The live example is here https://pks.raenonx.cc/en/pokedex/155. You'll see that when clicking on "Moving" and "Standing," the color of the Pokemon changes while it should not, unless "shiny" changes.

image

Other actions in the link I attached also have the same issue. If you click on other actions, you'll notice that the color of the Pokemon keeps changing.

from assetripper.

ds5678 avatar ds5678 commented on September 25, 2024

My ultimate goal is given the hash of a13dd613cc0094077b4e9cacc8af5eba, I can locate the following image in any way.

This is not a goal. https://en.wikipedia.org/wiki/XY_problem

from assetripper.

ds5678 avatar ds5678 commented on September 25, 2024

Why didn't you just use the guid?

from assetripper.

RaenonX avatar RaenonX commented on September 25, 2024

My ultimate goal is given the hash of a13dd613cc0094077b4e9cacc8af5eba, I can locate the following image in any way.

This is not a goal. https://en.wikipedia.org/wiki/XY_problem

If you mean what exactly I am looking for is unclear, because I don't have enough knowledge about how it works under the hood, anyway you think it's feasible to help linking the hash to the image works. The reason why I mark it as "possible bug" is also because that I am not sure if the linking of stand_0.asset <> stand.png is expected or not.

Why didn't you just use the guid?

I actually missed this part. Just checked as you commented. If you mean m_RD.texture.<HASH> to link them, I think it actually does the trick. Thanks for bringing this up!


I'll try using guid to locate the image and see if it works. If it works, then I'll just close this issue. Does it work for you? Thanks for bringing it up in advance.

from assetripper.

RaenonX avatar RaenonX commented on September 25, 2024

Using guid seems to be working, agree that nothing is a bug here. Thanks for pointing out guid usage!

Couldn't believe that I knew #1294 improved GUID behavior and I used that for *.skel and *.atlas without realizing that png could go with the same route.

from assetripper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.