[fixed/closed]Wrong Parameters in damage_effects()
Moderators: BAgate, drool66, stassy, Aswan jaguar, gmzombie, CCGHQ Admins
[fixed/closed]Wrong Parameters in damage_effects()
by 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
Reason: closed
-

Korath - DEVELOPER
- Posts: 3522
- Joined: 02 Jun 2013, 05:57
- Has thanked: 491 times
- Been thanked: 1037 times
- 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()
by 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...
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...
- 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()
by triol » 15 Jun 2013, 17:52
This one happened when I was damaged by Psychic Venom.
Game crashes after this bug
PS : Don't hesitate to tell me if my reports are not usefull
Game crashes after this bug
PS : Don't hesitate to tell me if my reports are not usefull
- 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()
by triol » 15 Jun 2013, 17:58
And one more while AI casts a fireball...
- 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()
by 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.
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.
-

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()
by triol » 15 Jun 2013, 18:35
Can anyone translate into basic words what Korath just said??
Hum! I don't know what a stacktrace is either...
- 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()
by 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()
by triol » 15 Jun 2013, 18:40
Well... Has I don't know how to do this, I'll let professionals make reports 
- 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()
by 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.
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()
by 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
- 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()
by 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.
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.
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.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?
-

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()
by Sonic » 16 Jun 2013, 02:46
Well you're one up on most of us - we only speak stem cell asm.Korath wrote:I only speak baby asm.
Working On: Life, the Universe, and Everything.
Re: [confirmed]Wrong Parameters in damage_effects()
by 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
Re: [confirmed]Wrong Parameters in damage_effects()
by 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
- 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
15 posts
• Page 1 of 1
Who is online
Users browsing this forum: Bing [Bot] and 4 guests
