Skip to content
Bugs Bunny edited this page Nov 17, 2020 · 2 revisions

Add a custom platform to the game...

Example

var icon = './mods/gdt-modAPI/examples/img/greenheartOne.png';
GDT.addPlatform({
	id : 'Greenheart One',
	name : 'Greenheart One',
	company : 'Greenheart Games',
	startAmount : 0.15,
	unitsSold : 0.358,
	licencePrize : 5000,
	published : '1/3/4',
	platformRetireDate : '4/6/2',
	developmentCosts : 10000,
	genreWeightings : [0.9, 1, 1, 0.9, 1, 0.7],
	audienceWeightings : [0.9, 1, 0.8],
	techLevel : 1,
	iconUri : icon,
	events : [{
			id : '10537DA1-58F1-4F23-8854-F1E2621933BF',
			date : '1/2/1',
			getNotification : function (company) {
				return new Notification({
					header : "Industry News".localize(),
					text : "Coming out of nowhere a company called Greenheart Games has announced that it will publish a new game console called the Greenheart One {0}.".localize().format(General.getETADescription('1/2/1', '1/3/4')),
					image : icon
				});
			}
		}
	]
});

###Platform object

member (bold is mandatory) description
id globally unique id
name display name
company the name of the company which publishes this console
startAmount the amount of consoles available on release date (units in million)
unitsSold the amount of consoles available when the console goes off market (units in million)
marketKeyPoints optional array to define a non-linear development of the units available on the market. consists of pairs of data and amount. how many units are available on which date (in million)
licencePrize the price in cr the player has to pay to be able to develop for this console
published* date the console will be published
platformRetireDate* date the console goes off the market
developmentCost base value for development cost to develop a game on this console.
genreWeightings see Weightings
audienceWeightings see Weightings
techLevel how advanced the technology of this console is (between 1 (very low tech) to 7 (very high tech)
iconUri the uri to the image file for this console. image should be square and 200x200
events array of Event objects to define a story for this console (see GDT.AddEvent)

__*__all Dates will be affected by the gameLengthModifier, see Date for details.

Notes

  • Most properties are required.
  • Use a image for both the iconUri and a custom image for events. (image should be 200x200)
  • genreWeightings and audienceWeightings work like usual.
  • techLevel goes from 1 to 7, where 7 is super advanced and 1 is the G64 era.
  • events is an optional array of a Event objects. Use it to create a story. Make sure to use General.getETADescription() to talk about time spans (see Date for details).
  • You must have the rights do use the name or images for the platforms you add. Unless you somehow have written authorization from companies, do not add images of real consoles or use real product names. To prevent trouble and to fit in with the original game, it's best to create parodies or fictional consoles and design the images yourself.
Clone this wiki locally