Commit Graph

1913 Commits

Author SHA1 Message Date
wrenczes@gmail.com 6109fe1912 Fix a compile error on the psp. 2010-10-07 08:10:08 +00:00
wrenczes@gmail.com 69a5c52ea8 Revert out a file that wasn't meant to be part of that last submit. 2010-10-07 03:49:42 +00:00
wrenczes@gmail.com def3293fac Fixed my trace - removed the spurious addressof(). 2010-10-07 03:45:57 +00:00
techdragon.nguyen@gmail.com be11b96775 adding trim to card loading. if player deck has multiple spaces separating card name from set name, the parser fails. Trimming ensures that there are no problems with trailing and leading spaces concerning card and set names.
previously:
[card name]         ([set name]) *d

would fail because when the parser when looking for the card name, it would use 
[[card name]        ]
and not 
[[card name]]
since the card lookup is case insensitive but not whitespace insensitive the lookup would fail.
2010-10-07 03:01:05 +00:00
techdragon.nguyen@gmail.com 652358b8c4 commented out last check in as "addressof" is not defined in current code set. Is it possibly out of the boost library? 2010-10-06 16:05:58 +00:00
wrenczes@gmail.com 78f8ff98bb more OutputDebugString() conversions, and removed a useless trace in the base WResource destructor - instead, moved it up to WCachedResource so that we can output the filename of the resource that is being destroyed. 2010-10-06 11:46:10 +00:00
wrenczes@gmail.com 5595c0d3d8 More OutputDebugString() -> DebugTrace changes. 2010-10-06 10:45:29 +00:00
wrenczes@gmail.com 291a0d0312 1) swap out the pattern of
CODE: SELECT ALL
#if defined (WIN32) || defined (LINUX)
  char    buf[4096], *p = buf;
  sprintf(buf, "Some debug message showing  variables %i and %i\n", variableA, variableB);
  OutputDebugString(buf);
#endif


new paradigm:
CODE: SELECT ALL
DebugTrace("Some debug message showing variables " << variableA <<" and " << variableB);


No more dealing with formatting sprintf crap, just stream out variables. Also, DebugTrace washes out in release automatically. (TODO, need to sweep through the rest of the app to apply the changes to all the cases where OutputDebugString() is being called)

2) added two traces to follow adding/resolving things on the stack;

3) changed the uninformative "stack object" string that was the default for base class interrupts to use typeinfo(*this).name() so that you can actually see the derived class in the trace output. Here's a sample of what my trace output looks like now:
Action added to stack: Devoted Hero
Resolving Action on stack: Devoted Hero
Action added to stack: class NextGamePhase
Resolving Action on stack: class NextGamePhase
Action added to stack: class NextGamePhase
Resolving Action on stack: class NextGamePhase
Action added to stack: class StackAbility
Resolving Action on stack: class StackAbility
Action added to stack: class DrawAction
Resolving Action on stack: class DrawAction

4) replaced some hardcoded 0 / -1 values with their proper enums.
2010-10-06 09:28:45 +00:00
wrenczes@gmail.com 9c982475fe Some minor casting issues that trip up the 0.9.6 pspsdk when compiling. 2010-10-06 09:22:44 +00:00
wrenczes@gmail.com 1e7f2507f0 Removed an extra vector allocation from the previous card loading optimization. 2010-10-06 08:53:05 +00:00
techdragon.nguyen@gmail.com 8e83e0d632 Issue: 474
modified player status to recognize that test suite has been activated.  This is to allow deactivation of "phase skip automation" game setting during test suite.  
TODO: fix "Phase Skip Automation" such that if turned on the test suite does not break.  This fix should be considered temporary
2010-10-04 16:26:55 +00:00
omegablast2002@yahoo.com cf63c83754 Fixed a bug/exploit with declaring attackers and @tapped triggers. 2010-10-03 14:19:52 +00:00
wagic.the.homebrew@gmail.com 31f58b1da5 Erwan
- Bump version number up
2010-10-03 12:15:10 +00:00
wagic.the.homebrew@gmail.com c3c5d893d1 Erwan
- attempt at fixing some crashes in shop (related to bad usage of the cache)
- Fix typo reported with Qumulox
2010-10-03 07:36:01 +00:00
omegablast2002@yahoo.com 08b762276b fix a bug where affinity wasnt triggering on card entering hand 2010-10-02 01:19:33 +00:00
wagic.the.homebrew@gmail.com 508040b3a7 Erwan
- fix for issue 467 (simultaneous triggers + "trigger" keyword)
- MootPoint's patch for some string parsing
- some random int/float compilation warning fixes
2010-10-01 16:33:07 +00:00
wagic.the.homebrew@gmail.com 65ae7039a7 Erwan
- collection load time speed increase by MootPoint
2010-09-30 10:34:38 +00:00
linshier d8122e441e Tweaked translation codes for deck and opponents choosing menus. 2010-09-29 08:18:09 +00:00
wagic.the.homebrew@gmail.com b79c7eea53 Erwan
- fix for issue 462 (graphical glitch when cards come back from graveyard)
- adding Kaioshin's wallpaper
- fixed minor issue in mtg.txt
2010-09-28 13:58:22 +00:00
omegablast2002@yahoo.com aba3f784c5 attempt to fix an issue with prevent:1 on instants and sorceries. thanks for the tip wololo! :) 2010-09-27 02:07:11 +00:00
techdragon.nguyen@gmail.com 7ec7fe2577 modified debug string for card id collision 2010-09-26 16:05:19 +00:00
wagic.the.homebrew@gmail.com 82ab92a61f Erwan
-fix for issue 408 (issues with life + targetcontroller + targets on the stack)
2010-09-26 12:57:12 +00:00
wagic.the.homebrew@gmail.com 361c39e86f Erwan
- fix for issue 405 (unlocking ALL twice through Cheat mode in deck editor crashes the game)
2010-09-26 10:54:39 +00:00
wagic.the.homebrew@gmail.com ed865ce29a Erwan
- Fix for issue 371 (Deck Editor resets to letter "A")
- Changed music behavior when switching menus. It shouldn't "restart" the music anymore.
2010-09-26 08:41:25 +00:00
techdragon.nguyen@gmail.com 715ee56d9e added more debug info (name of card with conflict ) for id conflicts. Don't have the name of the card it conflicts with however 2010-09-26 07:39:13 +00:00
wagic.the.homebrew@gmail.com ac435980ce Erwan
- Attempt at solving issue 247 (missing background image for trophy room). I think I attempted that a while ago and it caused some crashes, so let's revert this change if this happens
2010-09-26 06:22:46 +00:00
wagic.the.homebrew@gmail.com a6e4fba26b Erwan
- fix issue 304 (Momir + persist)
- some minor cleanup
2010-09-25 09:13:30 +00:00
wagic.the.homebrew@gmail.com f3cc20eb31 Erwan
- Fix for issue 284 (Damage not triggering when creature dies in combat phase)
2010-09-25 05:15:09 +00:00
omegablast2002@yahoo.com e94d39e115 autoformatted the spaces in MTGRules.cpp since i pretty much made it look like a mess..very pretty now :D 2010-09-24 20:04:19 +00:00
omegablast2002@yahoo.com 75c0733a38 Condensed castrestrictions/handsize rule massively. handled by 1 rule now and checked in one pass. 2010-09-24 19:26:32 +00:00
omegablast2002@yahoo.com 9b5a3b15aa tiny boo boo, forgot getManaCost() for the colored removel 2010-09-24 17:40:41 +00:00
omegablast2002@yahoo.com 3ee09742b6 bug fix for Token Crash when Id was not found in Card.dat. 2010-09-24 17:11:50 +00:00
omegablast2002@yahoo.com 4ae00372a4 resubmitting my affinity refactor, improved since the original issue was not even related to this code 7 hours later :/ 2010-09-24 16:05:22 +00:00
techdragon.nguyen 5eab87345a initializespatch fix for issue 459. This patch encapsulates the metadata object more and initializes the stat values. 2010-09-24 11:27:34 +00:00
techdragon.nguyen f7d2b774e3 reverting changes made by request of Zethfox. code needs more testing. 2010-09-24 11:26:35 +00:00
omegablast2002@yahoo.com d3b96a8723 refactored and cleaned up affinityrule..630ish line DOWN to 120ish 2010-09-24 08:53:01 +00:00
wagic.the.homebrew@gmail.com b6d7496798 Erwan
- some code cleanup in Damage.cpp (the test suite passes)
2010-09-23 13:06:49 +00:00
wagic.the.homebrew@gmail.com a6a75af52a Erwan
- Partial fix for issue 335. This fixes the general problem of triggers not working in the case @movedTo(Battlefield) from(anywhere), but not the specific case of River kelpie not getting to draw a card after being "persisted"
2010-09-23 08:29:35 +00:00
wagic.the.homebrew@gmail.com 1c0218326e Erwan
- {z} cost becomes l2e (Library To Exile)
- {q} cost becomes s2l (Send to Library) <- from any place to Library
- subtypes leyline, controllsershroud, playershroud become ability keywords
2010-09-21 12:18:37 +00:00
wagic.the.homebrew@gmail.com 342d1c1bf3 - fix text for Phage the untouchable
- some cleanup of ManaCost parser's code (please avoid copy/paste whenever possible. Less lines == less bugs)
2010-09-20 09:25:30 +00:00
wagic.the.homebrew@gmail.com bdc43052d3 Erwan
- support for tinyCrops see http://wololo.net/forum/viewtopic.php?f=15&t=2197
- card images can now be named after the card's name (ex: sets/10E/Ancestor's Chosen.jpg , or sets/10E/10E.zip:Ancestor's Chosen.jpg)
- yet another attempt at fixing tokens in the shop
2010-09-20 07:10:21 +00:00
wagic.the.homebrew@gmail.com 279dcaebbe Erwan
- Adding kaioshin's wallpapers
- Reformatting some things in the credits text
2010-09-18 10:40:39 +00:00
omegablast2002@yahoo.com a1885790dd SMALL TWEAK the last one was facepalm worthy 2010-09-17 18:14:33 +00:00
omegablast2002@yahoo.com 10a4cc61a6 small tweak 2010-09-17 18:02:03 +00:00
omegablast2002@yahoo.com 65673ca0b2 added support for no max hand size, added nonstatic lifetotal checks, added a check for how many equips a card has, added a fix for a typo in affinityswamp. 2010-09-17 17:37:18 +00:00
wagic.the.homebrew@gmail.com 341c48eb61 Erwan
- swapped StyleManager.h and .StyleManager.cpp files in VC++ project
- attempt at fixing issue 451 (tokens in momir), please verify. Also attempt at fixing tokens in shop.
2010-09-17 11:25:33 +00:00
omegablast2002@yahoo.com 29baed7d4a tweaked MNguyens menu improvements by Mnguyen 2010-09-17 09:07:09 +00:00
omegablast2002@yahoo.com 5939cbded8 added MnGuyens further improved menu handling and extra options. 2010-09-17 06:34:12 +00:00
wagic.the.homebrew@gmail.com 3965505b15 wololo
- Adding DJardin's port to N900
2010-09-16 13:12:05 +00:00
omegablast2002@yahoo.com b507053a1d fixed storm spellcount, affinity/manaredux invis mana, added true "retrace" added 3 new extra cost types. 2010-09-14 17:15:33 +00:00