Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: lets mess around with generators  (Read 2464 times)

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
lets mess around with generators
« on: March 31, 2015, 02:33:13 PM »

So I was interested if SS could be changed from some settings file or generator file to make the following happen:

larger number of fleets, and smaller fleets with less ships.
Make fighters more populous throughout the sector.
Make planets closer together.
make all factions hostile.
Just for fun: Randomly spawn player with one ship and like 1000 other equally matched fleets. Last one alive wins. All fleets are hostile to each other and player.

thats all for now. So how'd to do that?
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: lets mess around with generators
« Reply #1 on: March 31, 2015, 02:53:23 PM »

Basically, start learning Java, re-write a fair amount of the core game behaviors, and you're good :)

This isn't something you can do with minor tweaking, basically, but it can be done if you're willing to put your mind to it :)
Logged
Please check out my SS projects :)
Xeno's Mod Pack

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
Re: lets mess around with generators
« Reply #2 on: March 31, 2015, 03:03:13 PM »

umm, could u lead to the file that controls how ship fleets are generated?
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: lets mess around with generators
« Reply #3 on: March 31, 2015, 03:06:00 PM »

Set up NetBeans, sit down with the API, and look at a few things about Java first.  This isn't going to be as easy as changing a few numbers and it won't do any good to point you at specific files yet :)
Logged
Please check out my SS projects :)
Xeno's Mod Pack

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: lets mess around with generators
« Reply #4 on: March 31, 2015, 07:23:43 PM »

Yeah, this is definitively the kind of things that require to rewrite a significant amount of vanilla code (in this case the whole fleet spawning script) It's possible to do it, but that's a SS+ level of modification, not a small time tweak.
Logged
 

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
Re: lets mess around with generators
« Reply #5 on: April 01, 2015, 09:11:24 AM »

you assume i have no knowledge of java, but i actually have netbeans ( might be setup for c++) not  java...

so you agree that there IS a fleet spawning script somewhere, yet you refuse to tell me where it is. well?

gonna tell me? please?
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

Dark.Revenant

  • Admiral
  • *****
  • Posts: 2806
    • View Profile
    • Sc2Mafia
Re: lets mess around with generators
« Reply #6 on: April 01, 2015, 09:46:41 AM »

starsector-core/starsector-api.jar, iirc

You should be able to find the fleet generation scripts in there.  If you can't do that much on you own, you won't be able to make the extensive architectural modifications required to implement your ideas.
Logged

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
Re: lets mess around with generators
« Reply #7 on: April 01, 2015, 01:54:16 PM »

umm, these are .class files, so I was assuming that what I'd find would be uncompiled code. However, there is another file named starfarer.api.zip so that contains uncompiled code so I'll start from that.
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: lets mess around with generators
« Reply #8 on: April 01, 2015, 02:20:16 PM »

No, he's saying that if you set up NetBeans for Java, following LazyWizard's instructions, you'd have the API viewable there and could look at the class structures and compare them with what's going on in, say, SectorGen --> EconomyFleetManager :)
Logged
Please check out my SS projects :)
Xeno's Mod Pack