[QUES] Not Defined Error

Here is all that I’ve been doing, I’ve been trying to make a mod and it keeps giving me this syntax/not defined bullcrap and I want help heres all I’ve been doing

var MC = {};
(function () {
MC.addPlatformFlubbyBox = function () {
var icon = ‘./mods/MC/consoles/FlubbyBox.png’;
GDT.addPlatform(
{
id: ‘Flubby Box’,
name: ‘Flubby Box’,
company: ‘FlubberduckyEnterp’,
startAmount: 0.351,
unitsSold: 0.534,
marketKeyPoints: [{date: “1/8/1”,amount: 0.215}, {date: “4/7/4”,amount: 0.478}, {date: “6/9/3”,amount: 0.738}],
licencePrize: 2000,
published: ‘1/5/2’,
platformRetireDate: ‘7/1/2’,
developmentCosts: 20000,
genreWeightings: [1, 0.8, 0.9, 1, 1, 0.7],
audienceWeightings: [0.2, 0.5, 1],
techLevel: 1,
iconUri: icon,
events: [
{
id: ‘12111996-0200-0000-0000-FLUBBERDUCKY’,
date: ‘1/5/1’,
getNotification: function (company) {
return new Notification({
header: “Industry News”.localize(),
text: “Today, Flubberducky Enterprise announced that they will release a new console called the Flubby Box at {0}”.localize().format(General.getETADescription(‘1/5/2’, ‘7/1/2’)),
image: icon
});
}
}
]
});
};

MC.addPlatformFlubbyBlackBox = function () {
	var icon = './mods/MC/consoles/FBB.png';		
	GDT.addPlatform(
		{
			id: 'Flubby Black Box',
			name: 'Flubby Black Box',
			company: 'FlubberduckyEnterP',
			startAmount: 2.6,
			unitsSold: 5.434,
			licencePrize: 4000,
			published: '10/2/4',
			platformRetireDate: '21/11/5',
			developmentCosts: 25000,
			genreWeightings: [1, 0.9, 1, 1, 1, 0.8],
			audienceWeightings: [0.8, 0.9, 1],
			techLevel: 3,
			iconUri: icon,
			events: [
				{
					id: '12111996-1111-0000-0001-FLUBBERDUCKY',
					date: '10/1/9',
					getNotification: function (company) {
						return new Notification({
							header: "Industry News".localize(),
							text: "Flubberducky Enterprises, developer of the very successful Flubby Box, has announced a new console called the Flubby Black Box. Flubberducky Enterprise completly upgraded the Flubby Box and made it have faster loading, better graphics and a reverse support for the first Flubby Box.{n} The fact that the hardware is highly upgraded,It completly boosted the reputation of Flubberducky Enterprise. The Flubbyblack Box will be released {0}".localize().format(General.getETADescription('10/2/4', '21/11/5')),
							image: icon
						});
					}
				}
			]
		});
};

MC.addPlatformDibbleSlab = function () {
	var icon = './mods/MC/consoles/DibbleSlab.png';
	GDT.addPlatform(
		{
			id: 'Dibble Slab',
			name: 'Dibble Slab',
			company: 'FlubberduckyEnterP',
			startAmount: 1.3,
			unitsSold: 4.2,
			licencePrize: 1000,
			published: '12/11/3',
			platformRetireDate: '24/3/1',
			developmentCosts: 10000,
			genreWeightings: [0.8, 1, 0.6, 0.7, 1, 0.6],
			audienceWeightings: [0.8, 1, 0.7],
			techLevel: 2,
			iconUri: icon,
			events: [
				{
					id: '31102000-2-1-4-1-1-FLUBBERDUCKY',
					date: '12/11/2',
					getNotification: function (company) {
						return new Notification({
							header: "Industry News".localize(),
							text: "Today Flubberducky Enterprise, a company known for their consoles in the early consolemarket, have announced that they're gonna release a new console called the Dibble Slab.{n} This console will compete with consoles like the TES. Flubberducky Enterprise has announced that they are anticipating the console to be very successfull.{n} The Dibble Slab is getting released in {0}.".localize().format(General.getETADescription('12/11/2', '24/3/1')),
							image: icon
						});
					}
				}
			]
		});
};

MC.addPlatformDibbleSlabElite = function () {
	var icon = './mods/MC/consoles/DibbleSlabE.png';
	GDT.addPlatform(
		{
			id: 'Dibble Slab Elite',
			name: 'Dibble Slab Elite',
			company: 'FlubberduckyEnterP',
			startAmount: 0.4,
			unitsSold: 0.462,
			licencePrize: 5000,
			published: '13/5/1',
			platformRetireDate: '24/2/7',
			developmentCosts: 22000,
			genreWeightings: [0.8, 1, 1, 0.9, 0.7, 1],
			audienceWeightings: [0.8, 1, 0.7],
			techLevel: 1,
			iconUri: icon,
			events: [
				{
					id: '31102000-2-1-4-1-2-FLUBBERDUCKY',
					date: '2/9/1',
					getNotification: function (company) {
						return new Notification({
							header: "Industry News".localize(),
							text: "Today Flubberducky Enterprise announced their Last console. They call it Dibble Slab Elite.{n} The console uses a DibbleShock 5 console and has to compete with the popular MBox and Playsystem from Micronoft and Vonny.\nThe Dibble Slab Elite will be released in {0}.".localize().format(General.getETADescription('13/4/1', '24/2/7')),
							image: icon
						});
					}
				}
			]
		});
};

MC.addPlatformFC = function () {
	var icon = './mods/MC/consoles/FC.png';
	GDT.addPlatform(
		{
			id: 'Flubby Computer',
			name: 'Flubby Computer',
			company: 'FlubberduckyEnterP',
			startAmount: 1.5,
			unitsSold: 3.582,
			licencePrize: 10000,
			published: '21/9/3',
			platformRetireDate: '24/5/1',
			developmentCosts: 80000,
			genreWeightings: [0.7, 1, 0.8, 1, 0.6, 1],
			audienceWeightings: [0.9, 1, 0.6],
			techLevel: 4,
			iconUri: icon,
			events: [
				{
					id: '12111996-1111-0001-0000-FLUBBERDUCKY',
					date: '21/5/1',
					getNotification: function (company) {
						return new Notification({
							header: "Industry News".localize(),
							text: "Today Flubberducky Enterprise, known for the console Dibble Slab Elite, announced they will release a new Platform as we said before they made their last console, but we didn't say anything about their first computer! The Flubby Computer. This computer will have 3D V5 animations and therefore will be the first in the computer market to have 50gb of ram{n} Flubberducky Enterprise said the FC will get released {0}.".localize().format(General.getETADescription('21/5/1', '21/9/3')),
							image: icon
						});
					}
				}
			]
		});
};

MC.addPlatformFC2 = function () {
	var icon = './mods/MC/consoles/FC2.png';
	GDT.addPlatform(
		{
			id: 'Flubby Computer v2',
			name: 'Flubby Computer v2',
			company: 'FlubberduckyEnterP',
			startAmount: 2.125,
			unitsSold: 3.634,
			licencePrize: 25000,
			published: '25/6/6',
			platformRetireDate: '34/3/5',
			developmentCosts: 150000,
			genreWeightings: [0.7, 0.8, 0.9, 1, 0.6, 1],
			audienceWeightings: [1, 0.8, 0.6],
			techLevel: 5,
			iconUri: icon,
			events: [
				{
					id: '12111996-1111-0001-0001-FLUBBERDUCKY',
					date: '25/5/6',
					getNotification: function (company) {
						return new Notification({
							header: "Industry News".localize(),
							text: "Today is the day that Flubberducky Enterprise has announced to make another computer, you may have thought that Flubberducky Enterprise decided to retire but your thought wrong! The Flubby Computer 2 is featuring better graphics and therefore better gameplay amazing. The Flubber Computer is said to be released {0}.".localize().format(General.getETADescription('25/6/6', '34/3/5')),
							image: icon
						});
					}
				}
			]
		});
};

Ive found 2 mistakes: that date: 21/11/5 10/1/9!? 5, or 9 weeks in month? Max. is 4. And [{date: “1/8/1”,amount: 0.215}, {date: “4/7/4”,amount: 0.478}, {date: “6/9/3”,amount: 0.738}]. You can`t define the amount of sold consoles AFTER it is RETIRED.

Hope i helped.

^
|
|

Sorry, it wasnt retired. But i need to make a new post, because i cant edit this older one.

Now I’m getting the incorrect date “random date” so now I’m really close to finishing my mod but I just need to find out wtf is happening

Did you just in date written ‘random date’?

No, I’m not that kinda person. I can put in all the info I used which you probably saw in my last posts

why do you have a date next to market keypoints?

I was using the Quas or Expansion Pack to Study the Coding and make it myself. Also I fixed the not defined error I found out I was missing a few Brackets thanks to the Expansion Pack I noticed I was missing some and now my Code is Binded up

2 b@d

@awesomejuan36912 srsly… absolute waste of a comment… 2 years!

well that’s just the worst necro ever

also why am I replying to it
noooooo

1 Like