Skip to content

Merge upstream auqw/Scripts Skua (74 commits) - #43

Merged
noelrohi merged 75 commits into
Skuafrom
sync/upstream-2026-11-09
Nov 9, 2026
Merged

noelrohi merged 75 commits into
Skuafrom
sync/upstream-2026-11-09

Conversation

@noelrohi

@noelrohi noelrohi commented Nov 9, 2026

Copy link
Copy Markdown
Owner

Summary

This brings in 74 upstream commits, through 9a30b938b (Nov 8). It uses a real merge commit, like #40 and #42.

merge base:     #42's upstream tip (the last sync)
real conflicts: CoreBots.cs   -> upstream's fix, fork's inventory-only class lookup
                scripts.json  -> regenerated, check passes
 Chaos/
+├── MemoryOfMyFather.cs              # new
 Other/MergeShops/
+├── StillinsShop.cs                  # new
 Seasonal/HarvestDay/MergeShops/
+├── HarvestDayMergesDoAll.cs         # new
 Story/
+├── KiyametGrove.cs                  # new
 CoreBots.cs           # wait for relogin, EquipClass fixes, wormhole cell, inPublicRoom
 CoreStory.cs          # PreLoad source parsing
 Other/FarmJoeKits/    # class selection fixes, min client version
 Story, Seasonal, merge shops, CheckArmyRoles  # small fixes

Conflict resolutions

File Upstream Fork Kept
CoreBots.cs EquipClass, 4 cases IsGenericClass, and using*Generic only blocks while the slot is generic Bot.Inventory.Contains (7955ae8a9: AQW client 5.0 can't bank classes) Both: upstream's fix with the fork's lookup.
scripts.json — — Regenerated; scripts_json.py check passes.

Fork decisions restored without a conflict

Upstream's new code looked for classes in the bank again, and git merged it cleanly.

 CoreBots.cs  EquipClass skip check
-  || !CheckInventory(targetClass, toInv: false)
+  || !Bot.Inventory.Contains(targetClass)

 CoreFarmerJoe.cs  Settled
-  || Bot.Inventory.Items.Concat(Bot.Bank.Items).Any(i =>
+  || Bot.Inventory.Items.Any(i =>

 CoreFarmerJoe.cs  ResolveClass
-  && Core.CheckInventory(current, toInv: false);
+  && Bot.Inventory.Contains(current);
-  pool.Take(currentRank).FirstOrDefault(x => Core.CheckInventory(x, toInv: false));
+  pool.Take(currentRank).FirstOrDefault(x => Bot.Inventory.Contains(x));

Not changed:

  • ResolveClass's pool.FirstOrDefault(x => Core.CheckInventory(x)) is the fork's existing line.
  • BankAllUnusedClasses and Tools/BankAllClasses.cs stay deleted.
  • Upstream's inPublicRoom() now always returns true (ee96156a5), so Bot.Map.Jump always autocorrects. The fork had no change there, so it's taken as is.

Evidence

$ python3 Tools/ForDevelopers/scripts_json.py check
scripts.json matches all 1954 Scripts.
$ sh Tools/ForDevelopers/scripts_json_test.sh      # all ok
$ git grep -nE '^(<<<<<<<|>>>>>>>) ' -- '*.cs' scripts.json   # no output
$ git grep -c skua-macos -- CoreBots.cs
CoreBots.cs:3
$ # skua scripts check on every .cs the merge changes
passed=30 failed=1
FAIL Tools/ForDevelopers/GeneratorHelpers/LocationSwfQuestReader.cs  (System.Windows.Forms missing)

The one failure exists before this merge too: the file fails the same way on origin/Skua, because it uses Windows-only System.Windows.Forms. Not run on a Skua Engine.

Merge Danger

Door: two-way

Merge it as a merge commit, not a squash, so the next sync gets the right base.

Blast Radius: wide

CoreBots.cs and CoreStory.cs are shared by many Scripts. EquipClass, the login wait in SetOptions and inPublicRoom() changed the most.

Reviewed with sol-loop: 1 round with openai/gpt-6.1-sol on high. Sol verdict: approved

🤖 Generated with Claude Code

Vivi4n and others added 30 commits November 4, 2026 21:36
SetClass() resolved the best solo/farm/dodge class from the pools, then
immediately called Core.ReadCBO() again, which overwrote the resolved
classes with the CBO values. Joe's class choices never took effect.

Also fixed in CoreFarmerJoe:
- ResolveClass kept the current class whenever it was a valid pool entry,
  so an early pick like Mage was never upgraded to Master Ranger,
  Scarlet Sorceress, Archfiend, etc. It now always takes the
  highest-priority owned class (pools are already ordered best-first).
- The skip check only re-ran on level up, so classes acquired at level
  100 (VHL, YnR, Dragon of Time...) were never selected. It now skips
  only when the resolved classes are unchanged.

CoreBots.EquipClass:
- using*Generic flags were captured once at script start, so a class set
  at runtime was ignored as "generic" if the CBO slot was Generic. They
  are now refreshed on each call.
- The "already equipped" early return now also checks that the equipped
  class matches the slot's class name, so a runtime upgrade is equipped.
… SetClass

- EquipClass skips only if the slot is generic, its class is actually worn, or the class isn't owned (re-equips after UseBossClass swaps, equips a class once it's acquired); dropped lastEquipTarget
- SetClass skip also requires each resolved class to be owned and rank 10, so later acquisitions and interrupted rank-ups are retried.
- IsGenericClass is public static and shared with FarmerJoe.
… CBO choices

Caught a bug.

In an earlier SetClass, Joe picked Master Ranger from the pool and stored it in Core.FarmClass. I unlocked Scarlet Sorceress, and SetClass ran again. ReadCBO left the slot alone, so Core.FarmClass still said “Master Ranger”. My ResolveClass treated that as a class I chose myself in CBO. So it printed that wrong hint and stayed on Master Ranger instead of upgrading.
After a disconnect the client restarts the script while it is still logging back in.
SetOptions then saw the player logged out and stopped with the "Please log-in" message
box. The message box blocks until someone clicks it, and the relogin that finishes a
few seconds later finds the script "already running" and never starts it again: the
bot sits idle until a human looks (an hour in the run that showed it).

With auto relogin on, SetOptions now waits up to 2 minutes for the login (and 30 s for
the world to load) before the existing message. Without auto relogin nothing changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review follow-up. The relogin wait now runs before the existing spirit-state loop, so
a slow world load keeps that loop's own retry instead of a fixed 30 s wait, and
SetOptions returns without the log-in message box when the script is being stopped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The client's relogin turns Bot.Options.AutoRelogin off while it retries
(ScriptServers.Relogin/EnsureRelogin set it to false and restore it afterwards), and
that is exactly when it restarts the script. On the next disconnect the wait was
skipped and the script went straight to the "Please log-in" message box again:

  [14:25:33] (StopBot) Bot stopped due to Auto-Relogin failure.
  [14:25:49] (SetOptions) Please log-in before starting the bot.
  [14:26:00] [Relogin] Connected successfully to Artix. World loaded.
  [14:26:00] Script already running.

The wait now runs whenever the player isn't logged in. Starting a script while
logged out just gives the user 2 minutes to log in before the same message.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A relogin attempt can look logged in when the script starts and fail seconds later.
The wait ran before the load loop, so it was skipped; the loop then exited when the
attempt failed and went straight to the message box:

  [15:17:44] (SetOptions) Bot Started
  [15:17:54] [Relogin] Attempt 1/5 failed on Artix. Watchdog aborting attempt.
  [15:17:54] (SetOptions) Please log-in before starting the bot.
  [15:18:02] [Relogin] Connected successfully to Artix. World loaded.

The wait now sits right before the logged-out check and lasts until the player is
both logged in and loaded (2 minutes at most).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Added Legion req skip
FarmerJoe: fix class selection never applying + EquipClass generic/skip fixes
wtffidy and others added 29 commits November 7, 2026 10:36
Fix Forge Maleno null and membership handling, stop the Harvest Day merge runner between shops, and register the new orchestrator. Preserve the existing PowerShell FFDec extraction and leave CoreBots unchanged.
Brings in upstream through 9a30b93 (Nov 8).

CoreBots.cs takes upstream's IsGenericClass and generic-flag fix in
EquipClass, and keeps the fork's inventory-only class lookup (7955ae8):
AQW client 5.0 can't bank classes. The same rule replaces the bank lookups
upstream's new code added to EquipClass's skip check and to CoreFarmerJoe's
Settled and ResolveClass; those lines merged without a conflict.

scripts.json is regenerated with `scripts_json.py sync --all`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noelrohi
noelrohi merged commit 86c41dc into Skua Nov 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants