*Author

Offline Zergva

  • Full Member
  • ***
  • Posts: 305
  • Country: hu
  • Reputation Power: 5
  • Zergva is a Spark waiting for a buff.
  • Slightly new to Elements
  • Awards: Brawl #2 Winner - Team Fire
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132327#msg1132327
« Reply #528 on: April 07, 2014, 06:35:02 pm »
Mohr people in developing :D

Btw a suggested change: Making Shard of Intergrity to Other and (if someone makes a good and fitting Earth Shard idea) then make an other Earth shard in. And making Shard Golems in hand count as a shard for Shard of Integrity. Ability cost are doubled and will be made to Other.

And Other Nymph is pending.

Offline OdinVanguard

  • Legendary Member
  • ******
  • Posts: 4984
  • Reputation Power: 67
  • OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.
  • Keeping The Jotnar at bay
  • Awards: Slice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132329#msg1132329
« Reply #529 on: April 07, 2014, 06:50:57 pm »
Could you run a todo tutorial to make it run in OSx? I'm interested in it
Most of this is just a recap of the readme.txt file, but I added notes for what I have had to do for osx
You first have to install all the subprograms from the readme.txt
***  I Used macports for a lot of this, homebrew will work just as well... maybe fink would too.
  • install node.js (go to nodejs.org and click install button)
  • install redis (used macports -> type "sudo port install redis" in terminal)
  • install git for osx ( download and run installer package from https://code.google.com/p/git-osx-installer/ )
    --> don't forget to run the setup script so you can use it properly from terminal... otherwise you will get error messages.
  • install python 3 (using macports)
    in terminal type: "sudo port install python33"
    *** for mac users, you will probably have python 2.7 already. !!DO NOT!! uninstall it or you will have a lot of headaches, just install python 3 in addition to it ***
  • create a folder for openEtG and download the git repo from: https://github.com/Fippe94/openEtG.git
    if you want to contribute using git (make sure you know how to use git and get permission first of course)
    in terminal type: git clone https://github.com/Fippe94/openEtG.git
    this will create a local git repository called openEtG
  • cd to that folder in your terminal
  • run updatedb.py using python 3, be sure to call it using python 3 since 2.7 is default
    > in terminal type: "python3.3 updatedb.py"
  • retype the copy of buildOpenEtG.bat
    Spoiler for osx version - thanks to serprex for help here:
    cat etg.client.js classes.js actives.js animations.js ai.eval.js ai.targeting.js etg.js > js.js
    browserify -r ./etgutil -r ./MersenneTwister -o etgify.js
    -> do not modify the original, make a copy and rename it to "buildOpenEtG.osx.bat" (or something similar)
  • in terminal type:
    npm install
    sudo npm install -g browserify
    ./buildOpenEtG.osx.bat
  • to start it up,
    type "node server.js" in terminal
    using your web browser, open:  http://127.0.0.1:13602
That should do it.

For you ubuntu / debian users, you should be able to use apt-get to install all the needed programs.
« Last Edit: April 07, 2014, 07:18:40 pm by OdinVanguard »
Whether the glass is half full or half empty is a moot point. It is always filled to the brim. It is only a matter of by what. The real question is: What fills you?
If your zombie plan is
kill -9 `ps l | awk '{print $2" "$3" "$9}' | grep "Z" | awk '{printf("%s ",$2)}'`
You might be a unix junky

Offline Fippe94

  • Administrator
  • ********
  • Posts: 1982
  • Country: se
  • Reputation Power: 40
  • Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.
  • Awards: Slice of Elements 9th Birthday CakeSlice of Elements 8th Birthday CakeGold DonorSlice of Elements 7th Birthday CakeForum Brawl #5 Winner - Abyss BrawlersSlice of Elements 6th Birthday CakeWeekly Tournament Winner8th Trials - Master of DeathBrawl #3 Winner - Divine LightSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132330#msg1132330
« Reply #530 on: April 07, 2014, 07:02:05 pm »
Just one note. If you ever plan to contribute by uploading to github, you shouldn't edit the buildOpenEtG file, since that weill overwrite the windows file once I download your updates. Better would be to copy it and name the new version buildOpenEtGMac or something.
Try Fragments, my card game!

cvengrcnq qbg arg fynfu frperg cnffjbeq
KVVV > KYIVV

Offline OdinVanguard

  • Legendary Member
  • ******
  • Posts: 4984
  • Reputation Power: 67
  • OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.
  • Keeping The Jotnar at bay
  • Awards: Slice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132331#msg1132331
« Reply #531 on: April 07, 2014, 07:07:24 pm »
Just one note. If you ever plan to contribute by uploading to github, you shouldn't edit the buildOpenEtG file, since that weill overwrite the windows file once I download your updates. Better would be to copy it and name the new version buildOpenEtGMac or something.
ah thankyou! I forgot to mention that in the tutorial.
I actually copied mine and renamed the modified version as buildOpenEtG.osx.bat
I have updated the instruction post accordingly.

Once others start developing, it may be a good idea to have separate branches for the various areas of development.
E.g. maybe have a card dev branch, a UI branch, a quest branch etc.
That way, the master branch can remain "clean" and branches only get merged in once everything is tested and working properly.

For those interested, here is a tutorial page for using git (where I learned to use it): http://schacon.github.io/git/gittutorial.html

lastly, gitk can provide a nice GUI for git. I believe it gets installed when you install git itself using the installer package.
If not, you can always grab a copy using apt-get or macports / homebrew / fink.
Its not as shiny as some of the nice GUIs out there, but its pretty stable.
« Last Edit: April 07, 2014, 07:31:39 pm by OdinVanguard »
Whether the glass is half full or half empty is a moot point. It is always filled to the brim. It is only a matter of by what. The real question is: What fills you?
If your zombie plan is
kill -9 `ps l | awk '{print $2" "$3" "$9}' | grep "Z" | awk '{printf("%s ",$2)}'`
You might be a unix junky

Offline OdinVanguard

  • Legendary Member
  • ******
  • Posts: 4984
  • Reputation Power: 67
  • OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.
  • Keeping The Jotnar at bay
  • Awards: Slice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132356#msg1132356
« Reply #532 on: April 07, 2014, 11:36:14 pm »
I decided to try testing out how to add in a new quest.

So quests all appear to be in ui.main.js
I found the area for quest decks (questNecromancerDecks)
and the section for quest ai building beneath it.

I also tracked down the area where the quest descriptions are stored and the assosciated button adder.

When I modify these appropriately, the game displays the 4th quest button as it should.
Spoiler for screenshot:

 (I was trying out a new art image for the quest map as well)

However, when I press the button, it just gives the 3rd quest ai instead of creating the ai deck I entered in for stage 4...
Is there some kind of array or variable I need to change so it will create the 4th quest instead of just looping back to the 3rd?


I was having fun using GIMP during a boring bus ride today and had an idea for putting back art just under the text for the various button areas in the lobby. Turned out pretty nice!
Spoiler for Lobby Backart Screenshot:

« Last Edit: April 08, 2014, 03:08:33 am by OdinVanguard »
Whether the glass is half full or half empty is a moot point. It is always filled to the brim. It is only a matter of by what. The real question is: What fills you?
If your zombie plan is
kill -9 `ps l | awk '{print $2" "$3" "$9}' | grep "Z" | awk '{printf("%s ",$2)}'`
You might be a unix junky

Offline BluePriest

  • Legendary Member
  • ******
  • Posts: 3771
  • Reputation Power: 46
  • BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.
  • Entropy Has You
  • Awards: Slice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132372#msg1132372
« Reply #533 on: April 08, 2014, 04:47:55 am »
It looks great! only thing is you used the wrong asset :P
This sig was interrupted by Joe Biden

Offline OdinVanguard

  • Legendary Member
  • ******
  • Posts: 4984
  • Reputation Power: 67
  • OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.OdinVanguard walks among the Immortals, legends and guardians of all time.
  • Keeping The Jotnar at bay
  • Awards: Slice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132373#msg1132373
« Reply #534 on: April 08, 2014, 05:05:34 am »
It looks great! only thing is you used the wrong asset :P
??? I used bg_lobby.png ... It shows up fine when I compile and run it in my browser... that was an actual screenshot.
Which asset needs to be used?
Whether the glass is half full or half empty is a moot point. It is always filled to the brim. It is only a matter of by what. The real question is: What fills you?
If your zombie plan is
kill -9 `ps l | awk '{print $2" "$3" "$9}' | grep "Z" | awk '{printf("%s ",$2)}'`
You might be a unix junky

Offline BluePriest

  • Legendary Member
  • ******
  • Posts: 3771
  • Reputation Power: 46
  • BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.
  • Entropy Has You
  • Awards: Slice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132375#msg1132375
« Reply #535 on: April 08, 2014, 05:17:14 am »
Oh, I thought that was the actual image you used. Not an in game screen shot :P
This sig was interrupted by Joe Biden

Offline dawn to dusk

  • Master of Light
  • *
  • ******
  • Posts: 2693
  • Country: aq
  • Reputation Power: 53
  • dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.dawn to dusk brings all the vitality and activity of a Life Nymph.
  • Awards: 14th Trials - Master of LightSlice of Elements 11th Birthday Cake13th Trials - Master of LightWar #12 - Sportsmanship AwardSlice of Elements 10th Birthday CakeCard Design Competition - The Fool Winner12th Trials - Master of LightDeckbuilding Competition - Elelections WinnerSlice of Elements 7th Birthday CakeWeekly Tournament WinnerWeekly Design July 2015 - Bronze9th Trials - Master of LifeWeekly Tournament WinnerSlice of Elements 6th Birthday CakeWar #8 - Sportsmanship Award8th Trials - Master of LifeSlice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132376#msg1132376
« Reply #536 on: April 08, 2014, 05:19:12 am »
So around 3 people have asked for this to be in a board now. Does this mean it may happen?

Offline BluePriest

  • Legendary Member
  • ******
  • Posts: 3771
  • Reputation Power: 46
  • BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.
  • Entropy Has You
  • Awards: Slice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132377#msg1132377
« Reply #537 on: April 08, 2014, 05:43:30 am »
So around 3 people have asked for this to be in a board now. Does this mean it may happen?

Itll be up to higs, but I wouldnt get my hopes up. Its not a matter of if theres an interest, its a matter of this is a forum for ETG, and this is a spinoff of ETG that isnt in any way sanctioned by the creator.
This sig was interrupted by Joe Biden

Offline Fippe94

  • Administrator
  • ********
  • Posts: 1982
  • Country: se
  • Reputation Power: 40
  • Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.Fippe94 soars like the Phoenix, unable to be repressed.
  • Awards: Slice of Elements 9th Birthday CakeSlice of Elements 8th Birthday CakeGold DonorSlice of Elements 7th Birthday CakeForum Brawl #5 Winner - Abyss BrawlersSlice of Elements 6th Birthday CakeWeekly Tournament Winner8th Trials - Master of DeathBrawl #3 Winner - Divine LightSlice of Elements 5th Birthday CakeSlice of Elements 4th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132384#msg1132384
« Reply #538 on: April 08, 2014, 01:08:50 pm »
@Odin: Try to find me in chat and I can try to help you.
Try Fragments, my card game!

cvengrcnq qbg arg fynfu frperg cnffjbeq
KVVV > KYIVV

Offline BluePriest

  • Legendary Member
  • ******
  • Posts: 3771
  • Reputation Power: 46
  • BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.BluePriest is towering like an Amethyst Dragon over their peers.
  • Entropy Has You
  • Awards: Slice of Elements 5th Birthday Cake
Re: openEtG https://elementscommunity.org/forum/index.php?topic=52763.msg1132434#msg1132434
« Reply #539 on: April 09, 2014, 05:38:54 am »
It will probably be the weekend before I am able to try this out, so if someone else is able to get to it before me, then please do. Right now the game doesnt support touchscreens at all, which is sad because android phones (dont know about iphones) can run javascript games like this.

http://benhowdle.im/touche/

That link shows how touchscreen support can be implemented. Although I dont have any javascript experience, hopefully my limited experience with AS2/3 will help me in a situation like this where just a code snippet is all thats needed.

Code: [Select]
<!-- somewhere before the rest of your JavaScript code -->
<script type="text/javascript" src="/path/to/touche.js"></script>


Code: [Select]
// applying a click event to one element
 
Touche(document.querySelector('#myButton')).on('click', handleClick);
 
// or to multiple at once
 
Touche(document.querySelectorAll('.myButtons')).on('click', handleClicks);
 
// or with jQuery
 
$('.myButtons').on('click', handleClicks);

If its not as simple as it currently appears, then maybe someone who has more coding experience than me will be able to help fippe94 out with this since he is already doing a ton of work. My friend hasnt gotten back to me since I helping out with this game yet.
This sig was interrupted by Joe Biden

 

anything
blarg: