[REQ] Video request (youtube)

can someone make a youtube tutorial?
i’ve tried to make my own mod and it seem perfectly coded (i think) but it failed

If you upload your code, i’ll check it for you.

Kristof

1 Like

var Examples = {};
(function () {
Quas.addPlatform = function () {
var icon = ‘./mods/Quas/Consoles/img/greenheartOne.png’;
GDT.addPlatform(
{
id: ‘Quas A’,
name: ‘QUAS A’,
company: ‘Quas’,
startAmount: 0.15,
unitsSold: 0.358,
licencePrize: 1000,
published: ‘1/2/2’,
platformRetireDate: ‘2/6/1’,
developmentCosts: 10000,
genreWeightings: [0.8, 0.7, 0.8, 1, 0.6, 0.9],
audienceWeightings: [0.8, 0.9, 1],
techLevel: 1,
iconUri: icon,
events: [
{
id: ‘10537DA1-58F1-4F23-8854-F1E2621933BF’,
date: ‘1/1/3’,
getNotification: function (company) {
return new Notification({
header: “Industry News”.localize(),
text: “A company call Quas has announced a gaming console called “QUAS A”, rumors have said that it’ll be perfect for simulators and action games, also they’ve said that it’ll not be too famous but people who’ll own it will love it.{0}.”.localize().format(General.getETADescription(‘1/1/3’, ‘1/2/2’)),
image: icon
});
}
}
]
});
Quas.addPlatform = function () {
var icon = ‘./mods/Quas/Consoles/img/greenheartOne.png’;
GDT.addPlatform(
{
id: ‘Quas B’,
name: ‘QUAS B’,
company: ‘Quas’,
startAmount: 0.300,
unitsSold: 0.600,
licencePrize: 1000,
published: ‘2/4/3’,
platformRetireDate: ‘3/6/2’,
developmentCosts: 10000,
genreWeightings: [0.9, 1, 0.9, 0.8, 1, 1],
audienceWeightings: [1, 0.9, 0.8],
techLevel: 3,
iconUri: icon,
events: [
{
id: ‘10537DA1-58F1-4F23-8854-F1E2621933BF’,
date: ‘2/1/3’,
getNotification: function (company) {
return new Notification({
header: “Industry News”.localize(),
text: “Quas has announced a sequel to for QUAS A, this time it’s specilized to play adventure and strategy games, and it’s gonna use their own graphic card, Duas, an extremly high tech graphic card.{0}.”.localize().format(General.getETADescription(‘2/1/3’, ‘2/4/3’)),
image: icon
});
}
}
]

};

})();

(function () {
var ready = function () {
//example calls

	//Examples.addTopic();
	//Examples.addPlatform();
	//Examples.addEvent();
	//Examples.addResearch();
};

var error = function () {
};

GDT.loadJs(['mods/gdt-modAPI/helpers/checks.js',
'mods/gdt-modAPI/api/persistence.js',
'mods/gdt-modAPI/api/events.js',
'mods/gdt-modAPI/api/platforms.js',
'mods/gdt-modAPI/api/topics.js',
'mods/Quas/Code.js'
], ready, error);

})();

{
“id” : “Quas”,
“name” : “Quas”,
“version”:“0.1.1”,
“author”:“gamingthrou”,
“url”:"",
“description” : “A small, but powerful company that should’ve been famous!.”,
“main” : “./modAPI.js”
}

Damn :stuck_out_tongue:

first of all I would start by not changing the gdt-modAPI.
create your own mod directory with a package.json file and a Quas.js file

and please upload your files in a zip file, not just copy paste them here.

1 Like

i apologize for my stupidity but what i understood is:
1 create a folder
2 create a json with my script
3 create a js with the console script
4 then upload it
are these right?

PS: i’ve just copied GDT-modAPI and deleted api folder and helpers folder

There are no stupid questions :slight_smile:

Thats good too, yeah just upload your mod folder, I’ll straigten it out for you. :slight_smile:

Kristof

here you go
http://www.mediafire.com/download/o4vkmrhvg5gc8n2/Quas.zip

I’m at work at the moment so I haven’t had time to test it.
But can you try It?

Just replace your files with these:

http://users.telenet.be/wfb/Quas.zip

Let me know :slight_smile:

kristof

reuploaded I forgot something so :slight_smile: if you downloaded it before I posted this message please redownload :slight_smile:

please redownload and try it again :slight_smile:
And if you have still have an error, what does the error say? :slight_smile:

ok one moment I’ll check it :slight_smile:
Sux i’m not at home so I have to do this without testing

Done please redownload :slight_smile: Should be fixed

unexpected token and cant define quas

Yeah Didn’t check all of your code :slight_smile:
I’m gonna try to do it now :slight_smile:

I’m gonna stop spamming the forum and send you a private message :slight_smile:

Or put it on pastebin, bit more readable

@Gamingthrou I’ll try make a video