« first day (275 days earlier)      last day (3287 days later) » 

12:00 AM
RELOAD!
[retailcoder/Rubberduck] 17 commits. 3 closed issues. 2 issue comments.
[Unihedro/JavaBot] 2 opened issues. 1 closed issue. 12 issue comments.
[Vogel612/JavaBot] 2 commits.
 
 
9 hours later…
9:09 AM
hey
 
 
2 hours later…
11:10 AM
morning @skiwi
    applySystems(game, [
        { gainResource: { res: pgres.SCRAP, value: 1, untilMax: 10 } },
    ]);
@sᴉɔuɐɹɥԀ this correctly gives me 1 SCRAP at the beginning of each turn, until I have 10 or more ^^
 
hey @SimonAndréForsberg
 
7 mins ago, by Simon André Forsberg
morning @skiwi
 
[Cardshifter/Cardshifter] Zomis pushed commit 27a96c34 to js-load: extracted keywords-enchantments and keywords-creatures
[Cardshifter/Cardshifter] Zomis pushed commit 7897714f to js-load: added JS-load support for a "gainResource" system
[Cardshifter/Cardshifter] build #859 for commit 7897714f on branch js-load passed
 
11:25 AM
@SimonAndréForsberg hey @SimonAndréForsberg
I may be stuck in an infinite loop
 
11:39 AM
20 mins ago, by Simon André Forsberg
7 mins ago, by Simon André Forsberg
morning @skiwi
 
Gotta love nicely looking Github repos that provide no documentation at all
 
12:17 PM
[Cardshifter/Cardshifter] Zomis pushed commit b090be0a to js-load: separated playerSetup and systemSetup in PhrancisGame.java
[Cardshifter/Cardshifter] Zomis pushed commit a7311785 to js-load: added system keywords: restoreResources, playFromHand, playEntersBattlefield, useCost, startCards. JSGame no longer uses systems added from PhrancisGame.java, only the playerSetup is use
[Cardshifter/Cardshifter] build #860 for commit a7311785 on branch js-load passed
 
12:59 PM
I don't if it's here but thank Santa! I'm now officially a 4k!
 
Gz @Marc-Andre
React is getting quite interesting...
The following are Javascript (ESCMAScript or JSX Harmony) files
class MessageBox extends React.Component {
    render() {
        return (
            <div className="messageBox">
                {this.props.message}
            </div>
        );
    }
}
and rendering it with
React.render(
    <MessageBox message="Hello world!" />,
    document.getElementById("content")
);
By far not ECMAScript 6 compliant yet, but going into that direction
 
1:30 PM
[Cardshifter/Cardshifter] Zomis pushed commit 5ab5290e to js-load: can now mix instances of ECSSystem within the JS data for systems
[Cardshifter/Cardshifter] Zomis pushed commit 5265c756 to js-load: added more actual systems to JSGame, also reordered a bit
[Cardshifter/Cardshifter] Zomis pushed commit 730119f3 to js-load: added system keywords: targetFilterSystem, destroyAfterUse. implemented the rest of JSGame
 
@sᴉɔuɐɹɥԀ The JSGame now works amazingly well!
It still doesn't support effects, and the 'noAttack' property has not yet been fully implemented, but... it works!
 
[Cardshifter/Cardshifter] build #861 for commit 730119f3 on branch js-load passed
 
I wonder.... is it time to merge a whole lot of branches perhaps?
I think it is
 
[Cardshifter/Cardshifter] Zomis pushed commit e497c9a2 to js-load: added retriever() default method on a ECSResource (why haven't I done this before?)
[Cardshifter/Cardshifter] Zomis pushed 100 commits to develop
4
[Cardshifter/Cardshifter] Zomis pushed commit 21372284 to develop: Merge branch 'master' into develop
[Cardshifter/Cardshifter] Zomis pushed commit f9d613c5 to develop: Merge branch 'gdx' into develop
[Cardshifter/Cardshifter] Zomis pushed commit 8bbb7789 to develop: Merge remote-tracking branch 'origin/js' into develop
[Cardshifter/Cardshifter] Zomis pushed 63 commits to gdx
 
1:46 PM
waiting for Travis...
 
[Cardshifter/Cardshifter] build #862 for commit e497c9a2 on branch js-load passed
[Cardshifter/Cardshifter] build #863 for commit 8bbb7789 on branch develop passed
[Cardshifter/Cardshifter] build #864 for commit 8bbb7789 on branch gdx passed
 
thanks, @Duga
 
[Cardshifter/Cardshifter] Zomis pushed 34 commits to js
[Cardshifter/Cardshifter] Zomis pushed 27 commits to js-load
[Cardshifter/Cardshifter] Zomis deleted branch cardload
[Cardshifter/Cardshifter] Zomis deleted branch javafx
 
@sᴉɔuɐɹɥԀ You need to do git pull next time
 
[Cardshifter/Cardshifter] build #866 for commit 8bbb7789 on branch js-load passed
[Cardshifter/Cardshifter] build #865 for commit 8bbb7789 on branch js passed
 
2:19 PM
hey @all
 
hey @bazola
 
2:36 PM
hey
 
always awesome to see progress on cardshifter!
 
@Duga HOLY CARP, I can't wait to see Mug and Ducky's faces tonight when they see that!!
@SimonAndréForsberg Which branch should I pull from?
 
@sᴉɔuɐɹɥԀ js
 
Superb, thanks for all your hard work :D
 
2:50 PM
@sᴉɔuɐɹɥԀ they won't see that. this was just a merge. @Duga doesn't count merge commits.
 
I merged develop, js, js-load, and gdx
of course, I could always access the database and change the value to make it look like there's a whole bunch of commits....
 
OK nice. Are we good to go ahead and type up the rest of the card list in JSON?
 
@sᴉɔuɐɹɥԀ yes
 
 
1 hour later…
4:02 PM
New post: How do you eat an elephant? http://importblogkit.com/2015/05/how-do-you-eat-an-elephant/
^^ Good article by nhgrif!
And hello @Marc-Andre :)
 
4:24 PM
Hey @sᴉɔuɐɹɥԀ!
 
i found some really easy to use forums software: camendesign.com/code/nononsense_forum
no need to have a database or anything
 
4:42 PM
@bazola That looks really good, are you going to use that for your game?
 
yeah
i looked at other ones that required mysql, but i don't think i need anything too fancy
 
@bazola ^^ expected?
 
I bet it`s IE
 
Could be
 
No IE is fine in my case
maybe you have a firewall preventing some content ?
 
4:47 PM
That's probably it
Company firewall is pretty tight
 
Same thing
 
there is still forums in the url
 
those links are working for me
 
No worries, I'll look at it from home :)
Do let me know @bazola if you like some help customizing the looks, I know most programmers dislike doing plain old HTML and CSS ;)
 
4:51 PM
in fact i just tried it with ie8 and that works as well ;)
@sᴉɔuɐɹɥԀ theres what it looks like, and yes it is ugly
 
^^ Agreed ;)
 
@bazola I've seen worse
 
next i am thinking about building a java application that downloads the player data from the game and builds a web page out of them for the high scores. seems like it would be pretty easy to do it manually. I would just have the html embedded in the java program, and it could just put everything together, parsing the player data manually, and writing out a .html file
also contemplating the same approach for some kind of live map webpage
 
@bazola sounds like you should look into using a Java webserver...
And I just discovered that my ResourceRetriever.getOrDefault method is broken.
@Test
public void getOrDefaultNoChange() {
    Entity creature = mod.createCreature(0, field.get(currentPlayer()), 2, 3, "B0T", 4);
    ResourceRetriever retriever = ResourceRetriever.forResource(PhrancisResources.DENY_COUNTERATTACK);
    assertEquals(42, retriever.getOrDefault(creature, 42));
}
java.lang.AssertionError:
Expected :42
Actual :0
 
5:09 PM
@SimonAndréForsberg right now everything is just basic apache
 
[Cardshifter/Cardshifter] Zomis pushed commit a4a5b58b to js-load: added retriever property to ECSResourceDefault, to avoid unnecessary object creation
[Cardshifter/Cardshifter] Zomis pushed commit 1a481759 to js-load: JSGame uses its own function for playerSetup, no longer relies on PhrancisGame for that part
[Cardshifter/Cardshifter] Zomis pushed commit 32a55185 to js-load: JSGame is no longer dependant on the action name constants from PhrancisGame.java
[Cardshifter/Cardshifter] Zomis pushed commit 89404748 to js-load: extracted keywords-systems.js
[Cardshifter/Cardshifter] Zomis pushed commit 92c83beb to js-load: removed unused PhrancisResources
[Cardshifter/Cardshifter] Zomis pushed commit 56dc8256 to js-load: added more information in JavaFX if value is not a number
[Cardshifter/Cardshifter] Zomis pushed commit 8012aa84 to js-load: fixed ResourceRetriever .get and .getOrDefault, to not automatically create ResourceData
[Cardshifter/Cardshifter] Zomis pushed commit 266a7fb3 to js-load: added hashCode and equals for ECSResourceDefault
[Cardshifter/Cardshifter] Zomis pushed commit 6cb74d77 to js-load: JSGame.js is now completely free of all PhrancisGame.java dependencies
3
[Cardshifter/Cardshifter] Zomis pushed 9 commits to js
 
@bazola if you are going to write a Java application that writes out a .html file you need to ask yourself: How often should it update the file?
If you are running a Java webserver, it will always be the latest version of the data
 
5:31 PM
^^ Woohoo!! Great job Simon!
2
 
[Cardshifter/Cardshifter] build #868 for commit 6cb74d77 on branch js passed
[Cardshifter/Cardshifter] build #867 for commit 6cb74d77 on branch js-load passed
 
@SimonAndréForsberg with the current idea it would regenerate the html at the same speed that the backups happen on the main server, so maybe every couple hours
i will have to look into it though. seems like there is always something else new to learn when you are trying to write programs
 
@bazola I could show you how to do this easily
 
I would trust @Marc-Andre when it comes to Java and web ^^
 
[Cardshifter/Cardshifter] Zomis pushed commit d808d083 to js-load: cleaned up some JS print statements
[Cardshifter/Cardshifter] Zomis pushed commit 1533e681 to js-load: added ECSResource.getRetriever() as alias for retriever()
[Cardshifter/Cardshifter] Zomis pushed commit e98dedb6 to js-load: using RESOURCE.retriever.set in JS to clean up code
 
5:55 PM
@Marc-Andre sure, do you know if it would conflict with apache and virtual hosts?
 
I don't think so. Never tested it, since I've never hosted any of my apps. But I'm sure we can make it work ;)
 
I really gotta learn how to run both Apache and Tomcat (or some Java-webserver) at the same time.
 
[Cardshifter/Cardshifter] build #869 for commit e98dedb6 on branch js-load passed
 
is what you are suggesting sort of similar to the way the cardshifter website that you and @sᴉɔuɐɹɥԀ put together?
 
AFAIK, Apache can be used as a wrapper around Tomcat somehow
 
5:58 PM
@bazola Yes exactly.
 
@SimonAndréForsberg it would definitely be awesome if i could leave the apache in place and just forward the traffic coming to that port to the webserver
 
@bazola please learn how to do it and then tell me how to do it ;)
 
@SimonAndréForsberg okay :)
maybe this would work:
22
Q: How do I redirect from Apache to Tomcat?

AlanI'm working on my first Java site. I'm running Apache Tomcat on port 8080, and Apache HTTPD on port 80. The current URL that I can access the site at is (for example) 123.4.5.6:8080. I want to remove the port number from the URL before I point the domain at the new IP. At the moment I am only us...

 
@SimonAndréForsberg Do you think what you wrote would support JS "strict mode"?
 
@sᴉɔuɐɹɥԀ I think/hope so. I will try to add strict mode
 
6:09 PM
OK. It's not top-priority IMO, but would be a good thing to make sure to support that at some point
(and it may just be a matter of adding "strict mode" in each function and changing var to let inside functions)
 
[Cardshifter/Cardshifter] Zomis pushed commit 78848100 to js-load: extracted keyword noAttack to its own JavaScript file, also implemented the actual noAttack functionality
[Cardshifter/Cardshifter] Zomis pushed commit 7831b192 to js-load: added more parameters for afterCards method
[Cardshifter/Cardshifter] Zomis pushed commit 08283626 to js-load: using JS strict mode in JSGame.js scripts
> When I asked around in the JavaScript room they recommended to declare "use strict"; at the functional level, rather than at the module level. Just letting you know, not sure what difference it would make in our case.
 
@SimonAndréForsberg Should I edit all the cards into JSGame.js or into CardData.js?
 
@sᴉɔuɐɹɥԀ JSGame.js
 
Perfect
 
I am not yet sure btw if Nashorn supports let
Caused by: jdk.nashorn.internal.runtime.ParserException: <eval>:121:4 Expected an operand but found let
it didn't
AFAIK, writing it at the top of the script applies strict mode to the entire file
 
6:21 PM
OK
 
I see no reason to add it in each function
 
Simon's on steam
@SimonAndréForsberg It's not ES6-compliant yet, but word was that it would receive an update somewhere in the JDK 8 pipeline
 
@SimonAndréForsberg OK, TBH I trust your judgement more than that of the folks in the JS room ;)
 
@sᴉɔuɐɹɥԀ TBH, I don't. If it were Java, I would, but I am no JS expert.
I want to know why they say that before I make any changes though.
if I ever will change it.
 
> Regarding your question on EcmaScript 6: Our plan is to add ES6 features
incrementally. First on our list is block scoping with let and const
which should be in the 8u40 release. We're also reviewing a patch of
contributed Array, Object, String, Math, and Number functions added in
ES6. Beyond that plans are still moving, but ES6 features will continue
to show up in update and major releases.

Complete ES6 is quite a big undertaking so it's definitely beyond JDK8
and at least the initial JDK9 release. Whether ES6 will be backported to
 
6:25 PM
@SimonAndréForsberg Understood
 
@skiwi const as in Java's final, as in cannot be changed after initialization?
 
[Cardshifter/Cardshifter] build #870 for commit 08283626 on branch js-load passed
 
@SimonAndréForsberg Not quite sure what's the difference between let and const in ES
I thought let was supposed to do that
 
> The const declaration creates a read-only named constant.
 
@skiwi nah, let is only the block-scoping version of var. var applies to the whole function, no matter where you define it
 
6:31 PM
> The let statement declares a block scope local variable, optionally initializing it to a value.
const HUNDRED = 100;
for (let i = 1; i <= HUNDRED; i++) {
    // do things
}
I think, anyways :)
 
I think so too ^^
 
@SimonAndréForsberg Oh... okay, then const is for final I think
 
6:52 PM
Hmm interesting...
var i = "hello";
for (var i = 0; i < 5; i++) {
    console.log(i); // 0,1,2,3,4
}
console.log(i); // 5
"use strict";
let i = "hello";
for (let i = 0; i < 5; i++) {
    console.log(i); // 0,1,2,3,4
}
console.log(i); // "hello"
 
^^ exactly
 
Definitely feels a lot "cleaner"
 
[Cardshifter/Cardshifter] Zomis pushed commit b0cd23a5 to js-load: cleaner resource access in JSGame.js
[Cardshifter/Cardshifter] Zomis pushed commit dbfb1786 to js-load: extracted everything related to SCRAP to keyword-scrap.js
[Cardshifter/Cardshifter] Zomis pushed commit 5bc2d25d to js-load: added requireActions to make sure some variables exist and that they are strings
 
7:14 PM
[Cardshifter/Cardshifter] build #871 for commit 5bc2d25d on branch js-load passed
 
7:57 PM
Hmm, not this, I find a bit odd
"use strict";
let i = "hello";
for (let i = 0; i < 5; i++) {
    let i = "foo";
    console.log(i);
}
console.log(i);
> foo
foo
foo
foo
foo
hello
 
@sᴉɔuɐɹɥԀ why do you find that odd?
it creates three different variables
 
I guess the presence of the inner-most let makes the scope tighter on that last i eh?
 
8:14 PM
Afaik Java doesn't have a notation of scope in a similar way?
You cannot redefine a variable inside a block, though with methodws/classes you can shadow them
 
Such a vast world of difference between Java and JavaScript, although I do like what I've seen of ECMAScript 6 so far.
 
@skiwi it has a notation of scope, but you can't use the same variable names.
 
@sᴉɔuɐɹɥԀ ES6 is looking viable
 
8:33 PM
[Zomis/Code2A] SirPython starred us
3
 
9:31 PM
okay, @sᴉɔuɐɹɥԀ, @skiwi and @bazola, this is just super cool:
I managed to accomplish that effect without restarting the server
 
[Cardshifter/Cardshifter] Zomis pushed commit a5d0ffcb to js-load: added onEndOfTurn and a pluggable print effect
 
I never thought I'd say this, but JavaScript might not be that bad after all.
3
 
@SimonAndréForsberg crazy
 
9:48 PM
not that printing 19 characters at the end of turn is a very helpful ability, but anyway...
 
[Cardshifter/Cardshifter] build #872 for commit a5d0ffcb on branch js-load passed
 
@SimonAndréForsberg Well, I'm happy to see that the trigger itself works, that's like WOW awesome
 
@sᴉɔuɐɹɥԀ just you wait.... just you wait...
 
I showed that screenshot to Nick to get a reaction...
> This is witchcraft. Simon needs to be burned at the stake. How did this even…?
2
(GreyFox)
 
10:00 PM
> @Unihedro did you get to testing this? I'd like to see this tested before being merged...
 
(it's been there for 3 turns)
 
[Cardshifter/Cardshifter] Zomis pushed commit 5cbc7fcb to js-load: added damage effect keyword
 
@SimonAndréForsberg NO WAY.
 
@sᴉɔuɐɹɥԀ yes way
now that I am supporting the concept, adding new effects isn't that hard.
 
That's crazy, you make it look so easy.
 
10:08 PM
yesterday, by Simon André Forsberg
Haven't you read my profile? "I love to make things flexible."
 
TTGH, BBIAB
 
[Cardshifter/Cardshifter] build #873 for commit 5cbc7fcb on branch js-load passed
 
10:38 PM
And back
 
[Cardshifter/Cardshifter] Phrancis deleted branch gui_revamp
 
How do you like that one, @sᴉɔuɐɹɥԀ? ^^
@Duga Thanks, I was wondering how long we would keep that one.
 
Trying to clean up a bit ;)
 
onEndOfTurn: {
    summon: {
        count: 1,
        card: "Spareparts",
        where: "Deck",
        who: "opponent"
    }
},
@sᴉɔuɐɹɥԀ ^^
 
Might get rid of database branch too...
 
10:51 PM
Nah, keep that one for a while
it contains stuff that does not exist in other branches
 
OK
@SimonAndréForsberg Niiiiice!
 
[Cardshifter/Cardshifter] Zomis pushed commit 1bed3b1a to js-load: added effect heal keyword
[Cardshifter/Cardshifter] Zomis pushed commit 27b4246b to js-load: added effect summon keyword
 
With huge thanks to @SimonForsberg for his diligent work, we are very proud to announce that we will be supporting card effects very soon!
I felt I just had to! ^^
I'm bubbling with excitement right now
 
Well, we do already support Card effects, don't we?
But we will support even better card effects
 
Well, sort of, for a few predefined effects like Ranged and Rush
 
10:56 PM
but PhrancisGame.java supported stuff like "Summon 2 Bodymans"
or "Heal 1 at the end of your turn"
 
I feel this though might be just what we needed to get out of some stagnation that had taken a rut since 0.5 :)
 
this certainly opens up a whole world of new things
the LibGDX GUI could use some significant improvement though
 
I was curious about that. Does LibGDX UI design involve less code and more just making things look like you want?
 
unfortunately, changing the LibGDX UI often involves a bit of coding
 
I'm usually pretty natural at graphics-related things, perhaps at some point later you can help me set up and show me around the project, and maybe that would be more approachable to me
(all this background coding stuff is so foreign to me, like server-side stuff and all)
Client-side coding would likely feel more natural for me
 
11:03 PM
[Cardshifter/Cardshifter] build #874 for commit 27b4246b on branch js-load passed
 
testing the LibGDX UI is quite easy, thankfully. But it does require a bit of Java skills (not saying that you don't have what it takes)
you have IntelliJ installed, @sᴉɔuɐɹɥԀ? Or Eclipse?
 
Certainly would be a learning curve, but then again, what doesn't?
 
true that ^^
 
Eclipse (STS to be precise)
 
see if you can find a Gradle plugin for that
@bazola is also using Eclipse (not STS though), he might be able to help
 
11:06 PM
STS I think just has a few web-design specific things added to Eclipse, like Tomcat and such
And JavaScript-specific things too, which will be handy
 
yes, I think so too
 
Cool. What else would be needed to use libGDX?
 
Nothing, I think.
or wait...
You might need Android SDK
 
11:15 PM
Android?
 
yes. because the LibGDX build files are also setup to build for Android
 
OK cool
Speaking of which; this would be way down the road, but would the JavaScript approach be mobile-friendly?
(I assume yes since it's all server-side, but correct me if that's wrong)
 
the JS is entirely server-side. the mobile environment is entirely client-side.
so, yes, no problem there.
but if you wanted to run a stand-alone version of Cardshifter, without connecting to a server, you're in trouble.
 
11:34 PM
> With the recent advent of JS-based game logic (thanks @Zomis !) I began thinking about how best to document now, and later, for eventual modders to effectively use. I had a few initial thoughts of options:

- Write a modder's guide on the website;
- Write a modder's guide in the repo (like a `.md` file);
- Write a modder's guide on the Github wiki;
- Write a modder's guide mostly as code documentation (e.g., JSDoc);
- Combination thereof.

I'll be happy to write the documentation as we
 
I need to add "documentation guru" to my contributor description on the site ;D
 
@Duga excellent question
@sᴉɔuɐɹɥԀ yes!
 
200_success vs. rolfl: 315 diff. Year: -390. Quarter: -233. Month: +146. Week: +94. Day: +94.
Loki Astari vs. Simon André Forsberg: 4024 diff. Year: -1742. Quarter: -443. Month: -60. Week: -40. Day: -85.
 
@Duga and I thought @rolfl was gonna catch up!
 
11:50 PM
[Cardshifter/Cardshifter] Zomis pushed commit e1469b25 to js-load: added enchantment keyword: set - for giving rush / ranged / and other things
 
@sᴉɔuɐɹɥԀ The JS implementation of PhrancisGame now supports everything that PhrancisGame.java supports, but more!
3
and that was my last commit of the day
@Duga reload in 9 minutes.
 
[Cardshifter/Cardshifter] build #875 for commit e1469b25 on branch js-load passed
 
@SimonAndréForsberg I have been busy.....
 
@SimonAndréForsberg That's bad-ass, really happy!
 

« first day (275 days earlier)      last day (3287 days later) »