Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility bug: SparkHammer #21

Closed
drakray opened this issue Mar 14, 2017 · 15 comments
Closed

Compatibility bug: SparkHammer #21

drakray opened this issue Mar 14, 2017 · 15 comments

Comments

@drakray
Copy link

drakray commented Mar 14, 2017

Using SparkHammer with D3Core(and Lumberjack) make some Hammer crash in anvil, and some Lumberaxe and Hammer to randomly become unavailable

Related crash here

@dries007
Copy link
Member

More then likely this line need an extra null check.

if (stack == ItemStack.EMPTY || material.getRepairItemStack() != ItemStack.EMPTY) continue;

I'll look at it properly when I'm home though.

@drakray
Copy link
Author

drakray commented Mar 14, 2017

From my log, seems like SH use a HammerMaterial format for their stuff, no underscore

@dries007
Copy link
Member

Likely irrelevant, the issue seems to be that sometimes the repairmaterial stack gets set to null, which is no longer a valid stack for inventories (although none said it can't be for repair materials, but I'll go with them on this.)

@dries007
Copy link
Member

@drakray Would you mind testing the latest build?
https://jenkins.dries007.net/job/D3Core/

@drakray
Copy link
Author

drakray commented Mar 15, 2017

Could start, I got a Missing dependency Forge: any, using Forge 2255
http://pastebin.com/WgZ6RRQR
line 69? http://pastebin.com/CSvUFEEc

dries007 added a commit that referenced this issue Mar 15, 2017
@dries007
Copy link
Member

fixed that, could you try build 65?

@drakray
Copy link
Author

drakray commented Mar 15, 2017

got a crash that I think was caused by my materials.json, trying without it

@drakray
Copy link
Author

drakray commented Mar 15, 2017

Other than that, it seems that everything work correctly, I must just fix my materials.json

@dries007
Copy link
Member

Alright, let me know if you find something that doesn't seem right. We'll upload the build to curse in the next couple of hours.

@drakray
Copy link
Author

drakray commented Mar 15, 2017

just some weird stuff caused by "dynamic create lumberaxe", because some mod set weird repair material, like ironBlock for GiantHammer, dirt?, stair or nether star??, I dont know which mod does that, but it's weird lol
Either way, the SparkHammer compat bug seems fixed

@dries007
Copy link
Member

Unfortunately you can't override them anymore. (Forge doesn't allow that.) You'll have to talk to the mod devs about that.

@drakray
Copy link
Author

drakray commented Mar 15, 2017

in my materials.json, I just make 3 for Botania, and all FunOres because they don't add tools, so they don't set materials, and I like having Osmium tool(sooo durable :D )

I use to set BaseMetal materials, but it's not 1.11.2 so

@drakray
Copy link
Author

drakray commented Mar 15, 2017

Could there be a way to get which material from the json file is responsible for a crash related to trying to overwrite, show up in the crashlog?

@Claycorp
Copy link
Member

Check the latest log. It should spit out a message with all the information.

@drakray
Copy link
Author

drakray commented Mar 15, 2017

I found it, just had to search for FATAL and I found it quickly lol

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants