The Last Homely House

Undying Lands => Valinor => Topic started by: MarcinS on August 27, 2011, 02:30:08 PM

Title: Gemp-LotR Online teaser
Post by: MarcinS on August 27, 2011, 02:30:08 PM
Hey, just to show you what's coming - a short teaser of the Gemp-LotR. It's a project I've been working on for the last 3 weeks. It allows you to play LotR TCG against other players online using a web browser. It also works on smartphones (tested on HTC Desire). The program takes into account all rules so there will be no need of adding burdens, wounds, drawing cards manually, all will be done by the system.

The first set (Fellowship of the Ring) should be available to play in about 3-4 weeks. I still need some help with the graphics and user interface, so if anyone is willing to help me out (I beg you), just send me a PM on the forums.

Thanks!

Here is the teaser video on YouTube (sorry for the video quality - crappy lighting and WebCamera):
http://www.youtube.com/watch?v=RDgyOkncDqo
Title: Re: Gemp-LotR Online teaser
Post by: Gil-Estel on August 28, 2011, 03:42:12 AM
It looks great, no doubt about that. What are the advantages compared to GCCG?
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on August 28, 2011, 04:19:17 AM
It looks great, no doubt about that. What are the advantages compared to GCCG?
1. No installation required.
2. Works on all platforms.
3. Faster gameplay, as you don't have to manually add twilight, wounds, etc.
4. No cheating possible, therefore fair competition, so leagues and tournaments are a possibility.
5. Extensibility, hence I can build extra features on top of the platform, like sealed leagues, where you are allowed to build a deck and play only with cards you have in that league for the duration of the league, etc.
Title: Re: Gemp-LotR Online teaser
Post by: Gil-Estel on August 28, 2011, 04:53:09 AM
Well, I'm intrigued.....
Title: Re: Gemp-LotR Online teaser
Post by: Kralik on August 28, 2011, 08:18:52 AM
4. No cheating possible, therefore fair competition, so leagues and tournaments are a possibility.

Cheating is very difficult on GCCG, and amount more to "sleight of hand" versus anything (like playing a card from your collection and hoping your opponent doesn't notice). Other cheating is blatantly obvious (Mager moving draw decks around...)
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on August 29, 2011, 09:11:00 AM
Short update on status of the project:
60/365 cards from FotR implemented
5/365 cards from FotR tested
1 critical client feature missing - choosing required Action to play from multiple triggering at the same time
1 critical server feature missing - win/lose conditions (burders, loss of ring-bearer, safely arriving at site 9)
Title: Re: Gemp-LotR Online teaser
Post by: FM on August 29, 2011, 11:48:56 AM
Cheating is very difficult on GCCG, and amount more to "sleight of hand" versus anything (like playing a card from your collection and hoping your opponent doesn't notice). Other cheating is blatantly obvious (Mager moving draw decks around...)

Yes, but this system would get completely around it, meaning no player would have to be frustrated when playing Mager since people would get no chance to be a #$&*@! other than by means of chat (which is always available anyway, so...). Browser playability is also very cool...
Title: Re: Gemp-LotR Online teaser
Post by: CoS on August 29, 2011, 01:17:44 PM
Will it play on an Iphone4? Without flash?
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on August 29, 2011, 01:59:27 PM
Will it play on an Iphone4? Without flash?
I'd say 99% yes, I think it runs Safari web browser, right?
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on August 30, 2011, 05:41:03 AM
Another list updates:
I have put the code on Google Code, so you can monitor the progress (I'm trying to put descriptive comments on commits), take a look at the code if you're interested, or even implement some cards if you can stand up to the challenge. It's not so difficult, as 90% of the cards is just typing mechanical work, especially the minions. Most of the time you can just copy/paste code from another card and do some minor changes and you're done. The larger amount of cards that are implement, the faster it becomes.

The project is here:
http://code.google.com/p/gemp-lotr/updates/list

I've done roughly 10 cards today, so getting to ~70/365, I've also done some testing yesterday and fixed some major issues with the cards, so I guess I'm doing a good progress.

I'll try to do some iPhone testing today or tomorrow. I'll post here, what's the result.
Title: Re: Gemp-LotR Online teaser
Post by: FM on August 30, 2011, 06:56:15 AM
Ok, send me a PM with what format you need cards typed in (and what file type, as well), and I'll do as many as I can and send them back.
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on August 30, 2011, 07:04:48 AM
Ok, send me a PM with what format you need cards typed in (and what file type, as well), and I'll do as many as I can and send them back.

I might have mis-expressed myself. What I mean was to actually implement the cards. It's not so difficult, if you actually know Java language, here is an example of a simple card (Bred for Battle). It requires not much thinking, just typing:

Code: [Select]
public class Card1_121 extends AbstractLotroCardBlueprint {
    public Card1_121() {
        super(Side.SHADOW, CardType.EVENT, Culture.ISENGARD, "Bred for Battle", "1_121");
        addKeyword(Keyword.SKIRMISH);
    }

    @Override
    public int getTwilightCost() {
        return 0;
    }

    @Override
    public List<? extends Action> getPlayablePhaseActions(String playerId, LotroGame game, final PhysicalCard self) {
        if (PlayConditions.canPlayShadowCardDuringPhase(game.getGameState(), game.getModifiersQuerying(), Phase.SKIRMISH, self)
                && Filters.canSpot(game.getGameState(), game.getModifiersQuerying(), Filters.keyword(Keyword.URUK_HAI), Filters.canExert())) {
            final PlayEventAction action = new PlayEventAction(self);
            action.addCost(
                    new ChooseActiveCardEffect(playerId, "Choose an Uruk-hai", Filters.keyword(Keyword.URUK_HAI), Filters.canExert()) {
                        @Override
                        protected void cardSelected(LotroGame game, PhysicalCard urukHai) {
                            action.addCost(new ExertCharacterEffect(urukHai));
                            action.addEffect(
                                    new AddUntilEndOfPhaseModifierEffect(
                                            new StrengthModifier(self, Filters.sameCard(urukHai), 3), Phase.SKIRMISH));
                        }
                    }
            );

            return Collections.singletonList(action);
        }
        return null;
    }
}
Title: Re: Gemp-LotR Online teaser
Post by: FM on August 30, 2011, 07:06:20 AM
Ok, we'll talk by PMs.
Title: Re: Gemp-LotR Online teaser
Post by: CoS on August 30, 2011, 08:08:32 AM
I would be thrilled with LoTR via my Iphone4! Put me on the test group list, I beta tested LotRO for Worlds Apart back in the day :)
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on August 31, 2011, 02:36:36 PM
Another progress report:
All Dwarven+Elven+Isengard+Rings implemented, I also did some sites which means:
122/365 (that's over 1/3)
I've done some testing as well, as cleaned up the code to make it more difficult for me to mess up the card code, so it might need less testing.
Title: Re: Gemp-LotR Online teaser
Post by: Sabrien Reed on September 03, 2011, 05:39:16 PM
YOU ARE A LEGEND!

I am not sure about publicising via youtube for legal reasons though.  I think this is why GCCG for LOTR is only talked about inside Last Homely House and not outside.  I could be wrong though.
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on September 06, 2011, 11:25:47 AM
Here is another progress report:
Cards implemented: 225/365 (62%)
Deck builder is already done, but in a very crude form. Decks can be stored for player.
Title: Re: Gemp-LotR Online teaser
Post by: Drachu84 on September 08, 2011, 04:54:53 PM
This project looks just amazing, and in my opinion has a big chance to become nr 1 in online lotr playing. If i can help in anyway, just PM me :)

Pozdrawiam z Krakowa :)
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on September 11, 2011, 03:16:51 AM
I've been busy this week. I've finished all the FotR cards. I will concentrate on testing them, polishing the user interface and adding chat now. Everything should be ready in 2 weeks.
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on September 13, 2011, 04:07:50 PM
I've recorded a second teaser. I had some problems with internet connection in the middle, so I had to cut and edit the video a bit. Hope you enjoy it:
http://www.youtube.com/watch?v=nRB-ftwnUiQ

[edit]
Just noticed the sound quality is really bad, sorry for that.
Title: Re: Gemp-LotR Online teaser
Post by: MarcinS on September 17, 2011, 04:43:57 AM
And Frodo falls on Bridge due to hordes of Moria orcs...
http://imageshack.us/photo/my-images/809/frododiesonbridge.png/