[Any Versions] sprite limit

This forum is for discussions on how to edit what can not be edited through the txt files, needless to say this isn't about battle net hacking.

Moderators: Nefarius, Havvoric

Post Reply
User avatar
thaison
Junior Member
Paladin
Posts: 108
Joined: Fri Apr 03, 2015 11:59 am
Location: Viet Nam
Vietnam

[Any Versions] sprite limit

Post by thaison » Wed Oct 25, 2017 12:49 am

How to removed the sprite limit. Objects, Players, Monsters, etc will no longer go invisible when there are a lot of missiles / sprites on the screen.

User avatar
Necrolis
Senior Admin
Throne
Posts: 9125
Joined: Sat Mar 25, 2006 1:22 pm
Location: The Land of the Dead
Contact:
South Africa

Hand-picked

Re: [Any Versions] sprite limit

Post by Necrolis » Wed Oct 25, 2017 11:28 am

This requires rewriting the ptView constructor to allocate more than 3000 slots (they are shared between tiles/shadows/units), and then you need to shift all the references to the members after the slot pool as well. An alternative is to rewrite the render chain builder and walker for shadows so that a unit only occupies 1 slot for itself and its shadow (instead of 2 separate slots). As a plus the builder is also the place to rewrite if you want to support drawing farther into the world.
Image
Netiquette, Do you USE it?!?! | Nefarius' Fixed TXT Files | Terms Of Service
Blackened | Day of Death | D2GFEx
"What was yours is mine. Your land, your people, and now your life." - Lim-Dul, the Necromancer
Judgement is Final, Death is Eternal

P.J.
Posts: 66
Joined: Wed Jan 13, 2010 7:47 pm
Russia

Re: [Any Versions] sprite limit

Post by P.J. » Wed Dec 06, 2017 6:40 pm

It was done in last Eastern Sun patch, you can ask AlphA for a starting point i think.

User avatar
AlphA - The Real One
Hosted Forum Moderator
Champion of the Light
Posts: 300
Joined: Sat Oct 31, 2009 12:28 pm
Location: China
Germany

Hand-picked

Re: [Any Versions] sprite limit

Post by AlphA - The Real One » Thu Dec 07, 2017 3:44 pm

:mrgreen: :mrgreen: :mrgreen: Thats gold right there. It was thaison who did it for Eastern Sun Rises.

Cheers
AlphA

P.J.
Posts: 66
Joined: Wed Jan 13, 2010 7:47 pm
Russia

Re: [Any Versions] sprite limit

Post by P.J. » Thu Dec 07, 2017 5:50 pm

:D Ok, so, Thaison probably can help with starting point :D

P.S. I'm also interested how to rid of sprite limit.

Post Reply

Return to “Code Editing”