minetweaker script not working

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

nkiki2000

New Member
Jul 29, 2019
15
0
0
im currently making a modpack that is going to be super hard but to do that i have to change some recipes and the script is not working ca someone help me

also when i launch my world it says that main.cfg:expected
#all of the definition goes here

iron=oreDict.ingotIron;
tin=oreDict.ingotTin
irod=oreDict.ironRod
platesteel=<14300:14>;
comp=<1225>
qg=<902:3>
cap=<8786>
frame=8790





#all the recipe changing goes here

recipie.remove(<8790>);
recipies.addShaped(frame*1,[[platesteel,comp,platesteel],[qg,cap,qg],[platesteel,qg,platesteel]]);
 

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
you've got your semi colons ; missing at the end of tin, iron, comp, qg, cap and frame lines.
frame needs < and >
 

nkiki2000

New Member
Jul 29, 2019
15
0
0
it still isnt working but heres the updated code

iron=oreDict.ingotIron;
tin=oreDict.ingotTin;
irod=oreDict.ironRod;
platesteel=<14300:14>;
comp=<1225>;
qg=<902:3>;
cap=<8786>;
frame=<8790>;





#all the recipe changing goes here

minetweaker.setAdmins(steve224466);
recipie.remove(<8790>);
recipies.addShaped(frame*1,[[platesteel,comp,platesteel],[qg,cap,qg],[platesteel,qg,platesteel]]);
 

nkiki2000

New Member
Jul 29, 2019
15
0
0
recipie.remove(<8790>);
recipies.addShaped(<8790>,
^machine chassi ender io
[[<14300:16>,
^tinkers steel plate
<1225>,<14300:16>],[<903:3>,<8786>,<903:3>] ,[<14300:16>,<903:3>,<14300:16>]]);
^computer craft computer
[<903:3>,
^applied energistics quartz glass
<8786>,<903:3>] ,[<14300:16>,<903:3>,<14300:16>]]
^ender io capicitor

do i add 256 to all of the ids?
 

Mr_Turing

New Member
Jul 29, 2019
35
0
0
You should use the code block feature on the forums to maintain original formatting.
Your config seems to still have a bunch of wrong things:
You need to open and close all brackets []
all valid lines need to finish in a ;
comment lines need to start with a #
it's recipe not recipie....


the best way to debug is to look at the forgeloader log, it'll say exactly what line it's having an issue with and what was it(such as missing character or whatever)
just open the log and search for main.cfg
 

nkiki2000

New Member
Jul 29, 2019
15
0
0
Yea I always have that problem with misspelling recipe also should I add 256 to all of the ids
 

RikuSS4

New Member
Jul 29, 2019
3
0
0
Assuming you got the IDs from NEI, you should not have to shift them. If the IDs are right, this should work:
Code:
recipe.remove(<8790>);
recipes.addShaped(<8790>, [[<14300:16>,<1225>,<14300:16>],[<903:3>,<8786>,<903:3>] ,[<14300:16>,<903:3>,<14300:16>]]);
recipes.addShaped(<8790>, [[<903:3>,<8786>,<903:3>], [<14300:16>,<903:3>,<14300:16>]]);
I am assuming you are trying to create 2 recipes. If not, I am not sure what you were trying to do.
 

nkiki2000

New Member
Jul 29, 2019
15
0
0
No I'm olny tring to make one recipie though I am tring to change the recipie for the ender io machine chassi
 

SkeletonPunk

New Member
Jul 29, 2019
2,063
-3
1
Mine also won't load, here are the files

Code:
# See the forum post for example and documentation.
version 2;

# set your list of server admin usernames here
minetweaker.setAdmins("J_T_luka", "dark_link5000");
# admins are privileged users and will receive
# any error messages that might occur.


# Add your commands here
include "BeastBlock.cfg";
Code:
recipes.addShaped(<8523>, [[<8635>, <8635>, <8635>], [<18>, <3>, <18>], [<68635>, <8635>, <8635>]]);
recipes.addShapeless(<8570>, [<8569>, <295>] );
recipes.addShapeless(<8571>, [<8569:1>, <295>] );
recipes.addShapeless(<8572>, [<8569:2>, <295>] );
recipes.addShapeless(<8573>, [<8569:3>, <295>] );
recipes.addShapeless(<8569>, [<8523>, <4700:1>] );
recipes.addShapeless(<8569:1>, [<8523>, <259>] );
recipes.addShapeless(<8569:2>, [<8523>, <3>] );
recipes.addShapeless(<8569:3>, [<8523>, <374>] );
recipes.addShaped(<3>, [[<6>, <6>, <6>], [<6>, <6>, <6>], [<6>, <6>, <6>]]);
recipes.addShaped(<3>, [[<6:1>, <6:1>, <6:1>], [<6:1>, <6:1>, <6:1>], [<6:1>, <6:1>, <6:1>]]);
recipes.addShaped(<3>, [[<6:2>, <6:2>, <6:2>], [<6:2>, <6:2>, <6:2>], [<6:2>, <6:2>, <6:2>]]);
recipes.addShaped(<3>, [[<6:3>, <6:3>, <6:3>], [<6:3>, <6:3>, <6:3>], [<6:3>, <6:3>, <6:3>]]);
recipes.addShapeless(<13>, [<3>]);
recipes.addShapeless(<318>, [<13>, <13>] );
recipes.addShapeless(<12>, [<13>]);
recipes.addShaped(<8691>*8, [[<351:15>, <8532>, <351:15>], [<367>, <351:15>, <367>], [<351:15>, <8532>, <351:15>]]);
recipes.addShaped(<18006:4>*8, [[<9589:16>, <351:11>, <9589:16>], [<351:11>, <9589:16>, <351:11>], [<9589:16>, <351:11>, <9589:16>]]);
recipes.addShaped(<2403>, [[<1>, <1>, <1>], [<1>, <25356:3>, <1>], [<1>, <1>, <1>]]);
recipes.addShaped(<2404:2>*8, [[<37>, <37>, <37>], [<37>, <20264:66>, <37>], [<37>, <37>, <37>]]);
recipes.addShapeless(<31975>*16, [<8599>, <4362:6>] );
recipes.addShapeless(<791>, [<37>, <351:12>] );
recipes.addShapeless(<792>, [<791>] );
recipes.addShapeless(<813>, [<792>] );
recipes.addShapeless(<815>, [<813>] );
recipes.addShapeless(<22365>, [<813>, <111>] );
recipes.addShapeless(<827>, [<815>, <18>] );
recipes.addShaped(<9634:16>, [[<14276:21>, <1478>, <14276:21>], [<1478>, <1478:1>, <1478>], [<14276:21>, <1478>, <14276:21>]]);
recipes.addShaped(<9588:17>*3, [[<30066>, <14276:33>, <30066>], [<14276:33>, <30066>, <14276:33>], [<30066>, <14276:33>, <30066>]]);
recipes.addShaped(<13431>*8, [[null, <12261:15>, null], [<12261:15>, <264>, <12261:15>], [null, <12261:15>, null]]);
recipes.addShaped(<27334>, [[null, <334>, null], [<371>, <13305>, <371>], [null, <334>, null]]);
recipes.addShapeless(<27334:4>, [<27334>, <57>, <322:1>, <396>, <14363>, <399> ] );
recipes.addShapeless(<27334:1>, [<27334>, <1>, <322:1>, <396>, <14363>, <399> ] );
recipes.addShapeless(<27334:2>, [<27334>, <2>, <322:1>, <396>, <14363>, <399> ] );
recipes.addShapeless(<27334:3>, [<27334>, <3>, <322:1>, <396>, <14363>, <399> ] );
recipes.addShapeless(<14359>, [<341>, <351:4>] );
recipes.addShaped(<383:28>, [[<79>, <332>, <79>], [<6006:412>, <344>, <6006:412>], [<79>, <332>, <79>]]);
recipes.addShaped(<383:120>, [[<388>, <388>, <388>], [<388>, <344>, <388>], [<388>, <388>, <388>]]);
recipes.addShaped(<383:96>, [[<363>, <282>, <363>], [<282>, <344>, <282>], [<363>, <282>, <363>]]);
recipes.addShapeless(<8635>, [<2213>] );
recipes.addShapeless(<8635>, [<2213:1>] );
recipes.addShapeless(<8635>, [<2213:2>] );
recipes.addShapeless(<8635>, [<2213:3>] );
recipes.addShapeless(<8635>, [<2213:4>] );
recipes.addShapeless(<8635>, [<2213:5>] );
recipes.addShapeless(<8635>, [<2213:6>] );
recipes.addShapeless(<8635>, [<2213:7>] );
recipes.addShapeless(<8635>, [<2213:8>] );
recipes.addShapeless(<8635>, [<2213:9>] );
recipes.addShapeless(<8635>, [<2213:10>] );
recipes.addShapeless(<8635>, [<2213:11>] );
recipes.addShapeless(<8635>, [<2213:12>] );
recipes.addShapeless(<8635>, [<2213:13>] );
recipes.addShapeless(<8635>, [<2213:14>] );
recipes.addShapeless(<8635>, [<2213:15>] );
recipes.addShaped(<8599>, [[<8635>, <8635>, <8635>], [<8635>, <2506>, <8635>], [<8635>, <8635>, <8635>]]);
recipes.addShaped(<8565>, [[<8635>, <8635>, <8635>], [<8635:1>, <8535>, <8635:1>], [<8635>, <8635>, <8635>]]);
recipes.addShapeless(<8568>, [<8565>, <8599>] );
recipes.addShapeless(<8574>, [<8568>, <8599>] );
recipes.addShapeless(<318>, [<265>, <265>, <265>, <265>, <265>, <265>, <265>, <265>, <8593>] );
recipes.addShapeless(<8608>, [<8534>, <8599>, <8599>] );
recipes.addShapeless(<8567>, [<8608>, <8599>, <8599>] );
recipes.addShapeless(<8566>, [<8567>, <8599>, <8599>] );
recipes.addShapeless(<8606>, [<8534>, <8599:2>] );
recipes.addShapeless(<8605>, [<8606>, <8599:2>] );
recipes.addShapeless(<8613>, [<8605>, <8599:2>] );
recipes.addShaped(<6019>, [[null, <266>, null], [null, null, null], [<266>, null, <266>]]);
recipes.addShaped(<331>, [[<6019>, <351:1>, <6019>], [<351:1>, <6019>, <351:1>], [<6019>, <351:1>, <6019>]]);
recipes.addShapeless(<8533>, [<8539>, <8599:1>] );
recipes.addShapeless(<8612>, [<8533>, <8599:1>] );
recipes.addShapeless(<8564>, [<8612>, <8599:1>] );
recipes.addShapeless(<8536>, [<8564>, <8599:1>] );
recipes.addShapeless(<264>, [<41>, <8593:3>] );
recipes.addShapeless(<8577>, [<8528>, <8599:3>] );
recipes.addShapeless(<8575>, [<8577>, <8599:3>] );
recipes.addShapeless(<8530>, [<8575>, <8599:3>] );
recipes.addShapeless(<8576>, [<8530>, <8599:3>] );
recipes.addShaped(<790:3>, [[<1>, <1>, <1>], [<1>, <8569>, <1>], [<1>, <1>, <1>]]);
recipes.addShaped(<790:4>, [[<1>, <1>, <1>], [<1>, <8569:1>, <1>], [<1>, <1>, <1>]]);
recipes.addShaped(<790:2>*2, [[<1>, <1>, <1>], [<1>, <264>, <1>], [<1>, <1>, <1>]]);
recipes.addShapeless(<790:1>, [<790:2>] );
recipes.addShapeless(<790>, [<790:1>] );
 

Golrith

Over-Achiever
Trusted User
Nov 11, 2012
3,834
2,137
248
What does the console report as being the error? That's your first clue, and usually indicates at least a line number, or if something is missing.
 
  • Like
Reactions: SatanicSanta

belgabor

New Member
Jul 29, 2019
574
0
0
Also always add a blank ine at the end if you haven't one. IIrc MineTweaker hiccuped on this on my server. Didn't on the client, which made for some "fun" effects...
 

SkeletonPunk

New Member
Jul 29, 2019
2,063
-3
1
What does the console report as being the error? That's your first clue, and usually indicates at least a line number, or if something is missing.
like this?
Code:
2014-06-26 13:07:02 [SEVERE] [MineTweaker] Could not process scipts
stanhebben.minetweaker.script.parser.TokenException: Invalid character at 1:76 - 
    at stanhebben.minetweaker.script.parser.TokenStream.advanceToken(TokenStream.java:206)
    at stanhebben.minetweaker.script.parser.TokenStream.advance(TokenStream.java:181)
    at stanhebben.minetweaker.script.parser.TokenStream.next(TokenStream.java:149)
    at stanhebben.minetweaker.script.parser.TokenStream.required(TokenStream.java:93)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPrimaryExpression(TweakerExpression.java:335)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPostfixExpression(TweakerExpression.java:230)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readUnaryExpression(TweakerExpression.java:225)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readMulExpression(TweakerExpression.java:194)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAddExpression(TweakerExpression.java:177)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readCompareExpression(TweakerExpression.java:133)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndExpression(TweakerExpression.java:123)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readXorExpression(TweakerExpression.java:113)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrExpression(TweakerExpression.java:103)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndAndExpression(TweakerExpression.java:93)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrOrExpression(TweakerExpression.java:83)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readConditionalExpression(TweakerExpression.java:68)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAssignExpression(TweakerExpression.java:33)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPrimaryExpression(TweakerExpression.java:357)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPostfixExpression(TweakerExpression.java:230)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readUnaryExpression(TweakerExpression.java:225)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readMulExpression(TweakerExpression.java:194)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAddExpression(TweakerExpression.java:177)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readCompareExpression(TweakerExpression.java:133)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndExpression(TweakerExpression.java:123)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readXorExpression(TweakerExpression.java:113)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrExpression(TweakerExpression.java:103)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndAndExpression(TweakerExpression.java:93)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrOrExpression(TweakerExpression.java:83)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readConditionalExpression(TweakerExpression.java:68)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAssignExpression(TweakerExpression.java:33)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPrimaryExpression(TweakerExpression.java:357)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPostfixExpression(TweakerExpression.java:230)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readUnaryExpression(TweakerExpression.java:225)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readMulExpression(TweakerExpression.java:194)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAddExpression(TweakerExpression.java:177)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readCompareExpression(TweakerExpression.java:133)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndExpression(TweakerExpression.java:123)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readXorExpression(TweakerExpression.java:113)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrExpression(TweakerExpression.java:103)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndAndExpression(TweakerExpression.java:93)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrOrExpression(TweakerExpression.java:83)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readConditionalExpression(TweakerExpression.java:68)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAssignExpression(TweakerExpression.java:33)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readPostfixExpression(TweakerExpression.java:255)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readUnaryExpression(TweakerExpression.java:225)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readMulExpression(TweakerExpression.java:194)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAddExpression(TweakerExpression.java:177)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readCompareExpression(TweakerExpression.java:133)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndExpression(TweakerExpression.java:123)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readXorExpression(TweakerExpression.java:113)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrExpression(TweakerExpression.java:103)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAndAndExpression(TweakerExpression.java:93)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readOrOrExpression(TweakerExpression.java:83)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readConditionalExpression(TweakerExpression.java:68)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.readAssignExpression(TweakerExpression.java:33)
    at stanhebben.minetweaker.script.expressions.TweakerExpression.read(TweakerExpression.java:26)
    at stanhebben.minetweaker.script.statements.TweakerStatement.read(TweakerStatement.java:68)
    at stanhebben.minetweaker.script.TweakerFile.loadScript(TweakerFile.java:73)
    at stanhebben.minetweaker.script.TweakerFile.<init>(TweakerFile.java:24)
    at stanhebben.minetweaker.script.ScriptEnvironmentDir.getFile(ScriptEnvironmentDir.java:20)
    at stanhebben.minetweaker.script.TweakerFile.findFile(TweakerFile.java:56)
    at stanhebben.minetweaker.script.statements.StatementInclude.execute(StatementInclude.java:22)
    at stanhebben.minetweaker.script.statements.StatementBlock.execute(StatementBlock.java:21)
    at stanhebben.minetweaker.script.TweakerFile.execute(TweakerFile.java:61)
    at stanhebben.minetweaker.MineTweaker.postInit(MineTweaker.java:551)
 

Narc

New Member
Jul 29, 2019
259
0
0
like this?
Code:
2014-06-26 13:07:02 [SEVERE] [MineTweaker] Could not process scipts
stanhebben.minetweaker.script.parser.TokenException: Invalid character at 1:76 - 
[...]
Ooh. Yeah, there is. Your very first line has a weird invisible character at column 76, pretty much exactly where you can see "68635" (it's actually "6?8635", where I'm using ? to mark the invisible character (possibly some kind of backspace).

I imagine you intended
Code:
recipes.addShaped(<8523>, [[<8635>, <8635>, <8635>], [<18>, <3>, <18>], [<8635>, <8635>, <8635>]]);

That invisible character is pernicious! I couldn't see it at all until I copy/pasted into Notepad++.
 

SkeletonPunk

New Member
Jul 29, 2019
2,063
-3
1
Ooh. Yeah, there is. Your very first line has a weird invisible character at column 76, pretty much exactly where you can see "68635" (it's actually "6?8635", where I'm using ? to mark the invisible character (possibly some kind of backspace).

I imagine you intended
Code:
recipes.addShaped(<8523>, [[<8635>, <8635>, <8635>], [<18>, <3>, <18>], [<8635>, <8635>, <8635>]]);

That invisible character is pernicious! I couldn't see it at all until I copy/pasted into Notepad++.
thanks trying it out now