Jump to content

Recommended Posts

Posted

So I'm attempting to implement a bow that has a wonderful animated texture, like any normal bow should, and I'm encountering this error. I've seen some other posts, (by which I mean exactly one post, for 1.9, by a certain @NovaViper), and the solutions they've found are not working for me... I am only registering one model, the main bow model.

 

Below are my bow, pulling_0, pulling_1 and pulling_2 jsons, respectively:

{
    "parent": "item/generated",
    "textures": {
        "layer0": "randores:items/randores.items.bow.0_standby"
    },
    "display": {
        "thirdperson_righthand": {
            "rotation": [ -80, 260, -40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "thirdperson_lefthand": {
            "rotation": [ -80, -280, 40 ],
            "translation": [ -1, -2, 2.5 ],
            "scale": [ 0.9, 0.9, 0.9 ]
        },
        "firstperson_righthand": {
            "rotation": [ 0, -90, 25 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        },
        "firstperson_lefthand": {
            "rotation": [ 0, 90, -25 ],
            "translation": [ 1.13, 3.2, 1.13],
            "scale": [ 0.68, 0.68, 0.68 ]
        }
    },
    "overrides": [
        {
            "predicate": {
                "pulling": 1
            },
            "model": "randores:item/randores.items.bow.0_pulling_0"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.65
            },
            "model": "randores:item/randores.items.bow.0_pulling_1"
        },
        {
            "predicate": {
                "pulling": 1,
                "pull": 0.9
            },
            "model": "randores:item/randores.items.bow.0_pulling_2"
        }
    ]
}
{
    "parent": "randores:item/randores.items.bow.0",
    "textures": {
        "layer0": "randores:items/randores.items.bow.0_pulling_0"
    }
}
{
    "parent": "randores:item/randores.items.bow.0",
    "textures": {
        "layer0": "randores:items/randores.items.bow.0_pulling_1"
    }
}
{
    "parent": "randores:item/randores.items.bow.0",
    "textures": {
        "layer0": "randores:items/randores.items.bow.0_pulling_2"
    }
}

 

I am doing some funky stuff with models, by which I mean I am generating them on the fly. The bulk of that logic can be seen here, but I don't think that's the problem. Furthermore, through debugging and lovely, lovely breakpoints, I have determined that the error progress like so:

  • Attempt to load item/randores.item.bow.0.json
  • Attempt to load item/randores.item.bow.0_pulling_X.json
  • Attempt to load item/randores.item.bow.0.json
  • Error thrown

This is obviously because the standby bow model refers the the pulling model as an override, which refers to the standby bow model as the parent, and I get that that's the error. However, the above models are copied exactly from vanilla, so clearly I missing some way they're registered or something. Any help is appreciated!

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Posted
18 minutes ago, Leomelonseeds said:

Wait do you have any log output...?

https://gist.github.com/SocraticPhoenix/2a1a529eacd6f8e159d408a4e80210b2

(it's linked in the "this" in the main post)

 

If you need more, I'll post more, I just was hesitant to post my entire log, since it contains 300 errors.... (There are 300 bow models)

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Posted
4 minutes ago, Leomelonseeds said:

A bit more log please? Just a few more lines...

That's the entire stacktrace... after that it goes:

21:53:47] [Client thread/INFO] [FML]: Max texture size: 8192
[21:53:51] [Client thread/INFO]: Created: 4096x2048 textures-atlas
[21:54:05] [Client thread/WARN]: Skipping bad option: lastServer:

There's no caused-by clause either...

 

If you want to try and delve through the log a bit more, here it is: https://gist.githubusercontent.com/SocraticPhoenix/fad2e2450d9f564763d7ad33e10b7d62/raw/d325a25a9d838d0f85947b0d00a6288ad6f8e90f/LogOfDoom.txt

 

But I don't think anything helpful is in there.

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Posted

Okay so this makes a ton of sense.... I had the textures named wrong... so it caused a cyclic model error, obviously.

 

Anyway, it's fixed now... somehow

Developer of Randores (adds 256^3 ores to the game) and Arcane Bags (adds ridiculous storage with ridiculous crafting recipes).

I know Java pretty well... So yeah...

Quote

This is where I'd put an inspirational and/or clever quote, but I can't think of one right now...

This is the output of the totally, 100% working compiler for my programming language, Planet9:

Beginning Compilation...
Failed compilation!
planet9.compiler.error.CompilationException: Compiler not yet implemented
	at planet9.compiler.Compiler.compile(Compiler.java:39)
	at planet9.compiler.app.CompilerApp.main(CompilerApp.java:147)

 

Posted

Im glad it's fixed now... was going to point that out to you :P

  • Like 1

Apparently I'm addicted to these forums and can't help but read all the posts. So if I somehow help you, please click the "Like This" button, it helps.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.