Forum in READ ONLY mode! All questions and discussions on Discord official server, invite link: https://discord.gg/VxsGzJ7

i need a help for this gump

Ask for help
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: i need a help for this gump

Post by nah nah »

Есть мнение, что сначала на заданной координате х рисуются все картинки, а затем текст. Пример с 923 показывает, что текст перекрывает текст (двойка наезжает на девятку). При этом картинки перекрывают текст на предыдущей координате. Значения х берутся из инфогампа
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: i need a help for this gump

Post by CFA »

Вот мое представление как все происходит. Если это в самом деле так (а чтоб проверить, надо смотреть не infogump, а непосредственно пакет приходящий от сервера), то сейчас стелс выдает недостаточно информации, чтоб этот антимакрос можно было обойти.
Image
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: i need a help for this gump

Post by Vizit0r »

почему недостаточно?
картинки и текст никак не сортируются, а выдаются в порядке, предоставленном сервером.
или ты имеешь ввиду, что они раскиданы по категориям, а не идут подряд, один за другим?
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: i need a help for this gump

Post by CFA »

Vizit0r wrote:или ты имеешь ввиду, что они раскиданы по категориям, а не идут подряд, один за другим?
Ага, именно это. Надо в infogump&co добавить еще порядковый номер элемента, но не в своей группе, а его порядковый номер внутри всего гампа, тогда можно будет распрсить этот зловещий антимакрос, хотя тоже придется повозиться :)
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: i need a help for this gump

Post by nah nah »

Когда ждать обновления? :D
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: i need a help for this gump

Post by Vizit0r »

обновления вряд ли. выложу чуть позже
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: i need a help for this gump

Post by CFA »

new build of stealth here. Now it displays additional information, such as "ElemNum". It will help to determine the order of elements in the gump.
nah nah
Developer
Developer
Posts: 414
Joined: 13.07.2011 11:23
Contact:

Re: i need a help for this gump

Post by nah nah »

А почему в инфогампе между значениями используется два пробелла (в большинстве), а не 1? жутко неудобно работать сплитом. Может просто "так надо", а может мне повезёт и предложение попадёт в to do список :roll:
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: i need a help for this gump

Post by Vizit0r »

оно может и неудобно, но...обратная совместимость. переделки не будет, ибо это поломает многие существующие парсеры.
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
Alex
Moderator
Moderator
Posts: 351
Joined: 07.04.2005 4:41

Re: i need a help for this gump

Post by Alex »

-k-, do you get the idea? or i can try to describe solution in english
Новый стелс лежит тут. Стелс это произведение искусства! :)
-k-
Neophyte
Neophyte
Posts: 41
Joined: 23.01.2012 0:22

Re: i need a help for this gump

Post by -k- »

i got the idea, but if you want to translate, help me much =]]]]
Alex
Moderator
Moderator
Posts: 351
Joined: 07.04.2005 4:41

Re: i need a help for this gump

Post by Alex »

Gump consists of two elements: image-stubs (ResizePics) and numbers (GumpTexts).
Those stubs and numbers are overlapped(based on X, Y coords) in the Anti Macro text area(see CFA drawing).
The image-stubs can be different size(see nah nah drawing), size depends on X,Y,Width,Height attributes of the image-stub.

We are searching top-level numbers which are not covered with any image-stubs.
General index number of the element(ElemNum) will help us to make ordered sequence of stubs and numbers.

So the script looks like this:
0. you need functions from this page to work with gumps: http://stealth.od.ua/wiki/doku.php?id=% ... 0%BF%D1%8B
1. waiting for the gump (using IsGump function)
2. parsing gump contents (retrieved from GetGumpFullLines function)
3. finding top-level visible numbers (your function)
4. sending response (using NumGumpTextEntry and NumGumpButton functions)
Новый стелс лежит тут. Стелс это произведение искусства! :)
-k-
Neophyte
Neophyte
Posts: 41
Joined: 23.01.2012 0:22

Re: i need a help for this gump

Post by -k- »

thanks man. =]]]]]
-k-
Neophyte
Neophyte
Posts: 41
Joined: 23.01.2012 0:22

Re: i need a help for this gump

Post by -k- »

ok, the script get the numbers, but i can´t understand NumGumpTextEntry, i try to use, but don´t work =[[[

plis, help again =]]]]
CFA
Developer
Developer
Posts: 492
Joined: 20.04.2006 6:03
Contact:

Re: i need a help for this gump

Post by CFA »

-k- wrote:ok, the script get the numbers, but i can´t understand NumGumpTextEntry, i try to use, but don´t work =[[[

plis, help again =]]]]
NumGumpTextEntry "inserts" text into the appropriate field, then you should click on button using "NumGumpButton" or "WaitGump"
Post Reply