Space Engineers

Space Engineers

Whip's Railgun Weapon Framework
 This topic has been pinned, so it's probably important
Whiplash141  [developer] Apr 19, 2020 @ 11:55am
Bug Reports and Questions
If you have any issues or questions, please list them here. Please provide as much information as possible so I can answer better.
< >
Showing 1-15 of 35 comments
Kennon Apr 20, 2020 @ 4:24pm 
Not so much a bug but would it be possible to implement an Autoloader kind of feature? An example is a cannon can fire 5 shells in rapid succession (say 3 seconds per shot) then once the 5th shell is fired the cannon requires a much longer time to reload (say 60 seconds). This would be an awesome addition if it's not too much trouble.
Whiplash141  [developer] Apr 20, 2020 @ 6:49pm 
Originally posted by Kennon:
Not so much a bug but would it be possible to implement an Autoloader kind of feature? An example is a cannon can fire 5 shells in rapid succession (say 3 seconds per shot) then once the 5th shell is fired the cannon requires a much longer time to reload (say 60 seconds). This would be an awesome addition if it's not too much trouble.
It is a bit of a struggle to implement this with the current framework, but I do have an outstanding issue for tracking this.
boanerges1789 Apr 21, 2020 @ 3:54am 
Does this framework work alongside WeaponCore, or do they cancel each other out? Can you have both?
boanerges1789 Apr 21, 2020 @ 3:54am 
The reason I ask is I would like to have a multiple selection of weapons for ships.
Whiplash141  [developer] Apr 21, 2020 @ 7:34am 
Originally posted by boanerges1789:
Does this framework work alongside WeaponCore, or do they cancel each other out? Can you have both?
Should work fine
Daywalker Aug 25, 2020 @ 10:16pm 
doesnt work with weaponcore . if i have both mods active i can no longer use the middle mouse button to acces my weapons in the config menu on a console/cockpit
Last edited by Daywalker; Aug 25, 2020 @ 10:17pm
Whiplash141  [developer] Aug 25, 2020 @ 11:14pm 
Originally posted by Daywalker:
doesnt work with weaponcore . if i have both mods active i can no longer use the middle mouse button to acces my weapons in the config menu on a console/cockpit
This mod does absolutely nothing with cockpits or middle mouse, so I doubt it is this mod in particular.
Drift_91 Sep 15, 2020 @ 7:43am 
Been seeing this in my server console on every server startup. Not sure if I've got the load order wrong or if this is a problem with the mod itself or another mod.

2020-09-15 09:38:17.841: Reference issue detected (circular reference or wrong order) for mod 2013340341
Whiplash141  [developer] Sep 15, 2020 @ 6:14pm 
Originally posted by Drift_91:
Been seeing this in my server console on every server startup. Not sure if I've got the load order wrong or if this is a problem with the mod itself or another mod.

2020-09-15 09:38:17.841: Reference issue detected (circular reference or wrong order) for mod 2013340341
Pretty sure that can be ignored. That appears when you have manually added the framework (a dependency) manually in your world. Dependencies are automatically downloaded in the correct order, but if you have one in your list in the wrong order, it will whine.
Jaeger Sep 19, 2020 @ 6:34pm 
player on my server just reported that his client crashed with this error
he was just flying around in suit.


2020-09-19 20:19:14.203 - Thread: 11 -> ERROR Entity init!: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Rexxar.Settings.GetSettings(IMyEntity entity)
at Whiplash.WeaponFramework.WeaponBlockBase.GetPowerInput(Boolean count)
at Whiplash.WeaponFramework.WeaponBlockBase.<SetPowerSink>b__50_0()
at Sandbox.Game.EntityComponents.MyResourceSinkComponent.Update()
at Sandbox.Game.Weapons.MySmallMissileLauncher.Init(MyObjectBuilder_CubeBlock builder, MyCubeGrid cubeGrid)
at Sandbox.Game.Entities.Cube.MySlimBlock.Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid, MyCubeBlock fatBlock)
at Sandbox.Game.Entities.MyCubeGrid.AddCubeBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge, MyCubeBlockDefinition blockDefinition)
at Sandbox.Game.Entities.MyCubeGrid.AddBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge)
at Sandbox.Game.Entities.MyCubeGrid.InitInternal(MyObjectBuilder_EntityBase objectBuilder, Boolean rebuildGrid)
at Sandbox.Game.Entities.MyEntities.InitEntity(MyObjectBuilder_EntityBase objectBuilder, MyEntity& entity, Boolean tolerateBlacklistedPlanets)

weaponcore is also on server is this a problem. not currentlyy using any mods that are dependent on weaponframework but was about to add railguns
Whiplash141  [developer] Sep 19, 2020 @ 6:48pm 
Originally posted by Jæger:
player on my server just reported that his client crashed with this error
he was just flying around in suit.


2020-09-19 20:19:14.203 - Thread: 11 -> ERROR Entity init!: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Rexxar.Settings.GetSettings(IMyEntity entity)
at Whiplash.WeaponFramework.WeaponBlockBase.GetPowerInput(Boolean count)
at Whiplash.WeaponFramework.WeaponBlockBase.<SetPowerSink>b__50_0()
at Sandbox.Game.EntityComponents.MyResourceSinkComponent.Update()
at Sandbox.Game.Weapons.MySmallMissileLauncher.Init(MyObjectBuilder_CubeBlock builder, MyCubeGrid cubeGrid)
at Sandbox.Game.Entities.Cube.MySlimBlock.Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid, MyCubeBlock fatBlock)
at Sandbox.Game.Entities.MyCubeGrid.AddCubeBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge, MyCubeBlockDefinition blockDefinition)
at Sandbox.Game.Entities.MyCubeGrid.AddBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge)
at Sandbox.Game.Entities.MyCubeGrid.InitInternal(MyObjectBuilder_EntityBase objectBuilder, Boolean rebuildGrid)
at Sandbox.Game.Entities.MyEntities.InitEntity(MyObjectBuilder_EntityBase objectBuilder, MyEntity& entity, Boolean tolerateBlacklistedPlanets)

weaponcore is also on server is this a problem. not currentlyy using any mods that are dependent on weaponframework but was about to add railguns
If nothing is dependent on the weapon framework, that code should not be running at all... You are sure nothing is using the framework?
Jaeger Sep 19, 2020 @ 8:26pm 
nothing that uses it. unless oki weapons secretly uses it lol
Whiplash141  [developer] Sep 19, 2020 @ 10:02pm 
Originally posted by Jæger:
nothing that uses it. unless oki weapons secretly uses it lol
OKI does use it. Also, looks like that error has to do with some parallelization, not sure why on earth that is happening because I'm not threading anything. I'll look into it, thanks for the report.
Last edited by Whiplash141; Sep 19, 2020 @ 10:05pm
Whiplash141  [developer] Sep 22, 2020 @ 3:07pm 
Originally posted by Jæger:
player on my server just reported that his client crashed with this error
he was just flying around in suit.


2020-09-19 20:19:14.203 - Thread: 11 -> ERROR Entity init!: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at Rexxar.Settings.GetSettings(IMyEntity entity)
at Whiplash.WeaponFramework.WeaponBlockBase.GetPowerInput(Boolean count)
at Whiplash.WeaponFramework.WeaponBlockBase.<SetPowerSink>b__50_0()
at Sandbox.Game.EntityComponents.MyResourceSinkComponent.Update()
at Sandbox.Game.Weapons.MySmallMissileLauncher.Init(MyObjectBuilder_CubeBlock builder, MyCubeGrid cubeGrid)
at Sandbox.Game.Entities.Cube.MySlimBlock.Init(MyObjectBuilder_CubeBlock objectBuilder, MyCubeGrid cubeGrid, MyCubeBlock fatBlock)
at Sandbox.Game.Entities.MyCubeGrid.AddCubeBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge, MyCubeBlockDefinition blockDefinition)
at Sandbox.Game.Entities.MyCubeGrid.AddBlock(MyObjectBuilder_CubeBlock objectBuilder, Boolean testMerge)
at Sandbox.Game.Entities.MyCubeGrid.InitInternal(MyObjectBuilder_EntityBase objectBuilder, Boolean rebuildGrid)
at Sandbox.Game.Entities.MyEntities.InitEntity(MyObjectBuilder_EntityBase objectBuilder, MyEntity& entity, Boolean tolerateBlacklistedPlanets)

weaponcore is also on server is this a problem. not currentlyy using any mods that are dependent on weaponframework but was about to add railguns
Pushed an update so this should not happen any more. Issue was that the block Init method is apparently threaded now and accessing non-threadsafe dictionaries made the game mad. I've since changed to thread safe dictionaries.
Payback Oct 8, 2020 @ 4:05am 
Still getting this "Keen: Mod Whip's Railgun Weapon Framework is accessing physics from parallel threads. This is not safe and might cause the game to crash or behave unexpectedly." come up in the torch error log.
< >
Showing 1-15 of 35 comments
Per page: 1530 50