It is currently 23 Apr 2024, 12:08
   
Text Size

Breaking 2k cards limit

Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!

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

Breaking 2k cards limit

Postby 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.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Breaking 2k cards limit

Postby 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! :)
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Breaking 2k cards limit

Postby 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.
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Breaking 2k cards limit

Postby 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.
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Breaking 2k cards limit

Postby jatill » 19 May 2009, 14:44

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.
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?
jatill
DEVELOPER
 
Posts: 2118
Joined: 24 Feb 2009, 16:35
Has thanked: 5 times
Been thanked: 17 times

Re: Breaking 2k cards limit

Postby 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 ?
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

Re: Breaking 2k cards limit

Postby Tower_Mazer » 20 May 2009, 02:38

Snacko wrote:* fixed arrays from static to dynamic via malloc
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 :D .
User avatar
Tower_Mazer
 
Posts: 53
Joined: 15 Mar 2009, 15:59
Has thanked: 0 time
Been thanked: 0 time

Re: Breaking 2k cards limit

Postby 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

Postby 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! 8)
'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.
User avatar
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

Postby 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


Return to Development

Who is online

Users browsing this forum: No registered users and 26 guests


Who is online

In total there are 26 users online :: 0 registered, 0 hidden and 26 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 26 guests

Login Form