Thread: Fixing Black minimap

Results 1 to 10 of 10
  1. #1 Fixing Black minimap 
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,153
    Thanks given
    259
    Thanks received
    472
    Rep Power
    925
    I won't release the floors now but when you fix your floors you'll notice some map areas are black, like alot of ppls have ge map area black right? then see
    why this happens:
    When client read floors, it load the ground Colour ok, when ground color is invisible it return as colour 16711935 converting to Hexadecimal its 0xff00ff.
    Ok find this piece of code in your ObjectMenanger.


    Code:
                 Flo flo_2 = Flo.cache[i19 - 1];
                                        int i23 = flo_2.anInt391;
                                        int j23;
                                        int k23;
                                        if(i23 >= 0)
                                        {
                                            k23 = Texture.method369(i23);
                                            j23 = -1;
                                        } else
                                        if(flo_2.anInt390 == 0xff00ff)
                                        {
                                            k23 = 0;
                                            j23 = -2;
                                            i23 = -1;
                                        } else if(flo_2.anInt390 == 0x333333) 
    									{
    										k23 = Texture.anIntArray1482[method185(flo_2.anInt399, 96)];								
    										j23 = -2;
    										i23 = -1;
    									}else
                                        {
                                            j23 = method177(flo_2.anInt394, flo_2.anInt395, flo_2.anInt396);
                                            k23 = Texture.anIntArray1482[method185(flo_2.anInt399, 96)];
                                        }
                                        worldController.method279(l, l6, k17, k22, byte4, i23, j19, k19, l19, i20, method187(j21, j20), method187(j21, k20), method187(j21, l20), method187(j21, i21), method185(j23, j20), method185(j23, k20), method185(j23, l20), method185(j23, i21), i22, k23);
    Ok let me explain some variables so you understand better
    i23 = TextureID
    anInt390 = Ground Color
    (i19 - 1) Floor id;

    Ok that's the piece of code we gonna change
    Code:
                                        if(flo_2.anInt390 == 0xff00ff)//Invisible Ground Color
                                        {
                                            k23 = 0;//Minimap Colour
                                            j23 = -2;//don't care
                                            i23 = -1;//don't care
                                        }
    When ground color is invisible it make the minimap colour black as you can see here "k23 = 0"
    so like in grand exchange the ground color is invisible, else you won't be able to see the texture above ground. So to fix that make this:
    Code:
     else if (flo_2.anInt390 == 0xff00ff) {//Transparent    
                                  k23 = flo_2.minimapColor;                             
                                  j23 = -2;
                                  i23 = -1;//Texture = null;
                               }
    This way you'll make the mini map color as loaded from flo.dat value.

    Basically when underlay color is transparent it will get from overlay color which is based on texture palette(average colors).


    Don't remember what's mini map color variable in flo.java find it yourself please.

    If you used ClientHax tutorial to fix ge floors you probably won't fix your minimap doing this tutorial cause all clienthax did was stop client from load groundcolor and minimap colour if the floor id is == 54(ge floor)
    My main point here is explain why this happens so u guys don't cheaphax, later i post how fix better the ge then.
    Attached image
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2010
    Age
    36
    Posts
    4,335
    Thanks given
    4
    Thanks received
    274
    Rep Power
    0
    Nice, I won't use because into 600+
    Reply With Quote  
     

  3. #3  
    King of the North
    Lord Stark's Avatar
    Join Date
    Jan 2010
    Age
    30
    Posts
    1,073
    Thanks given
    105
    Thanks received
    41
    Rep Power
    28
    EDIT: nvm fixed ty
    spoiler for people i respect
    [SPOIL]galkon, Cocoa, infexis, daza, SWAT, penor, clienthax, k4rn4ge, garyking, Ghost++, kenneh, coder alex, sanity, badger41, vagoo [/SPOIL]
    most epic series ever@!!
    [SPOIL]
    [/SPOIL]
    Reply With Quote  
     

  4. #4  
    Banned

    Join Date
    Dec 2008
    Posts
    3,004
    Thanks given
    10
    Thanks received
    198
    Rep Power
    0
    I dont have that variable. What would it be unrenamed?
    Reply With Quote  
     

  5. Thankful user:


  6. #5  
    Banned

    Join Date
    Dec 2007
    Age
    30
    Posts
    1,986
    Thanks given
    257
    Thanks received
    326
    Rep Power
    0
    bah cheapcoed ftw
    Reply With Quote  
     

  7. #6  
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    You decided not to release the floors when finished?
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  8. #7  
    Client Developer

    Pb600's Avatar
    Join Date
    Dec 2008
    Posts
    2,153
    Thanks given
    259
    Thanks received
    472
    Rep Power
    925
    no, not that is cause i have tons of things to do ;/ this tutorial also fix godwars bridge balck on map
    Attached image
    Reply With Quote  
     

  9. #8  
    .supersyn

    myK-'s Avatar
    Join Date
    Aug 2008
    Posts
    1,781
    Thanks given
    22
    Thanks received
    40
    Rep Power
    399
    I can't find your minimapcolor variable.

    Code:
    Java\ObjectManager.java:214: cannot find symbol
    symbol  : variable MinimapColor
    location: class Flo
                                        k23 = flo_2.MinimapColor;
                                                   ^
    Note: Java\client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    Reply With Quote  
     

  10. #9  
    F*ck the rest join the best, WoR

    sigex's Avatar
    Join Date
    Mar 2008
    Age
    34
    Posts
    2,086
    Thanks given
    123
    Thanks received
    147
    Rep Power
    690
    I debugged some values in flo.java and found that his varible "MinimapColor" is the stream input for config code 1 which in my client is ground Color. Ty for this, thanks for not putting your re-factored variables and annoying people.


    The wor has begun.

    Reply With Quote  
     

  11. #10  
    Registered Member
    Join Date
    Mar 2007
    Posts
    92
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    Quote Originally Posted by hoOkz View Post
    I can't find your minimapcolor variable.

    Code:
    Java\ObjectManager.java:214: cannot find symbol
    symbol  : variable MinimapColor
    location: class Flo
                                        k23 = flo_2.MinimapColor;
                                                   ^
    Note: Java\client.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    1 error
    Press any key to continue . . .
    i dont have the variable either, anyone know where u can find ur variable for ground colors??
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Replies: 50
    Last Post: 06-03-2012, 03:45 PM
  2. Fixing Minimap For Newer Gameframe
    By failz in forum Tutorials
    Replies: 8
    Last Post: 10-13-2010, 01:23 PM
  3. Black minimap
    By buck in forum Help
    Replies: 8
    Last Post: 05-11-2010, 04:58 AM
  4. Compass & Minimap black
    By Encouragin in forum Show-off
    Replies: 10
    Last Post: 01-03-2009, 01:12 AM
  5. Making the minimap go black in coords
    By ViperSniper in forum Tutorials
    Replies: 6
    Last Post: 03-25-2008, 12:46 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •