It says it isn’t defined.
I did EXACTLY as you did in the example.
It says that getRelativePath is not defined?
Are you using the private beta?
GDT.getRelativePath() is only available in the private beta version.
If you are using the private beta, what output do you have in the console?
Cannot open page, my security kit denies access to that page because of being potentially harmful. This is not related to the file itself, but to the hoster.
Alternatives?
I’ll paste it on pastebin.
Hey @alphabit,
I have a lot of people who are using Mac and don’t see any images.
Does the GDT.getRelativePath() function return a wrong path on Macs?
Are you sure the names are the same? Resolved an issue with mine on Linux
What do you mean with names?
If they’re the same. Caps and small letters.
Ummm… what? You’re not really making sense right now.
If an image’s name is Image, and you call it as image from the script. Maybe. That’s what I’m saying.
If that was the case it should’ve also given errors on windows/linux
Thank you very much
Not only for alphabit
Poor GHG Many work, little fun.
Anyone can help me with this?
// ******************************************************************************************
// Mod Name: StoryOfConsole
// Mod Id: 1cb93a32-051e-49b8-b0a5-731882d3bc3a
// Mod Version: 1.0.0
// Mod File: code.js
// ******************************************************************************************
// Author: Akhen
// Last modified: 29/03/2020 16:52
// ******************************************************************************************
// Notes: This file is loaded from main.js
// ******************************************************************************************
// Create the main mod object (our package)
var StoryOfConsole = {};
(function(){
// ******************************************************************************************
// Platforms
// ******************************************************************************************
// Adding ChildFair Channel G
// -----------------------------------------------------------
GDT.addPlatform({
id:“b024fdcf-9a32-4426-a636-51c1fd59767b”,
name:“ChildFair Channel G”,
company:“ChildFair”,
startAmount:0.0075,
unitsSold:0.0075,
licencePrize:4E4,
published:“1/1/1”,
platformRetireDate:“2/1/1”,
developmentCosts:1E4,
genreWeightings:[ 0.8, 0.7, 0.6, 0.8, 0.9, 1 ],
audienceWeightings:[ 0.8, 1, 0.7 ],
techLevel:1,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/Channelf.png”,
events:[{
id: “242b9ade-9ddd-4415-9d25-435c21a3f5cb”,
date: “1/11/2”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “ChildFair Channel G is OUT!”,
text: “The company that developed the console communicated the overall sales and unfortunately decided to withdraw it from the market, a really sad day for the console competition.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Channelf.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Matari 2600
// -----------------------------------------------------------
GDT.addPlatform({
id:“51cf0b58-2009-44e2-8150-e8fe47dd632b”,
name:“Matari 2600”,
company:“Matari”,
startAmount:0.265,
unitsSold:0.265,
licencePrize:5E4,
published:“1/1/1”,
platformRetireDate:“4/6/2”,
developmentCosts:7E3,
genreWeightings:[ 0.9, 0.9, 0.7, 0.9, 1, 1 ],
audienceWeightings:[ 0.7, 1, 0.9 ],
techLevel:1,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/Atari-2600-Wood-4Sw-Set.png”,
events:[{
id: “840f4b2d-32c0-49e9-9840-cf5a3ff77197”,
date: “4/3/4”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Matari 2600 leaves the scene.”,
text: “After three decades of honored Matari 2600 service, Matari has announced its intention to withdraw the now obsolete console.\nOverall console sales were as many as 30 million.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Atari-2600-Wood-4Sw-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Maggavox Odissea 2
// -----------------------------------------------------------
GDT.addPlatform({
id:“157bfff3-a2bb-4991-89df-761fadc926f9”,
name:“Maggavox Odissea 2”,
company:“Maggavox - Filippine”,
startAmount:0.09,
unitsSold:0.09,
licencePrize:5E4,
published:“1/1/1”,
platformRetireDate:“2/12/1”,
developmentCosts:1E4,
genreWeightings:[ 1, 0.8, 0.6, 0.6, 0.7, 1 ],
audienceWeightings:[ 0.6, 0.9, 1 ],
techLevel:1,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/1920px-Magnavox-Odyssey-2-Console-Set.png”,
events:[{
id: “0f09b02c-2af0-4589-96f1-25ef5c958530”,
date: “2/10/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Maggavox Oddisea 2 will soon be out of production”,
text: “Philips has announced that it intends to withdraw its console, with only 2 million copies sold, which are not necessary to continue production.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Magnavox-Odyssey-2-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding IntelliVisa
// -----------------------------------------------------------
GDT.addPlatform({
id:“6382771b-393b-4f49-b3a9-9c46762c9423”,
name:“IntelliVisa”,
company:“Vattel Elettronics”,
startAmount:0.1,
unitsSold:0.1,
licencePrize:2E4,
published:“1/1/1”,
platformRetireDate:“2/9/4”,
developmentCosts:2E3,
genreWeightings:[ 1, 0.6, 0.9, 1, 0.8, 0.9 ],
audienceWeightings:[ 0.8, 1, 0.7 ],
techLevel:1,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/Intellivision-Console-Set.png”,
events:[{
id: “44bb622d-219d-4908-9279-c82a688cc7ba”,
date: “2/8/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “IntelliVisa Retires”,
text: “After 11 years of honored Intellivisa service, he finally retires, a fairly successful console with his 3 million copies sold.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Intellivision-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Matari 5200
// -----------------------------------------------------------
GDT.addPlatform({
id:“f9ce9f4c-5435-49c3-8f44-d8a8a5eedc0a”,
name:“Matari 5200”,
company:“Matari”,
startAmount:0.05,
unitsSold:0.05,
licencePrize:5E4,
published:“1/1/1”,
platformRetireDate:“3/1/4”,
developmentCosts:1E4,
genreWeightings:[ 1, 0.6, 0.9, 0.8, 0.6, 1 ],
audienceWeightings:[ 1, 1, 0.7 ],
techLevel:2,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/Atari-5200-4-Port-wController-L.png”,
events:[{
id: “182187f9-5fa6-4b48-87d4-a4218ba45adf”,
date: “2/12/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Matari 5200 already out of production?!”,
text: “Matari has announced that he wants to withdraw the 5200 model, the reason stated by the executives is that the sales are too stale, the console has been on the market for two years but has only totaled a million sales, a real shame.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Atari-5200-4-Port-wController-L.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding ToletoVision
// -----------------------------------------------------------
GDT.addPlatform({
id:“587b89be-6c4b-4c32-a1e0-674f3f657dd6”,
name:“ToletoVision”,
company:“Toleto”,
startAmount:0.22,
unitsSold:0.22,
licencePrize:1E4,
published:“1/1/1”,
platformRetireDate:“3/8/1”,
developmentCosts:3E3,
genreWeightings:[ 1, 0.9, 0.6, 0.8, 0.6, 0.9 ],
audienceWeightings:[ 0.8, 1, 0.6 ],
techLevel:2,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/ColecoVision.png”,
events:[{
id: “f5619abc-32ab-44cd-9698-6b96d058c3e4”,
date: “3/6/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Goodbye dear ToletoVision”,
text: “After only 3 years ToletoVision will be withdrawn from the market, it has totaled well over two million sales.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/ColecoVision.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Matari 7800
// -----------------------------------------------------------
GDT.addPlatform({
id:“a8ae8216-3382-4c19-85c6-966f095fec7e”,
name:“Matari 7800”,
company:“Matari”,
startAmount:0.18,
unitsSold:0.18,
licencePrize:4E4,
published:“3/1/1”,
platformRetireDate:“7/11/3”,
developmentCosts:1E4,
genreWeightings:[ 1, 0.6, 0.8, 0.8, 0.7, 1 ],
audienceWeightings:[ 0.9, 1, 0.7 ],
techLevel:2,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/1920px-Atari-7800-Console-Set.png”,
events:[{
id: “a312b8b4-879b-4e25-8876-5258e3f8692f”,
date: “2/11/3”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Welcome Matari 7800”,
text: “After the bankruptcy Matari 5200, Matari has decided to present the Matari 7800 which will compete with the Ninvento and Vena consoles.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Atari-7800-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “151393bc-0c4c-425d-a002-d802cacec66b”,
date: “7/12/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Matari 7800 greets us”,
text: “After 6 years on the shelves Matari 7800 will be withdrawn, the console has totaled 3.77 million sales”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Atari-7800-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Matari Lynx
// -----------------------------------------------------------
GDT.addPlatform({
id:“c86d6afb-6624-42c5-83de-01f7d97f9c92”,
name:“Matari Lynx”,
company:“Matari”,
startAmount:0.1,
unitsSold:0.1,
licencePrize:3E4,
published:“4/3/1”,
platformRetireDate:“8/9/4”,
developmentCosts:1E4,
genreWeightings:[ 0.9, 1, 0.6, 1, 0.7, 1 ],
audienceWeightings:[ 0.8, 0.9, 1 ],
techLevel:2,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/1920px-Atari-Lynx-I-Handheld.png”,
events:[{
id: “d41a535b-5265-497e-8ca0-4c8d7cfc2a19”,
date: “4/1/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “A portable console from Matari is coming”,
text: “Matari has decided to compete against Ninvento and Vena by sending his Lynx portable console previously called Handy onto the field.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Atari-Lynx-I-Handheld.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “2afd72f4-77a6-4c07-8da2-254130dee4dd”,
date: “8/7/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Lynx hangs his shoes”,
text: “After 6 years of jokes and counter jokes in the field of portable consoles, Lynx hangs on the shoe, totaling only 3 million copies sold.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Atari-Lynx-I-Handheld.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Veo Neo AES
// -----------------------------------------------------------
GDT.addPlatform({
id:“e569c6ef-b624-4f71-a043-69bba6dcac97”,
name:“Veo Neo AES”,
company:“NKS”,
startAmount:0.05,
unitsSold:0.05,
licencePrize:1E5,
published:“5/4/3”,
platformRetireDate:“9/8/1”,
developmentCosts:4E4,
genreWeightings:[ 1, 0.9, 0.7, 1, 0.8, 0.6 ],
audienceWeightings:[ 0.6, 0.8, 1 ],
techLevel:3,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/Neo-Geo-AES-Console-Set.png”,
events:[{
id: “02bf9e71-24c6-4f65-bceb-ef2bf0bdcd17”,
date: “9/6/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Veo Neo retires”,
text: “Veo Neo retires after only one million copies sold.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Neo-Geo-AES-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “3a485045-00b9-470a-ac26-25a93850c33b”,
date: “5/2/4”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Fighting finally at home!”,
text: “NKS has decided to market a whole console by converting the cabinets into a console from home, the cons is that the price is really exorbitant.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Neo-Geo-AES-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding Matari Jaguar
// -----------------------------------------------------------
GDT.addPlatform({
id:“e4b3b923-def5-40b2-a178-76f8e0ac101c”,
name:“Matari Jaguar”,
company:“Matari”,
startAmount:0.0075,
unitsSold:0.0075,
licencePrize:9E4,
published:“7/10/1”,
platformRetireDate:“9/6/4”,
developmentCosts:3E4,
genreWeightings:[ 0.9, 0.7, 0.6, 1, 1, 0.6 ],
audienceWeightings:[ 0.6, 1, 0.9 ],
techLevel:4,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/1920px-Atari-Jaguar-Console-Set.png”,
events:[{
id: “b783da6c-e06c-40a6-9212-9914dfc56c45”,
date: “7/8/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “The first 64-bit console … maybe”,
text: “Matari plans to release its console called Jaguar, according to spokesmen Matari is the first 64-bit system, but experts outside declare that it is not a 64-bit console but they have two 32-bit processors that does not transform the console on a 64-bit system.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Atari-Jaguar-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “9d931fbd-7459-4e85-a6ef-17f5939fdd6e”,
date: “9/5/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Matari out of console competition!”,
text: “Matari after the bankruptcy Matari Jaguar has announced the withdrawal from the world of consoles, the company after the release of Jaguar is not doing well at all, rumors of the merger with Jts Inc.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-Atari-Jaguar-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding 3FO
// -----------------------------------------------------------
GDT.addPlatform({
id:“8ddda133-cd29-4103-8eb5-cfc3f6d2d554”,
name:“3FO”,
company:“PLCS”,
startAmount:0.2,
unitsSold:0.2,
licencePrize:7E4,
published:“7/8/4”,
platformRetireDate:“9/8/1”,
developmentCosts:2E4,
genreWeightings:[ 1, 0.8, 1, 0.7, 0.8, 0.6 ],
audienceWeightings:[ 1, 1, 1 ],
techLevel:4,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/1920px-3DO-FZ1-Console-Set.png”,
events:[{
id: “a5a62fa8-6af6-426a-8d82-232bfba1b6bd”,
date: “7/7/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Trip Hawkins founder of EA develops his own console”,
text: “Trip Hawkins together with other companies had the funding to create the 3FO, who knows if all this will have an effect on the market.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-3DO-FZ1-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “bcc80b1d-9faf-4222-8d47-5ff7d06b9519”,
date: “9/6/2”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “3FO discontinued and birth of 3FO Studio”,
text: “The sales of 3FO do not satisfy the companies that gave the Trip Hawkins financing decreeing the end of the console.\nIn this case 3FO Studio was born which will take care of creating games for third-party consoles.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/1920px-3DO-FZ1-Console-Set.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// Adding V-Gage
// -----------------------------------------------------------
GDT.addPlatform({
id:“b686ff82-e86c-40e1-a3fe-394454578f13”,
name:“V-Gage”,
company:“Vokia”,
startAmount:0.18,
unitsSold:0.18,
licencePrize:2E5,
published:“12/10/3”,
platformRetireDate:“14/8/3”,
developmentCosts:4E4,
genreWeightings:[ 1, 0.7, 0.6, 0.9, 0.8, 1 ],
audienceWeightings:[ 0.7, 1, 0.9 ],
techLevel:4,
iconUri: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/platforms/Nokia-NGage-LL.png”,
events:[{
id: “c2e92c48-380d-47d1-b30f-1094c0402802”,
date: “12/9/1”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “Vokia in the world of portable consoles!”,
text: “Vokia famous companies for its \“indestructible\” cellphones has decided to compete with Ninvento and Vony in the world of portable consoles by announcing the V-Gage.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Nokia-NGage-LL.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
,{
id: “5713c3f3-d591-46a8-b60a-a43c951ce9e2”,
date: “14/6/2”,
isRandom: false,
ignoreGameLengthModifier: false,
maxTriggers: 1,
getNotification: function(company){ return new Notification({
header: “V-Gage goes astray”,
text: “Vokia has decided to withdraw the V-Gage from the market, the reason is the low sales.\nVarious problems marked the fate of V-Gage, from the poor design of the console and also the bad trust of the buyers.”,
image: mod1cb93a32051e49b8b0a5731882d3bc3a.modPath + “/images/notifications/Nokia-NGage-LL.png”,
buttonText: “OK”,
weeksUntilFired: 0
});}
}
]
});
// ******************************************************************************************
// Events
// ******************************************************************************************
})();