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

JPGs GetGumpFullLines question

Post Reply
JPG
Posts: 6
Joined: 24.07.2012 19:01

JPGs GetGumpFullLines question

Post by JPG »

Hi all,

I am just started experimenting around with stealth and I muss say that you did an increadible good job!!! It provides me nearly everything I ever wanted, is super fast and quite stable. I am using python as it is super faster and I am more used to it than to pascal, even though, I started with pascal ages ago.

Hoever, I am currently trying to process a gardening gump and I am experiencing a strange behaviour with GetGumpFullLines. It is returning me incorrect GumpText (incorrect text refs and missing GumpTexts) and the GumpSerial is also different from pascal and from infogump (after hex conversion). If I deactivate SilentMode the infotext shows me the same GumpFullLines python reads.

I first had the idea that python is simply to fast and returns me the gump already when it is half loaded. So, I added a wait, but that didnt helped at all.

Does anyone of you had similar problems and/or an idea of the cause that I can figure out a solution.

Thanks and great client!

JPG
Alex
Moderator
Moderator
Posts: 351
Joined: 07.04.2005 4:41

Re: JPGs GetGumpFullLines question

Post by Alex »

Hey,

please provide output of the ,infogump command launched right after gump received

and provide GetGumpFullLines output
Новый стелс лежит тут. Стелс это произведение искусства! :)
JPG
Posts: 6
Joined: 24.07.2012 19:01

Re: JPGs GetGumpFullLines question

Post by JPG »

Hi,

Here the gump info: first the python GetGumpFullLines with silentmode off and afterwards the infogump for the same gump. I changed nothing about the gump. Just hit infogump afterwards. The infogump information is correct the GetGumpFullLines is incorrect. It is to note that the GumpText is different (incomplete and wrong text line references).

first the python GetGumpFullLines:

Code: Select all

Serial: 20DD8E
GumpID: 7492
X: 0014
Y: 0014
Pages: 0
Gump Options:

GumpPics: X  Y  ID  Hue  Page  ElemNum
GumpPic: 48  47  210  0  0  34
GumpPic: 232  47  210  0  0  36

TilePics: X   Y   ID   Page   ElemNum
0   TilePic: 45  45  3311  1
1   TilePic: 45  118  3312  2
2   TilePic: 211  45  3307  3
3   TilePic: 211  118  3308  4
4   TilePic: 93  162  6809  6
5   TilePic: 162  162  6809  7
6   TilePic: 59  68  3336  10
7   TilePic: 8  96  882  12
8   TilePic: 58  115  3350  14
9   TilePic: 59  143  6884  16
10   TilePic: 55  167  5927  18
11   TilePic: 193  67  8093  20
12   TilePic: 200  91  3850  23
13   TilePic: 200  115  3847  26
14   TilePic: 200  139  3852  29
15   TilePic: 200  163  3849  32
16   TilePic: 219  180  5629  41

TilePicHue: X   Y   ID   Hue   Page   ElemNum
0   TilePicHue: 115  96  3220  43  5

ResizePics: X   Y   ID   Width   Height   Page   ElemNum
0   ResizePic: 50  50  3600  200  150  0  0

XmfHTMLGumpColor: X   Y   Width   Height   ClilocID   Background   scrollbar   Hue   ElemNum   ClilocText
0   XmfHTMLGumpColor: 129  167  42  20  1060822  0  0  33760  8  vibrant

GumpTexts: X   Y   Color   Text_ID   Page   ElemNum
0   GumpText: 196  67  53  0  0  21
1   GumpText: 196  91  2101  1  0  24
2   GumpText: 196  115  2101  1  0  27
3   GumpText: 196  139  2101  1  0  30
4   GumpText: 196  163  2101  1  0  33
5   GumpText: 54  47  2101  2  0  35
6   GumpText: 239  47  3  3  0  37
7   GumpText: 54  183  2101  4  0  39

Text Lines:
-
0
9
+
?

GumpButtons: X   Y   Released_ID  Pressed_ID   Quit   Page_ID   Return_value   Page   ElemNum
0   GumpButton: 71  67  212  212  1  0  1  0  9
1   GumpButton: 71  91  212  212  1  0  2  0  11
2   GumpButton: 71  115  212  212  1  0  3  0  13
3   GumpButton: 71  139  212  212  1  0  4  0  15
4   GumpButton: 71  163  212  212  1  0  5  0  17
5   GumpButton: 209  67  210  210  1  0  6  0  19
6   GumpButton: 209  91  212  212  1  0  7  0  22
7   GumpButton: 209  115  212  212  1  0  8  0  25
8   GumpButton: 209  139  212  212  1  0  9  0  28
9   GumpButton: 209  163  212  212  1  0  10  0  31
10   GumpButton: 48  183  210  210  1  0  11  0  38
11   GumpButton: 232  183  212  212  1  0  12  0  40

infogump:

Code: Select all

Serial: 2115C0
GumpID: 7492
X: 0014
Y: 0014
Pages: 0
Gump Options:

GumpPics: X  Y  ID  Hue  Page  ElemNum
GumpPic: 110  85  1417  0  0  5
GumpPic: 48  47  210  0  0  44
GumpPic: 232  47  210  0  0  46

TilePics: X   Y   ID   Page   ElemNum
0   TilePic: 45  45  3311  1
1   TilePic: 45  118  3312  2
2   TilePic: 211  45  3307  3
3   TilePic: 211  118  3308  4
4   TilePic: 122  94  2324  6
5   TilePic: 135  94  2324  7
6   TilePic: 120  112  2324  8
7   TilePic: 135  112  2324  9
8   TilePic: 127  112  3170  10
9   TilePic: 129  85  3198  11
10   TilePic: 121  117  3170  12
11   TilePic: 133  117  3170  13
12   TilePic: 91  164  6374  14
13   TilePic: 161  164  6374  15
14   TilePic: 59  68  3336  18
15   TilePic: 8  96  882  20
16   TilePic: 58  115  3350  23
17   TilePic: 59  143  6884  25
18   TilePic: 55  167  5927  28
19   TilePic: 193  67  8093  30
20   TilePic: 200  91  3850  33
21   TilePic: 200  115  3847  36
22   TilePic: 200  139  3852  39
23   TilePic: 200  163  3849  42
24   TilePic: 219  180  5629  51

ResizePics: X   Y   ID   Width   Height   Page   ElemNum
0   ResizePic: 50  50  3600  200  150  0  0

XmfHTMLGumpColor: X   Y   Width   Height   ClilocID   Background   scrollbar   Hue   ElemNum   ClilocText
0   XmfHTMLGumpColor: 132  167  42  20  1060824  0  0  49671  16  wilted

GumpTexts: X   Y   Color   Text_ID   Page   ElemNum
0   GumpText: 95  92  53  0  0  21
1   GumpText: 95  140  53  0  0  26
2   GumpText: 196  67  33  0  0  31
3   GumpText: 196  91  2101  1  0  34
4   GumpText: 196  115  2101  2  0  37
5   GumpText: 196  139  2101  1  0  40
6   GumpText: 196  163  2101  2  0  43
7   GumpText: 54  47  2101  3  0  45
8   GumpText: 239  47  33  4  0  47
9   GumpText: 54  183  2101  5  0  49

Text Lines:
+
1
0
4
-
?

GumpButtons: X   Y   Released_ID  Pressed_ID   Quit   Page_ID   Return_value   Page   ElemNum
0   GumpButton: 71  67  212  212  1  0  1  0  17
1   GumpButton: 71  91  212  212  1  0  2  0  19
2   GumpButton: 71  115  212  212  1  0  3  0  22
3   GumpButton: 71  139  212  212  1  0  4  0  24
4   GumpButton: 71  163  212  212  1  0  5  0  27
5   GumpButton: 209  67  210  210  1  0  6  0  29
6   GumpButton: 209  91  212  212  1  0  7  0  32
7   GumpButton: 209  115  212  212  1  0  8  0  35
8   GumpButton: 209  139  212  212  1  0  9  0  38
9   GumpButton: 209  163  212  212  1  0  10  0  41
10   GumpButton: 48  183  210  210  1  0  11  0  48
11   GumpButton: 232  183  212  212  1  0  12  0  50
Alex
Moderator
Moderator
Posts: 351
Joined: 07.04.2005 4:41

Re: JPGs GetGumpFullLines question

Post by Alex »

are those two from exact same gump instance?
Новый стелс лежит тут. Стелс это произведение искусства! :)
JPG
Posts: 6
Joined: 24.07.2012 19:01

Re: JPGs GetGumpFullLines question

Post by JPG »

Yes, the same instance. I open the gump (no gumps of the same type open). Detect in python the gump by type and parse it. Then checked with infogump exactly the same gump. Maybe in python some "remainders" are returned?
Alex
Moderator
Moderator
Posts: 351
Joined: 07.04.2005 4:41

Re: JPGs GetGumpFullLines question

Post by Alex »

We need to wait Vizit0r, may be he will help
Новый стелс лежит тут. Стелс это произведение искусства! :)
JPG
Posts: 6
Joined: 24.07.2012 19:01

Re: JPGs GetGumpFullLines question

Post by JPG »

Sure, no problem. I tested out a pascal script in the meantime. Surprisingly, I experienced the same phenemen there only very sporadic. Same thing as in python. The first read of the gump returns incorrect values. If I reread it, it returns the same incorrect information, like it caches the gumpinfo.
User avatar
Vizit0r
Developer
Developer
Posts: 3958
Joined: 24.03.2005 17:05
Contact:

Re: JPGs GetGumpFullLines question

Post by Vizit0r »

textlines cannot be incorrect.
if you're sure in this error - write me in icq (number in my profile)
"Пишите код так, как будто сопровождать его будет склонный к насилию психопат, который знает, где вы живете". (с) Макконнелл, "Совершенный код".
JPG
Posts: 6
Joined: 24.07.2012 19:01

Re: JPGs GetGumpFullLines question

Post by JPG »

Hi Vizit0r,
yes, I am sure of this error. It occurs sporadicly in python and very sporadicly in pascal. I assume it is a timing problem as python is a bit faster than pascal and runs into it more often. I am simply ignoring the problem at the moment.
Crome696
Novice
Novice
Posts: 67
Joined: 04.03.2012 18:57
Location: Germany
Contact:

Re: JPGs GetGumpFullLines question

Post by Crome696 »

JPG wrote:Hi Vizit0r,
yes, I am sure of this error. It occurs sporadicly in python and very sporadicly in pascal. I assume it is a timing problem as python is a bit faster than pascal and runs into it more often. I am simply ignoring the problem at the moment.
I wroted Module for Gumphandling so it were such fast you never see any gump anymore and never appeared such a issue. Is this a Flexibble Gump maybe? Somestimes some nasty runuo coders added gumps, they look almost the same but having invisible random elements and texts so you couldnt catch it with injection\stealth etc.. I use 2 functions to check if GumpID exist\appear and if already exist, if the serial changed. So in the ms you got the reply from server the waiter just jump out and you could handle gumps again.
Stealth Development Team & Support
Post Reply