Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: 1 ... 3 4 [5] 6 7 ... 31

Author Topic: [0.9.1a]STEELCLAD v1.0.25c ( 17.11.2019)  (Read 159046 times)

Pushover

  • Captain
  • ****
  • Posts: 292
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #60 on: May 17, 2017, 02:10:23 AM »

Got the rules.csv file working for starting the game, at least. See attached.

I copied the current vanilla rules.csv file, cut out the new game starting options, and replaced them with the ones you provided. I then replaced instead of append in mod_info.json (in general, replace should be used over append with a TC IMO)
I had some trouble with setStartingRep.java compiling that I never resolved, but since you cut it out of the rules.csv, it's unneeded and I deleted it.
I had to doctor the rules a bit to fix some minor issues (extra line with a blank space in it caused a crash, aptitude points no longer exist).

However, the game fails to create the sector. There should be a planets.json (in data/config), but there is not one provided, so barnard_star_red_dwarf is not recognized.
Code
		PlanetAPI barnard_star = system.initStar("barnard", // unique id for this barnard_star 
"barnard_star_red_dwarf",  // id in planets.json
    400f,   // radius (in pixels at default zoom)
    600); // corona radius, from barnard_star edge

[attachment deleted by admin]
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #61 on: May 17, 2017, 04:54:10 AM »

Aha...I used a REPLACE TEXT function and it re-named an entry it shouldn't have.
It should be "star_red_dwarf"
delete the barnard bit

Also, currently making new ships for ISA and RSF
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #62 on: May 17, 2017, 10:58:08 AM »

I added a proper fix (hopefully, can't test on this laptop ATM)

You can get the fix on the DL link.
Ignore previous "fix" - delete it.


rules.csv goes into data/capaign
Barnard.java goes into data/scripts/world/RSF
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #63 on: May 17, 2017, 12:30:49 PM »

WIP of new russian ship:

Going for a blockade breaker. An old-school dreadnought - powerful frontal shield and engines and many, MANY medium weapons.
No heavy weapons and almost nothing can shoot forward.

[attachment deleted by admin]
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #64 on: May 17, 2017, 12:32:42 PM »

WIP of ISA carrier

[attachment deleted by admin]
Logged

SCC

  • Admiral
  • *****
  • Posts: 4112
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #65 on: May 17, 2017, 01:13:06 PM »

Code
	108796 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.RuntimeException: Texture [rings1] from category [misc] not found
java.lang.RuntimeException: Texture [rings1] from category [misc] not found
at com.fs.starfarer.settings.StarfarerSettings.?00000(Unknown Source)
at com.fs.starfarer.campaign.RingBand.readResolve(Unknown Source)
at com.fs.starfarer.campaign.RingBand.<init>(Unknown Source)
at com.fs.starfarer.campaign.BaseLocation.addRingBand(Unknown Source)
at data.scripts.world.RSF.Barnard.generate(Barnard.java:102)
at data.scripts.world.SectorGen.generate(SectorGen.java:49)
at com.fs.starfarer.campaign.save.CampaignGameManager.super(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.while.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.float.dismiss(Unknown Source)
at com.fs.starfarer.ui.newui.newsuper.advanceImpl(Unknown Source)
at com.fs.starfarer.ui.o00O.advance(Unknown Source)
at com.fs.starfarer.ui.fornew.advanceImpl(Unknown Source)
at com.fs.starfarer.ui.o00O.advance(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.advance(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
So... Did I mess something or do I miss something?

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #66 on: May 17, 2017, 02:24:55 PM »

Odd...rings1 refers to the planet rings that the core game uses. ???
Logged

Pushover

  • Captain
  • ****
  • Posts: 292
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #67 on: May 17, 2017, 08:33:14 PM »

You have this code in Barnard.java:
Code
        system.addRingBand(p3, "misc", "rings1", 256f, 1, new Color(75, 37, 15, 179), 256f, 700, 110f);
        system.addRingBand(p3, "misc", "rings1", 256f, 0, new Color(75, 49, 26, 179), 256f, 800, 115f);
        system.addRingBand(p3, "misc", "rings1", 256f, 0, new Color(75, 49, 26, 50), 256f, 900, 115f);
        system.addRingBand(p3, "misc", "rings1", 256f, 2, new Color(75, 49, 26, 50), 256f, 1100, 115f);
        system.addRingBand(p3, "misc", "rings1", 256f, 3, new Color(75, 49, 26, 179), 256f, 1200, 115f);

Vanilla no longer seems to make this call, for example, the code has the following in Aztlan.java:
Code
			//system.addRingBand(aztlan2, "misc", "rings1", 256f, 3, Color.white, 256f, 500, 30f);
system.addRingBand(aztlan2, "misc", "rings_dust0", 256f, 3, Color.white, 256f, 500, 33f, Terrain.RING, null);
Replacing those lines gets further in the generation, but there's a lot of issues.

Next up, it looks like Vega.java references the world type of "rocky" which has been replaced by things like "rocky_metallic".
Also, you try to set up a comm relay for the Hegemony in there.

Lomonosov attempts to create a planet of type "ice" instead of "frozen". The alien base has a duplicate id with the asteroid mining station (in custom_entities.json). It also tries to spawn for the "Alien" faction, instead of "ALIENS"
After that, Lomonosov still fails on the call to autogenerateHyperspaceJumpPoints, and I'm not sure why.
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #68 on: May 17, 2017, 11:48:20 PM »

Back to the drawing board, I guess.


The game has been throwing perplexing errors during the entire process.
For example, I coped a core system file and just changed planet names - game complains about NOT RECOGNIZING the command to auto-generate planets. I haven't touched it or the imported functions.

Logged

Pushover

  • Captain
  • ****
  • Posts: 292
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #69 on: May 18, 2017, 02:01:06 AM »

Nevermind, figured it out, you were using the variable name instead of the planet's ID for the orbit of the alien station, just the error was pointing to a strange line as to where it was failing.

Onward to the next errors!

I need a modified settings.json file to access the images you have provided. (see the illustrations object as well as hab_glows)

Most of this is fairly straightforward debugging, fortunately.



I guess at this point I should either give you a diff, or just pack and send you the modified files when I get through it all.
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #70 on: May 18, 2017, 07:16:35 AM »

the changed files would be swell.
Logged

Pushover

  • Captain
  • ****
  • Posts: 292
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #71 on: May 19, 2017, 12:02:09 AM »

System generation is now error free.
Note that despite this, the game still does not run. Vanilla procedural generation still runs, and crashes because the derelict faction does not exist (and I am sure it will crash for a host of other reasons).

Few things that I need your input on or you did not include:
Line 51 of Shelezyaka.java:
Code
a1.getSpec().setGlowTexture(Global.getSettings().getSpriteName("hab_glows", "stal"));
The graphic "stal", I can't find anywhere. I've replaced it with "barren" for now. If you want to add it, make the proper entry in settings.json, and then you can reference it.

Similar issue again in Grant.java:
Code
simpson.setInteractionImage("illustrations", "simpson");
"simpson" is not an image I found anywhere. Replaced with urban01 for now. Same exists with Gianopolis.java with "vella"

Code
uomoz_scrapyard.setInteractionImage("illustrations", "orbit");
orbit does not exist. Did you mean orbital? terran_orbit? Assumed orbital.

Code
SectorEntityToken centronom_nebula = Misc.addNebulaFromPNG("data/campaign/terrain/centronom_nebula.png",
centronom_nebula is missing. Commented out the lines for now. Same with Gianopolis.

Adra.java:
Code
relay.setCircularOrbitPointingDown(system.getEntityById("zagan"), 120, 5500, 220);
Needs an existing entity to orbit. Chose "unity" for now.

Kores.java:
Code
SectorEntityToken probe = DerelictThemeGenerator.addSalvageEntity(system, Entities.DERELICT_SURVEY_PROBE, Factions.DERELICT);
Derelict faction does not exist. Changed to pirate for now. Either add the derelict faction or assign a better faction to the probe.

Impalo.java
Code
PlanetAPI horizon = system.addPlanet("horizon", impalo_star, "Horizon", "rocky", 220, 160, 4300, 180);
Rocky does not exist. Replaced with rocky_ice for now.

Thule.java: Who owns the system (and the comm relay?) I gave it to pirates.

Various other common errors fixed. Most common is probably that faction names are capitalized when referred to in a string (not "isa", "ISA" is correct)

Changed files are attached. Complete list of changed files below:
Spoiler
       new file:   data/config/settings.json
        modified:   data/campaign/rules.csv
        modified:   data/config/custom_entities.json
        modified:   data/scripts/world/EMPTY/Thule.java
        modified:   data/scripts/world/EMPTY/Valhalla.java
        modified:   data/scripts/world/EMPTY/Zero.java
        modified:   data/scripts/world/FFS/Adra.java
        modified:   data/scripts/world/FFS/Impalo.java
        modified:   data/scripts/world/FFS/Kores.java
        modified:   data/scripts/world/ISA/Argos.java
        modified:   data/scripts/world/ISA/Grant.java
        modified:   data/scripts/world/ISA/Shington.java
        modified:   data/scripts/world/RSF/Barnard.java
        modified:   data/scripts/world/RSF/Gagarin.java
        modified:   data/scripts/world/RSF/Lomonosov.java
        modified:   data/scripts/world/RSF/Shelezyaka.java
        modified:   data/scripts/world/RSF/Vega.java
        modified:   data/scripts/world/UIN/Achiles.java
        modified:   data/scripts/world/UIN/Centronom.java
        modified:   data/scripts/world/UIN/Gianopolis.java
        modified:   data/scripts/world/VNS/GammaDraconis.java
        modified:   data/scripts/world/VNS/Vaynar.java
        modified:   data/scripts/world/XLE/Procyon.java
        modified:   data/scripts/world/XLE/Uomoz.java
        modified:   mod_info.json
[close]

EDIT:
It seems like removing the procgen plugin in settings.json solves part of the problem, but some parts still seem to be running and causing crashes. Seems likely due to the stuff you are trying to spawn in the various files.

[attachment deleted by admin]
« Last Edit: May 19, 2017, 12:47:39 AM by Pushover »
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #72 on: May 19, 2017, 01:00:07 AM »

Almost all of those errors are the result of replace functions. :P

Bloody hell.

Aha. Procedural generation tries to put derelicts in the systems it spawns. Obviously, the way around it is to copy the derelict faction from vanilla or overwrite it with a different one, but same name.
Logged

Pushover

  • Captain
  • ****
  • Posts: 292
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #73 on: May 19, 2017, 01:11:42 AM »

Looks like you need to modify custom_entities.json and figure out what to do with the probe, survey ship, and mothership, since the procgen is trying to create these and crash. We will need the derelict faction or something similar, or to rewrite the procedural generation, or possibly not use it, since it creates various custom entities that you will need to redefine.
Logged

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Re: [0.8a]STEELCLAD v0.1 (Ironclads revival) - 15.5.2017
« Reply #74 on: May 19, 2017, 01:19:07 AM »

Yup.
Getting this thing to run is a lot more difficult than imagined. At least as a TC. Things would be simpler if I were to just add factions.
Logged
Pages: 1 ... 3 4 [5] 6 7 ... 31