Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[SOLVED] [1.7.2]Forge fails to initialize the game


Chocolate_with
 Share

Recommended Posts

  • Replies 55
  • Created
  • Last Reply

Top Posters In This Topic

Here is the mcmod.info you wanted:

 

[
{
  "modid": "SurvivalOverhaul",
  "name": "Survival Overhaul",
  "description": "",
  "version": "${Alpha 0.0.2}",
  "mcversion": "${1.7.2}",
  "url": "",
  "updateUrl": "",
  "authors": ["ExampleDude"],
  "credits": "The Forge and FML guys, for making this",
  "logoFile": "",
  "screenshots": [],
  "dependencies": []
}
]

Link to comment
Share on other sites

Remove the ${} in both, version and mcversion, since those characters aren't supposed to be there.

 

Also I recommend the formatting "MCVERSION-MODVERSION" (e.g. "1.7.2-0.0.2a" - "a" is for alpha, "b" would be for beta) in your version field.

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Link to comment
Share on other sites

Remove the ${} in both, version and mcversion, since those characters aren't supposed to be there.

 

Also I recommend the formatting "MCVERSION-MODVERSION" (e.g. "1.7.2-0.0.2a" - "a" is for alpha, "b" would be for beta) in your version field.

 

Fixed:

Gradlew.bat build

 

 

Not Fixed:

Client error:

Caused by: java.lang.NoSuchFieldError: rock
at com.choco.project.Main.preInit(Main.java:30)

 

And that line is:

	Block SampleBlock = new SampleBlock(3000, 0, Material.rock).setBlockName("SampleBlock");

 

In function:

@EventHandler
public void preInit(FMLPreInitializationEvent e) {
	Block SampleBlock = new SampleBlock(3000, 0, Material.rock).setBlockName("SampleBlock");
	GameRegistry.registerBlock(SampleBlock, "SampleBlock");
}

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share




×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.