Adding a new 'naut or editing an existing one

If a new Awesomenauts patch comes out to change the stats of a 'naut or release a brand new one, NautDrafter's information will need to be updated. This requires changing the data stored in the Character enum and possibly adding some assets as well.

Character enum

Located in the model package of the main project (NautDrafter/src/main/java/com/monkygames/nautdrafter/model/Character.java) is the enum that contains all of the statistics and data about each 'naut.

Editing

Locate the 'naut you want to edit and update the values in the constructor. You may want to check the JavaDoc for the constructor for help on what each variable is.

Adding

Construct a new Character, placed above "UNKNOWN" in the Character enum file. It will be easiest to base this on one of the existing characters, simply changing all the values to be for the new 'naut. Take note of the third argument, shortName, as this is important when adding the assets later.

Character Assets

When you add a new character there are several places where new assets need to be added.

 LocationFile nameDescriptionFormat
Render

NautDrafter / resources / assets / ronimo / images / renders /

shortName.pngA large image of 'naut with a transparent background. Can be taken from either NautBuilder's website or from the 'naut's page on the official Gamepedia.

png, 168x194px (recommended)

Icon

NautDrafter / resources / assets / ronimo / images / icons /

shortName.pngA smaller image of the 'naut. Can be sourced from the main 'naut listing page on the official Gamepedia.

png, 80x80px

Pick Sound

NautDrafter / NautDrafter / resources / assets / ronimo / audio / picked / shortname /

*.oggMultiple audio clips that are chosen at random to play when the 'naut is picked. Can be located on the character's Gamepedia page under Information > Quotes > Chosen.ogg
Ban SoundNautDrafter / NautDrafter / resources / assets / ronimo / audio / banned / shortname /*.oggMultiple audio clips that are chosen at random to play when the 'naut is banned. Can be located on the character's Gamepedia page under Information > Quotes > On Death.ogg
Emoji

NautDrafter / src / main / resources / com / monkygames / nautdrafter / view / emoji / ronimo /

shortName.pngA small image of the 'naut to be used in chat. Can be created from images on The Spriters Resource (taken from a stationary sprite cropped to be just the head) or by editing the main render image.

png, any width, 20px high (recommended. Larger sizes will create extra space above the line containing the emoji in the chat)

Adding Emoji

If an emoji icon is added (as specified above), the file emoji.js in NautDrafter/src/main/resources/com/monkygames/nautdrafter/view/ must be edited so that the character's image can be mapped to a key word. In the emoji.js file, locate the images property definition. It should look something like:

	// dictionary of emoji strings to images
	// can double-up the strings if necessary
	images: {
		"copyright": "noto/00a9.png",
		"registered": "noto/00ae.png",
		"bangbang": "noto/203c.png",
		[...]
		"voltar_the_omniscient": "ronimo/voltar_the_omniscient.png",
		"voltar": "ronimo/voltar_the_omniscient.png",
		"yuri": "ronimo/yuri.png"
	},

The property name (e.g. copyrightyuri) is the text the user must enter in order to produce the particular emoji. The property value (e.g. noto/00a9.pngronimo/yuri.png) is the image that will be displayed for the emoji (the path is relative to the view/emoji/ folder). So to add a new emoji definition, simply add a new line and put in the appropriate details.

For example, modifying the above snippet to add a definition for a new character called Scoop would give:

	// dictionary of emoji strings to images
	// can double-up the strings if necessary
	images: {
		"copyright": "noto/00a9.png",
		"registered": "noto/00ae.png",
		"bangbang": "noto/203c.png",
		[...]
		"voltar_the_omniscient": "ronimo/voltar_the_omniscient.png",
		"voltar": "ronimo/voltar_the_omniscient.png",
		"yuri": "ronimo/yuri.png",			// don't forget the comma!
		"scoop": "ronimo/scoop.png"			// the new character's emoji definition (assuming an emoji image called scoop.png had been added as specified earlier)
 	},