Mod code too large
Hello, is there any way to extend the script ? I have too many item to edit whit that mod. Thanks you !
I'm gonna head this one off at the pass, you need to provide more information. use the Code Tags to display any large chunks of code/crashes.
Which Mod are you trying to Edit?
Which Version?
Which Version of MineCraft?
Which Version of Forge?
Which Version of MineTweaker are you using?
Do you have ModTweaker?
Which Version of ModTweaker?
What is the current Script you are using?
Does that current Script currently Function as intended? (no Bugs/Errors/Crashes for that specific Script)
to use a group Code Tag like this one type this on it's own line to Open/Close it (minus the Spaces)
` ` `
I went rather in depth in formatting Tips > here <
Edit: Merged Post:
oh, and also,
Which Version of Java are you currently Using?
What is your current Operating System? (aka OS [Operating System], aka iOS [internal Operating System])
Are you running in Server or Client Mode?
Are you trying to run this on a Server?
Are you trying to run this in Single Player?
most of this information can be found in any Crash Log, for example:
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 5/8/17 8:47 PM
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.7.10
Operating System: Windows 7 (amd64) version 6.1
Java Version: 1.8.0_73, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 69093088 bytes (65 MB) / 159133696 bytes (151 MB) up to 2141913088 bytes (2042 MB)
JVM Flags: 42 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -XX:+AggressiveHeap -XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+CMSScavengeBeforeRemark -XX:+ExplicitGCInvokesConcurrent -XX:+ParallelRefProcEnabled -XX:+ScavengeBeforeFullGC -XX:+UseCodeCacheFlushing -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseStringDeduplication -XX:-DisableExplicitGC -XX:-UseAdaptiveSizePolicy -XX:-UseCompressedOops -XX:-UseG1GC -XX:-UseParallelGC -XX:-UseSerialGC -XX:ReservedCodeCacheSize=128M -XX:InitialHeapSize=256M -XX:MaxNewSize=32M -XX:NewSize=8M -Xms64M -Xmx2048M -Xss2M -XX:CMSExpAvgFactor=10 -XX:CMSTriggerRatio=95 -XX:CodeCacheMinimumFreeSpace=64M -XX:ConcGCThreads=1 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=5 -XX:InitialCodeCacheSize=128M -XX:InitialSurvivorRatio=4 -XX:InitiatingHeapOccupancyPercent=75 -XX:MaxGCPauseMillis=250 -XX:MaxHeapFreeRatio=50 -XX:MaxTenuringThreshold=8 -XX:MinHeapFreeRatio=5 -XX:ParallelGCThreads=1 -XX:StringDeduplicationAgeThreshold=2 -XX:SurvivorRatio=4 -XX:TargetSurvivorRatio=50
AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
GL info: ' Vendor: 'ATI Technologies Inc.' Version: '4.4.12874 Compatibility Profile Context 14.100.0.0' Renderer: 'AMD Radeon HD 6310 Graphics'
you can clearly see my MineCraft Version (1.7.10), my Java Version (1.8.0_73, Oracle Corporation), my Operating System (Windows 7 (amd64) version 6.1) and if I am in Server/Client Mode (Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation). I'm sure you can use your imagination to see how this type of information can greatly assist the people working on this Mod.
i did not have crash, i can't juste write anymore. Error is displayed in in game chat. " Error MineTweakerrecipemaker method code too large".
- Which Mod are you trying to Edit? : A modpack of 50 mods.
- Which Version of MineCraft? : 1.7.10
- Which Version of Forge? Last recommended version
- Which Version of MineTweaker are you using? : MineTweaker3-1.7.10-3.0.10B.jar
- Do you have ModTweaker?: Nop
- What is the current Script you are using? : MineTweaker recipemaker script
I'm playing on a server. Sorry for this english, i'm a french player. Thanks a lot
Perhaps you need to go into your \.minecraft\scripts\ folder and split the script into multiple smaller scripts. Watch the Console Log (or the \.minecraft\logs\fml-client-latest.log) during the Script Load (during Launch/Server Start) or Reload (/mt reload) and see which order it tries to Load the Scripts in, it will always follow that same order.
Example:
Folder: \%AppData%\.minecraft\scripts\
MT_Recipe_Maker.zs
B1_Additions.zs
B2_Additions.zs
B3_Additions.zs
B4_Additions.zs
B5_Additions.zs
B6_Additions.zs
B7_Additions.zs
B8_Additions.zs
B9_Additions.zs
A1_Removals.zs
A2_Removals.zs
A3_Removals.zs
A4_Removals.zs
A5_Removals.zs
A6_Removals.zs
A7_Removals.zs
A8_Removals.zs
A9_Removals.zs
C1_Renames.zs
C2_Renames.zs
C3_Renames.zs
C4_Renames.zs
C5_Renames.zs
C6_Renames.zs
C7_Renames.zs
C8_Renames.zs
C9_Renames.zs
it will load the A1, then A2, then A3, etc. then it will load the B, then the C, then way at the end, it will load the M (MT_Recipe_Maker.zs).
I use this to enforce specific function loading in a specific order, and I am currently also working on a ModPack myself (once I resolve a Crash to Launcher during PostInitialization Bug).
To test this, you can just save an empty .zs File and read the Load Order from the Log and watch where it places the File's Name.
Edit: Merged Posts:
The problem you are encountering is that you are likely reaching the limits of the Program, but, I recently specifically asked about this exact thing, and found out that 10 files of 250 KB will succeed where 1 file of 2 MB will fail for this exact problem.
Edit: Merged Posts:
This is also a limit within Java it's self, as you will read in the post
>> Here <<