Skip to content

Commit

Permalink
AutoTrimps v2.1.6.9c remove changelogs and lowlevel playernotice
Browse files Browse the repository at this point in the history
  • Loading branch information
genbtc committed Nov 3, 2023
1 parent 22ca489 commit 4b39b07
Showing 1 changed file with 15 additions and 25 deletions.
40 changes: 15 additions & 25 deletions AutoTrimps2.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
// ==UserScript==
// @name AutoTrimpsV2
// @version 2.1.6.9b-genbtc-4-2-2018
// @updateURL https://github.com/genbtc/AutoTrimps/AutoTrimps2.js
// @version 2.1.6.9c-genbtc
// @updateURL https://genBTC.github.io/AutoTrimps/AutoTrimps2.js
// @description Automate all the trimps!
// @author zininzinin, spindrjr, belaith, ishakaru, genBTC, Unihedron, coderPatsy
// @include *trimps.github.io*
// @include *kongregate.com/games/GreenSatellite/trimps
// @author zininzinin, spindrjr, belaith, ishakaru, genBTC, Unihedron, coderPatsy, Zorn192, Zeker0
// @match *trimps.github.io*
// @match *kongregate.com/games/GreenSatellite/trimps
// @grant none
// ==/UserScript==
var ATversion = '2.1.6.9b-genbtc-4-2-2018';
var ATversion = '2.1.6.9c-genbtc';

////////////////////////////////////////////////////////////////////////////////
//Main Loader Initialize Function (loads first, load everything else)///////////
Expand All @@ -22,9 +22,6 @@ var atscript = document.getElementById('AutoTrimps-script')
if (atscript !== null) {
basepath = atscript.src.replace(/AutoTrimps2\.js$/, '');
}
//This could potentially do something one day. like: read localhost url from tampermonkey.
// AKA do certain things when matched on a certain url.
//if (atscript.src.includes('localhost')) {;};

//Script can be loaded like this: ATscriptLoad(modulepath, 'utils.js');
function ATscriptLoad(pathname, modulename) {
Expand All @@ -33,8 +30,6 @@ function ATscriptLoad(pathname, modulename) {
if (pathname == null) pathname = '';
script.src = basepath + pathname + modulename + '.js';
script.id = modulename + '_MODULE';
//script.setAttribute('crossorigin',"use-credentials");
//script.setAttribute('crossorigin',"anonymous");
document.head.appendChild(script);
}
//Scripts can be unloaded like this: ATscriptUnload('scryer');
Expand All @@ -56,20 +51,14 @@ function initializeAutoTrimps() {
for (var m in ATmoduleList) {
ATscriptLoad(modulepath, ATmoduleList[m]);
}
//
debug('AutoTrimps v' + ATversion + ' Loaded!', '*spinner3');
}

var changelogList = [];
//changelogList.push({date: " ", version: " ", description: "", isNew: true}); //TEMPLATE
changelogList.push({date: "4/7", version: "-", description: "AutoPerks Zeker0 ratios updated for all levels.", isNew: true});
changelogList.push({date: "4/2", version: "v2.1.6.9b", description: "Import Export, Modules Load code Improvements. Multiple Buttons/Settings Were Combined. AutoPerks code was changed but still functions the same, except for a new Fast-Allocate algorithm (now with a checkbox) that reduces the time to allocate for high helium players to near-instantaneous. Please test new algo; it might overshoot. You can also clear all perks then allocate and have it work now. AutoMaps no longer considered as being in Lead challenge during Chall^2. ", isNew: true});
changelogList.push({date: "3/23", version: "v2.1.6.9", description: "Game's <u>Map at Zone</u> can be used with AT now, to run maps forever. AutoMaps setting was combined with RunUniqueMaps (variable has changed from boolean false,true to a value 0,1,2). Settings file has been migrated as such. New: Map SpecialMod is sort of working, at least. Geneticist Infinity bugfix. New AGU Settings for 60% Void (fixed). Many Graphs fixes. AutoMaps changes. Equipment Cap, see README at <a target='#' href='https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md'>GitHub</a> DarkTheme fix. Scientists Fix. Zek450 Perks Preset Changed. Ongoing Development...", isNew: false});
changelogList.push({date: "3/22", version: "v2.1.6.8", description: "Settings GUI, make better. Import/export improved. Graph buttons: Cycle Up/Down. Internal code fixes. New Graph: Nurseries", isNew: false});
changelogList.push({date: "3/24", version: "v2.1.6.5-stable", description: "Set up <a target='#' href='https://genbtc.github.io/AutoTrimps-stable'>Stable Repository</a> for the faint of heart.", isNew: true});
//changelogList.push({date: "3/20", version: "v2.1.6.7", description: "Entirely Re-Arranged Settings Layout. Enjoy! New: Display Tab: EnhanceGrid + Go AFK Mode. GUI: Pinned AT Tab menu bar to top when scrolling. Minimize/Maxi/Close Buttons. ShowChangeLog Button. New Graph: FluffyXP&Xp/Hr (starts@300)", isNew: false});
//changelogList.push({date: "3/13", version: "v2.1.6.6", description: "Geneticist management changes. Equipment code improvements. ATscriptLoad improvements. attempt to track errors.", isNew: false});
//changelogList.push({date: "3/7", version: "v2.1.6.5", description: "Save/Reload Profiles in Import/Export. Magmamancer graph. Magmite/Magma Spam disableable.", isNew: false});
changelogList.push({date: "11/2/2023", version: "v2.1.6.9c", description: "Update Script for 2023 and Trimps v5.9 - so it works again.", isNew: true});
changelogList.push({date: "4/2-7/18", version: "v2.1.6.9b", description: "Import Export, Modules Load code Improvements. Final Dev Update. Multiple Buttons/Settings Were Combined. AutoPerks code was changed but still functions the same, except for a new Fast-Allocate algorithm (now with a checkbox) that reduces the time to allocate for high helium players to near-instantaneous. Please test new algo; it might overshoot. You can also clear all perks then allocate and have it work now. AutoPerks Zeker0 ratios updated for all levels. AutoMaps no longer considered as being in Lead challenge during Chall^2. ", isNew: false});
changelogList.push({date: "3/23/18", version: "v2.1.6.9", description: "Game's <u>Map at Zone</u> can be used with AT now, to run maps forever. AutoMaps setting was combined with RunUniqueMaps (variable has changed from boolean false,true to a value 0,1,2). Settings file has been migrated as such. New: Map SpecialMod is sort of working, at least. Geneticist Infinity bugfix. New AGU Settings for 60% Void (fixed). Many Graphs fixes. AutoMaps changes. Equipment Cap, see README at <a target='#' href='https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md'>GitHub</a> DarkTheme fix. Scientists Fix. Zek450 Perks Preset Changed. Last Major Version", isNew: false});

function assembleChangelog(date,version,description,isNew) {
return (isNew)
Expand All @@ -84,25 +73,26 @@ function printChangelog() {
body+=result;
};
var footer =
'<b>Ongoing Development</b> - <u>Report any bugs/problems please</u>!\
<br>Talk with the dev: <b>genr8_#8163</b> @ <a target="#" href="https://discord.gg/0VbWe0dxB9kIfV2C">AutoTrimps Discord Channel</a>\
<br>See<a target="#" href="https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md">ReadMe</a> Or check <a target="#" href="https://github.com/genBTC/AutoTrimps/commits/gh-pages" target="#">the commit history</a> (if you want).'
'<b>genBTC fork is outdated, use Zorn192 / Zeker for best outcome, or YMMV</b>\
There is no relation to bitcoin, genBTC is merely my nickname.\
<br> See <a target="#" href="https://github.com/genbtc/AutoTrimps/blob/gh-pages/README.md">ReadMe</a>\
<br> Or <a target="#" href="https://github.com/genBTC/AutoTrimps/commits/gh-pages" target="#">the commit history</a>.'
, action = 'cancelTooltip()'
, title = 'Script Update Notice<br>' + ATversion
, acceptBtnText = "Thank you for playing AutoTrimps. Accept and Continue."
, hideCancel = true;
tooltip('confirm', null, 'update', body+footer, action, title, acceptBtnText, null, hideCancel);
}
function printLowerLevelPlayerNotice() {
tooltip('confirm', null, 'update', 'The fact that it works at all is misleading new players into thinking its perfect. Its not. If your highest zone is under z60, you have not unlocked the stats required, and have not experienced the full meta with its various paradigm shifts. If you are just starting, my advice is to play along naturally and use AutoTrimps as a tool, not a crutch. Play with the settings as if it was the game, Dont expect to go unattended, if AT chooses wrong, and make the RIGHT choice yourself. Additionally, its not coded to run one-time challenges for you, only repeatable ones for helium. During this part of the game, content is king - automating literally removes the fun of the game. If you find that many flaws in the automation exist for you, level up. Keep in mind the challenge of maintaining the code is that it has to work for everyone. AT cant see the future and doesnt run simulations, it exists only in the present moment. Post any suggestions on how it can be better, or volunteer to adapt the code, or produce some sort of low-level player guide with what youve learned.<br>Happy scripting! -genBTC','cancelTooltip()', '<b>LowLevelPlayer Notes:</b><br><b>PSA: </b><u>AutoTrimps was not designed for new/low-level players.</u>', "I understand I am on my own and I Accept and Continue.", null, true);
tooltip('confirm', null, 'update', 'NOTE: Script not designed for level 60 or under. YMMV. <br>-genBTC','cancelTooltip()', '<b>LowLevelPlayer Notes:</b><br><b>PSA: </b><u>AutoTrimps was not designed for new/low-level players.</u>', "I understand I am on my own and I Accept and Continue.", null, true);
}
////////////////////////////////////////
//Main DELAY Loop///////////////////////
////////////////////////////////////////

//Magic Numbers
var runInterval = 100; //How often to loop through logic
var startupDelay = 2500; //How long to wait for everything to load
var startupDelay = 2000; //How long to wait for everything to load

//Start Loops
setTimeout(delayStart, startupDelay);
Expand Down

0 comments on commit 4b39b07

Please sign in to comment.