Wednesday, May 27, 2015

sorry, not working on prison entity atm

i'm doing a non-adult game together with my arch enemy - java.
if you're interested:
https://github.com/esranda/warman (it's just stupid java source code)

game concept:
"warman" is a single/multiplayer turn-based managerial war-game written in java using intellij idea and java's swing gui.
each turn players manage their troops: infantry & tanks (maybe air or other types later on), research better parts, put together new tanks and infantry equipment and allocate units to attack in order to gain more resources. turns in multiplayer are played out simultaneusly, battle outcome is computed after each round and is accessible via generated reports in text form.

sorry if you were expecting something less lewd...
should i post compiled versions here though? it's already playable...

17 comments:

  1. Sure, who doesn't like strategy games? Have you tried RAI7? A bit of a learning curve as the only translations I can find are machine translated, but an interesting game one the less.

    ReplyDelete
  2. if you like space sims - i recommend aurora http://aurora2.pentarch.org

    ReplyDelete
  3. Raizin 7 is a very fun, rather simple yet complex intrigue sim. Yes, you can pull off CKII level ploys at times with a few mods. Most are mahcine translations, and another mod adds one too many women to the game but it can be fun. Hongfire has a thread I've helped out with (under the name of Jack Archer) If you have any questions, or would like a compiled folder, just ask.

    ReplyDelete
    Replies
    1. yes i would like 1 compiled folder please, raw. i mean rar. no i mean 7z. uh whatever just give me a cheeseburger.

      Delete
    2. I did not forget to pack it, I've just been busy. I will warn you, the organization of the folder is messy. Will send it over at some point after purging my google drive.

      Delete
  4. This comment has been removed by the author.

    ReplyDelete
  5. I have few technical suggestions if you don't mind:
    - don't use ide specific project handling, use maven or gradle instead (idea can handle those too)
    - consider using javafx instead of swing, it has better api, looks better and gui builder (SceneBuilder) is far ahead of swing ones
    - don't use java serialization for anything, you won't be able to load objects when you modify their classes
    - use property setters when necessary - I've noticed you have all your properties public plus some ugly property fixing method (if(something > 100) { something = 100; }). Those fixes can be handled better in setters
    - try to use java 8 streams instead of for cycles - streams are very easily parallelized by calling parallel() method on them

    ReplyDelete
    Replies
    1. thanks those suggestions are very helpful, i agree on all but on the java 8 streams and java serialization things.
      i know i "won't be able to load objects when their classes get modified", but why would i want to anyway?

      Delete
  6. Well let's say I'm playing your game and you release new version (and you modify you Game class in some way) - I won't be able to load savegame from the previous version. About saving itself - you can make your life easier by taking advantage of AutoCloseable interface - your method save will look like this:
    try {
    File f = new File("save" + File.separator + filename);
    f.getParentFile().mkdirs();
    f.createNewFile();
    try (ObjectOutputStream oout = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream("save" + File.separator + filename, true)))) {
    oout.writeObject(g);
    }
    System.out.println("Game Saved.");
    } catch (Exception e) {
    throw new RuntimeException("catch me if you can", e);
    }

    ReplyDelete
    Replies
    1. alright alright alright... do i see any difference to my code that's already there? i think not or am i mistaken?

      Delete
  7. the streams are closed automatically, even when exception is thrown

    ReplyDelete
  8. It has been quite some time that you dropped PE (actaully one full year), any time soon you will head back to update that?

    ReplyDelete
    Replies
    1. the problem is, the entire source is 1 huge file, which i didn't manage to split into smaller parts after i paused development and it's too much of a bother to dig into this monster again. i know i am exaggerating a bit, there are much bigger source codes in 1 big file out there, but still...

      Delete
    2. So... will you do something simular to that but with new ways to construct the file that can be easier to work in te future? I like that game, its so sad if it is going to stop development completely.

      Delete
  9. Hello, I want to make the game, which were inspired "RE Progeny", it was named "RE Propagation". This is the link to blog about this game http://repropagation.blogspot.com/
    Please, look this and help to make this game!)))

    ReplyDelete