1. Play on the ImDeity Minecraft Multiplayer server -- Goto the "Multiplayer" section of Minecraft and type "mc.imdeity.com" to join!
    Dismiss Notice

Comments on Profile Post by KILL3RTACO

  1. Majora_Unmasked
    Majora_Unmasked
    I love you
    January 4, 2014
  2. KILL3RTACO
    KILL3RTACO
    Aw <3
    January 4, 2014
  3. Majora_Unmasked
    Majora_Unmasked
    Awesome; where do I place it? :3
    January 4, 2014
  4. KILL3RTACO
    KILL3RTACO
    You don't need to place it anywhere, you can just call the main method.
    January 4, 2014
  5. Majora_Unmasked
    Majora_Unmasked
    So I just open it in Eclipse and run it?
    January 4, 2014
  6. KILL3RTACO
    KILL3RTACO
    Well, I mean call the main method as in give it arguments. In the main method (preferably at the top) you can do args = new String[]{"<your eclipse workspace folder>", "<the project>"}. For example, I would do args = new String[]{"/home/taco/.workspace", "DeityCreative"}
    January 4, 2014
  7. KILL3RTACO
    KILL3RTACO
    You could also start it via the java command in a command prompt. That's how I normally execute it. You would need to compile it though.
    January 4, 2014
  8. KILL3RTACO
    KILL3RTACO
    (tip - eclipse keeps compiled version of source code in <workspaceDir>/<project>/bin)
    January 4, 2014
  9. Majora_Unmasked
    Majora_Unmasked
    Tyvm Taco. How goes the Client side TacoAPI? :p
    January 4, 2014
  10. KILL3RTACO
    KILL3RTACO
    Lol, I don't think I'll ever need to make a client side api
    January 4, 2014
  11. Majora_Unmasked
    Majora_Unmasked
    But I'll need a client side api D:
    January 4, 2014
  12. KILL3RTACO
    KILL3RTACO
    Then I would need Forge for 1.7 :p
    January 4, 2014
  13. Majora_Unmasked
    Majora_Unmasked
    You could use Modloader, or just jump right in :p
    January 4, 2014
  14. KILL3RTACO
    KILL3RTACO
    Forge has a better event system though
    January 4, 2014
  15. Majora_Unmasked
    Majora_Unmasked
    Hm...
    well forge does have a development version for 1.7 :p
    January 4, 2014
  16. KILL3RTACO
    KILL3RTACO
    Meh :p
    January 4, 2014
  17. Majora_Unmasked
    Majora_Unmasked
    Cmon :p Btw does the line counter work for Notepad++?
    January 4, 2014
  18. KILL3RTACO
    KILL3RTACO
    stats = new ProgramStats("<src-folder>", ""); above "stats.showStats()" should work if I understand you correctly
    January 4, 2014
  19. KILL3RTACO
    KILL3RTACO
    That main method is used mainly for console, you can delete (or better yet, comment out) everything above "stats.showStats()" if you are going to run it from Eclipse
    January 4, 2014
  20. Majora_Unmasked
    Majora_Unmasked
    I'll try that.
    January 4, 2014
  21. Majora_Unmasked
    Majora_Unmasked
    gist.tar.gz... I'm guessing you use Linux :P
    January 4, 2014
  22. Majora_Unmasked
    Majora_Unmasked
    Oh btw, is there possibly a version of this that would work for Batch? I'm trying to make an installer with it and I thought it'd be cool to use this on it
    January 4, 2014
  23. KILL3RTACO
    KILL3RTACO
    Well, its a gist.. and its one file.. you can just copy/paste. Also, becuase it's java you can run it from any command line (if it's compiled, use javac if you need to) so you can use the java command to run it
    January 4, 2014
  24. KILL3RTACO
    KILL3RTACO
    By any command line, I mean Batch (windows) or Bash (Unix)
    January 4, 2014
  25. Majora_Unmasked
    Majora_Unmasked
    2 more questions cause I know very little about all this :D
    1) Is the <eclipse workspace folder> in ""s?
    2) If I use NP++ would I just put the folder that all those projects are in? (in this case it's dropbox)
    January 4, 2014
  26. KILL3RTACO
    KILL3RTACO
    1) If your running it via the command prompt, then yes, it will need to be in quotes but only if it has a space in the name (i.e. "C:\Users\Majora Unmasked", but C:\Users\MajoraUnmasked is different)
    2) If you use NP++ I suggest using the "stats = new ProgramStats()" method i said earlier, in this case it would be "stats = new ProgramStats("<folder>", "<project>")"
    January 4, 2014
  27. Majora_Unmasked
    Majora_Unmasked
    Where would I put the stats = newProgramStats() ?
    January 4, 2014
  28. KILL3RTACO
    KILL3RTACO
    Above stats.showStats()
    January 7, 2014
  29. Majora_Unmasked
    Majora_Unmasked
    One (hopefully) final question... would this work for Windows Batch? Because the program in question is written in Batch
    January 7, 2014
  30. KILL3RTACO
    KILL3RTACO
    I thin you asked this before. While some java programs may be platform (and even architecture) dependent, this one is not. You can run it via a Batch script if you wanted to
    January 7, 2014
  31. Majora_Unmasked
    Majora_Unmasked
    Oh I did? My bad. Please elaborate, for I am something of a noob with java :P
    January 7, 2014
  32. KILL3RTACO
    KILL3RTACO
    A Batch script is basically just a list of commands that you want the command prompt to run (although you can do more things). Every command is separated by a new line, one of these lines can be "java -jar <your jar file>"
    January 8, 2014
  33. KILL3RTACO
    KILL3RTACO
    That was the wrong command oops, but you get the point, you can run javac as well.
    January 8, 2014
  34. Majora_Unmasked
    Majora_Unmasked
    So I use javac and compile the program stats, then run it?
    January 8, 2014
  35. KILL3RTACO
    KILL3RTACO
    You only need to compile once, (unless you keep changing the source) but yeah
    January 9, 2014
  36. Majora_Unmasked
    January 9, 2014