Commit Graph

2705 Commits

Author SHA1 Message Date
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
solo81@web.de
01da70f9dc Changed the name of FAL to PD2 (thanks to KF1!). 2010-11-28 14:36:54 +00:00
solo81@web.de
790d1ffce6 Added "Premium Deck Series: Fire and Lightning". 2010-11-28 11:14:53 +00:00
wagic.the.homebrew@gmail.com
36391e271f Erwan
- fix a bug where deck unlocks wouldn't be saved (and reset after quitting the game)
2010-11-28 05:14:47 +00:00
wagic.the.homebrew@gmail.com
3253006cb9 Erwan
- Adding Kaioshin's new background
2010-11-28 04:27:15 +00:00
wagic.the.homebrew@gmail.com
1f83f21127 Erwan
- version string update / replaced "beg for donation" text in game end screen
2010-11-28 04:23:30 +00:00
wagic.the.homebrew@gmail.com
52fce24bf8 Erwan
- Added AI Decks unlock system. Please update your graphics folder, and crossing fingers that Ilya B. is still around as I don't have the correct fonts.
2010-11-28 04:15:58 +00:00
omegablast2002@yahoo.com
84c2bd5a1e fresh eboot 2010-11-27 20:50:17 +00:00
omegablast2002@yahoo.com
62e1dfa0d0 last adjustment for today, promise...Ai will now use tappers/untappers religously based on card ranking. 2010-11-27 20:47:34 +00:00
omegablast2002@yahoo.com
0dae942cd0 final adjustment, moved a couple things in the foreach and altered a condiation to suit unknown foreachs, generally its always a good idea to use these cards, since thier effects only get better and better. 2010-11-27 19:56:00 +00:00
omegablast2002@yahoo.com
7c7280a8de forcing eff of ability modifying to 0 if creature already has it. 2010-11-27 19:29:18 +00:00
omegablast2002@yahoo.com
01d46fd0d1 changed the target checking function of lifer in Ai training, sometimes it would return the creature as the target and Ai would refuse to use it. 2010-11-27 18:53:52 +00:00
omegablast2002@yahoo.com
6467ab5aa8 reduced abilitymodify eff slightly increased base eff, added abilitygranted to activated. 2010-11-27 18:28:38 +00:00
omegablast2002@yahoo.com
e23e3d0728 more Ai training: use ability modifiers on creatures that dont already have the ability and prefferedly during first mains, use life altering cards as often as possible, improved foreach a little more, use untappers on card that are tapped that belong to Ai and tappers on cards that are not tapped that belong to player 2010-11-27 18:05:35 +00:00
techdragon.nguyen@gmail.com
76dc9a2379 Issue 533: restoring "glowing" effect of stars in menu items. 2010-11-27 16:57:14 +00:00
Xawotihs
4f54425fb3 Added return and esc key as binding to MENU 2010-11-27 16:08:11 +00:00
omegablast2002@yahoo.com
3151dfd348 Better Ai: Foreach training, reduced Eff on "levelingup" based on cards in hand/maxxed in 2nd main, added a selectAbility() call after lands are played and after all cards were searched if none were found to play. after much playtesting i found that if given the chance to find an ability BEFORE playing cards, Ai does dramatically better during a match, the same goes if its given a chance to find one after it looked for stuff to play.
with this change please try playing a few matchs against vanguards chosen and wraith feast, my 2 most favorate decks to fight now. youre in for a treat :)

keep in mind that even tho ive taught Ai Foreach in a somewhat crude manner it still does not understand how much mana it can gain from a foreach manaproducer, and this does not make it suddenly use dark ritual correctly. however this change was dramatic enough that i wanted it in for 14.1

this is also still under massive play testing, however no issues were found so far with it as it is presented here.
2010-11-26 22:10:43 +00:00
wrenczes@gmail.com
75345469ee File addition for my threading work. This has no impact on the build until I tie in my other changes. 2010-11-26 19:41:15 +00:00
techdragon.nguyen@gmail.com
5bb435d525 restoring rendering of stars 2010-11-26 11:22:05 +00:00
Xawotihs
4951442499 Improved texture loading on iOS 2010-11-25 23:18:57 +00:00
techdragon.nguyen@gmail.com
29805852c8 changed vertical scroller as per wololo's suggestion. Scroll speed is a function of the
dt value gathered from Update() instead of ticks.
2010-11-25 16:39:22 +00:00
techdragon.nguyen@gmail.com
22b743ccdf restoring scroller on main page to normal speed 2010-11-25 13:52:36 +00:00
techdragon.nguyen@gmail.com
77cfdf4571 implemented wrapping horizontal scrolling for deck selection screens 2010-11-25 11:32:18 +00:00
techdragon.nguyen@gmail.com
e4c8469490 implemented vertical scrolling.
created new class VerticalTextScroller to handle task display in deck selection screens
modified detailed popup placement on deck selection screen to compensate for lack of border
2010-11-24 16:12:18 +00:00
omegablast2002@yahoo.com
2aa47cd68b reverted the change i made, found specail cases where this cause bugs. 2010-11-24 14:40:06 +00:00
omegablast2002@yahoo.com
d1577ef35e corrected an issue where the player was being offered interupt 2 times for "combat damage" not closing the ticket until i can get some help verifying that it covers all cases where it might be true. 2010-11-24 13:46:27 +00:00
techdragon.nguyen@gmail.com
de60166440 disabled popup border until solution can be made to work on PSP in an acceptable manner. 2010-11-24 00:35:57 +00:00
Xawotihs
6ae7717de2 included debug files in Qt project 2010-11-23 23:36:55 +00:00