It is currently 08 Jul 2021, 00:17
   
Text Size

[fixed/closed]Wrong Parameters in damage_effects()

Moderators: BAgate, drool66, stassy, Aswan jaguar, gmzombie, CCGHQ Admins

[fixed/closed]Wrong Parameters in damage_effects()

Postby Korath » 15 Jun 2013, 14:40

It needs to be done when building ManalinkEh.dll.
Last edited by BAgate on 07 Jan 2014, 05:34, edited 2 times in total.
Reason: closed
User avatar
Korath
DEVELOPER
 
Posts: 3522
Joined: 02 Jun 2013, 05:57
Has thanked: 491 times
Been thanked: 1037 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby triol » 15 Jun 2013, 14:46

Thanks ;)
triol
 
Posts: 110
Joined: 25 Feb 2013, 13:20
Location: Lyon, France
Has thanked: 36 times
Been thanked: 2 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby triol » 15 Jun 2013, 15:37

I add a new pop up, different than the 0x223b5af address, so I report it :)

I don't know what AI was trying to do...

I post another screen to show opponent's hand, it could be that AI tried to cast Breakthrough...
Attachments
manalink4.jpg
Opponent hand
manalink3.jpg
the pop up
triol
 
Posts: 110
Joined: 25 Feb 2013, 13:20
Location: Lyon, France
Has thanked: 36 times
Been thanked: 2 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby triol » 15 Jun 2013, 17:52

This one happened when I was damaged by Psychic Venom.
Game crashes after this bug #-o

PS : Don't hesitate to tell me if my reports are not usefull ;)
Attachments
manalink5.jpg
triol
 
Posts: 110
Joined: 25 Feb 2013, 13:20
Location: Lyon, France
Has thanked: 36 times
Been thanked: 2 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby triol » 15 Jun 2013, 17:58

And one more while AI casts a fireball...
Attachments
manalink6.jpg
triol
 
Posts: 110
Joined: 25 Feb 2013, 13:20
Location: Lyon, France
Has thanked: 36 times
Been thanked: 2 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby Korath » 15 Jun 2013, 18:26

0x4017d4 and 0x477ea4 are in the exe. It's not immediately obvious what their functions (starting at 0x401730 and 0x477d90 respectively) are doing.

0x223b66f is in the wrapper for in_play(). It's got a lot of the same issues as get_card_instance(), and might benefit from having a stacktrace dumper inserted as well.
User avatar
Korath
DEVELOPER
 
Posts: 3522
Joined: 02 Jun 2013, 05:57
Has thanked: 491 times
Been thanked: 1037 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby triol » 15 Jun 2013, 18:35

:shock: :shock: :shock: :shock: :shock:

Can anyone translate into basic words what Korath just said?? :mrgreen:

Hum! I don't know what a stacktrace is either... :oops:
triol
 
Posts: 110
Joined: 25 Feb 2013, 13:20
Location: Lyon, France
Has thanked: 36 times
Been thanked: 2 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby stassy » 15 Jun 2013, 18:37

Prolly what he meant some post ago, aka modify ManalinkEh.dll to log what happen and try to locate the error (in the src folder you have tools to compile the dll)
stassy
Moderator
 
Posts: 5274
Joined: 25 Feb 2009, 07:06
Has thanked: 471 times
Been thanked: 337 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby triol » 15 Jun 2013, 18:40

Well... Has I don't know how to do this, I'll let professionals make reports :mrgreen:
triol
 
Posts: 110
Joined: 25 Feb 2013, 13:20
Location: Lyon, France
Has thanked: 36 times
Been thanked: 2 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby gmzombie » 15 Jun 2013, 18:59

hey Korath im just curious what is your programming experience? im not questioning it or anything just curious. Do u do ASM by chance?
can I maze of ith your snowstorm?

http://home.comcast.net/~gmzombie/index.html old stuff in here. don't use this stuff right now till I get time to get back into it and readjust.
gmzombie
 
Posts: 856
Joined: 26 Feb 2009, 01:05
Location: Wyoming, Mi
Has thanked: 200 times
Been thanked: 50 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby Gargaroz » 15 Jun 2013, 19:16

Korath, thanx a lot for your work, but I don't really like the "lot of spam produced when building the DLL" part. Could you make something wrote in C to emulate the stuff you put in the patch ? We could add a check for "player == -1" or "card == -1" before the actual calling of the "real_get_card_instance".
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7095
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 593 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby Korath » 15 Jun 2013, 20:20

The extra output during the build is needed only to translate hex addresses into function names. MSVC puts this debugging data into a .pdb file; gcc only lets you put it into the file itself (which doesn't work here, since it interferes with the addresses in manalink.asm) or to write it to stdout. It can be disabled for all but the final public build by not linking with the "MAP = -Wl,-M" I added to src/Makefile.

What I attached before isn't a binary patch; it's just output from git diff like I've been posting on other bugs. All of it is in C except for the perl script to translate dump.dmp files into function names.

gmzombie wrote:hey Korath im just curious what is your programming experience? im not questioning it or anything just curious. Do u do ASM by chance?
I only speak baby asm. I took a one-semester course in 68000 assembly almost twenty years ago and haven't ever used it. No experience with x86 assembly except for what I google while puzzling out decompiler output.
User avatar
Korath
DEVELOPER
 
Posts: 3522
Joined: 02 Jun 2013, 05:57
Has thanked: 491 times
Been thanked: 1037 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby Sonic » 16 Jun 2013, 02:46

Korath wrote:I only speak baby asm.
Well you're one up on most of us - we only speak stem cell asm. :oops:
Working On: Life, the Universe, and Everything.
User avatar
Sonic
Apprentice
 
Posts: 827
Joined: 27 Feb 2010, 00:37
Has thanked: 3 times
Been thanked: 160 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby BAgate » 02 Dec 2013, 02:47

Korath, has this patch been applied, i.e. can we archive this issue or are you guys still working on it?
Working on: housekeeping and archived reports
User avatar
BAgate
Tester
 
Posts: 2445
Joined: 06 Mar 2012, 11:09
Has thanked: 117 times
Been thanked: 158 times

Re: [confirmed]Wrong Parameters in damage_effects()

Postby Gargaroz » 02 Dec 2013, 14:43

Archive this, we overcome this through coding.
----
- Current / medium term task: adjusting the code for making Misdirection and such usable
- Long term task: inserting all the good stuff I left out from the "Golden Years" mod
Gargaroz
Programmer
 
Posts: 7095
Joined: 06 Nov 2009, 11:11
Has thanked: 82 times
Been thanked: 593 times


Return to Archived Reports

Who is online

Users browsing this forum: Bing [Bot] and 4 guests


Who is online

In total there are 5 users online :: 1 registered, 0 hidden and 4 guests (based on users active over the past 10 minutes)
Most users ever online was 1922 on 07 Jun 2021, 06:01

Users browsing this forum: Bing [Bot] and 4 guests

Login Form