Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 23:24
    coveralls commented #694
  • 23:20
    snyk-bot opened #694
  • 16:35
    jcubic commented #693
  • 16:27
    jcubic commented #693
  • 11:39
    jcubic commented #693
  • 10:04
    jcubic commented #693
  • 09:00
    Ra0R edited #693
  • 08:59
    Ra0R edited #693
  • 08:58
    Ra0R opened #693
  • Sep 15 18:39
  • Sep 15 15:10
    jcubic labeled #692
  • Sep 15 15:10
    jcubic edited #692
  • Sep 15 15:09
    jcubic commented #692
  • Sep 15 15:08
    jcubic commented #692
  • Sep 15 15:08
    jcubic commented #692
  • Sep 15 13:21
    KiddoV edited #692
  • Sep 15 13:19
    KiddoV opened #692
  • Sep 12 17:39
    jcubic opened #691
  • Sep 12 17:39
    jcubic labeled #691
Jakub T. Jankiewicz
@jcubic
I think that you will need to some how create a way to generate those terminal, based on some data, but it's lot of work
jagg3127-alt
@jagg3127-alt
yeah but i wont give up on it
Jakub T. Jankiewicz
@jcubic
Lot of games was created by first writing editor for creating games and then creating game in that editor
jagg3127-alt
@jagg3127-alt
how would i do that
Jakub T. Jankiewicz
@jcubic
Write code or use a tools that will help you
jagg3127-alt
@jagg3127-alt
so where would i get these tools
Jakub T. Jankiewicz
@jcubic
I think that for this specifc task you will need to write the tool first
jagg3127-alt
@jagg3127-alt
so how do i do that
Jakub T. Jankiewicz
@jcubic
Example tool is this https://github.com/jcubic/gaiman
jagg3127-alt
@jagg3127-alt
ok
Jakub T. Jankiewicz
@jcubic
it's a language, to create it I used tools called parser generator and code generator
jagg3127-alt
@jagg3127-alt
ok this is getting deep ill be right back
Jakub T. Jankiewicz
@jcubic
I think you have two options, create GUI editor or write a language that will generate the games
First require to write CSS/HTML/JavaScript
But I think that language will be better, you can use any editor you want
You write simple code that you would like your code to be written and then create langauge that will allow you to write that game like this
I'm wondering it would be possible to make gaimain generate PHP code and generate your game
jagg3127-alt
@jagg3127-alt
you would help me with your generator? i dont think its necesary
but if you wanna try go ahead
Jakub T. Jankiewicz
@jcubic
Maybe will do this, but not right now
jagg3127-alt
@jagg3127-alt
ok should we talk on this or a different chat cause i have a chat on gitter specific to my coding stuff
Jakub T. Jankiewicz
@jcubic
If you want to keep logs in one place we can chat in different place
jagg3127-alt
@jagg3127-alt
yeah that would be great
sent a link
jagg3127-alt
@jagg3127-alt
my code is messed up could you check it out im gonna go eat dinner
jagg3127-alt
@jagg3127-alt
its typing ${$log} instead of the beginning thing also when i go into the first log it types it twice
so could you help???
Jakub T. Jankiewicz
@jcubic
Sorry I've made mistake it should be:
<?php
  function logs($token, $choice = 0) {
    $this->valid_token($token);
    global $logs;
    if (isset($logs[$choice])) {
      $log = $logs[$choice];
      if ($choice == 0) {
        return '[[ send "$log::logs" ]]';
      } else {
        return '[[ send "$log::logs::1000" ]]';
      }
    } else {
      throw new Error('Invalid choice');
    }
  }
$logs not ${$logs} it was left over from previous code.
and no It will not echo twice because the function is called once and only one return is called at a time
first return is when you type just logs without the number and the other return when you type a number
jagg3127-alt
@jagg3127-alt
ok
thanks
jagg3127-alt
@jagg3127-alt
ummm there is a bug when i replace my old logs function with this one it breaks the login
Jakub T. Jankiewicz
@jcubic
First question What error you have? Can you share the code, commit to git?
jagg3127-alt
@jagg3127-alt
yeah i will
its on github now
Jakub T. Jankiewicz
@jcubic
please fix the directories it's hard to navigate in terminal jcubic-terminal-escapeco/jcubic-terminal-escapeco-main/escapeco-all
jagg3127-alt
@jagg3127-alt
give me a second
Jakub T. Jankiewicz
@jcubic
remove those directorys in terminal use git mv jcubic-terminal-escapeco/jcubic-terminal-escapeco-main/escapeco-all/* .
and commit
You didn't made any changes. So what is not woking if you didn't added any code that I've posted here?
jagg3127-alt
@jagg3127-alt
goodness me this thing messed me up ill be right back
jagg3127-alt
@jagg3127-alt
fixed github its now on branch master though
im gonna have to go so cya
Jakub T. Jankiewicz
@jcubic
You have logs two times in PHP and you deleted the login function. Just please look what you're doing
That's why login doesn't work, because you've deleted it
Jakub T. Jankiewicz
@jcubic
You also deleted all my changes
Jakub T. Jankiewicz
@jcubic
I've created a PR please don't remove my code jagg3127-alt/jcubic-terminal-escapeco#3
jagg3127-alt
@jagg3127-alt
oops sorry im going to lable these thing next time