Jump to content

Recommended Posts

Posted

Alright, I come with two issues.

 

1) Saplings. I'm having issues with my sapling icon:

        @Override
public int getBlockTextureFromSideAndMetadata (int side, int metadata) {
	return 32 + metadata;
}

'int' is underlined and eclipse says "The return type is in-compatible with Block.getBlockTexture..." but causes no real problems. Also, MC is looking for the right file to use, but in the wrong folder. I want it to look in /mods/mps/texture... but it looks in the minecraft.jar texture folder.

 

2)I have a working config, it generates and everything. Now, what I have set up is in my base class I have an int called TextureSize, and by changing it tells the mod whether to use animated 32-bit textures or normal 16-bit texture. I tried to get something like this working:

Configuration config = new Configuration(event.getSuggestedConfigurationFile());

	config.load();

	boolean Textures = config.get(Configuration.CATEGORY_GENERAL, "High Resolution Textures", true).getBoolean(false);

	Property someProperty = config.get(Configuration.CATEGORY_GENERAL, "SomeConfigString", "Does nothing");

	someProperty.comment = "Ignore this, it will be used later.";

	config.save();

	if (Textures = true){
		this.TextureSize = 32;
	}else{
		this.TextureSize = 16;
	}
}

yet it does nothing. Any tips on how to do this?

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Posted

Also comparing a boolean with true is redundant.

 

I think most IDEs and compilers will strip the comparison out and use the strait boolean.

Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable.  If you think this is the case, JUST REPORT ME.  Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice.

 

Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked.

 

DO NOT PM ME WITH PROBLEMS. No help will be given.

Posted

1) Are you still in 1.4.7? Because in 1.5 there are no texture sheets anymore.

2) if (something = true)

What is =? Its an assignment, not a comparison. Turn on the warnings in your IDE man

 

No, I'm not using 4.7. That line of code is the exact same things vanilla uses to load the sapling icon, my issue is it's looking in the vanilla texture folder, NOT the mods folder. Also, I'm not sure what you mean by IDE.

I am the current head modder for the Metroid Prime Suits mod. I have no other staff members, so I'm hiring! I also co-own the SkyTekkit server.

width=600 height=126http://i1276.photobucket.com/albums/y480/Sypher40/MPSbanner_zps9d50d86a.png[/img]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.