Galaxy Generation. I wanted to increase the number of stars. [SELF SOLVED]

Discussion in 'Mod Discussions' started by chrispikula, June 23, 2014.

  1. chrispikula

    chrispikula New Member

    Messages:
    1
    Likes Received:
    1
    So I was looking at the files that populate the galaxy, and from what I understand from breeder.js, the galaxies are generated as soon as you start the galactic war interface. I could be wrong.

    I think all I need to do is increase the generation of stars wherever the class galaxy is populated, but I have no idea what that could be. It looks like there's a way to assign new stars into that class, but as I don't know if I have all the variables, and that I don't know .js very well, that's a bit out of my hand.

    Okay, so I found a really *terrible* way to do it:


    in galactic_war/shared/js you can open GalaxyBuilder.js, and add make the modifiction below:
    options = options || {};
    *options.size = options.size * 3; //For when UBER isn't ENOUGH
    //oh, and I'm happy that arithmetic operators aren't scrubbed from these files. So happy.
    this.seed = options.seed || 0;

    By the way, increasing this slows the game down a bit. Do not go more than 5 unless you want to chug. It seems that it builds the galaxy graph as soon as you switch to the tab, 'new war', so you'll notice a pause. I guess it builds the galaxy before actually starting a new game? This also includes the cards I think. It makes sense that this is happening, for debugging purposes. I'm thinking if we were to start messing around with the placement variables, we could actually have a spiral galaxy of sorts. Heh.
    wondible likes this.
  2. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    A spiral galaxy would be awesome! It could also help direct the progression to make it more linear, which would allow the difficulty to ramp up more smoothly.

Share This Page