« first day (21 days earlier)      last day (3540 days later) » 
01:00 - 16:0016:00 - 00:00

1:26 AM
Monknight
 
 
1 hour later…
2:27 AM
@bazola this looks pretty badass
 
2:47 AM
Thanks. You mean my code?
 
 
2 hours later…
4:52 AM
@bazola answered
 
@bazola yes
@DaggNabbit your answer reminds me of the idea of SQL stored function (in principle) though in practice it looks like a more complicated version. But I think good answer :D
Compile the code once, then just pass shit arguments/parameters to it and it does most of the work for you
This could be a tremendously easy way for modders to create the cards for their mods
Just as an example
ScriptIAmMaking = createClass({"newCard"},
  {name = "'Warrior'",
  Strength = 3,
  Health = 2,
  Cost = 2,
  Attribute = "Poke"}
)
(yes my indentation sucks, live with it)
ScriptIAmMaking = createClass(
  {"newCard"},
  {
    name = "'Warrior'",
    Strength = 3,
    Health = 2,
    Cost = 2,
    Attribute = "Poke"
  }
)
Gods, indentation is hard lol
Almost as hard as naming things... -.-
 
5:32 AM
lol
@Phrancis the great thing is you don't even need to require them to write it like that, the script can just return a plain old table and you can do the createClass thing later
 
5:55 AM
Guessing the table could just as easily be passed to SQL for long term storage as well
Just pass null on fields not specified
 
probably, yeah
 
I like Lua, seems like it bridges gaps between languages not easily compatible otherwise
 
it really does
Lua and C(++) is pretty much a powerhouse combo
C for low-level stuff, Lua for high-level stuff
 
It seems the PL makes thing easy for data storage/retrieval... imagine...
Lua: Here is `class "'Warrior'"` table
SQL: Cool, I like tables!
*later...*
Lua: Hey SQL, I need `class "'Warrior'"`
SQL: Cool, here's a table!
So much for formatting, you get the idea though
C is over my head right now though... take this from the stack, put that back on the stack I understand very little of it
I can stack Poker chips and understand, take this from my stack
 
6:16 AM
@Phrancis that's probably the C Lua API you're thinking of... it is very much stack-based and is probably tricky to get the hang of, even for seasoned programmers
normally the barriers with C are memory management, no classes, no OOP, no namespaces, etc
C++ fixes all of that besides memory management
 
I've heard the acronym API but I've never used one (on purpose)
 
lol
 
I'm interested but I know nothing about most of it... SQL is pre-compiled and doesn't feel like real programming
 
sql is just... different, it's a domain-specific language, not a general-purpose language
 
I'm slowly learning Java... I can maybe write 'Hello, World!' but not on a Friday night
 
6:20 AM
I think the problem with Java is once people learn it, there's no room left in their brains to learn anything else
 
lol
 
there is just so much... stuff in Java
 
It does seem very broad
 
like there are probably dozens of different types of collections, where for example in Lua you just have tables (and you never really need anything else)
consider this article, this is just page 1: javamex.com/tutorials/collections/how_to_choose.shtml
with Lua you can just say "use a table," end of story
 
High level Lua seems a lot more useful, for common stuff
I don't know how good it would be at messing around with threads and stuff (maybe it is)
 
6:27 AM
it's actually not bad at it at all
 
This Javamex website must not be "official"
 
lol no, but that article is a good example of the thought process required for someone new to Java just to choose which type of collection to use, and the stuff a seasoned Java guy has to remember
^ that is a really good blog post
a Java programmer's experience with Python
most if not all of the Python stuff there applies to Lua
he weighs the pros and cons of each
 
@DaggNabbit can/should Lua be used for storing game/player/card data while a game is not going on? I know we talked about storing some data in SQL for easy storage/retrieval but I don't really know the scope...
Coool, I'll give it a read
 
I think that would be stored in SQL
 
What kind of data do you think should not be stored in SQL?
(except data generated in the course of a game, Lua handles that)
 
6:34 AM
i think anything that persists between games, and changes, could be stored in SQL
 
My dilemma is between could and should
 
well, i see no reason to store it anywhere else ;)
so i guess it should
 
So I guess anything that's persistent between games should be in SQL DB?
I'm thinking of mostly keeping I/O / packets to a minimum, I think get a packet before game starts and send one after game ends, and refresh occasionally from SQL during idle time may be best...?
 
yeah i don't even know if it would need to do anything during games, just before and after
 
If Lua can hold the data during game, then no SQL connection should be needed, methinks
 
6:41 AM
that's what i'm thinking too
except maybe weird corner cases like if the game server crashes and the database server doesn't, and something happened during the game that would need to persist... idk what that would be though, something like a card got permanently destroyed or someone got a new card somehow
 
Sounds like something we would patch... later ;)
 
yeah definitely ;)
 
Jay and I discussed some GUI design tonight, I'll make a PowerPoint image and post to Q&A..
 
that's awesome, looking forward to seeing that
 
Speaking of which... This needs more input
 
6:44 AM
been trying to picture how this would look on my phone
@Phrancis i have trouble expressing my thoughts about designs
 
It would look tiny ... ;)
 
not really qualified to do it either
 
Opinions are OK too :)
 
yeah i just don't want to sound like an ass picking it apart
 
I'm undecided between top-left and top-right
Bottom one... for a brick&mortar game would look great on a box or board, but not on a card IMO
 
6:47 AM
do you think Cyborg Chronicles should be in title case?
ahh, i wouldn't use these for the backs of cards at all... i think it would be too busy
 
IMO it looks good this way... kind of looks like... well... code formatting
(cyborg chronicles) ^^
Please, do post something on there, Jay is trying to make us a great logo but hasn't got much feedback
Personally... given the choice, I would pick top-right... but... in game maybe would not look as good... would look killer on a website
Maybe in game could just be the 3 cards in hand and 4th different colour and looking like a C, and leave out the rest of the writings?
 
i'm writing up something now :)
and posted
 
Perfect. I sent him a message on Fakebook to let him know
I'll fire up PowerPoint (blech) and illustrate some of my ideas too
 
 
3 hours later…
10:03 AM
Monking
@DaggNabbit I found a Java MechanizeAgent library, will try to replicate syborgs code with it
 
 
4 hours later…
2:07 PM
It's not so busy right now though
 
I am here now, we can get shit started
 
Our goal is to make an open-source TCG that uses JavaFX 8 for client side, and internally a mix of Java 8 and Lua
it should be moddable, hence Lua
 
I have no idea what javafx does though it sounds familiar
I thin ksomeone here mentioned it a couple days back
As for moddable - why are you tying yourself to Lua? You should use the ScriptEngine API Java has
and/or you could use other JVM languages like Groovy, too
I mean Lua is great and all ;-)
 
JavaFX 8 is the successor of Swing
Lua is great, the idea is that everyone should be able to code something with it
 
what's tcg?
 
2:11 PM
trading card game
I'm gonna need a favor... my bot needs 20 rep to talk
I'll go make an answer somewhere on SO if 2 people would mind upvoting it
 
sure thing
bugger
yeah I need a vm for ubuntu
ssh is screwing up on windows
 
Let me find some question
 
i have a few unanswered
0
Q: Aptana require not finding file in project

Dan PantryHhey guys, I've been trying to pick Ruby recently and apparently Aptana is one of the better IDEs for use (I am spoiled by .NET and Java's IDEs). So, I picked it up (having not want to splash out for RubyMine - RubyMine's IDE is based off of NetBeans which I never liked anyway) - and I'm having ...

the problem was that I was using require instead of require_relative and that my scripts weren't on the build path
ify ou just make an answer with that in i'l accept it etc
 
0
A: UnsupportedOperationException: Not supported yet. in jframe

TCG ChatBotThis means that the constructor of your UserSignUp class (somehow) throws an UnsupportedOperationException, either by itself or via a method call. If you want more help than this, then post more code.

An answer ;)
 
2:15 PM
brb and hey @DanPantry
 
for the card effects
as something that seems to be problematic
you could use a strategy pattern w/ components
 
need one more for upvote on that
and not gonna do it with my own :P
 
interface IEffect {
    void execute(IExecutionContext ctx);
}
interface IEffectContainer {
    void add(IEffect);
    void remove(IEffect);
    void disable(IEffect);
    ICollection<IEffect> getActiveEffects();
}
that way you can deal with the whole "removal of deathtouch" mechanic
 
2:21 PM
I do honestly have no clue right now though were one more coder would be useful... we gotta figure that out
 
well the way I see it is
some cards have mechanics
some don't
some have mechanics that influence other mechanics
you can't really tie down the mechanic to an enum
so make a strategy pattern
sometimes mechanics can be removed i.e silenced - so make it so you can disable() an effect
 
Ah, for that part we will most likely be using Lua mostly
The fun thing we have here though is that our Lua objects can be backed by Java objects, thanks to the luaj plugin
 
that's irrelevant :P it's still the same concept in Lua
 
The Lua code actually gets compiled to Java bytecode
 
JIT?
or precompiled?
 
2:23 PM
Yeah... we're not really sure how we are goign to get all working yet
 
Haha :P
do we have some kind of redmine up?
That would be useful I think
in addition to the q/a
 
I'm not exactly sure about that part, I think it gets compiled JIT to Java bytecode
we have the whole Q&A site, which has lots of stuff
and @DaggNabbit has some random gists currently I think, but not yet an overall design
 
i noticed that, but it doesn't have syntax highlighting it seems
redmine is pretty useful, we use it in work, you can make it be backed by a git repo too
(or even a github repo)
er.. wat
 
@DanPantry wat
 
@skiwi I edited your bot's answer so I can upvote with clear conscience ;)
 
2:26 PM
https garbled the english i guess
 
Awesome, cool @janos :)
@Override
public void start() {
    loginOpenId();
    System.out.println();

    loginRoot();
    System.out.println();

    loginChat();
    System.out.println();

    String fkey = getFKey();
    System.out.println("Found fkey: " + fkey);
    System.out.println();

    postMessage("this is a damn awesome test", fkey);
}
 
give it a whack
 
It would be so cool if it would work in one try here.
null
<html>
 <head></head>
 <body>
  You must login to post
 </body>
</html>
:(
 
At least I am logged in to OpenID.
 
2:29 PM
So there's a GDD somewhere?
 
It's mostly in our chat room history I'm afraid for now
 
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[tag: here-we-go]
OH REALLY
 
I also logged into the site root
Then I'm blaming the chat login
Hmm
No referer was present - this may be due to a browser setting
 
eclipse is crapping itself because I used my quick-fix hotkey on a class that didn't exist
oops
 
I need to figure out what the referer was
 
2:33 PM
check the referer header
what compliance level are we running at?
 
Java 8
 
awesome
I'l get that jdk then
 
Problem is that when I try to manually check stackexchange.com/users/chat-login in the browser, it auto redirects :P
 
lambdas yay
you can check
the referrer header
from the response & request
it's a http header
or you could use POSTman..
 
maybe my redirecting fails
or perhaps not
 
2:36 PM
yup, redirects me
but it's not a http redirect, postman would show that
it's http 200
you said you wanted the game to be moddable
I assume you mean server-side
 
yes
We've got to figure out a system at some point to allow easy distribution of mods, but we do really want all clients to run the same code and not have an OP client that has modded damage values ;)
 
the client imho should be a dumb terminal
the only mods allowed should be interface ones
otherwise you come up with the issue you just suggested
 
I would send a referrer with my request... If I knew which one
 
in other wrods, you can modify the interface and the look of some card backgrounds sure
but you can't modify damage values of cards
unless you mean to say you want the client and server to be distributable, and players to potentially mod their own servers to have their own card sets
 
indeed, we haven't considered a moddable GUI on the client side yet, but that's an option as far as I see
 
2:40 PM
in which case you could allow for a card list file that generated a sha hash on each card.
 
The server will also be distributable I think
 
if the card the player uses has a hash that isn't compatible with the servers, it is rejected as an invalid card
 
but players should not run it, only a few players that want to manage their own server, on which they can install whatever mod they want
 
yeah
like Minecraft
in which case, yeah I can see a solution of how that would work
Server has an internal card database, so does the client
client sends a card list of it's own card to the server with generated sha hashes of each card
or md5 or whatever
if not all of the hashes match, the server tells the client it's outdated or incompatible
and the client cannot connect
 
Yeah, somewhat like that
 
2:42 PM
if we end up getting this nailed down
 
Do you meanwhile have any clue about how I will find out the referrer value? :)
 
really should put up a kickstarter
Erm, unfortunately, no
you could try checking the http headers of the request
HTTP referer (originally a misspelling of referrer) is an HTTP header field that identifies the address of the webpage (i.e. the URI or IRI) that linked to the resource being requested. By checking the referer, the new webpage can see where the request originated. In the most common situation this means that when a user clicks a hyperlink in a web browser, the browser sends a request to the server holding the destination webpage. The request includes the referer field, which indicates the last page the user was on (the one where they clicked the link). Referer logging is used to allow websites...
if it's nto there, then I don't know
Fuck me I'm being throttled cus I'm talking so much
 
Hmm it might open up the global-fallback login, which does need the referrer, but I don't see that in my client
 
erk
eclipse isn't finding my runtime
 
What Eclipse are you using?
I heard only newest version has beta Java 8 support?
 
2:45 PM
it's possible it's out-dated
but it wwasn't recognizing my jre7 either
which was working fine on my own projects
example
 
Strange, lots of red there
 
well yeah there's no java runtime library attached
log:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See slf4j.org/codes.html#StaticLoggerBinder for further details.
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] cardshifter
[INFO] cardshifter-fx
[INFO] cardshifter-core
[INFO] cardshifter-module1
[INFO] cardshifter-server
[INFO]
[INFO] ------------------------------------------------------------------------
 
Strange
 
basically it's not finding my jdk or jre
fixed that
now it's complaining about package paths sigh
and the tests are failing because they are using junit 3
I should just use intellij idea huh
 
or Netbeans ;)
 
2:54 PM
i hate netbeans
 
don't :(
 
this is a damn awesome test
 
OMG!
IT WORKS!
 
gj :)
what's that for then?
 
2:57 PM
this is a damn awesome test
 
git commits?
 
yes
 
10/10
now to just get a redmine on an amazon ec2 serve
r:D
 
I can use @Simon's server ;)
time to read up on github post hooks now
 
wtf
intellij won't open my solution
 
3:09 PM
this is a damn awesome test
this is a damn awesome test
this is a damn awesome test (boot test)
 
I might want to disable that one
 
this is a damn awesome test (boot test)
 
lolol
 
this is a damn awesome test (boot test)
 
Yeah yeah... I know it now, I disabled that ;)
 
3:17 PM
@skiwi grats on getting it working
 
@bazola thanks
 
@DanPantry have you designed any games before? we have many decisions still to make on the actual gameplay of the TCG
 
@bazola I'm 19 what do you think
I have not designed a game, no, I'm just offering opinions on the programming decisions behind the game :;p
 
just curious
 
I know a little about the general idea of making them ie ui/graphic thread should be separate from everything else
and fwiw I play both magic and am playing HS literally right now
 
3:21 PM
i am an avid hearthstone player as well, very fun game once you have most of the cards
 
eh i just need bloodmage thalanos to finish my deck
 
that was the first legendary i got if you can believe it
but i have like 20 decks that i like lol
 
Hey @DanPantry. I have tried to convince @DaggNabbit of using Entity-Component-System, I haven't really succeeded in that though. Do you know of the ECS pattern?
 
i do know of it
I don't think there is any need to have a full on ECS
But I certainly think that with the cards that we need some kind of removal/disable/add system
on their effects
Artemis, right?
 
Hey @SimonAndréForsberg
 
3:28 PM
@DanPantry when you put the code above regarding the effect manager thing, that looks very much like ECS to me?
 
@DanPantry Artemis is an ECS Library, yes. I did not use that one though but instead made my own. Making the systems and components for ECS can be a bit of work, but I do find that it's pretty much Single Responsibility Principle at it's fullest.
 
@bazola Artemis is a lot more full-blown than that very contrived example though
@SimonAndréForsberg agreed there
 
Now I am trying to get an url registered in Spring MVC... and failing
@Controller
public class HookController {
    @RequestMapping(value = "/payload", method = RequestMethod.GET)
    public void payload(final String jsonString) {
        System.out.println("test /payload: " + jsonString);
        Store.INSTANCE.getChatBot().postMessage("test /payload: " + jsonString);
    }
}
This should work?
 
-shrug-
 
@skiwi Just saying, Spring does have an excellent way of doing Dependency Injection... Store.INSTANCE, ugh. As for whether or not it works, don't know, it's been a while since I used Spring
 
3:34 PM
@SimonAndréForsberg Well I did read a bit on the @AutoWired, but haven't figured it out exactly yet
You must still be able to remember how to make a Hello World app? :)
 
@DaggNabbit thanks for your answer to my question. I will mess with your code snippet and see if I can get it to produce the same results. Definitely it is a lot cleaner. I do like the idea that @Phrancis was talking about though where a user might be able to create a card script by a simple command to Lua, that could be something awesome to explore
 
What can I get started on in this projet, then?
just about anything?
 
I think the Lua/Server part is currently a bit locked in by @Simon and me, to keep it a bit non-chaotic
having more devs without a plan is probably not a good idea ;)
 
exactly
that's why I suggested a redmine :p
I think I might clean up some of the code that's already there I mean
public Game(InputStream file)
ouch
 
I'd kindly ask you to not mess with it yet, as horrible as it looks :)
Because I'm also on refactoring the current code already
 
3:40 PM
Haha not even on my own branch and fork? :p
Aha, OK, fair enough
 
It would be a bit too messy to have two people refactoring on one piece of code ;)
 
anythign I CAN do then? :P
 
I'm not sure as of now
we really need to write up a document ;)
 
idd
I'll leave that to you because i don't know enough :p
 
I'm still trying to figure out why I cannot get my Spring MVC call to work
 
3:44 PM
@DaggNabbit one thing I was wondering, is it possible to read specific lines from a script and save them as strings? So that I could grab a specific function from one script and literally write it into another script, possibly altering it or changing the order of operations etc
 
erm
I don't think that's possible
Nor should it be because Lua can contain more than one statement per line
 
@DanPantry On your own branch I think you can do pretty much anything you want. I can't promise anything about whether or not we'll end up using it though.
 
i am sure that it is possible to read in lines from a script, but I need to be able to read in specific lines
 
I'll push some server implementation today
 
@bazola exactly, I don't think that's possible because there is no notion of "read X from Y line"
you would have to read in the entire file and then seek to the lines
opr at the very least count the number of carriage returns/new lines
 
3:46 PM
well that might be a potential solution, it doesn't matter if it is difficult as long as it can be done :) and I will be writing the scripts that have the functions I want to grab
really what I want to do is take a function and convert it to a string, I do know that functions can be passed as arguments in Lua
 
@DanPantry The script must come from somewhere, must it not?
 
@SimonAndréForsberg true
erk
ConfigClass myClass = ConfigClass(this.getConfig());
"why does my code not work hur durr"
FYI ConfigClass is a class, not a method
 
sigh Why am I not surprised?
 
in the same thread
   class MyClass {
       public static MyClass instance;
       void enable() { instance = this; }
   }
 
I think many Bukkit plugin developers are entirely new to Java, perhaps new to programming in general. And even if they don't, they just don't know how to... debug problems.
 
3:57 PM
They are, I learned Java through it
But, still, there's one thing being wrong, and another not knowing the basics
 
@DanPantry The singleton / public static pattern is way too common there
 
"Singleton? Only way to call methods on another instance of an object!"
;---;
i haven't used a singleton in nearly 2 years
 
Same here I think
Don't miss it one bit
Tell, don't ask
 
Only reason i DID use a singleton was because the system I was working with at the time had so many singletons it was practically the only way to add to the object graph
it was C++ as well which was even worse
 
Heh
Oh well, time to start Eclipse
 
3:59 PM
I have the new eclipse installed just waiting on instruction for where I can start :')
until then, League of Legends!
 
Ugh, no cursing here please!
 
fix'd
 
01:00 - 16:0016:00 - 00:00

« first day (21 days earlier)      last day (3540 days later) »