Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: 1 ... 181 182 [183] 184 185 ... 779

Author Topic: Misc modding questions that are too minor to warrant their own thread  (Read 2425661 times)

Originem

  • Purple Principle
  • Captain
  • ****
  • Posts: 432
  • Dancing like a boss.
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2730 on: March 05, 2016, 07:59:34 PM »

A question. How does addafterimage work in ShipAPI?

Hard to explain exactly, basically it allows you to make the ship look like it's smeared/moving fast/something like that. Can add a bunch of images of the ship sprite that move away from it in the specified direction and fade in/out over the specified duration.
So if i addafterimage at like ship.getloc.x,ship.getloc.y,ship.getVel.x(or 0),ship.getVel.y(or 0), a copy sprite will appear at that place? If not, what will happen?
Logged
My mods


Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26090
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2731 on: March 05, 2016, 08:21:53 PM »

So if i addafterimage at like ship.getloc.x,ship.getloc.y,ship.getVel.x(or 0),ship.getVel.y(or 0), a copy sprite will appear at that place? If not, what will happen?

Yes, exactly - but it's only of the base sprite, not the weapons, engine glows, or anything else. Not even decorative weapons.
Logged

joe130794

  • Commander
  • ***
  • Posts: 228
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2732 on: March 07, 2016, 10:18:48 AM »

Just wondering how can I change the amount of fleet points in a mission so I can deploy more ships. Tried opening the mission in word pad and searching for "80" because that is the current limit for the mission but can't find it.
Thanks in advance.
Logged

joe130794

  • Commander
  • ***
  • Posts: 228
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2733 on: March 07, 2016, 12:52:40 PM »

And can someone tell me how to make projectiles not hit missiles. Thank you
Logged

Divinitus Monstrum

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2734 on: March 07, 2016, 07:06:06 PM »

Hey all, I don't post often but I am pretty stumped with this one.
I get this when loading the game with a mod I am making. I am using jdk8 as others have suggested its jdk7 that caused this issue.
Thanks in advance!
Spoiler
21160 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
   at java.util.ArrayList.rangeCheck(Unknown Source)
   at java.util.ArrayList.get(Unknown Source)
   at com.fs.starfarer.loading.scripts.ScriptStore.new(Unknown Source)
   at com.fs.starfarer.settings.StarfarerSettings.super(Unknown Source)
   at com.fs.starfarer.launcher.ModManager.getEnabledModPlugins(Unknown Source)
   at com.fs.starfarer.loading.ResourceLoaderState.init(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)
[close]
Edit: Cant read. should have used jdk7. Thanks Snrasha!
« Last Edit: March 08, 2016, 05:21:39 AM by Divinitus Monstrum »
Logged

Snrasha

  • Admiral
  • *****
  • Posts: 705
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2735 on: March 07, 2016, 09:16:29 PM »

Yes, this is a problem because you compile your mod in jdk8. You can use research on this forum and found all same solution, retrograde to JDK7.

For Joe130794, i have a idea, but maybe too bad for that and this is not very usefull.
Logged
I am pretty bad on english. So, sorry in advance.

Gladiator Society
Add battle options on Com Relay/ Framework for modders for add their own bounty.

Sanguinary Autonomist Defectors A fan-mod of Shadowyard.

joe130794

  • Commander
  • ***
  • Posts: 228
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2736 on: March 08, 2016, 01:58:10 AM »

Which one? The missions fleet points or Projectiles not hitting missiles. I have flak for missiles but want my main guns to not hit missiles so it actually hit's what I want.
Logged

joe130794

  • Commander
  • ***
  • Posts: 228
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2737 on: March 08, 2016, 11:11:47 AM »

Spoiler
[close]

Recorded some gameplay with a modified ship. I changed the autofire on some of the weapons so you can see whats shooting. I want my main gun batteries to not engage fighters because they tend to miss and I don't want the heavy gun batteries to hit and be hit by missiles if anyone can help.
Logged

Pax_Empyrean

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2738 on: March 09, 2016, 06:13:18 AM »

How do I change the number of hit points that a missile has?

I kinda figured it would be under "proj hitpoints" in weapon_data.csv (since what else would that do?) but even after reducing that value to 1, missiles are still taking multiple hits from Vulcans or surviving a a second or two from a point defense beam. Other changes I've made to weapon_data.csv are working just fine, so I know the mod itself isn't broken.
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2739 on: March 09, 2016, 06:20:19 AM »

How do I change the number of hit points that a missile has?

I kinda figured it would be under "proj hitpoints" in weapon_data.csv (since what else would that do?) but even after reducing that value to 1, missiles are still taking multiple hits from Vulcans or surviving a a second or two from a point defense beam. Other changes I've made to weapon_data.csv are working just fine, so I know the mod itself isn't broken.
Are you sure there isn't something miss-aligned on that row? Or a missing comma? You can use OpenOffice to check your formatting easily.
Logged
 

Pax_Empyrean

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2740 on: March 09, 2016, 06:44:59 AM »

How do I change the number of hit points that a missile has?

I kinda figured it would be under "proj hitpoints" in weapon_data.csv (since what else would that do?) but even after reducing that value to 1, missiles are still taking multiple hits from Vulcans or surviving a a second or two from a point defense beam. Other changes I've made to weapon_data.csv are working just fine, so I know the mod itself isn't broken.
Are you sure there isn't something miss-aligned on that row? Or a missing comma? You can use OpenOffice to check your formatting easily.

Pretty sure. I use LibreOffice (an OpenOffice fork that's still alive) to do the editing in the first place. Never had a problem like that before. I've changed a few other things, so they are chargedown restricted rather than using ammo, but everything else is working fine. Here's the line for the Harpoon MRM; it should have two hit points, per the entry just before the AI hints:

Quote
Harpoon MRM,harpoon,0,200,2500,,375,,15,30,5,,,,HIGH_EXPLOSIVE,0,,0,5.9,2,0.1,0,0,0,,,300,100,12.5,2,"DO_NOT_AIM, DO_NOT_CONSERVE",11.5

Just making sure that there isn't a value I need to change somewhere else.
Logged

Deathfly

  • Modders' Vanguard
  • Commander
  • ***
  • Posts: 245
  • Murdered by T. H. Morgan
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2741 on: March 09, 2016, 07:26:53 AM »

A quick question: what "aiHints" can we use in .system files?
Logged
A not-so-noob functional geneticist
And a free bug hunter
Code and decode almost everythings with a genomics approach.
Served in Neutrino corporation as a long-term services and supports staff.

Pax_Empyrean

  • Lieutenant
  • **
  • Posts: 73
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2742 on: March 09, 2016, 10:56:04 AM »

How do I change the number of hit points that a missile has?

I kinda figured it would be under "proj hitpoints" in weapon_data.csv (since what else would that do?) but even after reducing that value to 1, missiles are still taking multiple hits from Vulcans or surviving a a second or two from a point defense beam. Other changes I've made to weapon_data.csv are working just fine, so I know the mod itself isn't broken.
Are you sure there isn't something miss-aligned on that row? Or a missing comma? You can use OpenOffice to check your formatting easily.

Okay, so I went back and copied over the stuff that I had changed, and then changed only the projectile hit points, just to make sure that I hadn't stumbled into some oddball way of breaking the file. All behavior is just the same as vanilla, including the hit points, which should have been lowered dramatically but still seem to show base values.

Has anyone successfully changed this, or are these problems a one-off thing for me?
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2743 on: March 09, 2016, 12:01:29 PM »

Harpoon MRM,harpoon,0,200,2500,,375,,15,30,5,,,,HIGH_EXPLOSIVE,0,,0,5.9,2,0.1,0,0,0,,,300,100,12.5,2,"DO_NOT_AIM, DO_NOT_CONSERVE",11.5
Works fine for me.
Logged
 

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 26090
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #2744 on: March 09, 2016, 12:06:44 PM »

One shot/rack/pod missile weapons share the same projectile, so any change in the csv stats must be made for all 3 versions of the weapon.
Logged
Pages: 1 ... 181 182 [183] 184 185 ... 779