Quantcast
Channel: Rune-Server
Viewing all 56156 articles
Browse latest View live
↧

OSRS.TIPS | Brand new RuneScape Community

$
0
0
Hello there, i'm pleased to announce the soft launch of osrs.tips! (that's the actual domain as well!)

As it stands i'm the only developer for this community. I've worked hard on learning more and more website development overtime in my spare time.
I feel as if i'm more than qualified to make a real, great community to help expand the runescape community in more ways than one!
What sets osrs.tips apparently from a standard forum community is some of the following and not limited to. Keep note that massive updates will be coming shortly.

  • FPP - Forum Posting Payouts (YES! You can make money by posting on the forum, OSRS/RS3 Supported)
  • Unique Leveling 'rpg-esk' (Posting on the forum will level up your forum player, and stat gains, like rs HA!)
  • Forum shop for your to spend your hard earned GP on Rares, Weapons, Armor, etc... (You can Buy, Sell, Trade, Showoff)
  • YouTube & Twitch FREE & Premium advertisements (Forum & discord)
  • Giveaways that range from OSRS, RS3, IRL
  • Unique Market scene (Forum & discord. Buying, Selling, Services, miscellaneous)
  • Active Twitch Streamers in discord
  • 2007scape reddit feed (via discord, pulls latest posts from the reddit directly, no more sifting through the reddit)
  • RSPS section to advertise your server or talk about them



Future plans are to add real web utilities such as GE tracker, custom signature generator, etc..
I'm also looking for staff members, DM a detailed application and be sure to join the discord (DM)





↧

Looking for developers interested in developing a 2009 remake

$
0
0
Using Arios as a base, already got about 3 or 4 semi-active developers on it. Only main requirement is you know how to use Git (even at a basic level).

Shoot me a PM on Discord (Red Bracket#8151) or join our channel at https://discord.gg/mvhnG7a
↧
↧

Elite Void Intro

$
0
0
Hello everyone i have been looking around this forum site for awhile now finally made a account i like the forums rank i would like to at least get to know everyone on here or learn from you all i am gonna be coding my own server i love rsps and ill pay coders too help me also private message me if got discord i am a chill guy i like to help out in any way if you got a server let me try it out and ill donate on the server if i like it hope to see some new friends on here and start a new project i enjoy everyone work i enjoy this community you all are awesome at what you do keep up the good work everyone i am age 24 if you all were wondering i like rock music and rap hit me up if you every need help with any i have been playing rsps for a couple years now around 10 years i would really like to run my own server one day i will really pay anyone who will help me in the future
↧

Asteria Fantasy MMO Logo

↧

Usertitle Request

↧
↧

RUTHLESS PS Client Launcher

↧

Themes.jar for custom jframe theme

↧

Requesting animated logo

$
0
0
Im looking for someone who has good work with logo animation im look for

- A logo that says "Exotic" In a Dark blue - not to dark you cant see
animation of lighting shocking it and making it glow a lighter blue
-Lighting in the background or a background that looks easy on the eyes with the animation

Willing to pay and dont mind paying first if you have vouches !

Either post below or message me on discord
↧

Usertitle request

$
0
0
Code:

<span style="background: url(https://i.imgur.com/Q5arH.gif);color: #ffa643;font-weight:bold;text-shadow: 0px 0px 10px #ffffff;">Owner of BrutalPS</span>
↧
↧

Usertitle Requesterino

$
0
0
Code:

<span style="background: url(https://i.imgur.com/Q5arH.gif);color: #ffa800;font-weight:bold;text-shadow: 0px 0px 10px #ffffff;">Great Things Coming</span>
↧

317 ShadowPS || new custom RSPS|| 24/7 online||

↧

2006rebotted - Open Source Remake - Based on 2006Redone - Frequent Updates

$
0
0
How about something new?





Features
Full Remake features by MrExtremez here!

Content Added
Current Update Count: 186

- Compiling guide
- Linux server support
- Shift Drop
- Camera zoom
- Bot Client (Can be disabled)
- Highscores

- Hundreds of Bug Fixes & Server crashes
Shop issues
Memory Bugs
Client Side Exploits
Security

- And a lot more.


Media





Downloads
Download Link: https://github.com/dginovker/2006rebotted
Support Link: https://discord.gg/7JCwamZ

Credits:
- MrExtremez
- Dark98
- RedSparr0w
- dginovker
- MitchvanWijngaarden
- benmaher95
- DPSCryptic
- AgilityV2
- Gptaqbc
- mikeysasse
- LeonBeilis
↧

667 delete

↧
↧

Selling 317 custom server

$
0
0
Well since i don't really have interest in hosting an rsps anymore, and im not going to use my current server/client anymore im gonna just sell it.
NOTE: this is not the same version as my live server vortex(as i haven't updated the live server for a month now) it's a version based off it that ive been working on mostly for fun(added new features and content).

anyways, im not going to post all the features here, contact me on discord if ur interested and would like more information on it. [it's a custom server(ruse v1 based), with the exception of pikachus, pokemon npcs, super weird weapons, and whatever bs, it's also really stable for a custom server, when i hosted it, the server had no major bugs/glitches).

Discord: Suic#0543

only accepting Paypal(F/F), RSGP(osrs, rs3), skrill, any known crypto.
Price: $140(or 250m osrs gp)

:yay::yay:
↧

Delete

↧

[request] need buffer.getDataTrimmed() method

$
0
0
hey anyone have the buffer.getDataTrimmed() method ? from this thread encoder:


https://www.rune-server.ee/runescape...t-encoder.html


Code:

    public byte[] encode() {
        DynamicBuffer buffer = new DynamicBuffer(16 * 1024);
        buffer.write(tiles.encode());
        if (atmosphere.hasSkybox()) {
            buffer.writeByte(128);
            atmosphere.encodeSkybox(buffer);
        }
        if (cameraAdjusts != null) {
            buffer.writeByte(129);
            level_loop: for (int level = 0; level < 4; level++) {
                int type = 0;
                if (cameraAdjusts[level] == null) {
                    buffer.writeByte(0);
                    continue level_loop;
                }
                look_loop: for (int x = 0; x < 64; x++) {
                    for (int y = 0; y < 64; y++) {
                        byte adjust = cameraAdjusts[level][x][y];
                        if (type == 0 && adjust != 0) {
                            type = 1;
                        }
                        if (level > 0 && type == 2) {
                            if (cameraAdjusts[level - 1] == null || cameraAdjusts[level - 1][x][y] != adjust) {
                                type = 1;
                                break look_loop;
                            }
                        }
                    }
                }
                buffer.writeByte(type);
                if (type == 1) {
                    for (int x = 0; x < 64; x += 4) {
                        for (int y = 0; y < 64; y += 4) {
                            byte average = cameraAdjusts[level][x][y];
                            // TODO: maybe average.
                            buffer.writeByte(average);
                        }
                    }
                }
            }
        }


        if (atmosphere.hasGeneric()) {
            buffer.writeByte(0);
            atmosphere.encodeGeneric(buffer);
        }
        if (effects != null) {
            buffer.writeByte(1);
            buffer.writeByte(effects.length);
            for (int index = 0; index < effects.length; index++) {
                FlickeringEffect effect = effects[index];
                buffer.write(effect.encode());
                if (effect.type == 31) {
                    buffer.writeShort(effect.inheritance);
                }
            }
        }
        if (atmosphere.hasHDR()) {
            buffer.writeByte(2);
            atmosphere.encodeHDR(buffer);
        }
        return buffer.getDataTrimmed();
    }

↧

[QUICK SALE/99 Str/$35] - Level 113 with 86 Slayer!

$
0
0
I botted out of boredom and got a temp ban in July, so I let the account sit for a few months, but would really like to find it a permanent home! - I botted 73 to 88 wcing and got 18k yew logs lol, so the account comes with about a 5m networth. More items in bank, but didnt feel like screenshotting everything

I am the original owner, but it is an email login that has been my personal email for many years. The email will be changed to your email, along with all the recov info provided (prev pw/subscription details/creation details, etc).

I am asking for $35 or Best offer! No 07 GP Please, cash only, paypal, venmo, cash app, zelle.






I can be reached on Discord at Phish#2288

Bump.
↧
↧

Vencillio readvalues problem

$
0
0
Can someone please help me sort this out? :/

Error i get.
Code:

npc def invalid opcode: 255
EntityDef Readvalues
Code:

public void readValues(Buffer stream) {
                while (true) {
                        int opcode = stream.readUByte();
                        if (opcode == 0) {
                                return;
                        } else if (opcode == 1) {
                                int len = stream.readUByte();
                                models = new int[len];
                                for (int i = 0; i < len; i++) {
                                        models[i] = stream.readUShort();
                                }

                        } else if (opcode == 2)
                                name = stream.readString();
                        else if (opcode == 3)
                                description = stream.readBytes();
                        else if (opcode == 12)
                                aByte68 = stream.readSignedByte();
                        else if (opcode == 13)
                                standAnim = stream.readUShort();
                        else if (opcode == 14)
                                walkAnim = stream.readUShort();
                        else if (opcode == 17) {
                                walkAnim = stream.readUShort();
                                anInt58 = stream.readUShort();
                                anInt83 = stream.readUShort();
                                anInt55 = stream.readUShort();
                        } else if (opcode >= 30 && opcode < 40) {
                                if (actions == null)
                                        actions = new String[5];
                                actions[opcode - 30] = stream.readString();
                                if (actions[opcode - 30].equalsIgnoreCase("hidden"))
                                        actions[opcode - 30] = null;
                        } else if (opcode == 40) {
                                int k = stream.readUByte();
                                anIntArray76 = new int[k];
                                anIntArray70 = new int[k];
                                for (int k1 = 0; k1 < k; k1++) {
                                        anIntArray76[k1] = stream.readUShort();
                                        anIntArray70[k1] = stream.readUShort();
                                }
                               
                        } else if (opcode == 41) {
                                int len = stream.readUByte();

                                for (int i = 0; i < len; i++) {
                                        stream.readUShort(); // textures
                                        stream.readUShort();
                                }

                        } else if (opcode == 60) {
                                int l = stream.readUByte();
                                anIntArray73 = new int[l];
                                for (int l1 = 0; l1 < l; l1++)
                                        anIntArray73[l1] = stream.readUShort();

                        } else if (opcode == 90)
                                stream.readUShort();
                        else if (opcode == 91)
                                stream.readUShort();
                        else if (opcode == 92)
                                stream.readUShort();
                        else if (opcode == 93)
                                aBoolean87 = false;
                        else if (opcode == 95)
                                combatLevel = stream.readUShort();
                        else if (opcode == 97)
                                anInt91 = stream.readUShort();
                        else if (opcode == 98)
                                anInt86 = stream.readUShort();
                        else if (opcode == 99)
                                aBoolean93 = true;
                        else if (opcode == 100)
                                anInt85 = stream.readSignedByte();
                        else if (opcode == 101)
                                anInt92 = stream.readSignedByte() * 5;
                        else if (opcode == 102) {
                                anInt75 = stream.readUShort();
                } else if (opcode == 103) {
                                anInt79 = stream.readUShort();
                  } else if (opcode == 106 || opcode == 118) {
                        anInt57 = stream.readUShort();
                       
                        if (anInt57 == 65535) { //anInt57 = Varbit
                                anInt57 = -1;
                        }
                        anInt59 = stream.readUShort();
                       
                        if (anInt59 == 65535) {
                                anInt59 = -1;
                        }
                       
                        int value = -1;
                       
                        if (opcode == 118) {
                value = stream.readUShort();
            }
                               
                        int len = stream.readUByte();
                        childrenIDs = new int[len + 2];
                        for (int i = 0; i <= len; i++) {
                                childrenIDs[i] = stream.readUShort();
                                if (childrenIDs[i] == 65535) {
                                        childrenIDs[i] = -1;
                        }
                }
                childrenIDs[len + 1] = value;
        } else if (opcode == 107) {
                aBoolean84 = false;
        } else if (opcode == 109) {
                //TODO
        } else {
        System.out.println(String.format("npc def invalid opcode: %d", opcode));
        }
}
}

↧

My Car Tour!

$
0
0



Hey guys, just showing my car off. If you like it please leave a like, and subscribe. If you don't, and you don't like bmws, let me know in the comment why etc. Really appreciated thank you.
↧

Black floor, method171

$
0
0
I started cleaning and refactoring the client I'm working on and for some reasons the floor went black. I'm receiving an error from method171 in ObjectManager but after comparing the code with the original, there's no change whatsoever.

Anybody has a hint on what I'm doing wrong? Thanks.

The line causing the error in Client class.
Code:

mapRegion.method171(clippingPlanes, sceneGraph);
Here is method171.
Quote:

Code:

public final void method171(CollisionMap aclass11[],                        SceneGraph sceneGraph) {
                for (int j = 0; j < 4; j++) {
                        for (int k = 0; k < 104; k++) {
                                for (int i1 = 0; i1 < 104; i1++)
                                        if ((tileSettings[j][k][i1] & 1) == 1) {
                                                int k1 = j;
                                                if ((tileSettings[1][k][i1] & 2) == 2)
                                                        k1--;
                                                if (k1 >= 0)
                                                        aclass11[k1].appendSolidFlag(i1, k);
                                        }




                        }




                }
                anIntArray124Offset += (int) (Math.random() * 5D) - 2;
                if (anIntArray124Offset < -8)
                        anIntArray124Offset = -8;
                if (anIntArray124Offset > 8)
                        anIntArray124Offset = 8;
                offsetLightning += (int) (Math.random() * 5D) - 2;
                if (offsetLightning < -16)
                        offsetLightning = -16;
                if (offsetLightning > 16)
                        offsetLightning = 16;
                for (int plane = 0; plane < 4; plane++) {
                        byte abyte0[][] = aByteArrayArrayArray134[plane];
                        byte byte0 = 96;
                        char c = '\u0300';
                        byte byte1 = -50;
                        byte byte2 = -10;
                        byte byte3 = -50;
                        int j3 = (int) Math.sqrt(byte1 * byte1 + byte2 * byte2 + byte3
                                        * byte3);
                        int l3 = c * j3 >> 8;
                for (int j4 = 1; j4 < anInt147 - 1; j4++) {
                        for (int j5 = 1; j5 < anInt146 - 1; j5++) {
                                int k6 = heightMap[plane][j5 + 1][j4]
                                                                            - heightMap[plane][j5 - 1][j4];
                                int l7 = heightMap[plane][j5][j4 + 1]
                                                                        - heightMap[plane][j5][j4 - 1];
                                int j9 = (int) Math.sqrt(k6 * k6 + 0x10000 + l7 * l7);
                                int k12 = (k6 << 8) / j9;
                                int l13 = 0x10000 / j9;
                                int j15 = (l7 << 8) / j9;
                                int j16 = byte0 + (byte1 * k12 + byte2 * l13 + byte3 * j15)
                                / l3;
                                int j17 = (abyte0[j5 - 1][j4] >> 2)
                                + (abyte0[j5 + 1][j4] >> 3)
                                + (abyte0[j5][j4 - 1] >> 2)
                                + (abyte0[j5][j4 + 1] >> 3) + (abyte0[j5][j4] >> 1);
                                tileShadowArray[j5][j4] = j16 - j17;
                        }
                }


                for (int k5 = 0; k5 < anInt147; k5++) {
                        anIntArray124[k5] = 0;
                        anIntArray125[k5] = 0;
                        anIntArray126[k5] = 0;
                        anIntArray127[k5] = 0;
                        anIntArray128[k5] = 0;
                }


                for (int x = -5; x < anInt146 + 5; x++) {
                        for (int tileY = 0; tileY < anInt147; tileY++) {
                                int tileX_ = x + 5;
                                if (tileX_ >= 0 && tileX_ < anInt146) {
                                        int l12 = underLay[plane][tileX_][tileY] & 0xff;
                                        if (l12 > 0) {
                                                if(l12 >= FloorDefinition.cache.length)
                                                        l12 = FloorDefinition.cache.length;
                                                FloorDefinition floorDefinition = FloorDefinition.cache[l12 - 1];
                                                anIntArray124[tileY] += floorDefinition.hue2;
                                                anIntArray125[tileY] += floorDefinition.saturation;
                                                anIntArray126[tileY] += floorDefinition.lightness;
                                                anIntArray127[tileY] += floorDefinition.hue_weight;
                                                anIntArray128[tileY]++;
                                        }
                                }
                                int tileX = x - 5;
                                if (tileX >= 0 && tileX < anInt146) {
                                        int i14 = underLay[plane][tileX][tileY] & 0xff;
                                        if (i14 > 0) {
                                                if(i14 >= FloorDefinition.cache.length)
                                                        i14 = FloorDefinition.cache.length;
                                                FloorDefinition flo_1 = FloorDefinition.cache[i14 - 1];
                                                anIntArray124[tileY] -= flo_1.hue2;
                                                anIntArray125[tileY] -= flo_1.saturation;
                                                anIntArray126[tileY] -= flo_1.lightness;
                                                anIntArray127[tileY] -= flo_1.hue_weight;
                                                anIntArray128[tileY]--;
                                        }
                                }
                        }


                        if (x >= 1 && x < anInt146 - 1) {
                                int blended_anIntArray124 = 0;
                                int blended_anIntArray125 = 0;
                                int blended_anIntArray126 = 0;
                                int blended_anIntArray124_divisor = 0;
                                int blend_direction_tracker = 0;
                                for (int y = -5; y < anInt147 + 5; y++) {
                                        int j18 = y + 5;
                                        if (j18 >= 0 && j18 < anInt147) {
                                                blended_anIntArray124 += anIntArray124[j18];
                                                blended_anIntArray125 += anIntArray125[j18];
                                                blended_anIntArray126 += anIntArray126[j18];
                                                blended_anIntArray124_divisor += anIntArray127[j18];
                                                blend_direction_tracker += anIntArray128[j18];
                                        }
                                        int k18 = y - 5;
                                        if (k18 >= 0 && k18 < anInt147) {
                                                blended_anIntArray124 -= anIntArray124[k18];
                                                blended_anIntArray125 -= anIntArray125[k18];
                                                blended_anIntArray126 -= anIntArray126[k18];
                                                blended_anIntArray124_divisor -= anIntArray127[k18];
                                                blend_direction_tracker -= anIntArray128[k18];
                                        }
                                        if (y >= 1 && y < anInt147 - 1 && (!lowMem
                                                || (tileSettings[0][x][y] & 2) != 0 || (tileSettings[plane][x][y] & 0x10) == 0
                                                && method182(y, plane, x) == anInt131)) {
                                                if (plane < highestPlane)
                                                        highestPlane = plane;
                                                int underlay_floor_id = underLay[plane][x][y] & 0xff;
                                                int overlay_floor_id = overLay[plane][x][y] & 0xff;
                                                if (underlay_floor_id > 0 || overlay_floor_id > 0) {
                                                        int tileZA = heightMap[plane][x][y];
                                                        int tileZB = heightMap[plane][x + 1][y];
                                                        int tileZD = heightMap[plane][x + 1][y + 1];
                                                        int tileZC = heightMap[plane][x][y + 1];
                                                        int tileShadowA = tileShadowArray[x][y];
                                                        int tileShadowB = tileShadowArray[x + 1][y];
                                                        int tileShadowD = tileShadowArray[x + 1][y + 1];
                                                        int tileShadowC = tileShadowArray[x][y + 1];
                                                        int hsl_bitset_unmodified = -1;
                                                        int hsl_bitset_randomized = -1;
                                                        /*if (underlay_floor_id > 0) {
                                                                int anIntArray124 = (blended_anIntArray124 * 256) / blended_anIntArray124_divisor;
                                                                int sat = blended_anIntArray125 / blend_direction_tracker;
                                                                int lum = blended_anIntArray126 / blend_direction_tracker;
                                                                hsl_bitset_unmodified = method177(anIntArray124, sat, lum);
                                                                anIntArray124 = anIntArray124 + anIntArray124Offset & 0xff;
                                                                lum += offsetLightning;
                                                                if (lum < 0)
                                                                        lum = 0;
                                                                else if (lum > 255)
                                                                        lum = 255;
                                                                hsl_bitset_randomized = method177(anIntArray124, sat, lum);
                                                        }*/
                                                        if(underlay_floor_id > 0  || overlay_floor_id != 0)
                                                        {
                                                                int anIntArray124 = -1;
                                                                int sat = 0;
                                                                int lum = 0;
                                                                if(underlay_floor_id == 0)
                                                                {
                                                                        anIntArray124 = -1;
                                                                        sat = 0;
                                                                        lum = 0;
                                                                } else
                                                                if (underlay_floor_id > 0)
                                                                {
                                                                        if(blended_anIntArray124_divisor < 1)
                                                                                blended_anIntArray124_divisor = 1;
                                                                               
                                                                        anIntArray124 = (blended_anIntArray124 << 8) / blended_anIntArray124_divisor;
                                                                        sat = blended_anIntArray125 / blend_direction_tracker;
                                                                        lum = blended_anIntArray126 / blend_direction_tracker;
                                                                        hsl_bitset_unmodified = method177(anIntArray124, sat, lum);
                                                                                anIntArray124 = anIntArray124 + anIntArray124Offset & 0xff;
                                                                                lum += offsetLightning;
                                                                                if (lum < 0)
                                                                                        lum = 0;
                                                                                       
                                                                                else if (lum > 255)
                                                                                        lum = 255;
                                                                       
                                                                } else
                                                                {
                                                                        anIntArray124 = underlay_floor_id;
                                                                        sat = 0;
                                                                        lum = 0;
                                                                }
                                                                if(anIntArray124 != -1 && hsl_bitset_randomized == -1)
                                                                        hsl_bitset_randomized = method177(anIntArray124, sat, lum);
                                                                       
                                                                if(hsl_bitset_unmodified == -1)
                                                                        hsl_bitset_unmodified = hsl_bitset_randomized;
                                                               
                                                        }
                                                        if (plane > 0) {
                                                                boolean flag = true;
                                                                if (underlay_floor_id == 0
                                                                                && overlayClippingPaths[plane][x][y] != 0)
                                                                        flag = false;
                                                                if(overlay_floor_id >= OverLayFlo317.overLayFlo317s.length)
                                                                                overlay_floor_id = OverLayFlo317.overLayFlo317s.length-1;
                                                                if (overlay_floor_id > 0
                                                                                && !OverLayFlo317.overLayFlo317s[overlay_floor_id - 1].aBoolean393)
                                                                        flag = false;
                                                                if (flag && tileZA == tileZB && tileZA == tileZD
                                                                                && tileZA == tileZC)
                                                                        anIntArrayArrayArray135[plane][x][y] |= 0x924;
                                                        }
                                                        int rgb_bitset_randomized = 0;
                                                        if (hsl_bitset_unmodified != -1)
                                                                rgb_bitset_randomized = Rasterizer.hsl2rgb[getShadow(hsl_bitset_randomized,
                                                                                96)];
                                                        if (overlay_floor_id == 0) {
                                                                /**
                                                                * Draws shaped tile
                                                                */
                                                                if(Client.getOption("hd_tex")) {


                                                                        if(underlay_floor_id-1 >= FloorDefinition.cache.length)
                                                                                underlay_floor_id = FloorDefinition.cache.length-1;
                                                                        FloorDefinition floorDefinition = FloorDefinition.cache[underlay_floor_id - 1];
                                                                        int underlay_texture_id = floorDefinition.texture;
                                                                        if (underlay_texture_id != -1)
                                                                                underlay_texture_id = 154; //632, 154
                                                                        underlay_floor_texture = underlay_texture_id;
                                                                        underlay_floor_map_color = getOverlayShadow(hsl_bitset_unmodified, 96);
                                                                        int tile_opcode = overlayClippingPaths[plane][x][y] + 1;
                                                                        if (tile_opcode == 1) {
                                                                                tile_opcode = 434;
                                                                        }
                                                                        byte tile_orientation = overlayClippingPathRotations[plane][x][y];
                                                                        /**
                                                                        * Adds underlay tile
                                                                        */
                                                                        int overlay_hsl = method177(floorDefinition.hue, floorDefinition.saturation, floorDefinition.lightness);
                                                                        sceneGraph.addTile(plane, x, y,
                                                                                tile_opcode, tile_orientation, underlay_texture_id, tileZA, tileZB, tileZD, tileZC,
                                                                                getShadow(hsl_bitset_unmodified, tileShadowA),
                                                                                getShadow(hsl_bitset_unmodified, tileShadowB),
                                                                                getShadow(hsl_bitset_unmodified, tileShadowD),
                                                                                getShadow(hsl_bitset_unmodified, tileShadowC),
                                                                                getOverlayShadow(overlay_hsl, tileShadowA),
                                                                                getOverlayShadow(overlay_hsl, tileShadowB),
                                                                                getOverlayShadow(overlay_hsl, tileShadowD),
                                                                                getOverlayShadow(overlay_hsl, tileShadowC),
                                                                                rgb_bitset_randomized, rgb_bitset_randomized, underlay_floor_map_color,
                                                                                underlay_floor_texture, underlay_floor_map_color, false);
                                                                } else {
                                                                        sceneGraph.addTile(plane, x, y, 0, 0, -1, tileZA, tileZB, tileZD, tileZC,
                                                                                        getShadow(hsl_bitset_unmodified, tileShadowA),
                                                                                        getShadow(hsl_bitset_unmodified, tileShadowB),
                                                                                        getShadow(hsl_bitset_unmodified, tileShadowD),
                                                                                        getShadow(hsl_bitset_unmodified, tileShadowC),
                                                                                        0,
                                                                                        0,
                                                                                        0,
                                                                                        0,
                                                                                        rgb_bitset_randomized, rgb_bitset_randomized, -1, 0, 0, true);
                                                                }
                                                        } else {
                                                                int overlay_map_color = 0;
                                                                int overlay_floor_texture_color = -1;
                                                                int tile_opcode = overlayClippingPaths[plane][x][y] + 1;
                                                                byte tile_orientation = overlayClippingPathRotations[plane][x][y];
                                                                if(overlay_floor_id-1 >= OverLayFlo317.overLayFlo317s.length)
                                                                        overlay_floor_id = OverLayFlo317.overLayFlo317s.length - 1;
                                                                OverLayFlo317 over = OverLayFlo317.overLayFlo317s[overlay_floor_id - 1];
                                int overlay_texture_id = over.groundTextureOverlay;
                                int overlay_hsl;
                                int overlay_rgb = 0;
                               
                               
                                                                if (overlay_texture_id > 50 && !Client.getOption("hd_tex")) {
                                                                        overlay_texture_id = -1;
                                                                }
                                                                if (overlay_texture_id >= 0) {
                                                                        if(overlay_texture_id < 51 || !Client.getOption("hd_tex"))
                                                                                overlay_rgb = TextureLoader317.getAverageTextureColour(overlay_texture_id);
                                    overlay_hsl = -1;
                                } else if (over.groundColorOverlay == 0xff00ff) {
                                    overlay_rgb = 0;
                                    overlay_hsl = -2;
                                    overlay_texture_id = -1;
                                } else if(over.groundColorOverlay == 0x333333) {
                                    overlay_rgb = Rasterizer.hsl2rgb[getOverlayShadow(over.hslOverlayColor, 96)];                               
                                    overlay_hsl = -2;
                                    overlay_texture_id = -1;
                                } else {
                                    overlay_hsl = method177(over.groundHueOverlay, over.groundSaturationOverlay, over.groundLightnessOverlay);
                                    overlay_rgb = Rasterizer.hsl2rgb[getOverlayShadow(over.hslOverlayColor, 96)];
                                }
                                                                if ((overlay_floor_id-1) == 54) {
                                                    overlay_rgb = over.groundColorOverlay = 0x8B8B83;
                                                    overlay_hsl = -2;
                                                }
                                                                if((overlay_floor_id-1) == 111){
                                                                        overlay_rgb = TextureLoader317.getAverageTextureColour(1);
                                                                        overlay_hsl = -1;//method177(150,100,100);
                                    overlay_texture_id = 1;
                                } else if (overlay_hsl == 6363) { //river bank (brown shit) 508
                                                                        overlay_rgb = 0x483B21;
                                                                        overlay_hsl = method177(25,146,24);
                                } else if((overlay_floor_id-1) == 54){
                                                                        overlay_rgb = over.groundColorOverlay;
                                                                        overlay_hsl = -2;
                                    overlay_texture_id = -1;
                                }
                                                               
                                                               
                                                                if(Client.getOption("hd_tex")) {
                                                                        if(over.detailedColor != -1)
                                                                        {
                                                                                overlay_map_color = (Rasterizer.hsl2rgb[over.detailedColor] != 1) ? Rasterizer.hsl2rgb[over.detailedColor] : 0;
                                                                        }
                                                                        if ((!Client.getOption("hd_tex") ? (overlay_texture_id >= 0 && overlay_texture_id < 51) : (overlay_texture_id >= 0)))
                                                                        {
                                                                                overlay_hsl = -1;
                                                                                if (over.groundColorOverlay != 0xff00ff)
                                                                                {
                                                                                        overlay_hsl = over.groundColorOverlay;
                                                                                        if(overlay_texture_id > 50)
                                                                                        overlay_rgb = (overlay_hsl != -1 ? Rasterizer.hsl2rgb[overlay_hsl] : 0);
                                                                                        overlay_floor_texture_color = getOverlayShadow(over.groundColorOverlay, 96);
                                                                                } else
                                                                                {
                                                                                        if(overlay_texture_id > 50)
                                                                                                overlay_rgb = over.detailedColor;
                                                                                        overlay_hsl = -2;
                                                                                        underlay_floor_map_color = -1;
                                                                                        overlay_floor_texture_color = -1;
                                                                                }
                                                                        } else if (over.groundColorOverlay == -1)
                                                                        {
                                                                                if(overlay_texture_id > 50)
                                                                                overlay_rgb = overlay_map_color;
                                                                                overlay_hsl = -2;
                                                                                //?
                                                                                if(plane > 0)
                                                                                        underlay_floor_texture = -1;
                                                                                       
                                                                                overlay_texture_id = -1;
                                                                        } else
                                                                        {
                                                                                overlay_floor_texture_color = getOverlayShadow(over.groundColorOverlay, 96);
                                                                                overlay_hsl = over.groundColorOverlay;
                                                                                if(overlay_texture_id > 50)
                                                                                overlay_rgb = Rasterizer.hsl2rgb[overlay_floor_texture_color];
                                                                        }
                                                                }
                                                                if(Client.getOption("hd_tex")) {
                                                                        sceneGraph.addTile(plane, x, y,
                                                                                tile_opcode, tile_orientation, overlay_texture_id, tileZA, tileZB, tileZD, tileZC,
                                                                                getShadow(hsl_bitset_unmodified, tileShadowA), getShadow(hsl_bitset_unmodified, tileShadowB),
                                                                                getShadow(hsl_bitset_unmodified, tileShadowD),getShadow(hsl_bitset_unmodified, tileShadowC),
                                                                                getOverlayShadow(overlay_hsl, tileShadowA), getOverlayShadow(overlay_hsl, tileShadowB),
                                                                                getOverlayShadow(overlay_hsl, tileShadowD), getOverlayShadow(overlay_hsl, tileShadowC),
                                                                                rgb_bitset_randomized, overlay_rgb, overlay_floor_texture_color,
                                                                                underlay_floor_texture, underlay_floor_map_color, false);
                                                                } else {
                                        sceneGraph.addTile(plane, x, y, tile_opcode,
                                                tile_orientation, overlay_texture_id, tileZA, tileZB, tileZD, tileZC,
                                                getShadow(hsl_bitset_unmodified, tileShadowA), getShadow(hsl_bitset_unmodified,
                                                        tileShadowB), getShadow(hsl_bitset_unmodified, tileShadowD),
                                                        getShadow(hsl_bitset_unmodified, tileShadowC), getOverlayShadow(overlay_hsl,
                                                                tileShadowA), getOverlayShadow(overlay_hsl, tileShadowB),
                                                                getOverlayShadow(overlay_hsl, tileShadowD), getOverlayShadow(overlay_hsl,
                                                                        tileShadowC), rgb_bitset_randomized, overlay_rgb, -1, 0 ,0, true);
                                                                        }
                                }
                                                }
                                        }
                                }




                        }
                }




                for (int j8 = 1; j8 < anInt147 - 1; j8++) {
                        for (int i10 = 1; i10 < anInt146 - 1; i10++)
                                sceneGraph.setVisiblePlanesFor(plane, i10, j8, method182(j8, plane, i10));




                }




                }




                sceneGraph.shadeModels(-10, -50, -50);
                for (int j1 = 0; j1 < anInt146; j1++) {
                        for (int l1 = 0; l1 < anInt147; l1++)
                                if ((tileSettings[1][j1][l1] & 2) == 2)
                                        sceneGraph.applyBridgeMode(l1, j1);




                }




                int i2 = 1;
                int j2 = 2;
                int k2 = 4;
                for (int l2 = 0; l2 < 4; l2++) {
                        if (l2 > 0) {
                                i2 <<= 3;
                                j2 <<= 3;
                                k2 <<= 3;
                        }
                        for (int i3 = 0; i3 <= l2; i3++) {
                                for (int k3 = 0; k3 <= anInt147; k3++) {
                                        for (int i4 = 0; i4 <= anInt146; i4++) {
                                                if ((anIntArrayArrayArray135[i3][i4][k3] & i2) != 0) {
                                                        int k4 = k3;
                                                        int l5 = k3;
                                                        int i7 = i3;
                                                        int k8 = i3;
                                                        for (; k4 > 0
                                                        && (anIntArrayArrayArray135[i3][i4][k4 - 1] & i2) != 0; k4--)
                                                                ;
                                                        for (; l5 < anInt147
                                                        && (anIntArrayArrayArray135[i3][i4][l5 + 1] & i2) != 0; l5++)
                                                                ;
                                                        label0: for (; i7 > 0; i7--) {
                                                                for (int j10 = k4; j10 <= l5; j10++)
                                                                        if ((anIntArrayArrayArray135[i7 - 1][i4][j10] & i2) == 0)
                                                                                break label0;




                                                        }




                                                        label1: for (; k8 < l2; k8++) {
                                                                for (int k10 = k4; k10 <= l5; k10++)
                                                                        if ((anIntArrayArrayArray135[k8 + 1][i4][k10] & i2) == 0)
                                                                                break label1;




                                                        }




                                                        int l10 = ((k8 + 1) - i7) * ((l5 - k4) + 1);
                                                        if (l10 >= 8) {
                                                                char c1 = '\360';
                                                                int k14 = heightMap[k8][i4][k4]
                                                                                                          - c1;
                                                                int l15 = heightMap[i7][i4][k4];
                                                                SceneGraph.createCullingCluster(l2, i4 * 128, l15,
                                                                                i4 * 128, l5 * 128 + 128, k14,
                                                                                k4 * 128, 1);
                                                                for (int l16 = i7; l16 <= k8; l16++) {
                                                                        for (int l17 = k4; l17 <= l5; l17++)
                                                                                anIntArrayArrayArray135[l16][i4][l17] &= ~i2;




                                                                }




                                                        }
                                                }
                                                if ((anIntArrayArrayArray135[i3][i4][k3] & j2) != 0) {
                                                        int l4 = i4;
                                                        int i6 = i4;
                                                        int j7 = i3;
                                                        int l8 = i3;
                                                        for (; l4 > 0
                                                        && (anIntArrayArrayArray135[i3][l4 - 1][k3] & j2) != 0; l4--)
                                                                ;
                                                        for (; i6 < anInt146
                                                        && (anIntArrayArrayArray135[i3][i6 + 1][k3] & j2) != 0; i6++)
                                                                ;
                                                        label2: for (; j7 > 0; j7--) {
                                                                for (int i11 = l4; i11 <= i6; i11++)
                                                                        if ((anIntArrayArrayArray135[j7 - 1][i11][k3] & j2) == 0)
                                                                                break label2;




                                                        }




                                                        label3: for (; l8 < l2; l8++) {
                                                                for (int j11 = l4; j11 <= i6; j11++)
                                                                        if ((anIntArrayArrayArray135[l8 + 1][j11][k3] & j2) == 0)
                                                                                break label3;




                                                        }




                                                        int k11 = ((l8 + 1) - j7) * ((i6 - l4) + 1);
                                                        if (k11 >= 8) {
                                                                char c2 = '\360';
                                                                int l14 = heightMap[l8][l4][k3]
                                                                                                          - c2;
                                                                int i16 = heightMap[j7][l4][k3];
                                                                SceneGraph.createCullingCluster(l2, l4 * 128, i16,
                                                                                i6 * 128 + 128, k3 * 128, l14,
                                                                                k3 * 128, 2);
                                                                for (int i17 = j7; i17 <= l8; i17++) {
                                                                        for (int i18 = l4; i18 <= i6; i18++)
                                                                                anIntArrayArrayArray135[i17][i18][k3] &= ~j2;




                                                                }




                                                        }
                                                }
                                                if ((anIntArrayArrayArray135[i3][i4][k3] & k2) != 0) {
                                                        int i5 = i4;
                                                        int j6 = i4;
                                                        int k7 = k3;
                                                        int i9 = k3;
                                                        for (; k7 > 0
                                                        && (anIntArrayArrayArray135[i3][i4][k7 - 1] & k2) != 0; k7--)
                                                                ;
                                                        for (; i9 < anInt147
                                                        && (anIntArrayArrayArray135[i3][i4][i9 + 1] & k2) != 0; i9++)
                                                                ;
                                                        label4: for (; i5 > 0; i5--) {
                                                                for (int l11 = k7; l11 <= i9; l11++)
                                                                        if ((anIntArrayArrayArray135[i3][i5 - 1][l11] & k2) == 0)
                                                                                break label4;




                                                        }




                                                        label5: for (; j6 < anInt146; j6++) {
                                                                for (int i12 = k7; i12 <= i9; i12++)
                                                                        if ((anIntArrayArrayArray135[i3][j6 + 1][i12] & k2) == 0)
                                                                                break label5;




                                                        }




                                                        if (((j6 - i5) + 1) * ((i9 - k7) + 1) >= 4) {
                                                                int j12 = heightMap[i3][i5][k7];
                                                                SceneGraph.createCullingCluster(l2, i5 * 128, j12,
                                                                                j6 * 128 + 128, i9 * 128 + 128, j12,
                                                                                k7 * 128, 4);
                                                                for (int k13 = i5; k13 <= j6; k13++) {
                                                                        for (int i15 = k7; i15 <= i9; i15++)
                                                                                anIntArrayArrayArray135[i3][k13][i15] &= ~k2;




                                                                }
                                                        }
                                                }
                                        }
                                }
                        }
                }
        }


A few screenshots;



↧
Viewing all 56156 articles
Browse latest View live