Cosmoteer: Starship Architect & Commander

Cosmoteer: Starship Architect & Commander

[Beta] Modular+++ Shields v0.62b
 This topic has been pinned, so it's probably important
swefpifh  [developer] 28 Dec, 2022 @ 4:56am
Report à problem
Notify your problem by adding as many details as possible. Sharing log details can also help.

To deal with the problem properly, I need to know some information : - The log after the crash - The exact manipulations done before the crash - The list of mods used
Last edited by swefpifh; 4 Jan, 2023 @ 4:23pm
< >
Showing 1-15 of 41 comments
Zelda 28 Dec, 2022 @ 12:25pm 
Whenever I placed or changed a shield, or spawned in a ship that was using them, the game would crash. Here is the first part of the log.

System.ArgumentNullException: Value cannot be null. (Parameter 'key')

at System.Runtime.CompilerServices.ConditionalWeakTable`2.TryGetValue(TKey key, TValue& value)

at Cosmoteer.Ships.Parts.Defenses.ArcShield.OnPartDetaching() in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Defenses\ArcShield.cs:line 396

at Cosmoteer.Ships.Parts.Part.RemoveComponents(IList`1 components) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 606

at Cosmoteer.Ships.Parts.Part.ProcessComponentModificationQueue(GenericSerialReader reader) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 1321

at Cosmoteer.Ships.Parts.Part.RemoveComponents(IList`1 components) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 600

at Cosmoteer.Ships.Parts.Part.ProcessComponentModificationQueue(GenericSerialReader reader) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 1321

at Cosmoteer.Ships.Parts.Part.RemoveComponents(IList`1 components) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 600

at Cosmoteer.Ships.Parts.Part.ProcessComponentModificationQueue(GenericSerialReader reader) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 1321

at Cosmoteer.Ships.Parts.Part.OnComponentAttached(SceneNode node) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\Part.cs:line 1224

at Halfling.Scene2D.SceneComponent.InvokeAttached(SceneNode node) in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Source\Scene2D\SceneComponent.cs:line 1826

at Halfling.Scene2D.SceneNode.NodeComponents.Add(SceneComponent component) in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Source\Scene2D\SceneNode.cs:line 1603

at Cosmoteer.Ships.Parts.CommonBasePartsManager`1.AddPart(TPart part, Action onAddedBeforeEvents) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\CommonBasePartsManager.cs:line 1643

at Cosmoteer.Ships.Parts.PartsManager.AddPart(Part part) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\PartsManager.cs:line 260

at Cosmoteer.Ships.Parts.PartsManager.CreatePart(PartRules rules, IntVector2 loc, Int32 rot, Boolean flipX, Boolean spawnedFromDestroyed, Boolean builtByPlayer, Boolean defaultToMinHealth) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\Parts\PartsManager.cs:line 150

at Cosmoteer.Ships.ShipUpdateInfo.ApplyPhysical(Boolean destroyBlocking, Boolean builtByPlayer, Boolean updateDestroyed) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Ships\ShipUpdateInfo.cs:line 596

at Cosmoteer.Game.Multiplayer.MPInputs.MPUpdateShipInput.Execute(GameRoot game, Int32 playerIndex, MessengerID playerID, Boolean force) in C:\Users\walt\Documents\Code\Cosmoteer\Source\Game\Multiplayer\MPInputs\MPUpdateShipInput.cs:line 164

at Cosmoteer.Game.Multiplayer.SPManager.Update() in C:\Users\walt\Documents\Code\Cosmoteer\Source\Game\Multiplayer\SPManager.cs:line 162

at Halfling.Application.Director.DoInput() in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Source\Application\Director.cs:line 892

at Halfling.Application.Director.GetRunIterator()+MoveNext() in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Source\Application\Director.cs:line 0

at Halfling.Application.Bases.GenericApp.ApplicationMainIterator()+MoveNext() in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Source\Application\Bases\GenericApp.cs:line 729

at Halfling.Windows.D3D11.D3D11Window.<>c__DisplayClass105_0.<RunGameLoop>g___DoFrame|0() in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingPlatformWDX\Source\Windows\D3D11\D3D11Window.cs:line 947

at Halfling.Windows.D3D11.D3D11Window.RunGameLoop(String[] args, IEnumerable`1 iterator) in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingPlatformWDX\Source\Windows\D3D11\D3D11Window.cs:line 814

at Halfling.Application.Bases.GenericApp.ApplicationMain(String[] args) in C:\Users\walt\Documents\Code\Cosmoteer\Halfling\HalflingCore\Source\Application\Bases\GenericApp.cs:line 227

at Cosmoteer.GameApp.Main(String[] args) in C:\Users\walt\Documents\Code\Cosmoteer\Source\GameApp.cs:line 150
swefpifh  [developer] 28 Dec, 2022 @ 12:55pm 
Originally posted by TirusRJr:
Whenever I placed or changed a shield, or spawned in a ship that was using them, the game would crash. Here is the first part of the log.

System.ArgumentNullException: Value cannot be null. (Parameter 'key')

...
I don't see any real indications in the logs.

Did it already work or has it been crashing since the mod was installed?

What mods do you use in addition to this one?
Caleger 28 Dec, 2022 @ 5:22pm 
The game crashes for me when I use this mod when I try to move a shield when I have it set to an angle or front facing. when I put them in and not move them its fine.
Zelda 28 Dec, 2022 @ 7:33pm 
Originally posted by swefpifh:
Originally posted by TirusRJr:
Whenever I placed or changed a shield, or spawned in a ship that was using them, the game would crash. Here is the first part of the log.

System.ArgumentNullException: Value cannot be null. (Parameter 'key')

...
I don't see any real indications in the logs.

Did it already work or has it been crashing since the mod was installed?

What mods do you use in addition to this one?


None
Zelda 28 Dec, 2022 @ 7:33pm 
I tried it by itself to be sure
swefpifh  [developer] 29 Dec, 2022 @ 1:45am 
Originally posted by TirusRJr:
I tried it by itself to be sure
Originally posted by Caleger88:
The game crashes for me when I use this mod when I try to move a shield when I have it set to an angle or front facing. when I put them in and not move them its fine.

I don't understand the problems you are having. I don't crash and I ask a friend before uploading my updates, he doesn't crash either.

I just tested again to be sure:

- Buying the shield in the search tree - No problem
- Installing the shield without mirror mode - No problem
- Installing the shield with the mirror mode - No problem
- Moving the shield without active modulation - No problem
- Moving the shield with active modulations - No problem
- Shield movement in mirror mode without active modulation - No problem
- Shield movement in mirror mode with active modulations - No problem
- Replacing the shield with another module and vice versa - No problem

In the game, there are modules that give proximity bonuses. When you put down the shields, which modules are present next to them?

What game mode ? Creative or Career ?
Last edited by swefpifh; 29 Dec, 2022 @ 1:59am
swefpifh  [developer] 29 Dec, 2022 @ 2:31am 
That's it! I finally managed to generate the problem you mentioned. I had to add 30 shields side by side. I had an info in the logs that I will exploit hoping that the problem is solved ^^

Edit : There is a displacement problem when the shield is in Hidden mode. I will look into it ^^
Last edited by swefpifh; 29 Dec, 2022 @ 5:01am
Zelda 29 Dec, 2022 @ 12:38pm 
Originally posted by swefpifh:
Originally posted by TirusRJr:
I tried it by itself to be sure
Originally posted by Caleger88:
The game crashes for me when I use this mod when I try to move a shield when I have it set to an angle or front facing. when I put them in and not move them its fine.

I don't understand the problems you are having. I don't crash and I ask a friend before uploading my updates, he doesn't crash either.

I just tested again to be sure:

- Buying the shield in the search tree - No problem
- Installing the shield without mirror mode - No problem
- Installing the shield with the mirror mode - No problem
- Moving the shield without active modulation - No problem
- Moving the shield with active modulations - No problem
- Shield movement in mirror mode without active modulation - No problem
- Shield movement in mirror mode with active modulations - No problem
- Replacing the shield with another module and vice versa - No problem

In the game, there are modules that give proximity bonuses. When you put down the shields, which modules are present next to them?

What game mode ? Creative or Career ?
none, and creative
Last edited by Zelda; 29 Dec, 2022 @ 12:38pm
Zelda 29 Dec, 2022 @ 12:40pm 
Originally posted by swefpifh:
That's it! I finally managed to generate the problem you mentioned. I had to add 30 shields side by side. I had an info in the logs that I will exploit hoping that the problem is solved ^^

Edit : There is a displacement problem when the shield is in Hidden mode. I will look into it ^^
Thank you, hope I can use this mod again soon!
Caleger 29 Dec, 2022 @ 3:24pm 
Originally posted by swefpifh:
Originally posted by TirusRJr:
I tried it by itself to be sure
Originally posted by Caleger88:
The game crashes for me when I use this mod when I try to move a shield when I have it set to an angle or front facing. when I put them in and not move them its fine.

I don't understand the problems you are having. I don't crash and I ask a friend before uploading my updates, he doesn't crash either.

I just tested again to be sure:

- Buying the shield in the search tree - No problem
- Installing the shield without mirror mode - No problem
- Installing the shield with the mirror mode - No problem
- Moving the shield without active modulation - No problem
- Moving the shield with active modulations - No problem
- Shield movement in mirror mode without active modulation - No problem
- Shield movement in mirror mode with active modulations - No problem
- Replacing the shield with another module and vice versa - No problem

In the game, there are modules that give proximity bonuses. When you put down the shields, which modules are present next to them?

What game mode ? Creative or Career ?

I was career but had unlimited creations set to on as I wanted to have my ship set up before playing, when I turned the mirrored mode to 'Off" it worked fine for me so I'm happy to keep it off when placing those shields.

I don't know why I'm having issues either, this is the only mod that does anything to shields so it shouldn't conflict with anything.
swefpifh  [developer] 29 Dec, 2022 @ 3:53pm 
Originally posted by Caleger88:
I was career but had unlimited creations set to on as I wanted to have my ship set up before playing, when I turned the mirrored mode to 'Off" it worked fine for me so I'm happy to keep it off when placing those shields.

I don't know why I'm having issues either, this is the only mod that does anything to shields so it shouldn't conflict with anything.
For the moment, you can read this ^^
https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2907845781/3732953219570279968

I am looking for a solution to the modularity problem. In fact, as soon as you select two or three modifications, it crashes the placement and loading of the templates.
Last edited by swefpifh; 29 Dec, 2022 @ 3:54pm
swefpifh  [developer] 30 Dec, 2022 @ 3:59pm 
The problem is identified and fully confirmed. It is the accumulation of toggles in others that causes the movement of shield modules or the loading of ship templates to crash. I'm working to find a solution, but I don't know if it's possible. I've asked for help, I'm waiting for a possible answer, but I don't think you can use several toggles to modify a different part of the same code unfortunately. To know the progress of important changes, I invite you to subscribe to this channel : https://steamhost.cn/steamcommunity_com/workshop/filedetails/discussion/2907845781/3732953219571411097/
Last edited by swefpifh; 30 Dec, 2022 @ 3:59pm
SporBel 8 Jan, 2023 @ 8:28am 
destroying kebechet STS shield when the time speed is less or higher than 1x with nukes and pd and maybe other weapons crashes the game...
swefpifh  [developer] 8 Jan, 2023 @ 8:45am 
Originally posted by Spore:
destroying kebechet STS shield when the time speed is less or higher than 1x with nukes and pd and maybe other weapons crashes the game...
I live to test with mines and nuclear bombs, I don't have a crash in 1/2, x2 and x8. I'll need more information as I said in the description ^^ Thx you for your report :)

To deal with the problem properly, I need to know some information : - The log after the crash - The exact manipulations done before the crash - The list of mods used
Last edited by swefpifh; 8 Jan, 2023 @ 8:48am
swefpifh  [developer] 8 Jan, 2023 @ 4:10pm 
Originally posted by Spore:
destroying kebechet STS shield when the time speed is less or higher than 1x with nukes and pd and maybe other weapons crashes the game...
Is this the error that is displayed during the crash? View image[cdn.discordapp.com]
Last edited by swefpifh; 8 Jan, 2023 @ 4:11pm
< >
Showing 1-15 of 41 comments
Per page: 1530 50