Commit Graph

4121 Commits

Author SHA1 Message Date
techdragon.nguyen@gmail.com
217bc910b6 modified python script to build standard or ios resource packages.
Usage: createResourcezip.py [--platform=[ios,android]]

Currently only iOS is the only other platform supported.  android, maemo, meego, etc will need to be added if core files are different from standard core files
2011-12-31 17:36:59 +00:00
techdragon.nguyen@gmail.com
c515837172 On iOS the user only has access to the Documents directory via iTunes. Our folder structure is setup as such to read from the Res directory. This change allows users to drop in zip files into the Documents folder and the game will automatically move the zip file into the Res folder on app startup. Note, this is only done on app startup. If the game is running in the background, the user will need to quit the app ( kill it via the multithreaded task bar) and restart it.
Jailbroken devices have full access to the filesystem and don't have this restriction.  although I do recommend that they do drop zip files into the Documents directory to reduce the risk of causing any undefined behavior with updating the config files while the game runs.
2011-12-31 15:02:37 +00:00
omegablast2002@yahoo.com
460be7854a tweaked an ai change i made, found some lands (ie:cloudpost) are not considered either good or "dontknow" so they fall into lottery chance, all land that isn't considered good should fall under "dontknow" not lottery.... 2011-12-31 14:31:39 +00:00
techdragon.nguyen@gmail.com
2882724638 fixed compiler warnings found on Windows build 2011-12-31 14:31:35 +00:00
techdragon.nguyen@gmail.com
dfa007cecb implemented platform independant clickable OK button on gui combat window when selecting blocker order. removed iOS specific coding. 2011-12-31 08:21:00 +00:00
wagic.the.homebrew
f93246c75c - Android version now downloads the googlecode file 2011-12-31 03:39:37 +00:00
techdragon.nguyen@gmail.com
c88ed95c95 enabled touch code for handling choosign blockers on touch interface.
TODO:  Please have somebody test on non-Touch device.  I don't have one anymore.  If it breaks it let me know and I'll make it a compile time option.  Seems to work with 2 and 3 blockers.  I couldn't get the game to get 4 blockers on the screen, but I think it should work the same.  This should be cross platform and not iOS specific
2011-12-30 23:42:13 +00:00
techdragon.nguyen@gmail.com
e102d3f369 enabled OK button on GuiCombat screen when choosing defenders/attackers. iOS solution only currently. To implement in Android, we need to create a mask/invisible button above the OK button coordinates and add a listener to activate when a user touches the appropriate area. Not ideal, but it works for now.
TODO:  translate functionality into core of engine.
2011-12-30 16:04:21 +00:00
omegablast2002@yahoo.com
7fef90f943 added Undead Alchemist to unsupported.txt 2011-12-30 05:39:56 +00:00
Xawotihs
e17b75cf34 Updated Qt frontend to download resource package directly from google code and cleaned up the transition between the QML and Wagic interfaces 2011-12-29 23:42:20 +00:00
Xawotihs
8d6566da0f Renamed the resource package to core_017.zip and added a renaming of settings and player options.orig.txt 2011-12-29 22:28:13 +00:00
Xawotihs
02b04e6524 Adds a python script to create the resource zip package 2011-12-29 21:28:45 +00:00
omegablast2002@yahoo.com
be33659081 fix for cumulative upcost, extra cost were not being multiplied
[card]
name=Phyrexian Soulgorger
auto=cumulativeupcost[{S(creature|myBattlefield)}] sacrifice
text=Cumulative upkeep - Sacrifice a creature. (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.)
mana={3}
type=Snow Artifact Creature
subtype=Construct
power=8
toughness=8
[/card]
was only charging you 1 sacrifice per upkeep.

added thisTargetComparison, this(cantargetcard(targetchooser))...its a thisdescriptor that compares if the card can be targeted by a target chooser...
2011-12-29 19:55:45 +00:00
omegablast2002@yahoo.com
311c280427 removed undead alchemist. 2011-12-29 16:42:19 +00:00
wagic.the.homebrew
506952e2da - made Filedescriptors pool a compile-time option. This should fix some issues found in previous revision 2011-12-29 13:15:44 +00:00
wagic.the.homebrew
591f0e0d30 - fix for issue 772
- fixed some issues in zstream that prevented to use "getline" in zipped streams 
- added a "pooled buffers" system to keep a cache of file descriptors. This is potentially dangerous though, but shaves several seconds of loading time on the PSP. If problems arise on other platforms I'll make it a compilation parameter
- gracefully fail when calling manacost information on a not properly initialized mana cost
2011-12-28 16:14:08 +00:00
guzhenjie1@gmail.com
9e80314f6d Removed the blank space in the end of Crosis, the Purger. 2011-12-25 12:57:11 +00:00
omegablast2002@yahoo.com
b2a5ee774c corrected the card cycles that were using a loophole to use " may pay(", re-add Rupture Spire, corrected a couple badline errors. 2011-12-25 01:09:02 +00:00
omegablast2002@yahoo.com
53b1c4a742 2 major bug fixes and 1 minor fix
first somehow accidentally line 3616 mtgability.cpp removefromgame was adding an observer instead of removing it, this explains "abilities sometimes acting strangely or not being removed"...I'm surprised it didn't create memleaks or extremely visible side-effects...
2nd fixed a bug where triggered abilities would share a menu with activated abilities of a card when ever you had enough mana floating to pay an activated ability before the trigger resolved.

adjust the way ai calculates if it should use cards like wrath of god, though it is still open to using it at a random chance, i noticed that the method we use might not be the best.
an ability with an eff of 1 for example actually has a 10% chance of being choosen....
lets say rng rolls 3402
when you % this it simply takes the 2 last numbers making this roll 2...meaning that unless we assign no "random chance to do blah" the actual chance of ai using a stupid ability is 10%...I'm leaving that logic how it is tho I "unfactored"(?) it to make it easier to track the numbers, also added a debug trace to help see how often we hit "lottery chance" ...
fixed a minor crash from multiability trying to fetch menutext when no abilities existed in the vector anymore.

this patch introduces a new subkeyword for "may " which is syntax pay(manacost)
auto=may pay({w}) untap
this is to allow the card group that was coded using the activated ability loophole i described at the start. it works the same way as it did with the loophole only it is actually something we want to happen instead of a flaw in the engine...you float the mana same as before and when the may line is triggered it will check if payment can be made with exist mana if so then it displays the menutext for the ability, if that ability is choosen it then charges you the mana directly before activation. 

this patch also include flip( ability, tho not intended originally for this version, I had previously had it finished and was polishing it right before I noticed the bugs above. since this keyword is not intended to add cards for this version, I wont go into massive details about it at this time.
2011-12-25 01:01:20 +00:00
Xawotihs
e5417319b8 - Android port fixes for the Qt frontend
- Coded a small resource downloader in QML from the Qt frontend. It's completly useless for the moment and it's poorly integrated
- Various tweaking in the Qt project file for Symbian and Android
2011-12-20 23:11:27 +00:00
Xawotihs
c74f22dae3 Adds a small class to download files from the Qt frontend 2011-12-20 22:37:32 +00:00
punkeduard@gmail.com
3803d126bc Added mystical teachings, this card is so awesome 2011-12-20 06:27:39 +00:00
omegablast2002@yahoo.com
16072233ee changed quillspike test to use a creature with -1/-1 counters on it. quillspike was corrected a few revs back but test was written for the incorrectly coded quillspike. 2011-12-20 01:46:27 +00:00
techdragon.nguyen@gmail.com
e308d9cd47 fixed compilation error for android builds as referenced in forums. http://wololo.net/forum/viewtopic.php?f=16&t=3366 2011-12-20 00:00:00 +00:00
techdragon.nguyen@gmail.com
0a19a61ea6 removed double tap gesture recognizer
added some helper methods to reduce code duplication. 
added a magnitude calculation method.  not currently used but possibly in the future..
2011-12-18 15:59:21 +00:00
jean.chalard
07582eca45 Switch the default linux target to qt.
The old X11 version can still be built with make x11.
If this breaks some use cases, please tell me - it's hard to
predict. My minimal testing seems to indicate it works, and
make does the heavy lifting for us.
2011-12-18 12:40:47 +00:00
jean.chalard
d1a30f10a5 Add a rule to generate the qt Makefile 2011-12-18 12:15:50 +00:00
jean.chalard
3e12180bad Small cleanup
- Remove an unused variable
- Fix the coding system
- Remove trailing whitespace
2011-12-18 12:00:14 +00:00
jean.chalard
d93fdb2d4a Fix the Linux build. 2011-12-18 09:40:35 +00:00
jean.chalard
7264d6f0e2 Fix the build for Linux 2011-12-18 09:25:45 +00:00
punkeduard@gmail.com
316d9b2c0d Added Ajani vs Nicole Bolas Dual deck series
fixed some primitives and updated unsupported.txt
2011-12-17 23:47:08 +00:00
techdragon.nguyen@gmail.com
04f6366619 changing pragma mark directives to use cross platform comment "//MARK: "
#pragma mark is specific to XCode
2011-12-17 15:56:47 +00:00
techdragon.nguyen@gmail.com
3bfb68f96c modified touch interface to be a little more fluid on iOS 2011-12-16 11:09:40 +00:00
techdragon.nguyen@gmail.com
4b137e0b6b added numeric support for iOS. Numbers were being ignored earlier 2011-12-15 17:51:29 +00:00
techdragon.nguyen@gmail.com
9733444320 adding missing binary for google admob SDK 2011-12-15 17:21:56 +00:00
techdragon.nguyen@gmail.com
cab7a2a09f updated provisioning profile definitions 2011-12-15 11:30:47 +00:00
techdragon.nguyen@gmail.com
a6b2a43188 fixed compile error. sorry, missed this one on last check in 2011-12-15 11:26:26 +00:00
techdragon.nguyen@gmail.com
9c10f47daa adding adNetwork SDKs for AdWhirl and AdMob 2011-12-15 11:18:37 +00:00
techdragon.nguyen@gmail.com
dc7d52c48c added new signature for SendCommand in JGE that takes in a command string and a parameter
added native keyboard handling in iOS
TODO: add same feature for Android tablets/phones
2011-12-15 11:11:08 +00:00
punkeduard@gmail.com
f9016f70ab Fixed some primitives
Updated unsupported.txt
Added the following undergraded cards:

Brutal Nightstalker
Dauthi Mindripper
Disciple of Griselbrand
Disciple of Griselbrand
Dying Wail
Ghost-Lit Stalker
Ghastly Discovery
Haunted Cadaver
Helm of the Ghastlord
Mindstab Thrull
Needle Specter
Sadistic Hypnotist
Shrieking Grotesque
Shrine of Limitless Power
Silent Specter
Soldier of Fortune
Splitting Headache
Trapfinder's Trick
2011-12-14 19:54:16 +00:00
techdragon.nguyen@gmail.com
8550b70e2e fixed issue with crashes on devices that only support openGL 1.1 2011-12-13 22:28:16 +00:00
omegablast2002@yahoo.com
8b7ae968a5 fixed Varchild's Crusader 2011-12-13 20:52:40 +00:00
wagic.the.homebrew
2e3331a0c0 - Speed improvements to the filesystem (partial fix for issue 767)
- minor speed improvement in the shop (removed a locked texture loading that wasn't necessary)
2011-12-13 15:14:47 +00:00
wagic.the.homebrew
54a2f949b7 - Fix case sensitivity issue for some card sounds
- added null checks for "shadow" textures
2011-12-12 13:10:33 +00:00
techdragon.nguyen@gmail.com
db664e2836 added some error handling for downloading core files. app will display a message if an error has occurred while downloading and then retry the download after user dismisses the alert.
TODO;  replace string literals with constants or static NSString objects.
2011-12-12 12:24:12 +00:00
punkeduard@gmail.com
59b1c8167e Fixed some primitives, changed Baru fist of kosa in _cards.dat
Updated the unsupported.txt file to reflect the 2 card afari added some days ago

Added some undergraded cards (crappy as not chosen discard)

Augur of Skulls
Bog Down
Brain Weevil
Cao Cao, Lord of Wei
Compulsive Research
Consult the Necrosages 
Cunning Advisor
Elder Mastery
Esper Charm
Funeral Charm
Mournwhelk
Piracy Charm
Tendrils of Despair
Three Tragedies
Unburden
Unnerve
Voices from the Void
Waking Nightmare
Wit's End
2011-12-12 04:21:22 +00:00
wagic.the.homebrew
c9fd53808f - fix compilation issue on psp
- attempt at reducing loading times on the PSP: I merged a few graphics files together, removed some unused calls from the initialization functions, and moved some other ones to have a more lazy approach. The PSP version remains fairly slow in some parts (especially loading, but also entering the shop, or starting a new game), so I will try to reduce file access as much as possible in the days to come. Not a release blocker IMO though, but I4d sure love if it were faster.
- uppercased "Track1.mp3" to be in line with the actual filename. Most likely this had been broken forever on case-sensitive OSes
- I removed costly calls from the textscroller. I believe it wasn't very useful in its previous state. Now it's only "advertising" for unlockable stuff, which I think is ok (and allows to refresh it every time the menu is loaded)
- As a counterpart, added a "% complete" progress bar in the menu, something I wanted to add a while ago.
2011-12-11 13:48:24 +00:00
techdragon.nguyen@gmail.com
f8f5c24304 reverted accidental change to modrules.xml
added missing appdelegate chagnes for previous changes.(iOS only)
removed system copy of bundled Res folder with app deployment (iOS only)
2011-12-11 10:04:55 +00:00
techdragon.nguyen@gmail.com
e58f96afad fixed iPad splash screen issues. fixed memory leak 2011-12-11 09:12:44 +00:00
techdragon.nguyen@gmail.com
128c60bc2b added download feature for iOS port
required libs: 
    * ZipArchive - Obj-C impl of zip
    * asi-http-request : http request help to assist with asynchoronous downloading of files
    * minizip : support for ZipArchive
    * 
Added default splash screen for iOS app.  (using the Wagic background to keep it neutral to module)

TODO: refine handling for iPad splash screen
    * add selection screen and input screen for location of downloadable content. (ie core files, image files, etc )
    * add support to opt out of backing up to iCloud for core files. Right now iOS will automatically backup all files under Documents folder to iCloud.  Consider only allowing player data to be backed up to iCloud.  All graphics and other assets are considered volatile.
2011-12-11 07:40:22 +00:00