SC2Mapster Forums

Development > Data

(Solved) Texture swap by id since patch

  • 12 posts
    #1 Dec 01, 2012 at 14:00 UTC - 0 likes

    I've just been getting back into the sc2 editor recently.

    I've been importing WoW character models into the editor, but i noticed that after adding two different wow models and textures, the textures no longer work. If I only load one model the texture works fine. Note: when i used WoWmodelviewer, I exported the textures with individual texture ids, via the export options, but it still did not work :(

    I found the the tutorial for the texture swap by id, and diffusing textures, and all that junk, but it seems like it doesnt apply to the newest sc2 patch. Blizz replaced the preview model with a cutscene editor, and i dont know where to find the model materials.

    If somebody could share an up to date tutorial, that would be great. Ive really been struggling to understand and apply the mechanics of the textureswap method.

    Thanks, and happy mapping!

    #2 Dec 01, 2012 at 14:33 UTC - 0 likes

    @watterboy1: Go

    In the new model preview you just select the model and then press Shift+D. Or right-click it or select "Window" in the menu and then "Model Data".

    #3 Dec 01, 2012 at 15:07 UTC - 0 likes

    @LaxSalmon: Go

    Thanks! Hopefully I can figure the rest out based on the tutorial.

    #4 Dec 01, 2012 at 16:13 UTC - 0 likes

    Blah, I'm still getting the "could not find texture with id..." error, and it isn't working in-game. Let me post some pictures of what I did because I just can't figure it out; and to be honest, I really don't understand the procedure. It just doesn't make sense to me. Here, please take a look if you get a chance:

    Can anybody see what I may have done wrong?

    Last edited Dec 01, 2012 by watterboy1
    #5 Dec 01, 2012 at 16:48 UTC - 0 likes

    You need a prefix that matches in the texture declaration and the texture object.

    Prefix and trigger on substring need to contain strings of the texture file name that is seen in the model details.
    So, you would use "75372" as prefix in texture object and texture declaration. I would use the rest of the filename as the trigger on substring in the texture declaration in the model.

    http://img42.imageshack.us/img42/7586/signaturemj.jpg

    #6 Dec 01, 2012 at 16:57 UTC - 0 likes

    Just tried that, but I'm still getting the error :/

    Maybe I didn't update the texture correctly?

    Last edited Dec 01, 2012 by watterboy1
    #7 Dec 01, 2012 at 17:05 UTC - 0 likes

    Here's my map if somebody wants to physically get in there and see.

    Name Size MD5
    Tactics_Test.SC2Map 2.4 MiB d60755e74659...
    #8 Dec 01, 2012 at 17:19 UTC - 0 likes

    Anyone got a magnifying glass I can use because I cannot read those low quality images. What is the full string in the second pic?

    #9 Dec 01, 2012 at 17:27 UTC - 0 likes

    are you just trying to import the footman? if so you are doing it wrong.

    :P if thats Tricerons footman and it appears to be, then you need to set the textures in the assets/textures/ just highlight them rightclick and then hit move and type Assets/Textures/

    if not then i dont know what to tell you, if its just a wow model, mine always work when put in assets/Textures/ folder.

    sorry i couldnt be much help.

    Edit : didnt work. Trying a few otherthings with the map he provided.

    Last edited Dec 01, 2012 by Taintedwisp

    my maps will always be Free. and Available to the public at the earliest possible date.

    If you need a tester feel free to ask IShadowWolf.258

    You can also catch me on the IRC most times.

    #10 Dec 01, 2012 at 17:41 UTC - 0 likes

    @DrSuperEvil: Go

    The full string in the second pic is: Diffuse = 753720ae579b4cf6a14b8c8e39b36b34.tga

    And this is not the footman model downloaded from the assets section- I got the model from wow model viewer. And the texture works until I add a second model & texture. Then it doesnt work anymore.

    EDIT: and I attached the map up above so if you can't read something or you want to see something I didn't post a picture of you should be able to open it. Thanks so far guys, this has been really frustrating

    Last edited Dec 01, 2012 by watterboy1
    #11 Dec 02, 2012 at 00:41 UTC - 0 likes

    For a start make the prefix and trigger on string the whole file name as it naturally lacks a _.

    #12 Dec 02, 2012 at 04:38 UTC - 0 likes

    @DrSuperEvil: Go

    That was it! You solved it! Thank you so much for the help; it is very appreciated :)

  • 12 posts

You must login to post a comment. Don't have an account? Register to get one!