Commit Graph

2732 Commits

Author SHA1 Message Date
omegablast2002@yahoo.com
e8e8553cd0 fixed psp compiling. 2010-12-04 06:26:05 +00:00
wrenczes@gmail.com
92bbb78ed1 Fix for [PSP|PC]ability menus and card view switch causes a crash. This broke as a side effect to the addition of the 'details' option that Mike added - the ActionStack had very rigid interpretations of what a valid control ID would be (either -1, or a valid id in its container). As kInfoMenuID is assigned a value of -200, this would crash when attempting to look up that index value in the vector.
I've patched the problem so that ActionLayer checks for a valid ID before doing anything, and does a no-op for IDs it doesn't know how to handle. However, this only fixes the problem during gameplay.  It's quite possible that hitting the triangle button in other places in the app might equally cause a crash.


Issue: 544
2010-12-04 04:25:43 +00:00
omegablast2002@yahoo.com
b5ec029d79 couple changes, first i re-added my fancy getMenuText for becomes/transforms abilities, somewhere in the refactor these were forgotten. Fix "Swap" ueot menutext display, it was returning "ability".
fixed a Ai related bug, taught Ai not to mill itself to death basically. played a few matches which Ai was just destroying himself with a creature that allowed him to draw cards for each(whatever) in play. Ai will be a little more careful not to kill himself by Mill, also not to draw 30 cards in a turn when it clearly cant play them.
2010-12-03 20:59:46 +00:00
omegablast2002@yahoo.com
b07b772c8e MAJOR fix to something was was causing very weird results ingame.
the tag "other " vs tag " other"

using "other " in target choosers will always work, however more often then not using " other" at the end of a line would produce weird effects, this was brought to my attention in a bug report by KF1, i moved all the " other" from outside target chooser into the actual target lines, as this always produces correct results in code, i imagine the tag at end of line was added before "other " was intruduced into targetchooser.

i will leave support for using " other" in code, however, i ask that we try not to use this code unless for some strange reason the targetchooser "other" doesnt take to the code.

stranger was that i noticed alot of mixed code, as in lord(other blahblah) 1/1 and this version with other tag at end, it was very inconsistent aside from causing weird weird results in game which i was actually able to confirm.

please update your primitive!!! this was ALOT of work.

correct syntax for "other "
lord(other blah)
all(other blah,blah,blah)
damage:1 target(other blah)
target(other *|somewhere)
notice its always first followed by a space. you only need one instence "other " in a targetchooser.
2010-12-03 13:08:53 +00:00
omegablast2002@yahoo.com
336b25c0f5 init'ed the variable "mFindingAbility" bool in Aiplayer constructor and changed its name from previous name "findingAbility" to keep in line with recent code rules.
added COMMENTS to explain the variable.
2010-12-03 12:10:35 +00:00
guzhenjie1@gmail.com
e71fb8ff46 Add text for follow duel lands:
Blackcleave Cliffs
Copperline Gorge
Darkslick Shores
Razorverge Thicket
Seachrome Coast
2010-12-03 11:09:08 +00:00
wrenczes@gmail.com
4b7e024ce6 added DebugRoutines.h to the JGE VS2010 project. 2010-12-03 09:51:12 +00:00
techdragon.nguyen@gmail.com
fab5f9da29 fixed formatting 2010-12-03 01:09:30 +00:00
omegablast2002@yahoo.com
0f419144b5 Fixed a bug where Ai was able to do actions such as sacrifice Mogg fanatic 3 time in a row by tripping over its own clickstream, added gaurds to selectAbility() function calls to prevent Ai from running multiple instences of selectAbility before its completed running another which occurs when Ai is offered an interupt after player cast/does an action.
this also fixes the spamming of Abilities like Ai atempting to untap something more then once, or Ai uses regenerate ability multiple times on the same creature.

there will be no noticible difference in Ai game play except now it actually doesnt do the above mentioned bugs.
2010-12-02 21:30:14 +00:00
Xawotihs
802937573d Fixed a crash occuring when trying to select card with the mouse in an empty list 2010-12-02 20:35:42 +00:00
omegablast2002@yahoo.com
fb3129cad9 readding afiya grove, not sure when it was removed, but its back 2010-12-02 19:35:49 +00:00
omegablast2002@yahoo.com
08b6779d59 forcing Ai to attack with creature that have "treason" ( the ability that sacrifices cards like ball lightining at end of turn)
since the creature is going to die anyways, might as well send it in and see if it can kill something.

and yes i consider ai being THAT stupid a bug :P
2010-12-02 18:43:39 +00:00
omegablast2002@yahoo.com
2a4b0e28f0 another tweak, sorry! forgot i needed to compensate for removing the base by increasing the actual. 2010-12-02 17:06:20 +00:00
omegablast2002@yahoo.com
03bc34101f reduced abilitygranting base eff to 0, aparently when Ai has nothing better to do it spams ability grantings, but it should be playing cards. 2010-12-02 16:46:45 +00:00
techdragon.nguyen@gmail.com
b8658bf04f modified final sentence for it to be grammatically correct. LOL 2010-12-02 16:23:23 +00:00
omegablast2002@yahoo.com
d693887df9 wei ambush had a typo in the trigger. attcking( missing an "a" 2010-12-02 15:36:41 +00:00
wagic.the.homebrew@gmail.com
81153939f9 Erwan
- Fix a bug where AI would not check for the NULL status of some variables before calling functions on them. This would cause crashes that could seem random ingame. Possibly fixes issue 541
2010-12-02 14:03:10 +00:00
wagic.the.homebrew@gmail.com
15d504c160 Erwan
- fix for issue 539 . It is now possible to provide several possible paths in Res.txt, the game will use the first one that matches. If none of them works, it reverts to the oldschool "Res" folder
2010-12-02 12:56:18 +00:00
techdragon.nguyen@gmail.com
bcca766cb6 Premade decks will not create/update stats on battles.
Update description for default premade deck to allow proper wrapping of text.  
Issue: 540
2010-12-02 08:36:36 +00:00
wrenczes@gmail.com
720ee30c9a Fix for issue 518, Shop "background light" image "candle effect" not working. Basically some bad math made the alpha clamp all the time at its max value of 50. Now we pick a random number distribution between -25 and + 25 for the alpha offset value. 2010-12-02 07:42:32 +00:00
wrenczes@gmail.com
2693f35506 Fixed the graphics whiteout bug I introduced when switching profiles. When Refresh() was being called on the texture, the bitmap wasn't been re-transferred back into the openGL context.
While debugging this, I noticed a separate issue:  when changing profiles, we'd actually call refresh twice.  Removed the spurious call, as reloading profiles doesn't need to concern itself with the image cache - that's already covered by the game options menu.

Also did some minor formatting / cleanup in the JGfx code for PSP - stubbed out a bunch of JLOG calls I had put in while debugging the PNG loading code.
2010-12-02 04:04:03 +00:00
techdragon.nguyen@gmail.com
8fa6578757 adding me4 for abra 2010-12-01 16:29:36 +00:00
omegablast2002@yahoo.com
68a7d418e9 Hiding "New Deck" option when "Create a Deck!" option is showing.
it was redundent.
2010-12-01 13:35:53 +00:00
guzhenjie1@gmail.com
17f61df89e Fix following cards:
Kashi-Tribe Elite
Kashi-Tribe Reaver
Kashi-Tribe Warriors
Matsu-Tribe Birdstalker
Orochi Ranger
Rancor
Vulshok Heartstoker
Wei Ambush Force
2010-12-01 12:56:32 +00:00
wrenczes@gmail.com
af6c7bd1f0 Ran VS formatting on this file, as the indentation was all over the place. No actual code changes here. 2010-12-01 08:54:45 +00:00
wrenczes@gmail.com
65e38b0694 Another change that looks bigger than it is: changed out the global extern WResourceManager to a real singleton. This means that it's no longer being init'ed at static initialization time, and we can debug construction/destruction properly; it's also safer in a multithreaded context. 2010-12-01 08:22:17 +00:00
linshier
aa6aa20ba5 Fixed left offset parameter handling for center/right align string drawing. A brief note about string drawing, offset and display width is added in the WFont.h 2010-12-01 08:01:13 +00:00
wrenczes@gmail.com
a0427d99df These files were meant to be part of the previous checkin. I blame AnkhSVN yet again. Someone needs to write a Subversion tool with proper changelist support! 2010-12-01 07:20:26 +00:00
wrenczes@gmail.com
69c1ba8717 PC specific change (ie PSP not impacted) - OpenGL is not thread safe, only one thread is allowed to have the context at any given time. The JGE library was not written with multithreading in mind, so the LoadTexture call doesn't work when called on a worker thread. In order to get my threading changes to work, I had to split out the OpenGL calls to happen on a point where we're guaranteed to be back on the main thread.
Functionally, this has no impact to the current build - all I've done is effectively the texture loading to happen in JQuad's constructor instead of inside the LoadTexture() function.

Side note - I probably broke the IOS build with this change.  Sorry, but I can only build so many targets at a time - I'm simply not set up to build this platform.  As it's not a shipping target, I have to consider it a 2nd class citizen...
2010-12-01 07:19:12 +00:00
wrenczes@gmail.com
3a927dace9 Scope checkGlError() calls to be only active in debug targets (no-op in release). 2010-12-01 05:28:01 +00:00
wrenczes@gmail.com
609ece329e Splitting up my threading changes into smaller pieces, as it's getting too large. This change: pass strings by reference, never by value; some minor formatting cleanup in WResourceManager. 2010-12-01 04:27:56 +00:00
jean.chalard
f9b4f248aa J :
* Add languages in their own language
2010-11-30 18:57:28 +00:00
wagic.the.homebrew@gmail.com
50c0f1dd8e Erwan
- reduced requirements for ai decks unlocks
- attempt to fix a Quad issue when unlocking something
2010-11-30 13:29:57 +00:00
techdragon.nguyen@gmail.com
96cdb7353a fixed line endings
fixed horizontal scrolling to be controlled by a function of dt as per linshier suggestion.
  * this allows compatibility for multi-byte character sets
2010-11-30 12:15:32 +00:00
techdragon.nguyen@gmail.com
be707e2396 limiting the number of deck lookups to 6 to reduce load time 2010-11-30 05:39:17 +00:00
linshier
970cd456de Fixed some utf-8 decoding for Japanese and tweaked card text formating for multi-encoding support. 2010-11-29 17:40:21 +00:00
techdragon.nguyen@gmail.com
0c9f5cd558 moved word wrap function from Vertical Scroller into utils.
moved MTG specific functions out of utils.cpp into AllAbilities
added word wrapping to descriptions while viewing deck information.
2010-11-29 13:38:36 +00:00
techdragon.nguyen@gmail.com
4badcc374f * modified task window to define what the bracketed numbers mean.
* modified main page banner to use actual deck names and not the filename when
   displaying stats information.
2010-11-29 12:45:48 +00:00
omegablast2002@yahoo.com
8de00561d5 added 3 pixels to the y scale of the background image to cover up part of the scroller text for task which was visible under the back ground 2010-11-29 12:29:41 +00:00
techdragon.nguyen@gmail.com
b46112dfcd reverting change made in r2701
The conditions on which to "updateStats" during the rebuilding of filters needed to be updated.  stw is NULL
when rebuilding the filters due to a "UNLOCK CARDS" action.  Thus the call to stw->updateStats throws a NPE.
stw is not null only when a deck has been selected to edit.  Otherwise, it makes no sense to actually update the
stats of a non-selected deck.
2010-11-29 11:50:12 +00:00
techdragon.nguyen@gmail.com
0856ddaeb2 added missing semicolon. missed it in the check in somehow... 2010-11-29 10:12:39 +00:00
omegablast2002@yahoo.com
6e6ca0394b seperated an if( statement that was causing a crash in deck editor when you used the "unlock cards" cheat. this->needsUpdate is actually a Null Pointer at the time its checked, so having it checked in the same if ( would instantly cause the game to crash.
Issue: 536
2010-11-29 00:36:38 +00:00
techdragon.nguyen@gmail.com
83daafb3bf Issue 537: The initializer for the options needs to be told how many different values are available. 2010-11-29 00:15:01 +00:00
techdragon.nguyen@gmail.com
8fd35ac513 Improved Vertical Scrolling 2010-11-28 23:54:36 +00:00
techdragon.nguyen@gmail.com
3205ebdc8b minor formatting issue 2010-11-28 22:14:20 +00:00
omegablast2002@yahoo.com
9932e81be1 whoops was double vectoring causing names to desync, sorry! this should fix it :) 2010-11-28 21:53:20 +00:00
omegablast2002@yahoo.com
29fc58388d Added 2 new cheats, "Optimize starting hand" and "Unlock all Ai decks"
added new mana display option "No Glitter" acciddently(?) lost "both" options somehow.
the new "no glitter mana display is basically "eye candy without particle effects" on PC created 2000 mana...no FPS drop...on PSP created an EXTREMELY large amount of mana before i noticed an FPS drop of any kind, this is dramatically better then 
what was in previous rev, create 20 mana and crash.

if someone could figure out how i manage to lose the "Both" option, please explain to me why it wasnt showing up, i spent 2 hours trying to get it back.

both "optimize starting hand" and "Unlock all Ai Decks" appear in options under the option to "enable cheats"

optimize gives you decent starting hands, and Unlock all Ai decks is basically just a bypass options for the unlock deck mode varible wololo added.

tweaked abilitygranting Eff in Ai lessons to be divided by the number of cards in hand, this will mean Ai will tend to focus on using mana to cast spells instead of using them to grant abilities, until theres only 1 or less cards in hand, at this point it will go all out. there is a splash of randomness in Ai so it will still often do whatever it freaking wants lol, you should notice a proformence increase from Ai in this aspect. no more giving unblockable to a creature in 2nd main.

please note, one of the recent previous revs broke cheat mode "unlock cards" in deck editor, i filed a bug report. its a probelm i was not able to fix myself so there is no fix included in this rev....i came across the bug while testing cheat mode stuff.
2010-11-28 20:55:04 +00:00
solo81@web.de
ca3417bd40 Fixed issue495. 2010-11-28 14:53:50 +00:00
solo81@web.de
4c2d631921 Moved Eye for an Eye to the mtg_todo.dat. It probably never worked.
Closing issue521.
2010-11-28 14:50:56 +00:00
solo81@web.de
181e861e73 Fixed issue522. 2010-11-28 14:46:47 +00:00