SimAirport

SimAirport

Statistieken weergeven:
LVGameDev  [ontwikkelaar] 24 aug 2017 om 20:03
How To: Custom Airlines / Airline Mods
Aircraft Templates - Layered Files (PSDs)
Huge thank you to @Plotz for submitting these templates and for allowing the community to use them! We appreciate it -- thank you!


Editing the JSON
The most common issue we're seeing are "wrong" quotation marks being used in the JSON. You MUST use a plain-text editor (Notepad, Notepad++, TextMate, SublimeText, etc) to edit the JSON -- do NOT use a rich text editor or you'll end up with 'smart quotes'.

Note: In the latest builds, we attempt to "auto-correct" this issue by replacing 'smart quotes' with 'normal' UTF8 quotes, which should substantially reduce this issue. Regardless, we recommend using a plain-text editor for editing any mod-related config files!

Full JSON Example
Here's a complete, functional example of an airline configuration for an airline that has a required object and multiple concerns.

Full JSON Example[pastebin.com]

Note that on the in-game Airlines UI, only concerns above a certain threshold are shown for gameplay purposes -- though all are still factored in appropriately.

JSON Schema Overview

Name
This is the IN-GAME name of the airline. Note this can be different than the folder name or title given in Steam Workshop.

Enabled
If enabled, the game will try loading the mod at startup. Note: validation errors may prevent it from being loaded successfully.

Notes, SpriteSetIndex
Not in use at this time.

AircraftInFleet
The list of aircraft “short names” that’ll have a chance to appear in randomly generated offers. See the templates directory for the short name codes (they must be exact or the importer will ignore it). Your airline must have at least 1 aircraft in fleet to be functional. Several of the smaller general aviation aircraft, which have art in the templates directly but that aren't in the game yet, are not usable yet.

Concerns
The list of concerns that affects the airline’s overall interest score. Your airline must have at least 1 concern in order to be functional. The list of concerns are as follows:

  • 0 - Passenger satisfaction rating
  • 1 - Price
  • 2 - Passenger missed flight rating
  • 3 - Delayed flights rating
  • 4 - Canceled flights rating
  • 5 - Fuel Prices
  • 6 - Refueling Services / Success Rate

Weights must be between 0 and 1 (inclusive).

PriceSensitivity
This value must be between 0 and 1 (inclusive). This is an extra value that modulates the Price Concern (see above) component only.

SatisfactionSensitivity
This value must be between 0 and 1 (inclusive). This value partially controls how many flights are offered based on a given interest level. A value of 0 means there will likely be some ‘starter flights’ available at low interest levels, whereas a value of 1 means the majority of flights won’t be offered until interest approaches 100%.

requiredAdministrators, requiredObjects, requiredTechTrees
Additional constraints that affect when the airline is able to start doing business with you. Administrators and Objects are just string names, e.g. “CEO” or “Gate Agent Desk”. The tech trees use integers, as follows:

  • 0 - Finance
  • 1 - Lower Taxes
  • 2 - Bank Loans I
  • 3 - Operations I
  • 4 - Road Building
  • 5 - Multilane Access
  • 6 - Upgraded Buses
  • 7 - Pricing
  • 8 - Bank Loans II
  • 9 - Bank Interest
  • 10 - Standby Gates
  • 11 - Light Rail Transit
  • 12 - Land Expansion
  • 13 - Operations II
  • 14 - Aviation Operations

Income_NewFlightBonus_PerFlight
Controls the Acceptance Bonus and Termination Fee applied to all generated flights.

FirstClassPercentage
Controls the distribution of first class passengers vs coach on departing passengers.

BaseRefuelPercentage
This value must be between 0 and 1 (inclusive). This value modulates the Refuel Request rate component of the refueling chance for this airline.


Laatst bewerkt door LVGameDev; 2 okt 2017 om 19:22
< >
1-15 van 99 reacties weergegeven
okay i looked - the airline list on mod list was confusing cause no airline name and no way to know which one is new created (i would like see star on it to show that airline is new created by player
Unsure of how to create an airline after reading this
Origineel geplaatst door JoshM:
Unsure of how to create an airline after reading this

me too - i wasnt sure how lol
I made one but it says i can't upload because it doesn't have original art, it does. to make an airline, it takes a little knowledge of JSON
a way to weight the aircraft type. like how american has way more 737 vs 787
Under mods click new, then you can click browse and it opens up a new config.airline

I added in a PNG file edited from the template and added it to the same folder. I was fairly quickly able to edit the config.airline and add in the art and publish to the workshop, although it's not showing up in game, nor on the sim airport workshop.

http://steamcommunity.com/sharedfiles/filedetails/?id=1119499801
can you help me with that? i cant see how to use any airbus or boeing planes.
i also click upload and its stuck creating a preview
Origineel geplaatst door Testsnake:
can you help me with that? i cant see how to use any airbus or boeing planes.

So far my airline isn't showing up in game, not even grayed out on the airline list, though it does show up in the mods list.

I took the B737 template from Steam\steamapps\common\SimAirport\SimAirport_Data\StreamingAssets\airlines\templates

Edited the template in photoshop, then in game under mods clicked "New" and in notepad++ edited the config.airline file.

Here's a paste of my config.airline. I just added in B737 in the Aircraft in Fleet

https://pastebin.com/DWzTwFuR

Origineel geplaatst door Testsnake:
i also click upload and its stuck creating a preview
Your new airlines folder should have your custom artwork in it. The file name of the artwork must be the same as the template. I.e. B737.png
had all the custom art
this is my code only the E195 is shown
https://pastebin.com/hBy0Mg3T
This may just be your paste but it looks like you're missing the starting { on line 1. Also the GUI only looks like it fits 5 aircraft type, so that may be a limitation that isn't documented yet.
I set up what is supposed to be a starter airline. Set the concerns to "0" and weight "0" yet it still doesn't show any starter flights. nothing else required in it. What gives?


{
"airlineSteamID": -1,
"Name": "InspiAir",
"enabled": true,
"Notes": "",
"AircraftInFleet": [
"E195",
"B737",
"CRJ900",
"D8Q400",
"Beech1900D",
"A320"
],
"SpriteSetIndex": 0,
"Concerns": [
{
"Concern": 0,
"Weight": 0
}
],
"PriceSensitivity": 0.10000000149011612,
"PeakFlightsCount": 10,
"SatisfactionSensitivity": 0,
"requiredAdministrators": [],
"requiredObjects": [],
"requiredTechTrees": [],
"Income_NewFlightBonus_PerFlight": 2000.0,
"FirstClassPercentage": 0.10000000149011612
}
Laatst bewerkt door Inspirown; 25 aug 2017 om 0:22
have you try concern on 1
Dear Devs,

have u better templates for us?
Please...
Thanks
< >
1-15 van 99 reacties weergegeven
Per pagina: 1530 50

Geplaatst op: 24 aug 2017 om 20:03
Aantal berichten: 99