Breaking 2k cards limit
Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!
PLEASE DO NOT REPORT BUGS HERE!
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
Breaking 2k cards limit
by Snacko » 19 May 2009, 10:08
So far I've only fixed drawcardlib.dll, but this so far allows you to load magic.exe without crashing and start a game (there are limits / memory overrides for sure that needs to be fixed).
You can drop it in and see if it doesn't crash on normal play
http://www.mediafire.com/?mjiwyjzmamw
What has been done:
drawcardlib.dll
* unpacked the dll
* fixed arrays from static to dynamic via malloc
* enlarged some stack based arrays
* fixed relocations table
Still at least magic.exe(runs at least) and deck.exe(crashes) need to be fixed to ensure that the whole thing works properly.
You can drop it in and see if it doesn't crash on normal play
http://www.mediafire.com/?mjiwyjzmamw
What has been done:
drawcardlib.dll
* unpacked the dll
* fixed arrays from static to dynamic via malloc
* enlarged some stack based arrays
* fixed relocations table
Still at least magic.exe(runs at least) and deck.exe(crashes) need to be fixed to ensure that the whole thing works properly.
Re: Breaking 2k cards limit
by jatill » 19 May 2009, 12:14
I'll make sure to start playing with this version. I'm so glad you're attempting to tackle this issue, Snacko. I don't even know what half those steps mean!
Apps by jatill: http://www.slightlymagic.net/wiki/Other_Apps_by_jatill
Re: Breaking 2k cards limit
by jatill » 19 May 2009, 12:35
No idea if this is related to your change, but....
I played Goblin Matron and got this error, though it did not crash the game.
I played Goblin Matron and got this error, though it did not crash the game.
Apps by jatill: http://www.slightlymagic.net/wiki/Other_Apps_by_jatill
Re: Breaking 2k cards limit
by Snacko » 19 May 2009, 13:46
Do you have 2k+ cards in you cards.dat ? If yes then there might be some memory regions that are overwritten(haven't fixed a single thing in magic.exe) and other strange bugs due to array overflows, otherwise <2k cards there shouldn't be any errors.
Re: Breaking 2k cards limit
by jatill » 19 May 2009, 14:44
No, I don't. Can you include the cards.dat I sent you in your download link, so people can get the oversize dat file and test with that?Snacko wrote:Do you have 2k+ cards in you cards.dat ? If yes then there might be some memory regions that are overwritten(haven't fixed a single thing in magic.exe) and other strange bugs due to array overflows, otherwise <2k cards there shouldn't be any errors.
Apps by jatill: http://www.slightlymagic.net/wiki/Other_Apps_by_jatill
Re: Breaking 2k cards limit
by Snacko » 19 May 2009, 15:17
With 2k+ and without fixing magic.exe there are lots of bugs / might be some random crashes sometimes.
First I would like to know if it does work properly with under 2k.
The error looks like eax / ecx should be swapped around. Maybe someone broke the card while editing some other one. Did it work before ?
First I would like to know if it does work properly with under 2k.
The error looks like eax / ecx should be swapped around. Maybe someone broke the card while editing some other one. Did it work before ?
Re: Breaking 2k cards limit
by Tower_Mazer » 20 May 2009, 02:38
Is this like making some things hardcoded not hardcoded anymore? Also I've heard you can get memory leaks using dynamic arrays that will cause random errors. This is probably based on the dimension size of the array and the memory location the pointers are targeting? Pretty good knowledge to be able to do what you did. Glad you are still around helping .Snacko wrote:* fixed arrays from static to dynamic via malloc
-
Tower_Mazer - Posts: 53
- Joined: 15 Mar 2009, 15:59
- Has thanked: 0 time
- Been thanked: 0 time
Re: Breaking 2k cards limit
by stassy » 20 May 2009, 05:48
jatill> I got the same windows error with different memory space for Arcbound Worker (posted a report in the bug thread some time ago), so it might be just a card only bug
- stassy
- Moderator
- Posts: 5274
- Joined: 25 Feb 2009, 07:06
- Has thanked: 471 times
- Been thanked: 337 times
Re: Breaking 2k cards limit
by Bog Wraith » 20 May 2009, 11:07
Yes, I too have occasionally seen this bug during games as well for a while now, though I can't say what update(s) it first showed itself.
Thanks Snacko for your involvement with this most important step forward for further development of ManaLink!
Thanks Snacko for your involvement with this most important step forward for further development of ManaLink!
'Twas in the bogs of Cannelbrae
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
My mate did meet an early grave
'Twas nothing left for us to save
In the peat-filled bogs of Cannelbrae.
-
Bog Wraith - Global Mod 1 (Ret)
- Posts: 1108
- Joined: 28 May 2008, 22:40
- Location: Shandalar
- Has thanked: 425 times
- Been thanked: 153 times
Re: Breaking 2k cards limit
by stassy » 20 May 2009, 11:44
Well I got this kind of error with the introduction of Affinity type deck so around 27th of feb
- stassy
- Moderator
- Posts: 5274
- Joined: 25 Feb 2009, 07:06
- Has thanked: 471 times
- Been thanked: 337 times
10 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest