TehCheat / PoEHelper

Compiled version of Qvin0000's ExileAPI to make things easy
147 stars 55 forks source link

Possible to increase Element.Text field length? #27

Closed Barragek0 closed 1 year ago

Barragek0 commented 1 year ago

Hi, i'm adding eater/exarch altars to my plugin but the capabilities of it are a little limited at times currently, due to the size of Element.Text being limited (expecting it's limited to 255).

When either the top altar element or bottom altar element has two upsides (from using the passive tree keystones), the first upside is always in the string, but mid-way through the second upside, the string sometimes gets cut off, depending on how long each one is. The same happens with eater, but with downsides.

Any chance this could be increased so the plugin can read all of the upsides/downsides, or is it not possible?

Here's an example of one that it still manages to detect, despite being cut off. If the downside was a longer downside, the upside wouldn't have been in the Element.Text: image

Barragek0 commented 1 year ago

Nevermind, found GetText(int length) in Element class which should work.