i'm trying to replace the arrow model with something i'm making, but the moment i add an override value to the json, it just breaks completely, here's the override in question:
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2013
Posts:
449
Member Details
The more detail the better we could help, for something this complex a minimum pack would be helpful (although I say that to everyone). We would really need to see at least the whole model for your bow and the bow_pulling_0 would be good too. While I haven't played around with doing this for a bow yet I did recently do this kind of thing with a crossbow and found out that each stage of the pulling action has different, hidden, rotation and position data that makes it impossible to use the same model criteria across drawing stages. The bow is a little different than the crossbow but if I remember correctly you do zoom in a little when you draw it to full tension so I would guess that your problem lies in there somewhere. I may play around with this some then to see if I get the same problem but until then I'd need more detail from you to make any better guess.
here's what the model itself looks like in the modelling program i made it with:
the pulling model uses the bow model as it's parent and basically is the exact same model, but with changed display values so that it looks correct when the bow is pulled and the model is rotated. the model becomes a cube regardless of whether it's being pulled or not.
the pulling model uses the bow model as it's parent and basically is the exact same model, but with changed display values so that it looks correct when the bow is pulled and the model is rotated. the model becomes a cube regardless of whether it's being pulled or not.
What do you mean that the model becomes a cube whether it it's being pulled or not? Your first screenshot shows the item displaying the way I would think you want it, or is there something I'm not getting here. What KittenKatja and I would want/need to see is the full .json for your bow, like this is the vanilla bow.json:
With the full files we'd be able to see where you went wrong however you've only shown us the portion you are having troubles with isolated from the rest of the file which is a problem since by itself the predicate case doesn't seem wrong... although, as I type this I am noticing you're using a backslash when designating your file location rather than a forward slash like the normal models to. I'm not sure if that would be enough to make it wrong (I always just used the forward slash) but I would try changing that without anything else to go on.
i'm trying to replace the arrow model with something i'm making, but the moment i add an override value to the json, it just breaks completely, here's the override in question:
Edit: While writing my initial response I realized that you have a backslash when referencing your item model. After making my own crappy little 3D model to test I am sure that using a backslash rather than the appropriate forward slash will break a model and cause the black box issue. Try using a forward slash like the rest of the file and see if that fixes things.
putting the forward slash really didn't help at all. the picture that shows the model being completely fine is the model with the overrides part removed.
since this might help inmensely i'm gonna give the full json of both the pulling version and the bow.
The Meaning of Life, the Universe, and Everything.
Join Date:
5/29/2013
Posts:
449
Member Details
Thank you for the files. By loading them into a pack the game output told me that the json was malformed at the pulling line. All I had to do was remove the comma after "pulling": 1 and those 2 files you posted started working.
Edit: If you are not familiar with the debug window there is an option in your launcher settings to 'Open output log when game starts' and enabling that can help diagnose any problems with models and textures for future work.
i'm trying to replace the arrow model with something i'm making, but the moment i add an override value to the json, it just breaks completely, here's the override in question:
here's how it looks like when removing the override (don't mind the missing textures):
and here's what it looks like with the override:
any thoughts on what could be causing this?
What does the linked model look like?
Meow~
#F5F8FB
KittenKatja ♥
The more detail the better we could help, for something this complex a minimum pack would be helpful (although I say that to everyone). We would really need to see at least the whole model for your bow and the bow_pulling_0 would be good too. While I haven't played around with doing this for a bow yet I did recently do this kind of thing with a crossbow and found out that each stage of the pulling action has different, hidden, rotation and position data that makes it impossible to use the same model criteria across drawing stages. The bow is a little different than the crossbow but if I remember correctly you do zoom in a little when you draw it to full tension so I would guess that your problem lies in there somewhere. I may play around with this some then to see if I get the same problem but until then I'd need more detail from you to make any better guess.
As far as I can see, his model turns into a block when he is pulling the bow.
Meow~
#F5F8FB
KittenKatja ♥
here's what the model itself looks like in the modelling program i made it with:
the pulling model uses the bow model as it's parent and basically is the exact same model, but with changed display values so that it looks correct when the bow is pulled and the model is rotated. the model becomes a cube regardless of whether it's being pulled or not.
What do you mean that the model becomes a cube whether it it's being pulled or not? Your first screenshot shows the item displaying the way I would think you want it, or is there something I'm not getting here. What KittenKatja and I would want/need to see is the full .json for your bow, like this is the vanilla bow.json:
With the full files we'd be able to see where you went wrong however you've only shown us the portion you are having troubles with isolated from the rest of the file which is a problem since by itself the predicate case doesn't seem wrong... although, as I type this I am noticing you're using a backslash when designating your file location rather than a forward slash like the normal models to. I'm not sure if that would be enough to make it wrong (I always just used the forward slash) but I would try changing that without anything else to go on.
Edit: While writing my initial response I realized that you have a backslash when referencing your item model. After making my own crappy little 3D model to test I am sure that using a backslash rather than the appropriate forward slash will break a model and cause the black box issue. Try using a forward slash like the rest of the file and see if that fixes things.
putting the forward slash really didn't help at all. the picture that shows the model being completely fine is the model with the overrides part removed.
since this might help inmensely i'm gonna give the full json of both the pulling version and the bow.
bow.json (again, ignore the missing textures):
bow_pulling_0.json:
Thank you for the files. By loading them into a pack the game output told me that the json was malformed at the pulling line. All I had to do was remove the comma after "pulling": 1 and those 2 files you posted started working.
Edit: If you are not familiar with the debug window there is an option in your launcher settings to 'Open output log when game starts' and enabling that can help diagnose any problems with models and textures for future work.
removing the comma on the pulling seemed to fix it, thanks.