Where to learn to mod GDT?

Since the new update, you don’t need to do it your way. Check mine and test and send feedback.
EDIT: Names must be exatcly the same. Linux users will have errors and Mac users won’t be able to see images.

I did everything the same except the relative path thing. I will add the relative path thing. But when you get the chance, could you tell me the new way to do it?

Relative path? That’s used for images. When you get it to work, then I’ll explain.

Okay. But you are saying that this is used for images:

Yes. name it like this, as well. not the same, we will both get conflicts.

smallModName_YourName = GDT.getRelativePath();

I think @alphabit said you can communicate with other mods with this feature as well.

Okay. I will try again but I tried more than once and it kept happening. I will get back you soon.

1 Like

Sure, any time. I’m now ‘Watching’ this thread to receive notifications.

1 Like

New GDT update, noticed this

  • Fixed: GDT.loadJs wasn’t able to handle absolute paths.
2 Likes

Yay! I got it to work. I actually don’t know what I did different. I didn’t even add the relative path thing like I was going to. That update may have helped although I had the update when the error happened. Thanks for helping though. I will probably use that relative path thing some time.

Cheers! :smiley:

1 Like

There’s no probably. To make images work, you must use that. Here’s how it loads an image.

// Advanced Gameling
var exGDT = {};
var iconAG = exGDT_FireChaos.modPath + '/images/platforms/advGameling.png';
        GDT.addPlatform({
            id : 'exGDT_advancedgameling',
            name : 'Advanced Gameling',
            company : 'Ninvento',
            startAmount : 0.9,
            unitsSold : 1.589,
            licencePrize : 90000,
            published : '14/9/4',
            platformRetireDate : '20/9/2',
            developmentCosts : 50000,
            genreWeightings : [0.8, 0.9, 1, 0.7, 0.9, 1],
            audienceWeightings : [1, 0.9, 0.7],
            techLevel : 3,
            iconUri : iconAG,
            events : [{
                id : 'exGDT_advancedgamelingrelease',
                date : '14/7/4',
                getNotification : function (company) {
                    return new Notification({
                        header : "Industry News".localize(),
                        text : "Just after getting Gameling out of the Market, Ninvento said that they are publishing their next handheld console named Gameling Advanced.{n} They say that it is an update to the original Gameling, but with better graphics and gameplay. It will be released {0}.".localize().format(General.getETADescription('14/7/4', '14/9/4')),
                        image : iconAG
                });
            }
        }
    ]
});

Yeah, I know. I found out how to do that here:

GDT-ModAPI Page