Closed Superjosh00 closed 1 year ago
Replace doesn't work with PNG, only TEX0. You'll need to convert it using the TextureConverterDialog, see BrawlInstaller for an example there: https://github.com/squidgy617/BrawlInstallerPlugins/blob/1cd46f573a8de046684f3815a1022869e3fe65ba/Lib/BrawlInstallerLib.py#L215_L232
Im attempting to automate a bit of work with python
First I create a tex0 resoucenode with (I get miscdat70 earlier in the script):
new = miscdat70.CreateResource[BrawlLib.SSBB.ResourceNodes.TEX0Node]("TEX0Node")
Then I attempt to add a png to it with
new.Replace(pngpath)
Then this error is thrown. Clicking apply ends up actually applying the texture but I cant really automate it any further when it errors