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

Normalize wander AI's direction vector #549

Merged
merged 1 commit into from
Jan 23, 2020

Conversation

DamianX
Copy link
Contributor

@DamianX DamianX commented Jan 23, 2020

Fixes this:

Unhandled exception. Robust.Shared.Utility.DebugAssertException: Exception of type 'Robust.Shared.Utility.DebugAssertException' was thrown.
   at Robust.Shared.Utility.DebugTools.Assert(Boolean condition) in D:\dev\space-station-14\RobustToolbox\Robust.Shared\Utility\DebugTools.cs:line 33
   at Robust.Shared.Maths.Ray..ctor(Vector2 position, Vector2 direction, Int32 collisionMask) in D:\dev\space-station-14\RobustToolbox\Robust.Shared\Physics\Ray.cs:line 40
   at Content.Server.AI.WanderProcessor.IdleState() in D:\dev\space-station-14\Content.Server\AI\WanderProcessor.cs:line 130
   at Content.Server.AI.WanderProcessor.ProcessState() in D:\dev\space-station-14\Content.Server\AI\WanderProcessor.cs:line 90
   at Content.Server.AI.WanderProcessor.Update(Single frameTime) in D:\dev\space-station-14\Content.Server\AI\WanderProcessor.cs:line 79
   at Content.Server.GameObjects.EntitySystems.AiSystem.Update(Single frameTime) in D:\dev\space-station-14\Content.Server\GameObjects\EntitySystems\AiSystem.cs:line 67
   at Robust.Shared.GameObjects.EntitySystemManager.Update(Single frameTime) in D:\dev\space-station-14\RobustToolbox\Robust.Shared\GameObjects\EntitySystemManager.cs:line 151
   at Robust.Shared.GameObjects.EntityManager.Update(Single frameTime) in D:\dev\space-station-14\RobustToolbox\Robust.Shared\GameObjects\EntityManager.cs:line 92
   at Robust.Server.BaseServer.Update(FrameEventArgs frameEventArgs) in D:\dev\space-station-14\RobustToolbox\Robust.Server\BaseServer.cs:line 357
   at Robust.Server.BaseServer.<MainLoop>b__30_0(Object sender, FrameEventArgs args) in D:\dev\space-station-14\RobustToolbox\Robust.Server\BaseServer.cs:line 256
   at Robust.Shared.Timing.GameLoop.Run() in D:\dev\space-station-14\RobustToolbox\Robust.Shared\Timing\GameLoop.cs:line 180
   at Robust.Server.BaseServer.MainLoop() in D:\dev\space-station-14\RobustToolbox\Robust.Server\BaseServer.cs:line 259
   at Robust.Server.Program.ParsedMain(CommandLineArgs args) in D:\dev\space-station-14\RobustToolbox\Robust.Server\Program.cs:line 64
   at Robust.Server.Program.Start(String[] args) in D:\dev\space-station-14\RobustToolbox\Robust.Server\Program.cs:line 34
   at Robust.Server.Program.Main(String[] args) in D:\dev\space-station-14\RobustToolbox\Robust.Server\Program.cs:line 20

@PJB3005 PJB3005 merged commit 664acb1 into space-wizards:master Jan 23, 2020
rbertoche pushed a commit to rbertoche/space-station-14 that referenced this pull request Oct 9, 2022
change - made big changes to epistemics' anomaly lab, adding atmos control
tweak - added lights in some areas
rbertoche pushed a commit to rbertoche/space-station-14 that referenced this pull request Aug 25, 2024
Refactors the oracle system and component, making them more customizable
and less trash.

- Most of the nyano shitcode was rewritten in accordance with the new
standards and in a less hardcoded manner (all features were preserved,
with some changes).
- Replaced the accumulator field pattern with the "nextX" pattern for
things oracle does on certain intervals.
- Removed some code duplication and bloat.
- Gave oracle a 75% chance to request technology and 25% to request a
plant.
- When requesting a technology, oracle will only request what's either
already researched, or can be researched soon (that is, the
prerequisites of the research are complete and the research isn't locked
for any reason).
- If there's no research server at the moment when oracle demands an
item, it will only demand a plant
- When dispensing rewards, oracle can now spawn 1, 3, or 5 crystals at
once, and research disks worth 5k, 10k, and 20k research points. Each
one of those have different probabilities (3 crystals and 5k points
still prevail, but occasionally you can get the more expensive rewards).
- When dispensing rewards, oracle now throws them at the person who
fulfilled the request instead of simply spawning them at their feet.

Almost every oracle thing (except for throwing and the amount of liquid
dispensed) can now be configured in the yaml prototype of the oracle.
Forget it

<details><summary><h1>Media</h1></summary><p>

https://github.com/user-attachments/assets/9d4be44f-37d5-4072-a6e6-f194764f7ff6

![image](https://github.com/user-attachments/assets/011761d4-8d73-4d65-ba9c-92b25a28e95f)

</p></details>

---
:cl:
- tweak: Oracle requests are now more likely to be aligned with the
current research.
rbertoche pushed a commit to rbertoche/space-station-14 that referenced this pull request Aug 25, 2024
# Description
Refactors the oracle system and component, making them more customizable
and less trash.

- Most of the nyano shitcode was rewritten in accordance with the new
standards and in a less hardcoded manner (all features were preserved,
with some changes).
- Replaced the accumulator field pattern with the "nextX" pattern for
things oracle does on certain intervals.
- Removed some code duplication and bloat. 
- Gave oracle a 75% chance to request technology and 25% to request a
plant.
- When requesting a technology, oracle will only request what's either
already researched, or can be researched soon (that is, the
prerequisites of the research are complete and the research isn't locked
for any reason).
- If there's no research server at the moment when oracle demands an
item, it will only demand a plant
- When dispensing rewards, oracle can now spawn 1, 3, or 5 crystals at
once, and research disks worth 5k, 10k, and 20k research points. Each
one of those have different probabilities (3 crystals and 5k points
still prevail, but occasionally you can get the more expensive rewards).
- When dispensing rewards, oracle now throws them at the person who
fulfilled the request instead of simply spawning them at their feet.

Almost every oracle thing (except for throwing and the amount of liquid
dispensed) can now be configured in the yaml prototype of the oracle.

# TODO
Forget it

<details><summary><h1>Media</h1></summary><p>


https://github.com/user-attachments/assets/9d4be44f-37d5-4072-a6e6-f194764f7ff6


![image](https://github.com/user-attachments/assets/011761d4-8d73-4d65-ba9c-92b25a28e95f)

</p></details>

---

# Changelog
:cl:
- tweak: Oracle requests are now more likely to be aligned with the
current research.
rbertoche pushed a commit to rbertoche/space-station-14 that referenced this pull request Aug 25, 2024
Ilya246 pushed a commit to Ilya246/space-station-14 that referenced this pull request Oct 10, 2024
* Automatic changelog update

* Fix dungeon spawn + ftl overlap (space-wizards#31413)

* Fix dungeon spawn + ftl overlap

* Better fixes

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Add ContainerComp (space-wizards#31311)

Applies EntProtoId changes upon insertion / removal from container. Can also be useful for borgs / mechs / vehicles in future but atm I just used it for AI.

* Automatic changelog update

* Automatic changelog update

* Power stuff (space-wizards#31314)

* Power stuff

- Add shared IsPowered
- Add shared ResolveApc
- Move PowerChangedEvent to shared for now
- Add SlimPoweredLight that actually functions how you'd expect a PoweredLight to function it id didn't have a bunch of bloat on it.

* big update

* boing

* Automatic changelog update

* ContainerComp fix (space-wizards#31434)

Forgot to push these ones on the branch.

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* bagel update (space-wizards#31440)

* bagel update

* fixgridatmos

* qm office

* sci cam fix

* jesus christ so many routers

* remove invalids

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Move OnGhostAttempt to GhostSystem (space-wizards#31445)

* Move OnGhostAttempt to GhostSystem

* Remove unused dependencies and sort them

* Automatic changelog update

* Replace obsolete code in shuttle systems. (space-wizards#31408)

* Format DockingSystem.Shuttle

* arrivals system

* docking system

* shuttle console system

* emergency shuttle system

* shuttle system

* thruster system

* Fix compile error

---------

Co-authored-by: Pieter-Jan Briers <[email protected]>

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* bagel update (space-wizards#31502)

* Centcom & FTLDestination cleanup (space-wizards#30226)

* centcomm name and ftlcomp

* networking microopstimization

* go sleep.

* map names and arrivals

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Automatic changelog update

* Make nukie plushie a non-contraband item (space-wizards#31516)

Make nukie plushies a non-contraband item

* Automatic changelog update

* fix uncapitalized "S" in Salvage Specialist (space-wizards#31529)

"Salvage specialist" to "Salvage Specialist"; all is right with the world

* Make AKMS security restricted (space-wizards#31519)

* Automatic changelog update

* bagel update (space-wizards#31535)

* Update submodule to 231.1.0 (space-wizards#31536)

* Station AI (space-wizards#30944)

* Station AI overlay

* implement

* Bunch of ports

* Fix a heap of bugs and basic scouting

* helldivers

* Shuffle interactions a bit

* navmap stuff

* Revert "navmap stuff"

This reverts commit d1f89dd.

* AI wires implemented

* Fix examines

* Optimise the overlay significantly

* Back to old static

* BUI radial working

* lots of work

* Saving work

* thanks fork

* alright

* pc

* AI upload console

* AI upload

* stuff

* Fix copy-paste shitcode

* AI actions

* navmap work

* Fixes

* first impressions

* a

* reh

* Revert "navmap work"

This reverts commit 6f63fea.

# Conflicts:
#	Content.Client/Silicons/StationAi/StationAiOverlay.cs

* OD

* radar

* weh

* Fix examines

* scoop mine eyes

* fixes

* reh

* Optimise

* Final round of optimisations

* Fixes

* fixes

* Bagel station ai (space-wizards#31537)

* real

* AI

* proto fix

* Fix PostMapInit tests not considering job containerspawns (space-wizards#31538)

* Fix PostMapInit tests nto considering job containerspawns

* fix

* AI whitelist fix (space-wizards#31542)

* cog update (space-wizards#31540)

updooted cog

* AI radio fix (space-wizards#31547)

Love to see it

* Storage BUI bandaid (space-wizards#31506)

grug storageuicontroller

* Fix puddle context menu (space-wizards#31555)

* Update AI holo sprite to camera (space-wizards#31558)

Update AI camera to 13 default

Holo was a placeholder. This is better in the interim.

* Add AI warp points (space-wizards#31559)

* Automatic changelog update

* Fix AI being ejectable (space-wizards#31561)

* Automatic changelog update

* Fix whitelist (space-wizards#31563)

* Automatic changelog update

* bagel update (space-wizards#31562)

* bagel update

* ore processor cargo

* Add some more stuff to AI whitelist (space-wizards#31564)

* Add some more stuff to AI whitelist

* by the nine

* Automatic changelog update

* Meta - Med disposals and chem room extra pipe fix (space-wizards#31467)

Delete extra pipe & fix disposals junction

* bagel hotfix (space-wizards#31566)

bagel update

* update AI job icon to 8x8  (space-wizards#31565)

icon and meta.json

* Automatic changelog update

* Update ClothingSpeedModifierSystem.cs (space-wizards#29994)

* TryGetContainerContainer

* Math

* Changed AddMarkup to AddMarkupOrThrow

* Better math

* engine version

* engine version

* Add black suspenders (space-wizards#29055)

* Black suspenders

* fix

* fix linter

* Automatic changelog update

* recolor riot helmet (space-wizards#31530)

* recolor riot helmet

resolves space-wizards#31256
match riot helmet to default security helmet

* further color tweaks for consistency; update meta.json

Tweaked equipped sprites to more closely match the security helmet.

* Automatic changelog update

* added wide-spectrum anomaly locator to anomaly cyborg module (space-wizards#31427)

added wide-spectrum anomaly locator to anomaly borg module

* Automatic changelog update

* Add Robust.Xaml.csproj to the solution (space-wizards#31573)

* add construction for carp statue (space-wizards#31261)

* separate eyes and teeth

* make it buildable and make fixture less abusable

* norot

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>

* Automatic changelog update

* fix spelling error silicon jobs (space-wizards#31581)

Update department.ftl

* Fixes shuttles not being able to FTL onto/near station (space-wizards#31569)

fixes FTL

* Automatic changelog update

* Merge Upstream

* Merge Upstream

* fix wizden bagel

* bagel

* b a g e l

---------

Co-authored-by: PJBot <[email protected]>
Co-authored-by: metalgearsloth <[email protected]>
Co-authored-by: Emisse <[email protected]>
Co-authored-by: Winkarst <[email protected]>
Co-authored-by: Mervill <[email protected]>
Co-authored-by: Pieter-Jan Briers <[email protected]>
Co-authored-by: IProduceWidgets <[email protected]>
Co-authored-by: saintmuntzer <[email protected]>
Co-authored-by: Spessmann <[email protected]>
Co-authored-by: JustCone <[email protected]>
Co-authored-by: lunarcomets <[email protected]>
Co-authored-by: Errant <[email protected]>
Co-authored-by: lzk <[email protected]>
Co-authored-by: coolboy911 <[email protected]>
Co-authored-by: deltanedas <[email protected]>
Co-authored-by: PopGamer46 <[email protected]>
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.

2 participants