Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Utility AI - framework and Editor [wip] #6323

Draft
wants to merge 33 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
927c145
feat: removed a bunch of little warnings from princess
Scoppio Dec 21, 2024
b172070
feat: basis for AI editor, decision, dse, etc
Scoppio Dec 25, 2024
b78e849
feat: curve graph working, multi hover graph working, AI editor halfw…
Scoppio Dec 25, 2024
b95689b
feat: i18n the forms
Scoppio Dec 27, 2024
883fe65
feat: basic for bot
Scoppio Feb 4, 2025
ba8a591
feat: small improvements on a couple of forms
Scoppio Dec 28, 2024
011eb67
feat: added common menu bar, removed trash code
Scoppio Dec 28, 2024
04611b2
feat: AI Editor is half-way there
Scoppio Dec 29, 2024
8057d81
chore: update user data readme
Scoppio Dec 29, 2024
9b4558c
fix: more random profile id
Scoppio Dec 29, 2024
f237e04
feat: added new curves, added reflection based ui controls
Scoppio Dec 30, 2024
c9da7f2
feat: import and export ai files
Scoppio Dec 31, 2024
3dae019
feat: small improvements on internationalization
Scoppio Dec 31, 2024
fca0201
fix: fixed error where property k would show up twice for the deseria…
Scoppio Jan 1, 2025
7ee7174
feat: adding toolbar to DSE and Profile
Scoppio Jan 2, 2025
8de920e
chore: removing comments that borked javadoc
Scoppio Jan 9, 2025
7562787
feat: pilot base roll cached
Scoppio Jan 22, 2025
5f74002
feat: implementing the simple intelligence and path ranker
Scoppio Jan 23, 2025
44f191b
chore: cleaning up chat processor
Scoppio Jan 25, 2025
a5e8635
feat: changed hane from duchess to queen as it does not yet share str…
Scoppio Jan 25, 2025
478a507
feat: updating UI to not have to rely on intelliJ layout
Scoppio Jan 25, 2025
83b8eca
feat: new considerations, revamping editor
Scoppio Jan 26, 2025
ba191a8
feat: adding facing arrows and sensor range to boardviewlessminimap
Scoppio Jan 26, 2025
52d7b3c
fix: making the AI Editor actually work
Scoppio Jan 27, 2025
ba24506
feat: ai work, changing string builder for log traces
Scoppio Jan 29, 2025
bd019ed
fix: small fixes for the current version
Scoppio Jan 30, 2025
038962c
Delete .github/copilot-instructions.md
Scoppio Jan 31, 2025
918cfca
feat: multiple additions for testing things
Scoppio Feb 1, 2025
91ee7b2
fix: merge conflict
Scoppio Feb 4, 2025
2e39ca2
fix: path ranker
Scoppio Feb 4, 2025
6399ba6
Merge branch 'master' into feat/tinkering-princess-ai
Scoppio Feb 6, 2025
7b4a8f0
Merge branch 'master' into feat/tinkering-princess-ai
Scoppio Feb 9, 2025
c3228f0
fix: adding missing overrides
Scoppio Feb 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/megamek/.intellijPlatform
/tmp/
/.metadata
/.recommenders/
Expand Down
5 changes: 4 additions & 1 deletion megamek/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ plugins {
id 'jacoco'
id 'java'
id 'org.ec4j.editorconfig' version '0.1.0'

}

java {
Expand All @@ -36,6 +35,10 @@ sourceSets {
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'com.fasterxml.jackson.core:jackson-core:2.17.2'
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.17.2'
Expand Down
4 changes: 2 additions & 2 deletions megamek/data/mekfiles/meks/3039u/King Crab KGC-0000.mtf
Original file line number Diff line number Diff line change
Expand Up @@ -156,14 +156,14 @@ Heat Sink

overview:The King Crab has been a horror on the battlefield since its introduction just before the old Star League's demise, and it is well known for its ability to quickly kill most BattleMechs under eighty tons.

capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar queen".
capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar caspar".

deployment:The KGC-0000 is a downgraded version of the KGC-000, first introduced in 2815. Produced by General Motors the 'Mech has sacrificed very little in this refit since it used very little lostech in the first place. The ferro-fibrous armor was replaced with standard armor and the CASE equipment was removed. This freed up weight to add another ton of armor, bringing the armor protection almost in line with that of the KGC-000. It also replaced the original's weapons and electronic systems with available models: Imperator-D autocannons, a Doombud LRM launcher, a Magna Mk III Large Laser, and Dalban's VirtuTalk comm system and HiRez targeting-track system.

history:The KGC-000, designed by Cosara Weaponries scientists under General Kerensky's directives, performed brilliantly in its specified mission, though it was nowhere near the command vehicle that Defiance Industries' later Atlas was. The majority of King Crabs joined Kerensky on his Exodus, including all surviving -010 platforms; those that remained were surreptitiously purchased by ComStar and mothballed on Terra. Upon the Clans' arrival and the Battle of Tukayyid, most Com Guard commanders discovered that the original Imperator-D autocannon design could not close quickly enough with Clan machines to cause considerable damage. After being approached by ComStar, Cosara Weaponries created the -001 variant; the additional range gave the King Crab some much-needed reach. ComStar, pleased with their performance, gave Cosara permission to mass-produce the enhanced King Crab for general market sale, with ComStar receiving a major portion of the yearly earnings. Northwind production ended after the Word of Blake blockaded the system, and scattered intelligence reports indicate that the Blakists took control the Cosara plant. After being shut down for some months, the plant reopened in late 3069, continuously producing and sending a newer King Crab variant to Protectorate forces. First Precentor Dow took an extraordinary action for the once-secret organization after losing a major weapons supply. ComStar was able to infiltrate the Cosara plant and grab the new engineering designs by hiring a tiny mercenary group that specialized in corporate espionage. ComStar then approached Starcorps Industries and gave the young company the opportunity to create a new King Crab variation, the KGC-007. StarCorps accepted, eager to expand their product line, and the first -007s are scheduled to roll off the Son Hoa line in late 3071. The first three production runs have already been purchased by the LAAF and AFFC.

manufacturer:Field Refit
primaryfactory:Various
primaryfactory:Various
systemmanufacturer:CHASSIS:Hollis Mark II
systemmanufacturer:ENGINE:Vlar 300
systemmanufacturer:ARMOR:ProtecTech 12
Expand Down
6 changes: 3 additions & 3 deletions megamek/data/mekfiles/meks/3039u/King Crab KGC-010.mtf
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,14 @@ Endo Steel

overview:The King Crab has been a horror on the battlefield since its introduction just before the old Star League's demise, and it is well known for its ability to quickly kill most BattleMechs under eighty tons.

capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar queen".
capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar caspar".

deployment:This version of the King Crab was created by the Star League to be a command 'Mech and introduced alongside the original 000 model in 2743. Conceived in secret between Cosara and the Terran Hegemony, it was an attempt to produce a deadly command 'Mech by mounting a pair of newly developed Hellstar Magna PPCs in either side torso. These PPCs were different from other models in that they did not require an outer "barrel" but instead were mounted flush with the torso, each opening surrounded by a specially designed Holly SRM-6 launcher, while the cooling sleeves extended out the back of the 'Mech. In place of the normal autocannons the 010 model carried LB-10X autocannons. The combination of the nonstandard housing and odd-colored discharge of the PPCs caused many pilots to believe they were facing a brand-new weapon systems, while the spine-like protrusions of the cooling sleeves produced massive heat-diffusion waves. All told the 010 model was more than capable of taking down an Atlas, but the entire line left with Kerensky during the Exodus and even knowledge of the design's existence became lost during the Succession Wars.

history:The KGC-000, designed by Cosara Weaponries scientists under General Kerensky's directives, performed brilliantly in its specified mission, though it was nowhere near the command vehicle that Defiance Industries' later Atlas was. The majority of King Crabs joined Kerensky on his Exodus, including all surviving -010 platforms; those that remained were surreptitiously purchased by ComStar and mothballed on Terra. Upon the Clans' arrival and the Battle of Tukayyid, most Com Guard commanders discovered that the original Imperator-D autocannon design could not close quickly enough with Clan machines to cause considerable damage. After being approached by ComStar, Cosara Weaponries created the -001 variant; the additional range gave the King Crab some much-needed reach. ComStar, pleased with their performance, gave Cosara permission to mass-produce the enhanced King Crab for general market sale, with ComStar receiving a major portion of the yearly earnings. Northwind production ended after the Word of Blake blockaded the system, and scattered intelligence reports indicate that the Blakists took control the Cosara plant. After being shut down for some months, the plant reopened in late 3069, continuously producing and sending a newer King Crab variant to Protectorate forces. First Precentor Dow took an extraordinary action for the once-secret organization after losing a major weapons supply. ComStar was able to infiltrate the Cosara plant and grab the new engineering designs by hiring a tiny mercenary group that specialized in corporate espionage. ComStar then approached Starcorps Industries and gave the young company the opportunity to create a new King Crab variation, the KGC-007. StarCorps accepted, eager to expand their product line, and the first -007s are scheduled to roll off the Son Hoa line in late 3071. The first three production runs have already been purchased by the LAAF and AFFC.

manufacturer:Cosara Weaponries,Cosara Weaponries
primaryfactory:Mars,Northwind
manufacturer:Cosara Weaponries,Cosara Weaponries
primaryfactory:Mars,Northwind
systemmanufacturer:CHASSIS:Hollis Mark II
systemmanufacturer:ENGINE:Vlar 300
systemmanufacturer:ARMOR:ProtecTech 12
Expand Down
6 changes: 3 additions & 3 deletions megamek/data/mekfiles/meks/3050U/King Crab KGC-000.mtf
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,14 @@ IS Ferro-Fibrous

overview:The King Crab has been a horror on the battlefield since its introduction just before the old Star League's demise, and it is well known for its ability to quickly kill most BattleMechs under eighty tons.

capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar queen".
capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar caspar".

deployment:The King Crab's primary weapons are two massive Deathgiver Autocannon/20s, among the most powerful BattleMech weapons ever created. Each arm carries one of these massive weapons, and they are fed by two tons of ammo split between the side torsos. The firepower of these weapons is enough to destroy a medium 'Mech in one salvo. To protect the autocannons in combat, engineers designed the King Crab with simple hand actuators. In appearance and movement, the actuators are very similar to pincers or claws found on real crabs, a contributing factor to the 'Mech's name. To back up the autocannons, and provide some long-range capabilities, the King Crab carries a Simpson-15 LRM-15 launcher, mounted in the left torso and fed by one ton of reloads in the same location, and an ExoStar Large Laser in the right torso.

history:The KGC-000, designed by Cosara Weaponries scientists under General Kerensky's directives, performed brilliantly in its specified mission, though it was nowhere near the command vehicle that Defiance Industries' later Atlas was. The majority of King Crabs joined Kerensky on his Exodus, including all surviving -010 platforms; those that remained were surreptitiously purchased by ComStar and mothballed on Terra. Upon the Clans' arrival and the Battle of Tukayyid, most Com Guard commanders discovered that the original Imperator-D autocannon design could not close quickly enough with Clan machines to cause considerable damage. After being approached by ComStar, Cosara Weaponries created the -001 variant; the additional range gave the King Crab some much-needed reach. ComStar, pleased with their performance, gave Cosara permission to mass-produce the enhanced King Crab for general market sale, with ComStar receiving a major portion of the yearly earnings. Northwind production ended after the Word of Blake blockaded the system, and scattered intelligence reports indicate that the Blakists took control the Cosara plant. After being shut down for some months, the plant reopened in late 3069, continuously producing and sending a newer King Crab variant to Protectorate forces. First Precentor Dow took an extraordinary action for the once-secret organization after losing a major weapons supply. ComStar was able to infiltrate the Cosara plant and grab the new engineering designs by hiring a tiny mercenary group that specialized in corporate espionage. ComStar then approached Starcorps Industries and gave the young company the opportunity to create a new King Crab variation, the KGC-007. StarCorps accepted, eager to expand their product line, and the first -007s are scheduled to roll off the Son Hoa line in late 3071. The first three production runs have already been purchased by the LAAF and AFFC.

manufacturer:Cosara Weaponries,Cosara Weaponries
primaryfactory:Mars,Northwind
manufacturer:Cosara Weaponries,Cosara Weaponries
primaryfactory:Mars,Northwind
systemmanufacturer:CHASSIS:Hollis Mark II
systemmanufacturer:ENGINE:Vlar 300 XL
systemmanufacturer:ARMOR:Aldis X Ferro-Fibrous with CASE
Expand Down
4 changes: 2 additions & 2 deletions megamek/data/mekfiles/meks/3050U/King Crab KGC-001.mtf
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,14 @@ Ferro-Fibrous

overview:The King Crab has been a horror on the battlefield since its introduction just before the old Star League's demise, and it is well known for its ability to quickly kill most BattleMechs under eighty tons.

capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar queen".
capabilities:While not the most heavily armored 'Mech, the King Crab is still tough to crack, with sixteen tons of ferro-fibrous armor and CASE protecting its ammunition stores; however, the arms are probably the most susceptible area to receive damage and an internal hit is likely to knock an autocannon out of the fight. The 'Mech is also slow, with a cruising speed of 32 km/h and top speed of 54 km/h, and has been described as a "notorious hangar caspar".

deployment:One of the so-called "Clanbuster" variants developed in 3052 during the lead-up to the Battle of Tukayyid, ComStar's techs replaced the twin autocannons with two M-7 Gauss rifles and four tons of ammo in the arms, trading a minor reduction in destructive capacity for greatly increased range. While retaining the LRM launcher, the large laser was upgraded to a Tronel XIII Large Pulse Laser and two Hovertec Streak SRM-2s, split between the side torsos with a single ton of reloads each, were added. These changes were accomplished by using an extralight engine in place of the standard model.

history:The KGC-000, designed by Cosara Weaponries scientists under General Kerensky's directives, performed brilliantly in its specified mission, though it was nowhere near the command vehicle that Defiance Industries' later Atlas was. The majority of King Crabs joined Kerensky on his Exodus, including all surviving -010 platforms; those that remained were surreptitiously purchased by ComStar and mothballed on Terra. Upon the Clans' arrival and the Battle of Tukayyid, most Com Guard commanders discovered that the original Imperator-D autocannon design could not close quickly enough with Clan machines to cause considerable damage. After being approached by ComStar, Cosara Weaponries created the -001 variant; the additional range gave the King Crab some much-needed reach. ComStar, pleased with their performance, gave Cosara permission to mass-produce the enhanced King Crab for general market sale, with ComStar receiving a major portion of the yearly earnings. Northwind production ended after the Word of Blake blockaded the system, and scattered intelligence reports indicate that the Blakists took control the Cosara plant. After being shut down for some months, the plant reopened in late 3069, continuously producing and sending a newer King Crab variant to Protectorate forces. First Precentor Dow took an extraordinary action for the once-secret organization after losing a major weapons supply. ComStar was able to infiltrate the Cosara plant and grab the new engineering designs by hiring a tiny mercenary group that specialized in corporate espionage. ComStar then approached Starcorps Industries and gave the young company the opportunity to create a new King Crab variation, the KGC-007. StarCorps accepted, eager to expand their product line, and the first -007s are scheduled to roll off the Son Hoa line in late 3071. The first three production runs have already been purchased by the LAAF and AFFC.

manufacturer:Cosara Weaponries,Cosara Weaponries,StarCorps Industries
primaryfactory:Mars,Northwind,Son Hoa
primaryfactory:Mars,Northwind,Son Hoa
systemmanufacturer:CHASSIS:Hollis Mark II
systemmanufacturer:ENGINE:Vlar 300 XL
systemmanufacturer:ARMOR:Aldis X Ferro-Fibrous with CASE
Expand Down
Loading
Loading