Maybe add import in start file?
I got it to work, I redownloaded the newest version and skipped the import and prefixing "mods." to every call.
Maybe add import in start file?
I got it to work, I redownloaded the newest version and skipped the import and prefixing "mods." to every call.
But this scripts are Gt 5 Gt5exp or Gt6 recipe.
These are GT6.
First try at some GT6 scripts.
Does the forum notify other users on post edit?
First try at some GT6 scripts.
The JABBA one is intended to be used with the .cfg, which needs some changes for aesthetics, specifically the RGBs for:
Wood
Bronze
Steel
Invar
Titanium
Tungsten
Tungsten-steel
For which I asked in the GT6 thread.
Edit: Oops, I put up the chisel.cfg, I will keep that up but I do not consider it's script finished, so I did not include the script.
I tended the jabba.cfg, which I have now attached.
Modlist from a recent crash (I reported it to the relevant modder):
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA CodeChickenCore{1.0.4.29} [CodeChicken Core] (minecraft.jar)
UCHIJAAAA NotEnoughItems{1.0.3.74} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.3.74-universal.jar)
UCHIJAAAA Backpack{2.0.0} [Backpack] (backpack-2.0.0-1.7.x.jar)
UCHIJAAAA BiblioCraft{1.11.4} [BiblioCraft] (BiblioCraft[v1.11.4][MC1.7.10].jar)
UCHIJAAAA qmunitylib{1.0} [QmunityLib] (QmunityLib-1.7.10-0.1.114-universal.jar)
UCHIJAAAA bluepower{0.2.962} [Blue Power] (BluePower-1.7.10-0.2.962-universal.jar)
UCHIJAAAA ForgeMultipart{1.1.2.331} [Forge Multipart] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
UCHIJAAAA gregapi{GT6-MC1710} [Greg-API] (gregtech_1.7.10-6.00.62.jar)
UCHIJAAAA chisel{2.9.4.10} [Chisel] (Chisel-2.9.4.10.jar)
UCHIJAAAA CarpentersBlocks{3.3.8_dev_r6} [Carpenter's Blocks] (Carpenter's Blocks v3.3.8_dev_r6 - MC 1.7.10.jar)
UCHIJAAAA catwalks{2.0.1} [Catwalks Mod] (catwalks-2.0.1.jar)
UCHIJAAAA catwalkmod{x.x.x} [Legacy Catwalk Compat] (catwalks-2.0.1.jar)
UCHIJAAAA Enchiridion{1.3} [Enchiridion] (Enchiridion 2-1.7.10-2.0.2a.jar)
UCHIJAAAA Enchiridion2{2.0.2a} [Enchiridion 2] (Enchiridion 2-1.7.10-2.0.2a.jar)
UCHIJAAAA FastCraft{1.21} [FastCraft] (fastcraft-1.21.jar)
UCHIJAAAA McMultipart{1.1.2.331} [Minecraft Multipart Plugin] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
UCHIJAAAA IC2{2.2.807-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.807-experimental.jar)
UCHIJAAAA IC2NuclearControl{2.3.1a-Butt} [Nuclear Control 2] (IC2NuclearControl-2.3.1a-Butt.jar)
UCHIJAAAA gregtech{GT6-MC1710} [GregTech] (gregtech_1.7.10-6.00.62.jar)
UCHIJAAAA gtextras{0.3.4} [GTExtras] (GTExtras-0.3.4-test.jar)
UCHIJAAAA Ic2Nei{1.0} [IC2 Nei Plugin] (IC2 Nei Plugin Version 1.0.8.jar)
UCHIJAAAA ihl{0.582} [IHL Tools & Machines for IC2V2] (ihl-tools_n_machines-0.582-1.7.10.jar)
UCHIJAAAA ImmersiveEngineering{0.6.4} [Immersive Engineering] (ImmersiveEngineering-0.6.4.jar)
UCHIJAAAA inventorytweaks{1.58-147-645ca10} [Inventory Tweaks] (InventoryTweaks-1.58-147.jar)
UCHIJAAAA Waila{1.5.3} [Waila] (Waila-Mod-1.7.10.jar)
UCHIJAAAA JABBA{1.2.1} [JABBA] (Jabba-1.2.1a_1.7.10.jar)
UCHIJAAAA Magneticraft{0.5.1} [Magneticraft] (magneticraft-0.5.1.jar)
UCHIJAAAA MapWriter{2.1.8} [MapWriter] (MapWriter-1.7.10-2.1.10.jar)
UCHIJAAAA MineTweaker3{3.0.9B} [MineTweaker 3] (MineTweaker3-1.7.10-3.0.9C.jar)
UCHIJAAAA modtweaker2{0.9.4} [Mod Tweaker 2] (ModTweaker2-0.9.4.jar)
UCHIJAAAA MTUtils{1.0} [MineTweaker Utils] (MTUtils v1.3.0.jar)
UCHIJAAAA StacksOnStacks{{$version}} [Stacks on Stacks!] (StacksOnStacks-1.7.10-2.4.2.jar)
UCHIJAAAA ForgeMicroblock{1.1.2.331} [Forge Microblocks] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
The line reporting the error from Minetweaker.log:
ERROR: Error parsing IHL.zs:67 -- Invalid expression, last token: import
Edit: I still haven't gotten this working, but i would also like a way of editing the material contents of an item via script.
Yes, i would like to. Its a null pointer exception caused by missing NBT tag in itemstack. I use exactly same NBT tag system for durability as it is in GT5.
This is the critical section of the script:
val IHLGrind = <ihl:item.ihlTool:4>;
<ore:craftingToolFile>.add(IHLGrind);
<ore:craftingToolMortar>.add(IHLGrind);
I then in MC Look at a recipe using a file in NEI and it crashes.
Is reason of such adjustments a high durability of tools from IHL in GT recipes?
No, I was mostly just playing around in MT tweaking GT6.
May be i should decrease it for GT recipes? Or a reason is that my tools somehow make a shortcut in GT tech tree?
Not in GT5, that I know of, and It will probably be a while before that can be true in GT6.
However, GT tools can handle being re-tool ODd fine and in the cases of this render bug using actual items, it would probably be nice to not have to restore the world from backup.
On another note the just released GT6.01.00 has in the changelog at "http://files.minecraftforge.net/maven/com/gregoriust/gregtech/changelog.txt":
[API] Restructured the API in a way that probably crashes a lot of compat things of other Mods, that is why the secondary version number finally got bumped. The gregapi.tileentitiy package got a bit too full, so I made subpackages and also renamed some TEs to sort things out properly. I did keep a deprecated Version of ITileEntityEnergy at its old place however, because that one is already too widely used.
I tried:
import mods.MTUtilsGT;
import mods.MTUtils;
import mods.MTUtils.MTUtilsGT;
For all of these MT returned (paraphrased) <File>.zs:<Line>: Unrecognized Text after 'import'
What is the correct import line, I cannot get it to work.
I was MT scripting your tools to have recipes with different durabilities and to be in different GT tool (ore) dictionaries.
The crash happened when looking at a MT scripted recipe in NEI.
I can include the scripts if you want.
---- Minecraft Crash Report ----
// I feel sad now
Time: 12/23/15 8:25 PM
Description: Rendering screen
java.lang.NullPointerException: Rendering screen
at ihl.utils.IHLUtils.getDamageValueViaNBTTag(IHLUtils.java:519)
at ihl.items_blocks.IHLTool.getDurabilityForDisplay(IHLTool.java:351)
at net.minecraft.client.renderer.entity.RenderItem.func_94148_a(RenderItem.java:693)
at codechicken.nei.guihook.GuiContainerManager.drawSlotItem(GuiContainerManager.java:489)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:270)
at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:99)
at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1061)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1001)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:898)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- Head --
Stacktrace:
at ihl.utils.IHLUtils.getDamageValueViaNBTTag(IHLUtils.java:519)
at ihl.items_blocks.IHLTool.getDurabilityForDisplay(IHLTool.java:351)
at net.minecraft.client.renderer.entity.RenderItem.func_94148_a(RenderItem.java:693)
at codechicken.nei.guihook.GuiContainerManager.drawSlotItem(GuiContainerManager.java:489)
at net.minecraft.client.gui.inventory.GuiContainer.func_146977_a(GuiContainer.java:270)
at net.minecraft.client.gui.inventory.GuiContainer.func_73863_a(GuiContainer.java:99)
-- Screen render details --
Details:
Screen name: codechicken.nei.recipe.GuiCraftingRecipe
Mouse location: Scaled: (407, 65). Absolute: (815, 348)
Screen size: Scaled: (427, 240). Absolute: (854, 480). Scale factor of 2
-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['<player>'/247, l='MpServer', x=-290.72, y=66.62, z=233.52]]
Chunk stats: MultiplayerChunkCache: 625, 625
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options:
Level spawn location: World: (-184,64,256), Chunk: (at 8,4,0 in -12,16; contains blocks -192,0,256 to -177,255,271), Region: (-1,0; contains chunks -32,0 to -1,31, blocks -512,0,0 to -1,255,511)
Level time: 5024534 game time, 5196292 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: adventure (ID 2). Hardcore: false. Cheats: false
Forced entities: 69 total; [<entities removed due to character limit>]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373)
at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2444)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:919)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Mac OS X (x86_64) version 10.11.2
Java Version: 1.8.0_60, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 394961000 bytes (376 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 5 total; -Xmx1G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 9, tcache: 0, allocated: 13, tallocated: 95
FML: MCP v9.05 FML v7.10.99.99 Minecraft Forge 10.13.4.1558 36 mods loaded, 36 mods active
States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored
UCHIJAAAA mcp{9.05} [Minecraft Coder Pack] (minecraft.jar)
UCHIJAAAA FML{7.10.99.99} [Forge Mod Loader] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA Forge{10.13.4.1558} [Minecraft Forge] (forge-1.7.10-10.13.4.1558-1.7.10.jar)
UCHIJAAAA CodeChickenCore{1.0.4.29} [CodeChicken Core] (minecraft.jar)
UCHIJAAAA NotEnoughItems{1.0.3.74} [Not Enough Items] (NotEnoughItems-1.7.10-1.0.3.74-universal.jar)
UCHIJAAAA Backpack{2.0.0} [Backpack] (backpack-2.0.0-1.7.x.jar)
UCHIJAAAA BiblioCraft{1.11.4} [BiblioCraft] (BiblioCraft[v1.11.4][MC1.7.10].jar)
UCHIJAAAA qmunitylib{1.0} [QmunityLib] (QmunityLib-1.7.10-0.1.114-universal.jar)
UCHIJAAAA bluepower{0.2.962} [Blue Power] (BluePower-1.7.10-0.2.962-universal.jar)
UCHIJAAAA ForgeMultipart{1.1.2.331} [Forge Multipart] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
UCHIJAAAA gregapi{GT6-MC1710} [Greg-API] (gregtech_1.7.10-6.00.62.jar)
UCHIJAAAA chisel{2.9.4.10} [Chisel] (Chisel-2.9.4.10.jar)
UCHIJAAAA CarpentersBlocks{3.3.8_dev_r6} [Carpenter's Blocks] (Carpenter's Blocks v3.3.8_dev_r6 - MC 1.7.10.jar)
UCHIJAAAA catwalks{2.0.1} [Catwalks Mod] (catwalks-2.0.1.jar)
UCHIJAAAA catwalkmod{x.x.x} [Legacy Catwalk Compat] (catwalks-2.0.1.jar)
UCHIJAAAA Enchiridion{1.3} [Enchiridion] (Enchiridion 2-1.7.10-2.0.2a.jar)
UCHIJAAAA Enchiridion2{2.0.2a} [Enchiridion 2] (Enchiridion 2-1.7.10-2.0.2a.jar)
UCHIJAAAA FastCraft{1.21} [FastCraft] (fastcraft-1.21.jar)
UCHIJAAAA McMultipart{1.1.2.331} [Minecraft Multipart Plugin] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
UCHIJAAAA IC2{2.2.807-experimental} [IndustrialCraft 2] (industrialcraft-2-2.2.807-experimental.jar)
UCHIJAAAA IC2NuclearControl{2.3.1a-Butt} [Nuclear Control 2] (IC2NuclearControl-2.3.1a-Butt.jar)
UCHIJAAAA gregtech{GT6-MC1710} [GregTech] (gregtech_1.7.10-6.00.62.jar)
UCHIJAAAA gtextras{0.3.4} [GTExtras] (GTExtras-0.3.4-test.jar)
UCHIJAAAA Ic2Nei{1.0} [IC2 Nei Plugin] (IC2 Nei Plugin Version 1.0.8.jar)
UCHIJAAAA ihl{0.582} [IHL Tools & Machines for IC2V2] (ihl-tools_n_machines-0.582-1.7.10.jar)
UCHIJAAAA ImmersiveEngineering{0.6.4} [Immersive Engineering] (ImmersiveEngineering-0.6.4.jar)
UCHIJAAAA inventorytweaks{1.58-147-645ca10} [Inventory Tweaks] (InventoryTweaks-1.58-147.jar)
UCHIJAAAA Waila{1.5.3} [Waila] (Waila-Mod-1.7.10.jar)
UCHIJAAAA JABBA{1.2.1} [JABBA] (Jabba-1.2.1a_1.7.10.jar)
UCHIJAAAA Magneticraft{0.5.1} [Magneticraft] (magneticraft-0.5.1.jar)
UCHIJAAAA MapWriter{2.1.8} [MapWriter] (MapWriter-1.7.10-2.1.10.jar)
UCHIJAAAA MineTweaker3{3.0.9B} [MineTweaker 3] (MineTweaker3-1.7.10-3.0.9C.jar)
UCHIJAAAA modtweaker2{0.9.4} [Mod Tweaker 2] (ModTweaker2-0.9.4.jar)
UCHIJAAAA MTUtils{1.0} [MineTweaker Utils] (MTUtils v1.3.0.jar)
UCHIJAAAA StacksOnStacks{{$version}} [Stacks on Stacks!] (StacksOnStacks-1.7.10-2.4.2.jar)
UCHIJAAAA ForgeMicroblock{1.1.2.331} [Forge Microblocks] (ForgeMultipart-1.7.10-1.1.2.331-universal.jar)
GL info: ' Vendor: 'Intel Inc.' Version: '2.1 INTEL-10.12.13' Renderer: 'Intel HD Graphics 5000 OpenGL Engine'
Chisel: Errors like "[FML]: Unable to lookup ..." are NOT the cause of this crash. You can safely ignore these errors. And update forge while you're at it.
Launched Version: 1.7.10-Forge10.13.4.1558-1.7.10
LWJGL: 2.9.1
OpenGL: Intel HD Graphics 5000 OpenGL Engine GL version 2.1 INTEL-10.12.13, Intel Inc.
GL Caps: Using GL 1.3 multitexturing.
Using framebuffer objects because ARB_framebuffer_object is supported and separate blending is supported.
Anisotropic filtering is supported and maximum anisotropy is 16.
Shaders are available because OpenGL 2.1 is supported.
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [ZT_1, minimalist_technology_v0_5]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)
Can you try this one: https://www.dropbox.com/s/j8ui…xtras-0.3.4-test.jar?dl=0
I haven't gotten any of the items out of nei, but the only immediately visible bug is thatch of "get.multitileentity.[0-15].name" and a "tile.gregtechextras:tile.null.name" with subtext "gtextras:blocktank" appear in nei.
These scripts are for GT5/U.
Carpenter's Blocks.zs may be compatible with GT6.
Mostly I just cleaned up all the GT tools so they are always mentioned by ore dictionary, referenced the most common ones in all the scripts, with their tool ID number in item ".metatool" which is thus far unchanged in GT6.
On this page or in the github repository?
Github.
I noticed that in GT6 Greg is no longer using ".metaitem" for his item unlocalized names, FYI
Perhaps you should split the page for GT5 scripts / GT5U scripts / GT6 scripts.
Are GT hammers and chisels usable as Carpenters Blocks hammers and chisels?
If not then This Page has a link to some API at the bottom.
But i dont know how to use structures like "for item in array {}" to automate my script. Of caurse i can make insane quantity of lines wich will be contain every item. Its unnormal and long time way i think.
Here a demonstration from "Let's Greg other mods" I edited.
I don't really understand it, I just copy, paste and edit.
And please don't tell me they have antimatter in gregtech.
GT does have anti-matter, in fact GT has an A-matter version of every (elemental?) material it registers,
However there is not yet a way (except cheats) to get any of it, in either GT6 or GT5(U?).
I have had these for a while but have ignored them, take what is relevant.