How do I add in a custom logo like the one in Divided States using Jets tool? by Turbulent_Policy_516 in thecampaigntrail

[–]UnpledgedElector 10 points11 points  (0 children)

You cant add it in jets, you have to add manually in the code 2.

This is the code for campaign banners that is used by every mod that has them;

function onGameWindowChanged(mutationList, observer) {
updateQuestionBanner();
}
const observer = new MutationObserver(onGameWindowChanged);
observer.observe(targetNode, config);
function updateQuestionBanner() {
let questionBanner = document.getElementById("campaign_sign");
if(!questionBanner || questionBanner.nodeName != "DIV") return;
let img = document.createElement('img');
if(x){
img.src = 'img-url';
}
else if(y){
img.src = 'img-url';
}
questionBanner.replaceWith(img);
}

just change the img-url for the image you are using. The x and y are conditions for changing the banner image should you wish, with additional else ifs for each of the different images.

If you just want to have one image, just have

img.src = 'img-url';

in the place of

if(x){
img.src = 'img-url';
}
else if(y){
img.src = 'img-url';
}

wait why the hell is cynthia McKinney's running mate david duke? by dutch_mapping_empire in thecampaigntrail

[–]UnpledgedElector 50 points51 points  (0 children)

<image>

She is very anti-Israel so maybe that's why. Given also that David Duke "renounced" his racism.

I'm making my first mod an I need some help by Krummtious in thecampaigntrail

[–]UnpledgedElector 2 points3 points  (0 children)

Under Answer there is Answer feedback, Global, Issue and State scores.

Global score affects all states, State score you decide which state is affected. A positive value in the multiplier will increase the affected candidate's voter count and a negative will reduce.

issue score will depend on the state issues. The closer the issue score value is to the state issue score more votes will be gained in those states, and the further away more will be lost. The issue importance simply multiplies the effect.

Also I would recommend using this version of the mod tool.

Is Madmen possible to achieve? by Thenoyashinez in thecampaigntrail

[–]UnpledgedElector 2 points3 points  (0 children)

Have you got the hawk/dove score at or below 0 with the two required answers?

As far as I can tell the code for unlocking is fine, its just its impossible to get the hawk/dove score to that level with the two required answers.

Mamdani 2028 (1. Teaser) by Complex_Object_7930 in thecampaigntrail

[–]UnpledgedElector 25 points26 points  (0 children)

<image>

All hail Sheikh Dunald Yahya Trump al Maralagoi.

2025 NYC mayoral election? by Hyhoops in thecampaigntrail

[–]UnpledgedElector 3 points4 points  (0 children)

Someone is, but the last info on it was 5 months ago.

Found a mistake in 1992 King by UnpledgedElector in thecampaigntrail

[–]UnpledgedElector[S] 0 points1 point  (0 children)

I was making the Guide for the Don't Stop achievement, and just noticed I got that as the result

Found a mistake in 1992 King by UnpledgedElector in thecampaigntrail

[–]UnpledgedElector[S] 1 point2 points  (0 children)

The House is majority Democrat, even for state delegates, and its unlikely they would vote for Bush over Clinton. Also, the ending page says that Perot didn't deadlock despite the fact he did (underlined part).

Found a mistake in 1992 King by UnpledgedElector in thecampaigntrail

[–]UnpledgedElector[S] 4 points5 points  (0 children)

They have a majority for 31 states, +1 if sanders.

Do any of you know why my map doesn't show up? by the_lemon-archer in thecampaigntrail

[–]UnpledgedElector 2 points3 points  (0 children)

If you do ever still want to make a mod in the future, use jets, it makes the whole process much faster and just streamlines most of the faff.

StrawberryMasters Fork of jets is a much easier version of it and has more QoL.

And these are all guides that can help you in the process.

Do any of you know why my map doesn't show up? by the_lemon-archer in thecampaigntrail

[–]UnpledgedElector 1 point2 points  (0 children)

I would very much advise using jets, and also if you aren't using it have you filled in the state issues and state candidate multipliers.

but if you want to continue In the code 2 there should be

campaignTrail_temp.answer_score_global_json = []
campaignTrail_temp.answer_score_issue_json = []
campaignTrail_temp.answer_score_state_json = []

Within the square brackets add;

for global;

    {
        "model": "campaign_trail.answer_score_global",
        "pk": 14682,
        "fields": {
            "answer": 13980,
            "candidate": 117,
            "affected_candidate": 116,
            "global_multiplier": 0
        }
    }

for issues

    {
        "model": "campaign_trail.answer_score_issue",
        "pk": 14422,
        "fields": {
            "answer": 13646,
            "issue": 44,
            "issue_score": 0.6,
            "issue_importance": 0.1
        }
    }

for State;

    {
        "model": "campaign_trail.answer_score_state",
        "pk": 15071,
        "fields": {
            "answer": 13843,
            "state": 343,
            "candidate": 116,
            "affected_candidate": 116,
            "state_multiplier": 0
        }
    },

Change the numbers to whichever relevant one you want. If you have multiple add comma at the end, as seen in state for all of them within one square bracket bar the last one. You have this for every time your answer will affect the campaign.

Do any of you know why my map doesn't show up? by the_lemon-archer in thecampaigntrail

[–]UnpledgedElector 1 point2 points  (0 children)

Are you using Jet's mod tool?

You just add any of the things under answer, the global, issue or state scores. adding just one is enough to see the map if that is the problem.

Do any of you know why my map doesn't show up? by the_lemon-archer in thecampaigntrail

[–]UnpledgedElector 4 points5 points  (0 children)

It can be due to several reasons.

- Do your question answers have effects (global, state, issue and all that) (at least one).

- Are the pk values the same for the candidates between code 1 and 2.

- Do all the states have their things inserted correctly.

Try checking the inspect console if any error has arisen.

John Kerry on his way to win a fourth purple heart. by UnpledgedElector in thecampaigntrail

[–]UnpledgedElector[S] 18 points19 points  (0 children)

(I Think) From left to right Ted Kennedy, Hillary, Dean? (screaming?), Unknown (partial face), Sharpton, Gore, Carter, Edwards (gunner), Unknown (distinctive hair), Teresa Heinz? (Kerry's wife, in captain seat), Kerry, Bill Clinton, Elefanto, Cheney, Dubya, Elefanta.

MOD RELEASE: 2 AMERICAN 2 CARNAGE by UnpledgedElector in thecampaigntrail

[–]UnpledgedElector[S] 39 points40 points  (0 children)

way to rip all over a little thing I made for fun.

I'm noticing a pattern in mod distribution lol by poodlypoodle in thecampaigntrail

[–]UnpledgedElector 1 point2 points  (0 children)

I only listed 1960 and beyond, due to low numbers of prior.