Unihedro/AutoTrimps

Autotrimps error

Opened this issue · 0 comments

I just fixed this issue, but I'm still logging it because it presents a potential issue for new AutoTrimps users. As it turns out, the "Prestige" dropdown was set to nothing (not "Off", it was completely empty). It should probably have a default value.

Following is my original issue:

AutoTrimps refuses to send out a fighting group once it reaches Zone 6. Checking the javascript console, the following error message is constantly being logged:

unihedro.github.io/AutoTrimps/modules/automaps.js:90 Uncaught TypeError: Cannot read property 'last' of undefined
at autoMap (unihedro.github.io/AutoTrimps/modules/automaps.js:90)
at mainLoop (unihedro.github.io/AutoTrimps/AutoTrimps2.js:206)

I am loading AutoTrimps through TamperMonkey on Chrome. Here's my config:

{"ManualGather2":1,"ATversion":"2.1.5.5u3-unimod-4-17-2017+Modular","BetterAutoFight":2,"AutoStance":2,"BuyStorage":false,"BuyBuildings":true,"BuyUpgrades":true,"BuyJobs":true,"TrapTrimps":false,"AutoHeirlooms":true,"HireScientists":true,"WorkerRatios":true,"ManageBreedtimer":false,"GeneticistTimer":10,"AutoPortal":"Off","HeliumHourChallenge":"None","CustomAutoPortal":"200","HeHrDontPortalBefore":"200","HeliumHrBuffer":"0","AutoFinishDaily":false,"AutoFinishDailyZone":-2,"AutoStartDaily":false,"PauseScript":false,"BuyArmor":true,"BuyArmorUpgrades":true,"BuyWeapons":true,"BuyWeaponUpgrades":true,"BuyShieldblock":false,"Prestige":"","PrestigeBackup":{"selected":{"id":"Prestige","name":"Prestige","description":"Acquire prestiges through the selected item (inclusive) as soon as they are available in maps. Forces equip first mode. Automap must be enabled. THIS IS AN IMPORTANT SETTING related to speed climbing and should probably always be on something. If you find the script getting stuck somewhere, particularly where you should easily be able to kill stuff, setting this to an option lower down in the list will help ensure you are more powerful at all times, but will spend more time acquiring the prestiges in maps.","type":"dropdown","selected":"","list":["Off","Supershield","Dagadder","Bootboost","Megamace","Hellishmet","Polierarm","Pantastic","Axeidic","Smoldershoulder","Greatersword","Bestplate","Harmbalest","GambesOP"]},"id":"PrestigeBackup","name":"PrestigeBackup"},"DynamicPrestige2":-1,"PrestigeSkipMode":false,"AlwaysArmorLvl2":true,"WaitTill60":true,"DelayArmorWhenNeeded":true,"CapEquip2":-1,"AutoMaps":true,"RunUniqueMaps":true,"DynamicSiphonology":true,"LowerFarmingZone":true,"MinutestoFarmBeforeSpire":"0","RunBionicBeforeSpire":false,"ExitSpireCell":"-1","CorruptionCalc":true,"FarmWhenNomStacks7":true,"VoidMaps":165,"RunNewVoids":true,"RunNewVoidsUntil":"-1","VoidCheck":"6","MaxTox":true,"DisableFarm":false,"FarmerRatio":1,"LumberjackRatio":1,"MinerRatio":1,"MaxScientists":"-1","MaxExplorers":"150","MaxTrainers":"-1","MaxHut":"100","MaxHouse":"100","MaxMansion":"100","MaxHotel":"100","MaxResort":"100","MaxGateway":"25","MaxWormhole":"0","MaxCollector":"-1","FirstGigastation":6,"DeltaGigastation":4,"MaxGym":"-1","MaxTribute":"-1","MaxNursery":"-1","BreedFire":false,"AutoMagmamancers":false,"WarpstationCap":true,"WarpstationWall3":-1,"WarpstationCoordBuy":true,"AutoRoboTrimp":"60","AutoGoldenUpgrades":"Off","AutoHeirlooms2":true,"AutoUpgradeHeirlooms":false,"TrainerCaptoTributes":"-1","NoNurseriesUntil":-1,"ForceAbandon":true,"GymWall":-1,"DynamicGyms":false,"AutoAllocatePerks":false,"SpireBreedTimer":-1,"ManualCoords":false,"TrimpleZ":0,"ScryerDieZ":230.6,"IgnoreCrits":0,"ForcePresZ":-1,"PreferMetal":false,"PreSpireNurseries":-1,"FinishC2":-1,"PowerSaving":0,"PrestigeSkip2":false,"AutoEggs":false,"UseScryerStance":true,"ScryerUseWhenOverkill":true,"ScryerMinZone":"181","ScryerMaxZone":"230","ScryerUseinMaps2":0,"ScryerUseinVoidMaps2":0,"ScryerUseinSpire2":0,"ScryerSkipBoss2":0,"ScryerSkipCorrupteds2":0,"ScryerDieToUseS":false,"UseAutoGen":0,"AutoGen2":2,"AutoGen2End":300,"AutoGen2SupplyEnd":false,"AutoGen3":1,"AutoGenDC":1,"AutoGenC2":1,"AutoGen2Override":1,"AutoMagmiteSpender2":1,"SupplyWall":2,"OneTimeOnly":false,"BuyOvclock":true,"SpamGeneral":true,"SpamUpgrades":true,"SpamEquipment":true,"SpamMaps":true,"SpamOther":true,"SpamBuilding":false,"SpamJobs":false}