These are chat archives for FreezingMoon/AncientBeast

14th
Mar 2016
reaaaaalllyyyy need to get more coders involved with the project
Gabriel
@Zera99
Mar 14 2016 03:09
I'll vote ^^
Dread Knight
@DreadKnight
Mar 14 2016 03:13
Thanks :+1:
Matt Horning
@snollygolly
Mar 14 2016 13:13
hey all, what's up @DreadKnight
Dread Knight
@DreadKnight
Mar 14 2016 13:13
hello @snollygolly, welcome around, thanks for the star btw
Matt Horning
@snollygolly
Mar 14 2016 13:14
no problem man
Dread Knight
@DreadKnight
Mar 14 2016 13:14
I'm pondering what's actually achievable roadmap wise for the next release xD
Matt Horning
@snollygolly
Mar 14 2016 13:14
i saw the post on reddit about needing coders
thought i'd join the room and see what the most pressing need was for a new contributor
Dread Knight
@DreadKnight
Mar 14 2016 13:15
Understood, are you interested in the part-time job or simply contributing for exp/crediting?
Matt Horning
@snollygolly
Mar 14 2016 13:16
well i thought i'd take a look at the repo and maybe try to contribute something small for fun
and if it works out, and it's good for all parties, i'd be interested in the part time gig
Dread Knight
@DreadKnight
Mar 14 2016 13:16
sounds good, could point you to some issues
Matt Horning
@snollygolly
Mar 14 2016 13:16
i do JS/PHP all day and night anyway :P
Dread Knight
@DreadKnight
Mar 14 2016 13:16
haha, awesome
Matt Horning
@snollygolly
Mar 14 2016 13:16
sounds good, point away
Dread Knight
@DreadKnight
Mar 14 2016 13:18
overall, there are small enhancements to be done (mostly game UI wise), coding unit abilities and fixing/recoding some of them, also adding ability upgrades; and a big feature that the job will revolve around is online multiplayer, but it seems someone started to tackle that, but the prototype needs fixing badly
there's also a bit of work on the website that I need help with, which involves js/php
job or no job, I'll probably start making good use of bountysource.com soon, so there could be bounties on various issues in the near future, if that appeals to coders
@snollygolly since you sound like having php installed (unlike some of the other contributors), maybe you can help me with this one FreezingMoon/AncientBeast#890
Dread Knight
@DreadKnight
Mar 14 2016 13:24
there are also quite a few show stopping gameplay bugs atm :D most stuff should be in good shape by 1st June, hopefully
Matt Horning
@snollygolly
Mar 14 2016 13:24
interesting
so what's the "unit viewer" can you point me in roughly the right direction?
Dread Knight
@DreadKnight
Mar 14 2016 13:25
@snollygolly it's the first page/subpage from the website, the one from github's master, something like http://localhost/AncientBeast/units/?view=viewer
the live website tends to show all units at once and quite a few people advised to make a viewer, only showing once unit at a time, I made progress with that, but needs a bit more coding
I mean page/subpage accessible from the website's header navigation, so it's not the homepage itself :D
you'll see if you clone the repo and run it on apache / php server or whatever
Matt Horning
@snollygolly
Mar 14 2016 13:30
gotcha
i'm cloning it down and spinning it up right now
Dread Knight
@DreadKnight
Mar 14 2016 13:30
there's a different guide for the development version (as in gameplay), as that doesn't require php, but nodejs https://github.com/FreezingMoon/AncientBeast/tree/master/development/#readme
anyway, one thing at a time, don't want to confuse you :D let me know when it's up and you can see the viewer
Matt Horning
@snollygolly
Mar 14 2016 13:34
is there instructions on how to seed the DB?
i got the actual game running via node
and i hosted the root folder via mamp, so i think that's working, but it's complaining about the DB
Dread Knight
@DreadKnight
Mar 14 2016 13:36
there's a database.sql file in the project root you can set-up with MySQL (phpmyadmin)
but the db stuff is pretty optional, the game itself doesn't require accounts atm at all
Matt Horning
@snollygolly
Mar 14 2016 13:37
the website looks to need it though, and the unit viewer is through that, right?
Dread Knight
@DreadKnight
Mar 14 2016 13:37
yeah, will need to make sure in the near future that devs are able to bypass that stuff
Matt Horning
@snollygolly
Mar 14 2016 13:38
that URL for the unit viewer doesn't work for me locally, what branch should i be on?
Dread Knight
@DreadKnight
Mar 14 2016 13:38
master branch, but URL varies based on your local set-up
if you go to the units page, you should see 6 sub-pages, first one is related to that issue
Matt Horning
@snollygolly
Mar 14 2016 13:39
ok, i'm there
and it's just that the card viewer doesn't work at all?
Dread Knight
@DreadKnight
Mar 14 2016 13:41
it needs code to update the cards for newly selected units
had quite a bit of a struggle to get that carrousel with avatars be generated and updated
Matt Horning
@snollygolly
Mar 14 2016 13:43
yeah, i could see that
at least locally, none of my art is loading
Dread Knight
@DreadKnight
Mar 14 2016 13:43
you need to have a config.php file with your local path variable
just duplicate config.php.in as indicated by website error I guess
Matt Horning
@snollygolly
Mar 14 2016 13:44
yeah, i did that, but it looks good :/
Dread Knight
@DreadKnight
Mar 14 2016 13:44
// Directory of site relative to root, ending with a slash
// Eg: $site_root = '/' or $site_root = '/ancientbeast/'
$site_root = '/AncientBeast/';
Matt Horning
@snollygolly
Mar 14 2016 13:44
had to update my port
$site_root = ':8088/';
like that
Dread Knight
@DreadKnight
Mar 14 2016 13:45
oh
Matt Horning
@snollygolly
Mar 14 2016 13:46
so the character data, where does that come from?
Dread Knight
@DreadKnight
Mar 14 2016 13:46
units/data.json file
Matt Horning
@snollygolly
Mar 14 2016 13:47
just FYI, i'm going to drop off of here in 15 or so.
but i'll try to work on this a little tonight
Dread Knight
@DreadKnight
Mar 14 2016 13:48
understood
Matt Horning
@snollygolly
Mar 14 2016 13:48
i'm going to have to write some clientside JS to make that unit viewer work, where would you suggest putting it? directly in viewer.php, or elsewhere
Dread Knight
@DreadKnight
Mar 14 2016 13:49
you could have a viewer.js module in units folder
kinda like I did with carousel.js if I recall right
Matt Horning
@snollygolly
Mar 14 2016 13:49
gotcha
just making sure that's how you want it structured
probably going to write an endpoint to get characters by ID, and then embed that ID in the carosel
click he carosel, reach out to the endpoint, get the char, display it
does that sound about right?
Dread Knight
@DreadKnight
Mar 14 2016 13:50
mhm, eventually will need to make the website wrap more around the game itself, like it's currently structured in that development folder; and will need to reshare more code related to the cards between the game and website, as there's a bit of duplication atm
Matt Horning
@snollygolly
Mar 14 2016 13:51
ahh
yeah, i thought it'd be dope if the whole thing were in node
Dread Knight
@DreadKnight
Mar 14 2016 13:51
yeah, perhaps, I'm thinking to kinda get rid of PHP, but I'm crappy at js/node atm :D
Matt Horning
@snollygolly
Mar 14 2016 13:52
well i mean judging by the sheer number of commits, switching to node would be a significant undertaking
Dread Knight
@DreadKnight
Mar 14 2016 13:52
it was quite a bit of a struggle for now to have that development version adopt nodejs
so probably one step at a time
I'm leaning towards mongoDB anyway, so node.js full adoption would be great
would be a breeze to have the project up and running, especially if doing some npm package for the whole thing
Dread Knight
@DreadKnight
Mar 14 2016 13:57
@snollygolly oh, seems I've been visiting your website from time to time, it did seem familiar, even commented here http://evilmousestudios.com/optimizing-javascript-games/ - you have really nice articles :)
You really know your trade, I must say
Matt Horning
@snollygolly
Mar 14 2016 14:30
thanks man, i appreciate it :)
i'm also working on a web game written almost entirely in JS
Dread Knight
@DreadKnight
Mar 14 2016 14:49
@snollygolly nice stuff! I see why you used the term "seed" now :D
Matt Horning
@snollygolly
Mar 14 2016 14:50
if you want to look into seeding, the node blogging platform "ghost" does a really good job
Dread Knight
@DreadKnight
Mar 14 2016 14:51
yeah, was just thinking about it, might be useful stuff; thanks, will keep that in mind ^^
good readme file for your project, it's great you're focusing on documentation 1st
will consider folder structure stuff as well, the need for one has been on my mind for a while now, as people tend to keep asking the same questions
Matt Horning
@snollygolly
Mar 14 2016 14:55
i use my koa-starter-kit to build it, so i'm kind of partial to the structure
Dread Knight
@DreadKnight
Mar 14 2016 15:03
@snollygolly I see; is koa meant to become an expressjs replacement?
Matt Horning
@snollygolly
Mar 14 2016 15:05
yup, it's generator based
much lighter weight
Dread Knight
@DreadKnight
Mar 14 2016 15:05
nice, even that rethinkdb looks awesome
Matt Horning
@snollygolly
Mar 14 2016 15:06
pretty legit noSQL db
Dread Knight
@DreadKnight
Mar 14 2016 15:06
^^ might consider it instead of mongoDB, since it looks more game oriented
Dread Knight
@DreadKnight
Mar 14 2016 21:32
@snollygolly so why does Ghost have seeding? development / theming purposes as well?