Jump to content

Recommended Posts

Posted

Wondering if any of the more C# inclined players had any idea of what’s going on here. It seems to be caused by the game trying to resolve a lack of ingredients as an ingredient, but I have no clue how the different parts of the code work together and thus no clue how that would happen.

Posted (edited)
35 minutes ago, Facethief said:

Wondering if any of the more C# inclined players had any idea of what’s going on here. It seems to be caused by the game trying to resolve a lack of ingredients as an ingredient, but I have no clue how the different parts of the code work together and thus no clue how that would happen.

The crashes seem to be related to the newly supported tag feature in recipes in combination with some other keys.

Take for example the mentioned Travertine tile.

Spoiler

This is the default recipe. It crashes the game.

{
	ingredientPattern: "S,R",
	ingredients: {
		"S": { type: "item", tags: ["tool-saw"], name: "metal", allowedVariants: ["blackbronze", "iron", "meteoriciron", "steel"], isTool: true, toolDurabilityCost: 80  },
		"R": { type: "block", code: "rock-travertine" }
	},
	width: 1,
	height: 2,
	output: { type: "item", code: "tile-stone-travertine", quantity: 4 }
}

These recipes do not:

{
	ingredientPattern: "S,R",
	ingredients: {
		"S": { type: "item", code: "saw-*", name: "metal", allowedVariants: ["blackbronze", "iron", "meteoriciron", "steel"], isTool: true, toolDurabilityCost: 80  },
		"R": { type: "block", code: "rock-travertine" }
	},
	width: 1,
	height: 2,
	output: { type: "item", code: "tile-stone-travertine", quantity: 4 }
}

 

{
	ingredientPattern: "S,R",
	ingredients: {
		"S": { type: "item", tags: ["tool-saw"], name: "metal", isTool: true, toolDurabilityCost: 80  },
		"R": { type: "block", code: "rock-travertine" }
	},
	width: 1,
	height: 2,
	output: { type: "item", code: "tile-stone-travertine", quantity: 4 }
}

As a non-coder I assume that the game currently has trouble combining wildcard replacements like "allowedVariants, skipVariants" with the assets behind the tag.

Edited by Brady_The
  • Like 1
Posted

UPDATE FROM GITHUB- apparently someone has found the source of this issue. Here’s to them, and to hoping the final smiting of this crash shall come swiftly on the heels of Pre3!

(what on earth was I doing with that last sentence?)

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.