Results 1 to 7 of 7
  1. #1
    Zoee's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Here
    Posts
    199
    Reputation
    34
    Thanks
    423
    My Mood
    Angelic

    fullbright soruce code help

    Please help why won't this work?
    Code doesn't error, it just won't work properly xD!
    Can anbody point me in the right direction?

    Code:
    public class Brightness extends TestMod
    {
    
    	public Brightness()
    	{
    		super("Brightness", "Brightens the world", Keyboard.KEY_C, 0xFFF8C6, EnumGuiCategory.WORLD);
    	}
    
    	
    	public float fakeGamma = mc.gameSettings.gammaSetting;
    	private boolean isFading = false;
    	private static final float FADE_INTERVAL = 1.0F;
    	public void onUpdate(EntityPlayerSP player) {
    		if(isEnabled()) {
    		
    	    mc.gameSettings.gammaSetting++;
    	}else
    	    mc.gameSettings.gammaSetting = 1.0F;
    	}
    
    
    	}

  2. #2
    lucamasira's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    72
    Reputation
    10
    Thanks
    23
    My Mood
    Happy
    How the f can you make a mistake with fullbright lol.
    Looks like you only added 1 to the gamma lol
    Try this in the onUpdate(out of my head lol)

    Code:
    if(isEnabled() && mc.gameSettings.gamma < 80000)
    {
        mc.gameSettings.gamma += 10;//+10 cause 1 everytick would be a bit slow
    } else if (!isEnabled() && mc.gameSettings.gamma > 1F)
    {
        mc.gammaSettings.gamma -= 10;
    }

  3. #3
    Zoee's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Location
    Here
    Posts
    199
    Reputation
    34
    Thanks
    423
    My Mood
    Angelic
    Doesn't work but no error either!

    update: I couldn't get the full bright code to work to save my life.. I used to hard-code everything now I was going for an OPP method. Everything is set in-place and works perfect. Some of my hacks are broken like Fullbright for example.. I have it in it's own class also.

    Anyways,if anyone knows why it might not work or a fix or point me in the right direction would be helpful.
    I just opened up guiingame for now and added a permanent fullbright. I'd like to change this so the user has a option to decide.
    Last edited by Zoee; 09-16-2013 at 04:49 PM.

  4. #4
    lucamasira's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    72
    Reputation
    10
    Thanks
    23
    My Mood
    Happy
    Do you even call the onUpdate method?

  5. #5
    marcus_rules's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    127.0.0.1
    Posts
    19
    Reputation
    10
    Thanks
    0
    My Mood
    Lurking
    i just always use
    Code:
    if(Var.fullbright)
            	{
            		mc.gameSettings.gammaSetting++;
            	}else
            	{
            		mc.gameSettings.gammaSetting = 0.5F;
            	}

  6. #6
    _elz's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Russia
    Posts
    991
    Reputation
    56
    Thanks
    5,892
    Open minecraft folder, open setting.ini, change gamma to 9999. PROFIT !!!

  7. #7
    133spider's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Posts
    387
    Reputation
    23
    Thanks
    6,048
    My Mood
    Tired
    You just made this thread:
     

    Code:
    	public void onUpdate(EntityPlayerSP player) {
    		if(isEnabled()) {
    		
    	    mc.gameSettings.gammaSetting++;
    	}else
    	    mc.gameSettings.gammaSetting = 1.0F;
    	}

    Without even extending to the class it was in. After you do that you put @Override above that code.

Similar Threads

  1. [Help Request] Minecraft 1.4.5 Build Floor Code help please.
    By Zodiacxx in forum Minecraft Help
    Replies: 2
    Last Post: 12-26-2012, 03:09 AM
  2. [Help Request] Coding Help
    By NightmareTX_RETIRED in forum Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    Replies: 10
    Last Post: 07-06-2012, 06:32 PM
  3. [Help] how to put in soruce codes pls help me :(
    By supermanjet1 in forum CrossFire Hack Coding / Programming / Source Code
    Replies: 2
    Last Post: 06-24-2012, 10:19 PM
  4. [Help Request] Need Code Help.
    By [CF]Hackers in forum CrossFire Help
    Replies: 10
    Last Post: 09-10-2011, 10:20 AM
  5. [Help Request] GSC coding help
    By Brabomclaren in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 06-12-2011, 03:05 AM