MineTweaker3 icon indicating copy to clipboard operation
MineTweaker3 copied to clipboard

Error identifier expected HELP

Open ghost opened this issue 8 years ago • 14 comments

Everytime i reload my scripts i get this errer: ERROR:Error parsing CustomRecipes.zs:3 -- identifier expected

not sure what it means, but this is the script i wrote for a recipe

recipes.addShaped(<LogisticsPipes:item.PipeItemsBasicLogistics>*8,
	[[StructuralPipeFrame, MicroServo, StructuralPipeFrame],
	 [MicroPackager, RoutingLogicProcessor, MicroCapsulator],
	 [StructuralPipeFrame, MicroServo, StructuralPipeFrame]]);

and i have a few variables

var StructuralPipeFrame = <LogisticsPipes:item.pipeComponents:0>;
var MicroServo = <LogisticsPipes:item.pipeComponents:1>;
var MicroPackager = <LogisticsPipes:item.pipeComponents:3>;
var RoutingLogicProcessor = <LogisticsPipes:item.pipeComponents:2>;
var MicroCapsulator = <LogisticsPipes:item.pipeComponents:04>;

can anyone help me?

EDIT: I've fixed it now

ghost avatar Nov 23 '16 20:11 ghost

Upload script to gist please

On Nov 23, 2016 10:04 PM, "Coopj121" [email protected] wrote:

Everytime i reload my scripted i get this errer: ERROR:Error parsing CustomRecipes.zs:3 -- identifier expected

not sure what it means, but this is the script i wrote for a recipe

recipes.addShaped(LogisticsPipes:item.PipeItemsBasicLogistics*8, [[StructuralPipeFrame, MicroServo, StructuralPipeFrame], [MicroPackager, RoutingLogicProcessor, MicroCapsulator], [StructuralPipeFrame, MicroServo, StructuralPipeFrame]]);

and i have a few variables

var StructuralPipeFrame = LogisticsPipes:item.pipeComponents:0; var MicroServo = LogisticsPipes:item.pipeComponents:1; var MicroPackager = LogisticsPipes:item.pipeComponents:3; var RoutingLogicProcessor = LogisticsPipes:item.pipeComponents:2; var MicroCapsulator = LogisticsPipes:item.pipeComponents:04;

can anyone help me?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/stanhebben/MineTweaker3/issues/394, or mute the thread https://github.com/notifications/unsubscribe-auth/AFS9xYuH9gpwYPWa75Y0H3GmDG_t1Jjgks5rBJxFgaJpZM4K6_0Q .

jaredlll08 avatar Nov 23 '16 20:11 jaredlll08

gist?

ghost avatar Nov 23 '16 20:11 ghost

Github gist

On Nov 23, 2016 10:09 PM, "Coopj121" [email protected] wrote:

gist?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stanhebben/MineTweaker3/issues/394#issuecomment-262618743, or mute the thread https://github.com/notifications/unsubscribe-auth/AFS9xbKo1PFh1W8XV7rdyC77YBjrZu98ks5rBJ1-gaJpZM4K6_0Q .

jaredlll08 avatar Nov 23 '16 20:11 jaredlll08

https://gist.github.com/coopj121/3cf2991e21e89753a8b12eb46c717470

ghost avatar Nov 23 '16 20:11 ghost

i'm new to minetweaker, actually started today so i don't know allot about it

ghost avatar Nov 23 '16 20:11 ghost

Did you get the item names from /mt hand?

On Nov 23, 2016 10:12 PM, "Coopj121" [email protected] wrote:

https://gist.github.com/coopj121/3cf2991e21e89753a8b12eb46c717470

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stanhebben/MineTweaker3/issues/394#issuecomment-262619375, or mute the thread https://github.com/notifications/unsubscribe-auth/AFS9xZBlPDFqRObeAmNsNoNCLM9cLPDzks5rBJ43gaJpZM4K6_0Q .

jaredlll08 avatar Nov 23 '16 20:11 jaredlll08

no i have the item names as a tooltip whenever i hover over the item

ghost avatar Nov 23 '16 20:11 ghost

Please use /mt hand names

On Nov 23, 2016 10:15 PM, "Coopj121" [email protected] wrote:

no i have the item names as a tooltip whenever i hover over the item

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stanhebben/MineTweaker3/issues/394#issuecomment-262620032, or mute the thread https://github.com/notifications/unsubscribe-auth/AFS9xc0U1zd0QANstEL1lgXB-5ORC5k5ks5rBJ7xgaJpZM4K6_0Q .

jaredlll08 avatar Nov 23 '16 20:11 jaredlll08

okay i'll try it now

ghost avatar Nov 23 '16 20:11 ghost

https://gist.github.com/coopj121/3cf2991e21e89753a8b12eb46c717470

still doesn't work, comes out with the same error as before

ghost avatar Nov 23 '16 20:11 ghost

could it be that because i'm using items that don't have crafting recipes yet? i still need to add recipes for them items, i'm planning on using the assembly table to craft the components needed for the basic logistics pipes

ghost avatar Nov 23 '16 20:11 ghost

No, shouldn't be that, try using the actual item names instead of assigning them to a var?

On Nov 23, 2016 10:28 PM, "Coopj121" [email protected] wrote:

could it be that because i'm using items that don't have crafting recipes yet? i still need to add recipes for them items, i'm planning on using the assembly table to craft the components needed for the basic logistics pipes

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/stanhebben/MineTweaker3/issues/394#issuecomment-262622561, or mute the thread https://github.com/notifications/unsubscribe-auth/AFS9xWhjAjIvh_WLFrvIQs_VSayskyOeks5rBKH4gaJpZM4K6_0Q .

jaredlll08 avatar Nov 23 '16 20:11 jaredlll08

i have it set as the item names now, and it still comes up with the same error?

ghost avatar Nov 23 '16 20:11 ghost

originally what i wanted was the same crafting grid pattern but using the advanced crafting table from buildcraft but i don't think mt has support for that recipe type yet

ghost avatar Nov 23 '16 20:11 ghost