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: Planet Search Overhaul (07/13/24)

Pages: 1 ... 71 72 [73] 74 75 ... 734

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

dmaiski

  • Captain
  • ****
  • Posts: 422
  • resistance is futile
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1080 on: November 18, 2013, 11:53:01 PM »

WeaponAPI.getShip() returns the ship the weapon is mounted on.
but i need the weapon that fired it, not the ship
and once ship dies all getWeapon return null...
Logged
BISO
(WIP) lots of shiny new weapons ( :-[ i have more weapons then sprites :-[ )

i got a cat pad
its like a mouse pad but better!

etherealblade

  • Commander
  • ***
  • Posts: 134
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1081 on: November 19, 2013, 11:02:52 PM »

Is it possible to add your own custom music track that only plays when you enter a specific system?
Logged
Spoiler

[close]

dmaiski

  • Captain
  • ****
  • Posts: 422
  • resistance is futile
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1082 on: November 21, 2013, 06:28:06 PM »

1. is there some way to use phase skimm blurr effect in a script without using phase skim?

2. is htere some way to make a ships shileld non-coliding, so it dose not interact with attacks?

Logged
BISO
(WIP) lots of shiny new weapons ( :-[ i have more weapons then sprites :-[ )

i got a cat pad
its like a mouse pad but better!

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1083 on: November 21, 2013, 06:35:26 PM »

I don't think no. 1 can be done atm, but no. 2 can be done by forcing the shield to zero-size.
Logged
Please check out my SS projects :)
Xeno's Mod Pack

kazi

  • Admiral
  • *****
  • Posts: 714
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1084 on: November 21, 2013, 08:04:29 PM »

Is it just me or does it seem like missiles don't get custom explosion sounds from a proximity fuse? It just plays the normal impact sound from the core game no matter what sound I specify.

Copying my AOE missiles I see...  ;)

At the moment, it looks like all missile or projectile impacts are coded to use only the default weapon impact sounds. If I recall correctly, that gives a choice of kinetic, high explosive, energy, or beam impact sounds to choose from. You could potentially add impact sounds to each category in the sounds.json file, but then everything else in the category would use them too. What you'd need to do is create a separate projectile impact class (like KINETIC2) and give that class its own set of impact sounds. At the moment, I don't think this is possible, but if you figure out a way, let me know.
Logged

xenoargh

  • Admiral
  • *****
  • Posts: 5078
  • naively breaking things!
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1085 on: November 21, 2013, 10:02:03 PM »

Just use playSound()?
Logged
Please check out my SS projects :)
Xeno's Mod Pack

dmaiski

  • Captain
  • ****
  • Posts: 422
  • resistance is futile
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1086 on: November 21, 2013, 11:27:37 PM »

I don't think no. 1 can be done atm, but no. 2 can be done by forcing the shield to zero-size.

how? when i do it from ship files it causes bug
Logged
BISO
(WIP) lots of shiny new weapons ( :-[ i have more weapons then sprites :-[ )

i got a cat pad
its like a mouse pad but better!

Arumac

  • Lieutenant
  • **
  • Posts: 98
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1087 on: November 23, 2013, 08:24:27 PM »

Hi,

       I get an error 15085 [Thread-6] ERROR com.fs.starfarer.combat.String  - org.json.JSONException: JSONObject["displayName"] not found.
I think I've nailed it down to my faction file. However I simply don't understand what's going on. I've looked all over the place for an answer to this. I'll post my faction file, if anyone's willing to look at it, maybe I'm just not looking in the correct place, or I'm overlooking something.

Spoiler
Quote
{
   id:"MercCom",
   "color":[54,89,86,255],
   "displayName":"Merc Com",
   "shipNamePrefix":"MCV",
   "shipNameSources":{
      "ROMAN":2,
      "GREEK":1,
     "MCOM_MISC":2,
   },
   "description":"A diverse union of mercenaries and tradesmen engaged in all manner of conduct.",
   "names":{
      "old english":1,
     "fringe":1,
     "modern":1,
   },
   "portraits":{
      "standard_male":[
         "graphics/portraits/portrait_hegemony01.png",
         "graphics/portraits/portrait_hegemony02.png",
         "graphics/portraits/portrait_hegemony05.png",
         "graphics/portraits/portrait_mercenary01.png",
         "graphics/portraits/portrait_mercenary03.png",
         "graphics/portraits/portrait13.png",
         "graphics/portraits/portrait15.png",
      ],
      "standard_female":[
         "graphics/portraits/portrait_hegemony03.png",
         "graphics/portraits/portrait_hegemony04.png",
         "graphics/portraits/portrait_mercenary02.png",
         "graphics/portraits/portrait16.png",
      ],
   },
   "fleetCompositions":{
      "patrol":{
         "displayName":"Scout",
         "maxFleetPoints":12,
         "daysWorthOfSupplies":[30, 50],
         "lyWorthOfFuel":[30, 50],
         "extraCrewPercent":[1, 5],
         "marinesPercent":[2, 3],
         "ships":{
            "harasser_Guerilla":[1, 4],
         "harasser_Skrimisher":[1, 4],
         "raptor_stock":[0,1],
         },
      },
     "huntkill":{
      "displayName":"Hunter Killer",
      "maxFleetPoints":36,
      "daysWorthOfSupplies":[20, 40],
      "lyWorthOfFuel":[20, 40],
      "extraCrewPercent":[80, 80],
      "marinesPercent":[20, 20],
      "ships":{
         "vespa_stock":[1,2],
         "whelp_wing":[0,1],
         "daggus_fighter_wing":[0,1],
         "harasser_huntkill":[0,1],
      },
      "raid":{
         "displayName":"Raiding Party",
         "maxFleetPoints":50,
         "daysWorthOfSupplies":[30, 50],
         "lyWorthOfFuel":[30, 50],
         "extraCrewPercent":[5, 10],
         "marinesPercent":[5, 10],
         "ships":{
            "harasser_Guerilla":[0, 4],
            "harasser_Skrimisher":[0, 4],
         "daggus_fighter_wing": [1,2],
         "wishbone_obsolete":[0, 2],
         "wishbone_adv":[0, 2],
         "ahiga_wing": [2, 4],
         "cadeus_assault": [0, 1],
         "korban_stock": [0, 1],
         "raptor_stock": [1,3],
         "steward_stock":[1,1],
         "steward_assault":[0,1],
         "polkan_wing":[0,1],
         "whelp_wing":[0,1],
         "cataman_stock":[0,1],
         },
      },
      "attack":{
         "displayName":"Assault Squadron",
         "maxFleetPoints": 260,
         "daysWorthOfSupplies":[30, 50],
         "lyWorthOfFuel":[30, 50],
         "extraCrewPercent":[5, 10],
         "marinesPercent":[5, 10],
         "ships":{
            "harasser_Skrimisher":[0, 1],
         "harasser_huntkill":[0,2],
         "daggus_fighter_wing": [2,4],
         "wishbone_adv":[1, 4],
         "rndhd_elite":[0, 2],
         "stainless_stock": [0,2],
         "wishbone_e_adv": [0,1],
         "ahiga_wing": [0, 2],
         "cadeus_assault": [1, 3],
         "cadeus_support": [0, 2],
         "korban_stock": [0, 2],
         "raptor_stock": [0,3],
         "steward_stock":[1,2],
         "steward_assault":[1,2],
         "diplomat_stock": [1,4],
         "victory_obsolete": [0,1],
         "victory_assault": [1,2],
         "romach_assault": [1,3],
         "whelp_wing":[2,3],
         "cataman_stock":[1,2],
         "cataman_closesupport":[0,1],
         "velites_standard":[2,3],
         "polkan_wing":[2,3],         
         },
      },
      "systemDefense":{
         "displayName":"Defense Fleet",
         "maxFleetPoints":320,
         "daysWorthOfSupplies":[30, 50],
         "lyWorthOfFuel":[30, 50],
         "extraCrewPercent":[5, 10],
         "marinesPercent":[5, 10],
         "ships":{
         "rndhd_elite":[1, 8],
         "wishbone_adv":[1, 2],
         "daggus_fighter_wing": [2,6],
         "polkan_wing":[2,4],
         "harasser_huntkill":[0,2],
         "harasser_Skrimisher":[1, 3],
         "stainless_stock": [0,3],
         "wishbone_e_adv": [0,1],
         "ahiga_wing": [2, 4],
         "cadeus_assault": [1, 4],
         "cadeus_support": [1, 3],
         "korban_stock": [1,3],
         "raptor_stock": [0,3],
         "diplomat_stock": [2,5],
         "victory_assault": [1,4],
         "romach_assault": [3,4],
         "cataman_stock":[2,3],
         "cataman_closesupport":[1,2],
         "rook_standard":[3,5],
         "whelp_wing":[2,4],
         },
      },
      "supplyConvoy":{
         "displayName":"Supply Fleet",
         "maxFleetPoints":100,
         "daysWorthOfSupplies":[100, 150],
         "lyWorthOfFuel":[30, 50],
         "extraCrewPercent":[5, 10],
         "marinesPercent":[5, 10],
         "ships":{
            "atlas_Standard":[2, 4],
            "wishbone_obsolete":[2, 4],
         "daggus_fighter_wing": [1,2],
         "harasser_Skrimisher":[3, 6],
         "buffalo_Standard":[0, 3],
         "stainless_stock": [0,1],
         "wishbone_e_adv": [0,1],
         "ahiga_wing": [1, 2],
         "raptor_stock": [0,1],
         "diplomat_stock": [1,1],
         "romach_assault": [0,1],
         },
      },
      "fuelConvoy":{
         "displayName":"Fuel Barge",
         "maxFleetPoints":100,
         "daysWorthOfSupplies":[30, 50],
         "lyWorthOfFuel":[120, 200],
         "extraCrewPercent":[5, 10],
         "marinesPercent":[5, 10],
         "ships":{
            "phaeton_Standard":[1, 3],
         "daggus_fighter_wing": [1,2],
         "dram_Light":[3, 6],
         "harasser_Skrimisher":[3, 6],
         "wishbone_obsolete":[2, 4],
         "rndhd_obsolete":[0, 2],   
         "stainless_stock" :[0,1],
         "ahiga_wing": [1, 2],
         "cadeus_assault": [0,1],
         "raptor_stock": [0,1],
         "romach_assault": [0,1],
         },
         },
      },
      "personnelConvoy":{
         "displayName":"Personnel Convoy",
         "maxFleetPoints":80,
         "daysWorthOfSupplies":[30, 50],
         "lyWorthOfFuel":[30, 50],
         "extraCrewPercent":[5, 10],
         "marinesPercent":[10, 20],
         "ships":{
            "valkyrie_Elite":[2, 4],
            "harasser_Skrimisher":[3, 6],
         "daggus_fighter_wing": [1,2],
         "wishbone_obsolete":[2, 4],
         "rndhd_obsolete":[0, 1],
         "stainless_stock": [0,1],
         "ahiga_wing": [1, 2],
         "cadeus_assault": [0,1],
         "raptor_stock": [0,1],
         "romach_assault": [0,1],
         },
      },         
   
   "traits":{
      "admiral":{
         
      },
      "captain":{
         "cowardly":1,
         "cautious":1,
         "steady":1,
         "aggressive":1,
         "suicidal":1,
         "fearless":1,
      },
   },
   "dialogue":{
      "greetingFriendly":"Greetings. Can we do something for you?",
      "greetingNeutral":"We are Members of the Mercenary Commonwealth. Inquiries are filed at our nearest Orbital base.",
      "greetingHostileAggressive":"Is there any place in particular you want us to send your bits?",
      "greetingHostileTimid":"We're currently on assignment. We'll allow you to leave this time.",
   }
   },
},
[close]

Any and all help is greatly appreciated
Logged

dmaiski

  • Captain
  • ****
  • Posts: 422
  • resistance is futile
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1088 on: November 23, 2013, 08:33:03 PM »

its unhappy with one of your "displayNAME" stats, try systematicaly deleting anything that uses that one at a time till it stops giving you the error. then you found your bug
Logged
BISO
(WIP) lots of shiny new weapons ( :-[ i have more weapons then sprites :-[ )

i got a cat pad
its like a mouse pad but better!

maximilianyuen

  • Captain
  • ****
  • Posts: 358
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1089 on: November 24, 2013, 07:00:12 AM »

just to quick check if anyone can help narrow down where should I look at to fix this error....

I checked all the "id" parts in my code in .ship/.wpn/.system/.proj which got this line

{
   "id":"eonex_main",  # this id must match what's in the spreadsheet

which is the only place i know could lead to this error....

Spoiler
Code
8453 [Thread-9] INFO  com.fs.starfarer.loading.scripts.ScriptStore  - Class [org.lazywizard.lazylib.LazyLib] already loaded (perhaps from jar file, or due to a reference from another class), skipping compilation.
8614 [Thread-6] ERROR com.fs.starfarer.combat.String  - org.json.JSONException: JSONObject["id"] not found.
org.json.JSONException: JSONObject["id"] not found.
at org.json.JSONObject.get(JSONObject.java:406)
at org.json.JSONObject.getString(JSONObject.java:577)
at com.fs.starfarer.loading.LoadingUtils.super(Unknown Source)
at com.fs.starfarer.loading.LoadingUtils.super(Unknown Source)
at com.fs.starfarer.loading.WeaponSpreadsheetLoader.new(Unknown Source)
at com.fs.starfarer.loading.SpecStore.Ò00000(Unknown Source)
at com.fs.starfarer.loading.null.super(Unknown Source)
at com.fs.super.oOOO.Ò00000(Unknown Source)
at com.fs.starfarer.combat.String.o00000(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
[close]
Logged
Fleet construction in progress.

Cyan Leader

  • Admiral
  • *****
  • Posts: 719
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1090 on: November 24, 2013, 07:23:35 AM »

I'm confused as to where do I edit the general price of things. I'm trying to duplicate some ships and weapons on vanilla for testing purposes and I know what I need to edit in terms of graphics and stats, but when it comes to pricing and availability I have no idea where to look. I've seen the " base value" entry in the weapons CSV but I don't think that's it. In fact, what is that? The values there are nowhere near the ones I see in stations and the CSV thread is outdated.

Another question I have is what the AI takes into account before engagement. What values does it look at for it to decide if it will run or engage? The total fleet deployment value?
Logged

dmaiski

  • Captain
  • ****
  • Posts: 422
  • resistance is futile
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1091 on: November 24, 2013, 07:41:44 AM »

@maximilianyuen
same method as above, delete parts of your code 1 by 1 till the error stops, last thing you deleted was causing the error
(also complain to alex for better error logs)
its unhappy with one of your "displayNAME" stats, try systematicaly deleting anything that uses that one at a time till it stops giving you the error. then you found your bug

@Cyan Leader
the .cvs files  like ship/wing/weapon_data.cvs
theres a column labled base value... its the fourth column
Logged
BISO
(WIP) lots of shiny new weapons ( :-[ i have more weapons then sprites :-[ )

i got a cat pad
its like a mouse pad but better!

Cyan Leader

  • Admiral
  • *****
  • Posts: 719
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1092 on: November 24, 2013, 08:01:31 AM »

@Cyan Leader
the .cvs files  like ship/wing/weapon_data.cvs
theres a column labled base value... its the fourth column

Oh nvm, I made a mistake when I was going through the files. What about my second question, any ideas? It's basically: what would I have to do in order to have a huge fleet and still have every AI opponent be aggressive to it.
Logged

Arumac

  • Lieutenant
  • **
  • Posts: 98
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1093 on: November 26, 2013, 05:43:51 PM »

its unhappy with one of your "displayNAME" stats, try systematicaly deleting anything that uses that one at a time till it stops giving you the error. then you found your bug

Unfortunately, that didn't work. I tried that several times, even copying lines from the hegemony faction file. I also did the displayName of the faction aswell. Am I missing something here?
Logged

Runoved

  • Lieutenant
  • **
  • Posts: 62
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #1094 on: November 30, 2013, 04:06:02 AM »

Thanks again for answering my previous question. I need your advice again.
I created a ship whose main weapon is a slow but powerful built-in long-range laser. And testing has shown that it is quite effective when controlled by the player. But when it is run by AI, strange happens. He just flies in circles around the enemy using only his PD weapons. At the same time from the main weapon he shoots an average of two - three times per battle. What could be the problem? May need to specify some additional tips for AI in the properties of the ship or weapons?
Or may need to somehow adjust the performance ship or weapons so AI understood how to use them?
Thanks in advance for your reply.
Logged
Pages: 1 ... 71 72 [73] 74 75 ... 734