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 ... 4 5 [6] 7 8 ... 706

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

MrDavidoff

  • Captain
  • ****
  • Posts: 398
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #75 on: January 05, 2013, 03:27:17 PM »

Not only that, its now StarSector so you'll need to remake it anyway  :D

You cant imagine the look on my face, when I saw the email, that "new Starsector is out"  :D
Logged

Lordzias

  • Lieutenant
  • **
  • Posts: 77
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #76 on: January 06, 2013, 01:51:09 AM »

How do i add my own portraits to the game? Placing them in the portraits folder doesn't work and I dont want some random pirate to have the same pretty mug as me...
Logged

Cycerin

  • Admiral
  • *****
  • Posts: 1665
  • beyond the infinite void
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #77 on: January 06, 2013, 01:11:08 PM »

Would it be possible to do something similar to the Aegis Deflector from Battleships Forever?



The glowing blue generators at the back could be shot down and take the invulnerable white sections to the front offline.

The main interesting idea is to tie some effect to a weapon that, if taken offline, disables the effect. For instance, imagine a ship with a series of generators along the side that confer a passive energy weapon damage bonus as long as they are online.
« Last Edit: January 06, 2013, 01:14:29 PM by Cycerin »
Logged

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #78 on: January 06, 2013, 02:06:17 PM »

Right now, no, since parts dont actually change the stats of a ship being the engines an exception
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #79 on: January 06, 2013, 05:01:05 PM »

   
2. I specified in the faction file
Code
"shipNameSources":{
"THULE":1,
},
but the game will randomly pick a name, not just from the specified one.
    What could be the problem?

has someone a hint for me?
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #80 on: January 06, 2013, 08:25:39 PM »

   
2. I specified in the faction file
Code
"shipNameSources":{
"THULE":1,
},
but the game will randomly pick a name, not just from the specified one.
    What could be the problem?

has someone a hint for me?

Can you send me a link to the mod? I should be able to take a look tomorrow.

One thing to check - if you're modifing a stock faction (which I suspect you're not), this would simply add the "THULE" name set to it - you'd have to specify for the .faction file to be replaced in mod_info.json.

Also: make sure your ship_names.json is under data/strings.

Logged

Cycerin

  • Admiral
  • *****
  • Posts: 1665
  • beyond the infinite void
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #81 on: January 07, 2013, 07:56:29 AM »

Actually, about that - all mothballed ships seem to pull from every ship name list in the data structure, not just the ones belonging to the faction that owns the station. Is that intended?
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #82 on: January 07, 2013, 08:23:41 AM »

Here is the updated mod.

ship_names.json in data/strings   :     check
no stockfaction = no replacing in mod_info.json? (or is it the opposite?)  :     check

Here is the updated version of the mod.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #83 on: January 08, 2013, 05:04:55 PM »

Ok, finally had a chance to look. In your ship_names.json, you 1) probably don't need to have all the other name categories and 2) don't actually have a "THULE" category (it's "OLD HIGH GERMAN").

Actually, about that - all mothballed ships seem to pull from every ship name list in the data structure, not just the ones belonging to the faction that owns the station. Is that intended?

You need to call void initMothballedShips(String factionId); on the cargo of the station. Otherwise, it'll init with the "independent" faction the first time it's used.
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #84 on: January 08, 2013, 10:53:15 PM »

Thank you Alex for taking the time to have a look, unfortunatly i mixed up the json files and uploaded the outdated version, my real updated version looks like this. The naming issue is still present.

ship_names.json
Code
{
"THULE":
[
"Adalberga",
"Adalbrand",
"Adalburg",
"Adalger",
"Adalward",
"Adelar",
"Adelbrand",
"Adelfrieda",
"Adelfriede",
"Adelger",
"Adelgunde",
"Adelgundis",
"Adelrune",
"Agibert",
"Agilhard",
"Agilulf",
"Alarich",
"Albina",
"Albine",
"Albrada",
"Albruna",
"Albrune",
"Alfger",
"Alfhilde",
"Alfonsa",
"Alftrud",
"Alkmar",
"Aloisia",
"Alram",
"Alwine",
"Amalberga",
"Amalberta",
"Amalburga",
"Amalfried",
"Amalfrieda",
"Amalfriede",
"Amalgard",
"Amalgunda",
"Amalgundis",
"Amalie",
"Amalinde",
"Amalindis",
"Arngrim",
"Arnhard",
"Arnhelm",
"Arnulf",
"Arwin",
"Aschwin",
"Askold",
"Aswin",
"Baldebert",
"Baldegunde",
"Baldemar",
"Balderich",
"Baldfried",
"Baltfried",
"Balthard",
"Baltram",
"Baltrun",
"Baltwin",
"Bardulf",
"Bathilde",
"Bathildis",
"Bergunde",
"Berlinde",
"Berlindis",
"Bernalde",
"Bernfried",
"Bernfriede",
"Berngard",
"Bernger",
"Bernharde",
"Bernhelm",
"Bernhilde",
"Bernulf",
"Bernwald",
"Bernward",
"Berold",
"Bertfried",
"Bertfriede",
"Bertgunde",
"Bertholda",
"Bertholde",
"Bertlinde",
"Bertlindis",
"Bertolf",
"Bertrade",
"Bertradis",
"Bertrand",
"Bertraude",
"Bertrun",
"Bertulf",
"Bertwald",
"Bertwin",
"Billfried",
"Billhard",
"Billhilde",
"Billibald",
"Biterolf",
"Bleikard",
"Botmar",
"Botwin",
"Brandolf",
"Brandulf",
"Brunhard",
"Brünhilde",
"Burglinde",
"Burgwald",
"Burgward",
"Christhard",
"Christmar",
"Christwart",
"Dankrad",
"Dankrade",
"Deert",
"Deinhard",
"Diederike",
"Dietbald",
"Dietberga",
"Dietberta",
"Dietbold",
"Dietbrand",
"Dietburga",
"Dietegen",
"Dietgard",
"Dietgunde",
"Diethelm",
"Diether",
"Diethilde",
"Dietmund",
"Dietmut",
"Dietolf",
"Dietrade",
"Dietram",
"Dietrun",
"Dietwald",
"Dietward",
"Dietwart",
"Dietwin",
"Dietwolf",
"Eberfried",
"Ebergard",
"Eberharda",
"Eberhilde",
"Eckeward",
"Eckewart",
"Eckhard",
"Eckwin",
"Egberta",
"Egberte",
"Egilward",
"Eginolf",
"Egmond",
"Ehrengrad",
"Ehrentraud",
"Eilbert",
"Eilfried",
"Eilmar",
"Eiltraud",
"Einharde",
"Elfgard",
"Elftraud",
"Emeram",
"Emmeram",
"Engelberga",
"Engelberta",
"Engelburga",
"Engelgard",
"Engeltraud",
"Erkenbald",
"Erkenbert",
"Erkenbrecht",
"Erkenfried",
"Erkengard",
"Erkenrad",
"Erkentraud",
"Erlfried",
"Erlfriede",
"Erlgard",
"Erltraud",
"Erlwin",
"Erlwine",
"Ermenbert",
"Ermenbrecht",
"Erminolde",
"Ernesta",
"Erpo",
"Ertrud",
"Erwine",
"Etzel",
"Ewara",
"Eward",
"Ewerdina",
"Ewerdine",
"Falkmar",
"Faramund",
"Farfried",
"Farhilde",
"Farold",
"Fastmar",
"Fastmund",
"Fastrad",
"Fastrade",
"Fatrada",
"Filiberta",
"Framhild",
"Friedebald",
"Friedeberga",
"Friedebert",
"Friedeburg",
"Friedeburga",
"Friedelind",
"Friederun",
"Friedewald",
"Friedhard",
"Friedhelm",
"Friedolf",
"Friedrich",
"Frodebert",
"Frodegard",
"Frodemute",
"Frodewine",
"Frommhold",
"Garlieb",
"Gastold",
"Gebharde",
"Gerbald",
"Gerbod",
"Gerborg",
"Gerbrand",
"Gerburg",
"Gerfried",
"Gerharda",
"Gerharde",
"Gerhilde",
"Germar",
"Gertraud",
"Gerwine",
"Gilberte",
"Gildbrecht",
"Gildebert",
"Giselberga",
"Giselberta",
"Giselburga",
"Giselheid",
"Giseltraud",
"Gismara",
"Gismunda",
"Gismunde",
"Godeberta",
"Godela",
"Godwin",
"Gosbert",
"Gotlinde",
"Gotlindis",
"Gottbert",
"Gotthelm",
"Gotthilde",
"Gottmar",
"Gottwin",
"Gotwin",
"Gunborg",
"Gundobald",
"Gunntberta",
"Guntberga",
"Guntbert",
"Guntbrecht",
"Guntfried",
"Gunthard",
"Gunthelm",
"Gunthilde",
"Guntrad",
"Guntrada",
"Guntrade",
"Guntram",
"Guntrun",
"Guntwin",
"Gühnter",
"Hadamar",
"Hadburga",
"Hadelind",
"Hademund",
"Haduwig",
"Hadwine",
"Hariolf",
"Hariulf",
"Harmina",
"Harold",
"Hartbert",
"Hartfried",
"Hartlieb",
"Hartmute",
"Hartwig",
"Hatto",
"Heiderich",
"Heilburg",
"Heilmar",
"Heiltraud",
"Heilwig",
"Heimberga",
"Heimbert",
"Heimbrecht",
"Heimburga",
"Heimeram",
"Heimeran",
"Heimtraud",
"Heinhard",
"Heinrike",
"Helferich",
"Helmbald",
"Helmbold",
"Helmbrecht",
"Helmburg",
"Helmfried",
"Helmgerd",
"Helmold",
"Helmtraud",
"Herbald",
"Herberta",
"Herborg",
"Herbrand",
"Herburg",
"Hergilde",
"Herlinde",
"Herlindis",
"Herlof",
"Herluf",
"Hermandine",
"Hermanna",
"Hermanne",
"Hermengilde",
"Herrada",
"Herrade",
"Herta",
"Hertwiga",
"Herwald",
"Herward",
"Herwig",
"Herwiga",
"Hildburg",
"Hildebald",
"Hildebert",
"Hildebrand",
"Hildebrecht",
"Hildefons",
"Hildemar",
"Hildemut",
"Hildewin",
"Hildolf",
"Hiltraud",
"Horstmar",
"Huberta",
"Hugbald",
"Humbrecht",
"Humfried",
"Hunold",
"Ingegerd",
"Ingmar",
"Irmenbert",
"Irmenburg",
"Irmenfried",
"Irmengard",
"Irmenhard",
"Irmenrad",
"Isberga",
"Isenbert",
"Isenbrand",
"Isenger",
"Isenhard",
"Isentraud",
"Isgard",
"Ismar",
"Ismunde",
"Ithamar",
"Iwo",
"Janfried",
"Klothilde",
"Kolbert",
"Kriemhild",
"Kunibald",
"Kunibert",
"Kunimund",
"Lambrecht",
"Lampert",
"Lamprecht",
"Landerich",
"Landewin",
"Landfried",
"Leonharda",
"Leopola",
"Leopolde",
"Liberta",
"Liebetraud",
"Liebfried",
"Liebhard",
"Liebhilde",
"Liebrecht",
"Liebwald",
"Liebward",
"Liebwin",
"Lindgrad",
"Luitbald",
"Luitbrand",
"Luitfried",
"Luitgard",
"Luitgunde",
"Luither",
"Luithilde",
"Luithold",
"Luitolf",
"Luitwin",
"Lütmar",
"Malfriede",
"Malvine",
"Malwin",
"Manhard",
"Manhart",
"Marbert",
"Marbod",
"Marhold",
"Marigard",
"Markolf",
"Markward",
"Maxbert",
"Meinbod",
"Meinfried",
"Meinhilde",
"Meinholde",
"Meinrade",
"Meinwald",
"Meithard",
"Mildburg",
"Milltraud",
"Neidhard",
"Nidger",
"Nonfried",
"Nordrun",
"Nordwin",
"Norfried",
"Norgard",
"Norhilde",
"Notburga",
"Notger",
"Notker",
"Oldwig",
"Ortfried",
"Ortger",
"Orthilde",
"Ortlinde",
"Ortnit",
"Ortraud",
"Osberta",
"Osmunde",
"Osterlind",
"Oswalda",
"Oswalde",
"Oswina",
"Otberga",
"Otger",
"Otgunde",
"Othilde",
"Otker",
"Otlinde",
"Otmund",
"Ottar",
"Ottogebe",
"Otwald",
"Otward",
"Otwin",
"Pippin",
"Radegunde",
"Rambald",
"Rambert",
"Rambod",
"Randolf",
"Randwig",
"Ratbald",
"Ratbert",
"Ratberta",
"Ratbod",
"Ratburga",
"Ratfried",
"Ratgard",
"Ratger",
"Rathard",
"Rathilde",
"Rathold",
"Ratmar",
"Ratwald",
"Ratward",
"Regelinde",
"Reginald",
"Reginalda",
"Regiswinda",
"Reimara",
"Reimbert",
"Reimbod",
"Reimund",
"Reimute",
"Reinald",
"Reinalde",
"Reinberta",
"Reinburga",
"Reiner",
"Reinfried",
"Reinfrieda",
"Reingard",
"Reinhardine",
"Reinholde",
"Reintraud",
"Reinwald",
"Richbald",
"Richbert",
"Richhilde",
"Richlinde",
"Richmar",
"Richmut",
"Richwald",
"Rigmor",
"Ringolf",
"Rodegang",
"Rodegard",
"Rodehilde",
"Rodewald",
"Rolanda",
"Romilda",
"Rosalinde",
"Rosemarie",
"Roswin",
"Rothard",
"Rother",
"Rudibert",
"Rudmar",
"Rudolfa",
"Rumold",
"Runfried",
"Runhilde",
"Ruperta",
"Rutgard",
"Rutlieb",
"Schwabhild",
"Schöntrud",
"Sebalde",
"Siegberta",
"Siegbod",
"Siegbrand",
"Siegburga",
"Sieghelm",
"Siegher",
"Sieghilde",
"Siegolf",
"Siegram",
"Siegrich",
"Siegrun",
"Siegtraude",
"Siegwald",
"Siegward",
"Siegwin",
"Sigismunde",
"Sintbald",
"Sintbert",
"Sirk",
"Solbert",
"Sonnfried",
"Sonngard",
"Sonnhilde",
"Sonntraud",
"Stillfried",
"Svava",
"Swanburga",
"Swanhilde",
"Swidgard",
"Swindbert",
"Teutobald",
"Teutobert",
"Teutobod",
"Teutomar",
"Teutwart",
"Thorgard",
"Thorgund",
"Traudhilde",
"Traudlinde",
"Treumunde",
"Trudberta",
"Trudgard",
"Uhland",
"Ulbert",
"Ulberta",
"Ulfert",
"Usmar",
"Vilmar",
"Volbert",
"Volkbert",
"Volkberta",
"Volkbrand",
"Volkbrecht",
"Volkerdine",
"Volkhard",
"Volkhilde",
"Volkmann",
"Volko",
"Volkrad",
"Volkram",
"Volkwald",
"Volkward",
"Volkwin",
"Walbert",
"Waldeberta",
"Waldegunde",
"Waldfried",
"Walfriede",
"Walthard",
"Waltheide",
"Walthilde",
"Waltrada",
"Waltram",
"Waltraud",
"Waltrun",
"Welfhard",
"Wendelbert",
"Wendelgard",
"Wendelmar",
"Weriand",
"Wernburg",
"Werngrad",
"Wernhard",
"Wernhilde",
"Wibrande",
"Wichard",
"Wiclef",
"Wiebke",
"Wigand",
"Wigbald",
"Wigbert",
"Wigberta",
"Wigburga",
"Wigmar",
"Wigmund",
"Wignand",
"Wilbert",
"Wilbrand",
"Wilburg",
"Wilderich",
"Wildfried",
"Wilfrieda",
"Wilgard",
"Wilgunde",
"Wilhard",
"Wilhelma",
"Willehad",
"Willibert",
"Willibrand",
"Willimar",
"Williram",
"Wilma",
"Wilmont",
"Wilmut",
"Wilrun",
"Winald",
"Winand",
"Winfrieda",
"Winibald",
"Winibert",
"Winimar",
"Winrich",
"Wintrud",
"Wisgard",
"Wisgunde",
"Witold",
"Wolfbert",
"Wolfgang",
"Wolfger",
"Wolfgunde",
"Wolfhelm",
"Wolfhilde",
"Wolfrad",
"Wolfried",
"Wolfrun",
"Wolftraud",
"Wulfrin",
"Wunibald",
"Wybren",

],
"Erk":
[
"Adeodatus",
"Adorata",
"Afra",
"Agnus",
"Albin",
"Aloisius",
"Aloysius",
"Alva",
"Alwinus",
"Amadea",
"Amand",
"Amatus",
"Amöna",
"Amöne",
"Antonius",
"Arcadius",
"Arkadius",
"Ascanius",
"Askan",
"Augustus",
"Aurelius",
"Balbina",
"Balbine",
"Baldus",
"Beat",
"Beata",
"Beate",
"Beatus",
"Benedikte",
"Benediktus",
"Benigna",
"Bibiana",
"Bibiane",
"Bona",
"Bonaventura",
"Bonifatia",
"Bonifaz",
"Bonifazius",
"Brigida",
"Brigide",
"Cajetan",
"Candid",
"Candidus",
"Caritas",
"Carola",
"Carolus",
"Celestin",
"Celestina",
"Centa",
"Christian",
"Clamor",
"Clodia",
"Columba",
"Columban",
"Columbina",
"Concordia",
"Consilia",
"Constantin",
"Corin",
"Cornel",
"Corvinius",
"Crescentia",
"Crispin",
"Crispinus",
"Cyprian",
"Cäcilia",
"Cäcilius",
"Cäsarina",
"Cäsarine",
"Cölestin",
"Cölestina",
"Deodat",
"Deodata",
"Deodatus",
"Desiderius",
"Diane",
"Dominik",
"Donat",
"Elestin",
"Emerita",
"Emilia",
"Ernesto",
"Ernestus",
"Fabius",
"Fausta",
"Faustinus",
"Faustus",
"Felicia",
"Felizia",
"Fideelius",
"Fidelia",
"Fidelis",
"Fides",
"Firmina",
"Flavia",
"Flavius",
"Florens",
"Florentia",
"Florentius",
"Floriane",
"Florida",
"Florina",
"Florine",
"Florus",
"Fortuna",
"Fortunat",
"Fortunata",
"Fortunatus",
"Franciscus",
"Frobenius",
"Galla",
"Gallus",
"Gaudentius",
"Gemma",
"Gerke",
"Gerko",
"Gertrudis",
"Glorius",
"Gordian",
"Gratian",
"Gratianus",
"Grazian",
"Hilaria",
"Honorius",
"Hubertus",
"Ignatia",
"Ignaz",
"Immakulata",
"Ingenuin",
"Innozens",
"Innozent",
"Innozentia",
"Jucunda",
"Julia",
"Klemens",
"Kolomba",
"Laura",
"Laurenz",
"Lavinia",
"Leo",
"Leon",
"Leona",
"Leonie",
"Longin",
"Longina",
"Longinus",
"Lucretius",
"Ludgerus",
"Ludovicus",
"Lätizia",
"Marzellus",
"Maura",
"Maurus",
"Maximilian",
"Maximus",
"Medardus",
"Modeste",
"Natalia",
"Nero",
"Octaria",
"Oktavian",
"Optatus",
"Orania",
"Ostian",
"Parsimonius",
"Patrizia",
"Patrizius",
"Paul",
"Perdita",
"Peregrin",
"Peregrinus",
"Petrus",
"Piata",
"Pontian",
"Pretiosa",
"Primus",
"Priscus",
"Priska",
"Prosperus",
"Prudentia",
"Pulcheria",
"Romulus",
"Rosina",
"Rufina",
"Rufus",
"Salvator",
"Salvina",
"Salwa",
"Santo",
"Saturnus",
"Scholastika",
"Scipio",
"Serena",
"Serenus",
"Sergia",
"Severa",
"Severina",
"Sidonia",
"Sidonius",
"Silva",
"Silvan",
"Silvester",
"Silvius",
"Sulpiz",
"Tarcisius",
"Terzia",
"Tiziana",
"Urbana",
"Urbanus",
"Urs",
"Ursina",
"Ursula",
"Valerie",
"Valten",
"Velten",
"Veltin",
"Venetia",
"Ventur",
"Veritas",
"Victoria",
"Viktor",
"Vincentia",
"Vita",
"Vital",
"Vivian",
"Viviana",
"Zelestin",
]
}

thulelegacy.faction
Code
{
id:"thulelegacy",
"color":[153,95,158,255],
"displayName":"Thule Legacy",
"shipNamePrefix":"TLS",
"shipNameSources":{
"THULE":1,
},
"description":"No description yet.",
"names":{
"modern":1,
},
"portraits":{
"standard_male":[
"graphics/portraits/portrait_thule04.png",
"graphics/portraits/portrait_thule03.png",
],
"standard_female":[
"graphics/portraits/portrait_thule02.png",
"graphics/portraits/portrait_thule01.png",
],
},
"fleetCompositions":{
"blitz":{
"displayName":"Blitz Trooper",
"maxFleetPoints":11,
"daysWorthOfSupplies":[30, 50],
"lyWorthOfFuel":[40, 60],
"extraCrewPercent":[80, 80],
"marinesPercent":[20, 20],
"ships":{
"thule_vikingmki_Assault":[1, 1],
"thule_vikingmkii_Assault":[1, 1],
"thule_einherjer_wing":[1, 1],
},
},
"stormer":{
"displayName":"Stormer Battalion",
"maxFleetPoints":25,
"daysWorthOfSupplies":[30, 50],
"lyWorthOfFuel":[40, 60],
"extraCrewPercent":[80, 80],
"marinesPercent":[20, 20],
"ships":{
"thule_vikingmki_Assault":[2, 3],
"thule_vikingmkii_Assault":[0, 1],
"thule_berserker_Standard":[0, 1],
"thule_einherjer_wing":[2, 3],
},
},
"pacifier":{
"displayName":"Pacifier Flotilla",
"maxFleetPoints":50,
"daysWorthOfSupplies":[30, 50],
"lyWorthOfFuel":[40, 60],
"extraCrewPercent":[80, 80],
"marinesPercent":[20, 20],
"ships":{
"thule_berserker_Standard":[2, 2],
"thule_vikingmki_Assault":[2, 3],
"thule_vikingmkii_Assault":[2, 3],
"thule_einherjer_wing":[0, 4],
"thule_wartool_wing":[0, 2],
},
},
"peacekeeper":{
"displayName":"Peacekeeper Fleet",
"maxFleetPoints":100,
"daysWorthOfSupplies":[30, 50],
"lyWorthOfFuel":[40, 60],
"extraCrewPercent":[80, 80],
"marinesPercent":[20, 20],
"ships":{
"thule_herzog_Standard":[2, 2],
"thule_berserker_Standard":[2, 4],
"thule_berserker_Support":[1, 2],
"thule_vikingmki_Assault":[2, 3],
"thule_tungsten_experimental":[2, 2],
"thule_vikingmki_Support":[2, 3],
"thule_einherjer_wing":[2, 6],
"thule_wartool_wing":[2, 6],
},
},
"supplyfleet":{
            "displayName":"Supply Fleet",
            "maxFleetPoints":70,
            "daysWorthOfSupplies":[30, 50],
            "lyWorthOfFuel":[40, 60],
"extraCrewPercent":[80, 80],
"marinesPercent":[20, 20],
            "ships":{
                "buffalo_Standard":[4, 7],
                "aurora_Balanced":[1, 3],
                "medusa_Attack":[0, 2],
                "medusa_CS":[0, 2],
                "tempest_Attack":[0, 3],
                "wolf_CS":[0, 3],
                "xyphos_wing":[2,3],
                "wasp_wing":[3, 4],
            },
        },
},
"traits":{
"admiral":{

},
"captain":{
"cowardly":1,
"cautious":1,
"steady":1,
"aggressive":1,
"suicidal":1,
"fearless":1,
},
},
"dialogue":{
"greetingFriendly":"This Thule Legacy ship is on a classified mission. Identity and peaceful status confirmed.",
"greetingNeutral":"Thule Legacy have scanned your ship and analyzed your capabilities to cause a disturbance. Maintain your distance.",
"greetingHostileAggressive":"I can picture in my mind a system without war, a system without hate. And I can picture us attacking that system, because they'd never expect it. Prepare to be pacified.",
"greetingHostileTimid":"Attention. Your vessel has been scanned and identified as a disturbence to the Thule Legacy. Prepare to be pacified. Peace through superior firepower.",
}
},
Logged

Cycerin

  • Admiral
  • *****
  • Posts: 1665
  • beyond the infinite void
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #85 on: January 09, 2013, 05:57:09 AM »

Another modding question - I have a modified Maneuvering Jets system in my mod that uses the effectLevel to create a slowly fading stat boost. This means most of the effect is executed in the chargedown phase, and thus if I use "clamp max speed after=true" in the system file, the entire effect gets messed up. However I'd still very much like for the max speed to clamp after the chargedown ends, to make the system less useful for fast travel and more useful for combat maneuvering. How could I accomplish this?

Code
package data.shipsystems.scripts;

import com.fs.starfarer.api.combat.MutableShipStatsAPI;
import com.fs.starfarer.api.plugins.ShipSystemStatsScript;

public class BurstJetsStats implements ShipSystemStatsScript {

public void apply(MutableShipStatsAPI stats, String id, State state, float effectLevel) {
if (state == ShipSystemStatsScript.State.OUT) {
stats.getMaxSpeed().modifyPercent(id, 100f * effectLevel); // to slow down ship to its regular top speed while powering drive down
stats.getMaxTurnRate().modifyPercent(id, 100f * effectLevel);
stats.getDeceleration().modifyPercent(id, 100f * effectLevel);
} else {
stats.getMaxSpeed().modifyFlat(id, 130f * effectLevel);
stats.getAcceleration().modifyFlat(id, 190f * effectLevel);
stats.getDeceleration().modifyFlat(id, 120f * effectLevel);
stats.getTurnAcceleration().modifyFlat(id, 90f * effectLevel);
stats.getTurnAcceleration().modifyPercent(id, 200f * effectLevel);
stats.getMaxTurnRate().modifyFlat(id, 40f * effectLevel);
stats.getMaxTurnRate().modifyPercent(id, 100f * effectLevel);
}
}
public void unapply(MutableShipStatsAPI stats, String id) {
stats.getMaxSpeed().unmodify(id);
stats.getMaxTurnRate().unmodify(id);
stats.getTurnAcceleration().unmodify(id);
stats.getAcceleration().unmodify(id);
stats.getDeceleration().unmodify(id);
}

public StatusData getStatusData(int index, State state, float effectLevel) {
if (index == 0) {
return new StatusData("improved maneuverability", false);
} else if (index == 1) {
return new StatusData("increased top speed", false);
}
return null;
}
}
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #86 on: January 09, 2013, 12:20:09 PM »

Thank you Alex for taking the time to have a look, unfortunatly i mixed up the json files and uploaded the outdated version, my real updated version looks like this. The naming issue is still present.

Pasted those in and it works fine. Let's take a step back - what's the actual issue? Outside the campaign, or in missions (i.e. if you go to Edit Variants -> Run Simulation off the main screen, or play a mission), the ships aren't associated with a faction. Inside the campaign, this seems to be working correctly - the Thule resupply fleet has names drawn from that group.

Another modding question - I have a modified Maneuvering Jets system in my mod that uses the effectLevel to create a slowly fading stat boost. This means most of the effect is executed in the chargedown phase, and thus if I use "clamp max speed after=true" in the system file, the entire effect gets messed up. However I'd still very much like for the max speed to clamp after the chargedown ends, to make the system less useful for fast travel and more useful for combat maneuvering. How could I accomplish this?

What you could do is turn clamping off, and then do it manually inside the "apply" method, based on the effectLevel when state == ShipSystemStatsScript.State.OUT.

The apply() method gets called every frame. One minor complication is you don't get a time amount passed in, so instead of that, you'll have to base the magnitude of the clamping effect on the value of effectLevel - which is tied to time, so it's just a slightly roundabout way of getting at it.

I.E., once you know it's fading, and the effect level goes to 0.25 - or whatever other value you like - you start clamping, based on how much effectLevel changed between subsequent calls to apply(). I'd also apply some final clamping in unapply() for good measure - that gets called once after a system finishes being turned off.

To actually get at the ship, so you can clamp the velocity/turn rate you can call stats.getEntity() - that returns a CombatEntityAPI. Make sure to check that the return value isn't null before doing anything.
Logged

Romeo_One

  • Captain
  • ****
  • Posts: 393
  • "Let me do the german dance for you..."
    • View Profile
    • Rejection - The Fight for Unity
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #87 on: January 09, 2013, 12:23:16 PM »

Really minor question:

How do I use plugins? Since I am getting a compiler error I assume I first have to compile them? If so how?
Logged

silentstormpt

  • Admiral
  • *****
  • Posts: 1060
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #88 on: January 09, 2013, 04:51:33 PM »

The game compiles them, you can set a program like netbeans to read the libraries from the game, helps coding by alot, heres a how to by LazyWizard:

http://fractalsoftworks.com/forum/index.php?topic=3173

as for using plugins, you should add those *.java files on the ...\mods\[Your mod folder]\data\scripts\plugins\
they also should have the initial package set to where they are located, in case of the plugins would be:

package data.scripts.plugins;

Logged

Romeo_One

  • Captain
  • ****
  • Posts: 393
  • "Let me do the german dance for you..."
    • View Profile
    • Rejection - The Fight for Unity
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #89 on: January 10, 2013, 05:36:24 AM »

Still getting a compile error oO.

I made sure everything is where its supposed to be:

the plugin "RotatingDish.java" is located at "modname/data/scripts/plugins/" - it hold the package "data.scripts.plugins".

The sensordish.wpn calls the "everyFrameEffect" wich points at "modname/data/scripts/plugins/RotatingDish.java".
Logged
Pages: 1 ... 4 5 [6] 7 8 ... 706