| Line 15: |
Line 15: |
| | * '''LIST_SCOPE_MEMBERS''' X - Prints out all functions and variables available for the type X, to use when making level 3 feature scripts, [[Data Modding#Level 3 features|Read more here]]. | | * '''LIST_SCOPE_MEMBERS''' X - Prints out all functions and variables available for the type X, to use when making level 3 feature scripts, [[Data Modding#Level 3 features|Read more here]]. |
| | * '''GENERATE_LOCALIZATION''' X - Generates localization files based on the mod named X | | * '''GENERATE_LOCALIZATION''' X - Generates localization files based on the mod named X |
| | + | * '''CHECK_ADDON_MARKET''' X Y Z - Checks whether all markets are fulfilled by the add-on Z in a software type Y in mod X, which would otherwise make it impossible to sell the add-on to 100% of the market |
| | | | |
| | == In-game content == | | == In-game content == |
| Line 30: |
Line 31: |
| | | | |
| | [https://softwareinc.coredumping.com/wiki/Beta1Data.zip Beta 1.1.1 data - 34 KB] | | [https://softwareinc.coredumping.com/wiki/Beta1Data.zip Beta 1.1.1 data - 34 KB] |
| | + | |
| | + | [https://softwareinc.coredumping.com/wiki/Beta13Data.zip Beta 1.3.19 data - 35 KB] |
| | + | |
| | + | [https://softwareinc.coredumping.com/wiki/Beta17Data.zip Beta 1.7.15 data - 35 KB] |
| | | | |
| | == Alpha 11 changes == | | == Alpha 11 changes == |
| Line 67: |
Line 72: |
| | |- | | |- |
| | |Category | | |Category |
| − | |How the field of the software will be referred to in articles, e.g. games are categorized as "Gaming" | + | |'''Deprecated as of Beta 1''' How the field of the software will be referred to in articles, e.g. games are categorized as "Gaming" |
| | |- | | |- |
| | |Categories | | |Categories |
| Line 340: |
Line 345: |
| | *SoftwareProduct '''Product''' | | *SoftwareProduct '''Product''' |
| | *uint '''NewCopies''' (How many new copies were added to stock, this is read-only) | | *uint '''NewCopies''' (How many new copies were added to stock, this is read-only) |
| | + | |
| | + | ==== Networking ==== |
| | + | Level 3 features can also use the RunType value to control which computer will execute the code. The value can be either of the following: |
| | + | * '''Local''', which means the script will only run on the computer for the player who owns the product (This is the default). Example: You want something to happen to the affected player's game, like launching a lawsuit or firing an employee. This needs to be done locally for the affected player, or someone else might be sued for no reason. |
| | + | * '''Host''', which means the script will only run on the current hosting player's computer. Example: You are only calling methods which are synchronized between players, like adding bugs or money. These can be run locally, but any online synchronized methods will be faster to run for the host machine. If you are unsure, using Local will be fine, but if you run a synchronized method using the '''Everyone''' RunType, the method will get called multiple times. E.g. if you are adding money to a company, then that money will be added again to the same company for each player connected. |
| | + | * '''Everyone''', which means the script will run for every player connected. Example: You are directly changing aspects of the product (like the price) or a company, by altering the value of local variables, which will not be synchronized by default, so you want the script to run for all players in the game, so everyone is on the same page. |
| | + | |
| | + | |
| | + | Note that the RunType value is only valid for the EndOfDay, OnRelease and NewCopies entry points. AfterSales is only ever executed for the host and WorkItemChange is only ever executed for the local player. |
| | | | |
| | ==== Script example ==== | | ==== Script example ==== |
| Line 470: |
Line 484: |
| | |- | | |- |
| | |BuiltInThumbnail | | |BuiltInThumbnail |
| − | |'''Optional''' thumbnail to fall back on in case the game fails loading your png file. Defaults to Unknown, but can be Camera, Console, Fingerprint, Gyroscope, Harddrive, Joystick, LCD, Microchip, PCB, Phone, Plastic, PlasticCase, Speaker, Thermostat, Touch, USB or Vibration. | + | |'''Optional''' thumbnail to fall back on in case the game fails loading your png file. Defaults to Unknown, but can be Camera, Console, Fingerprint, Gyroscope, Harddrive, Joystick, LCD, Microchip, PCB, Phone, Plastic, PlasticCase, Speaker, Thermostat, Touch, USB, Battery, Antenna, LED or Vibration. |
| | |- | | |- |
| | |DependsOn | | |DependsOn |
| Line 578: |
Line 592: |
| | ] | | ] |
| | '''FinalTime''' <span style="color:blue">2</span> | | '''FinalTime''' <span style="color:blue">2</span> |
| − | '''Design''' [ <span style="color:blue">"CellPhone"</span>; [ <span style="color:blue">"SmartPhone"</span> ; <span style="color:blue">2000</span> ] | + | '''Design''' [ <span style="color:blue">"CellPhone"</span>; [ <span style="color:blue">"SmartPhone"</span> ; <span style="color:blue">2000</span> ] ] |
| | '''FeatureBinding''' [ <span style="color:blue">"CellPhone"</span>; <span style="color:blue">"Antenna"</span>; <span style="color:blue">"Networking"</span> ] | | '''FeatureBinding''' [ <span style="color:blue">"CellPhone"</span>; <span style="color:blue">"Antenna"</span>; <span style="color:blue">"Networking"</span> ] |
| | } | | } |
| Line 641: |
Line 655: |
| | |Types | | |Types |
| | |The types of products the company will release and how much effort they take(Chance). 1 means they can only work one product of that software type at any given time, 0.25 means they would be able to work on 4 of it at a time. You can define a category for each type, otherwise a random will be chosen from the categories available from the software type. You can also add the record '''Force True''' which will make the game force a product out immediately when the game starts, if possible, which is currently used to make sure there is an OS available on day 1. | | |The types of products the company will release and how much effort they take(Chance). 1 means they can only work one product of that software type at any given time, 0.25 means they would be able to work on 4 of it at a time. You can define a category for each type, otherwise a random will be chosen from the categories available from the software type. You can also add the record '''Force True''' which will make the game force a product out immediately when the game starts, if possible, which is currently used to make sure there is an OS available on day 1. |
| | + | |- |
| | + | |Addons |
| | + | |Optional list of tables with '''Software''', '''Addon''' and '''Chance''' records, which is this companies chance of developing the specified '''hardware''' add-on of the software type for another company's '''hardware''' product. Companies will by default create add-ons for their own products. |
| | |- | | |- |
| | |NameGen | | |NameGen |
| Line 666: |
Line 683: |
| | Software "3D Editor" | | Software "3D Editor" |
| | Chance 1 | | Chance 1 |
| | + | } |
| | + | ] |
| | + | Addons |
| | + | [ |
| | + | { |
| | + | Software "Operating System" |
| | + | Addon "Joystick" |
| | + | Chance 0.05 |
| | } | | } |
| | ] | | ] |
| Line 708: |
Line 733: |
| | Personality values include: | | Personality values include: |
| | {|class="wikitable" | | {|class="wikitable" |
| − | |Personality
| |
| − | |This is the root table
| |
| − | |-
| |
| | |Name | | |Name |
| | |The personality's name as it appears in the game. | | |The personality's name as it appears in the game. |
| | |- | | |- |
| − | |WorkLearn | + | |Traits |
| − | |Between -1 and 1, where -1 is hard working and 1 is easy learner. | + | |Should be either a good and a bad trait or a neutral trait. See traits below. E.g. [ WalkItOff ; SlowEater ] or [ Detached ] |
| − | |-
| |
| − | |Social
| |
| − | |Between -1 and 1, where -1 is independent and 1 is social.
| |
| − | |-
| |
| − | |LazyStress
| |
| − | |Between -1 and 1, where -1 is lazy and 1 is stressed.
| |
| | |- | | |- |
| | |Relationships | | |Relationships |
| Line 729: |
Line 745: |
| | | | |
| | The Incompatibilities list should contain a list of personality pairs that are incompatible, meaning they cannot exist in the same person. | | The Incompatibilities list should contain a list of personality pairs that are incompatible, meaning they cannot exist in the same person. |
| | + | |
| | + | === Traits === |
| | + | * '''Good traits''': FastLearner, Independant, BigBrain, Humble, Capacitor, WalkItOff, ThisIsFine, Skyscraper, Sunshine, RGBThumb |
| | + | * '''Bad traits''': Stressed, Hypochondriac, SlowEater, NervousBladder, BumLeg, Forgetful, Cupholder, NeatFreak, SilentButDeadly, WalkInstead, UnderTheWeather, OldSole |
| | + | * '''Neutral traits''': NightOwl, BornLeader, FirmwareInc, SuperFocus, Unphased, JustTheFlu, Detached, Watch |
| | + | * '''Traits that also work for the founder''': FastLearner, BigBrain, RGBThumb, BornLeader, FirmwareInc, SuperFocus, BumLeg, Forgetful, Cupholder, Watch, SilentButDeadly, WalkInstead, OldSole, Capacitor, ThisIsFine, Sunshine, Skyscraper, Detached, NeatFreak, UnderTheWeather |
| | | | |
| | === Example === | | === Example === |
| Line 737: |
Line 759: |
| | { | | { |
| | Name TestPersonality | | Name TestPersonality |
| − | WorkLearn 1 | + | Traits [ WalkItOff ; SlowEater ] |
| − | Social -1
| |
| − | LazyStress 0.3
| |
| | Relationships | | Relationships |
| | { | | { |
| Line 748: |
Line 768: |
| | { | | { |
| | Name TestPersonality2 | | Name TestPersonality2 |
| − | WorkLearn -0.5 | + | Traits [ Detached ] |
| − | Social 0
| |
| − | LazyStress 0.25
| |
| | } | | } |
| | ] | | ] |