Author Topic: Civilian Industries  (Read 35799 times)

Offline Fritz1776

  • Newbie
  • *
  • Posts: 5
Re: Civilian Industries
« Reply #90 on: September 03, 2020, 09:14:32 pm »
Not sure what you did but you seem to have broke it. I'm getting error messages up the wazoo and no idea why other than they only happen if this mod id active.

Offline StarKeep

  • Jr. Member Mark II
  • **
  • Posts: 79
Re: Civilian Industries
« Reply #91 on: September 03, 2020, 09:26:26 pm »
Can I get a copy of your ArcenDebugLog? I have experienced no such errors; and thus don't have a starting point.

If you are on the Beta; that is known. The prior version was put into the codebase before the latest beta was complete; so it isn't working yet, and is in the process of being updated.
« Last Edit: September 03, 2020, 09:32:31 pm by StarKeep »

Offline Endovior

  • Newbie Mark II
  • *
  • Posts: 17
Re: Civilian Industries
« Reply #92 on: September 16, 2020, 08:24:49 pm »
The public release of 2.507 broke the mod, probably because of the changes in 2.506 which were noted to break all the mods. How fixable is that?

Offline StarKeep

  • Jr. Member Mark II
  • **
  • Posts: 79
Re: Civilian Industries
« Reply #93 on: September 30, 2020, 03:23:41 am »
Updates for it should be coming within the next few pushes.

Its primarily bugfixes, but there are a few notable changes included.

Units will now load into Patrol Posts when they have no active job, greatly increasing game performance when you have so many extra Civvie units on your homeworld.

Raids no longer fire for the first hour of the game.

Civilians can now be enabled via Beacon.

Offline Endovior

  • Newbie Mark II
  • *
  • Posts: 17
Re: Civilian Industries
« Reply #94 on: October 01, 2020, 11:15:28 pm »
It's definitely working again now, thanks!

Incidentally, now that Civilians can load into Patrol Posts when not active, how feasible would it be to have them hide in their patrol posts when the Devourer Golem is in system, instead of deploying to sit around getting eaten? Similarly, would it be feasible to advise the civilian AI to not reinforce worlds menaced by the Devourer Golem?

Offline Endovior

  • Newbie Mark II
  • *
  • Posts: 17
Re: Civilian Industries
« Reply #95 on: October 09, 2020, 09:50:44 am »
Running the latest v2.608; ran into a bug specifying Civilian Industry.

10/9/2020 9:46:59 AM   specialFactionContext_10_SKCivilianIndustry_idx_9 Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.List`1[T].RemoveAt (System.Int32 index) [0x00009] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at SKCivilianIndustry.CivilianMilitia.GetShipCount (Arcen.AIW2.Core.GameEntityTypeData typeData, System.Boolean calledFromSimSafeThread) [0x00092] in <f83ea885a3de4172b865a34197b96c70>:0
  at SKCivilianIndustry.SpecialFaction_SKCivilianIndustry.DoMilitiaThreatReaction (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x0076f] in <f83ea885a3de4172b865a34197b96c70>:0
  at SKCivilianIndustry.SpecialFaction_SKCivilianIndustry.DoLongRangePlanning_OnBackgroundNonSimThread_Subclass (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.External.ArcenLongTermIntermittentPlanningContext Context) [0x0004e] in <f83ea885a3de4172b865a34197b96c70>:0
  at Arcen.AIW2.External.BaseSpecialFaction.DoLongRangePlanning_OnBackgroundNonSimThread (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ILongRangePlanningContext Context) [0x00077] in <7fefacd8d6274b5eb643ab415dfc1a0c>:0
  at Arcen.AIW2.External.SpecialFactionPlanning.Execute () [0x00077] in <7fefacd8d6274b5eb643ab415dfc1a0c>:0

Offline Endovior

  • Newbie Mark II
  • *
  • Posts: 17
Re: Civilian Industries
« Reply #96 on: October 09, 2020, 09:00:36 pm »
I tried continuing that game, and got another, more dire-sounding error:

10/9/2020 8:57:53 PM   DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim Error for faction Civilian Industry(index 9).  Consider restarting the game, as many other things may now go wrong because of this first error.  And please report this! Error: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at System.Collections.Generic.List`1[T].RemoveAt (System.Int32 index) [0x00009] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at SKCivilianIndustry.CivilianMilitia.GetShipCount (Arcen.AIW2.Core.GameEntityTypeData typeData, System.Boolean calledFromSimSafeThread) [0x00092] in <f83ea885a3de4172b865a34197b96c70>:0
  at SKCivilianIndustry.SpecialFaction_SKCivilianIndustry.DoMilitiaDeployment (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context) [0x00a69] in <f83ea885a3de4172b865a34197b96c70>:0
  at SKCivilianIndustry.SpecialFaction_SKCivilianIndustry.DoPerSecondLogic_Stage3Main_OnMainThreadAndPartOfSim (Arcen.AIW2.Core.Faction faction, Arcen.AIW2.Core.ArcenSimContext Context) [0x002e0] in <f83ea885a3de4172b865a34197b96c70>:0
  at Arcen.AIW2.External.EntitySimLogicImplementation+<>c__DisplayClass60_0.<DoWorldSecondLogic_FromSimBGThread>b__3 (Arcen.AIW2.Core.Faction faction) [0x00002] in <7fefacd8d6274b5eb643ab415dfc1a0c>:0

Offline StarKeep

  • Jr. Member Mark II
  • **
  • Posts: 79
Re: Civilian Industries
« Reply #97 on: October 10, 2020, 12:01:52 am »
Fun little bug; I'm guessing I forgot to check for some data being created before using it. The change to how ExternalData is used is something I'm still learning.

Plus side though; if you keep this save for later it should work after I get the fix created and pushed out.

Offline Endovior

  • Newbie Mark II
  • *
  • Posts: 17
Re: Civilian Industries
« Reply #98 on: October 16, 2020, 09:09:54 pm »
Found another bug:

The picture made me think it might've been unrelated, but the log indicates that it has something to do with Civilian Industry.

Spoiler for Hiden:
10/16/2020 9:01:32 PM
Tried to write Int32 PosExceptNeg1, but passed value was: -4, which is out of range!  Value set to -1 so your save would work.   (Unknown field being saved)

  at System.Environment.get_StackTrace () [0x00000] in <1f0c1ef1ad524c38bbc5536809c46b48>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, System.Boolean IncludeStackTrace, Arcen.Universal.Verbosity Verbosity) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.DebugLogDestination Destination, Arcen.Universal.Verbosity Verbosity) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.Universal.ArcenDebugging.ArcenDebugLog (System.String Message, Arcen.Universal.Verbosity Verbosity) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.Universal.ArcenSerializationBuffer.AddInt32 (Arcen.Universal.ReadStyle RStyle, System.Int32 Item, System.String FieldNameForErrors) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at SKCivilianIndustry.CivilianMilitia.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, System.Boolean IsForPartialSyncDuringMultiplayer) [0x00000] in <b4dcfff58e3d48e099272c53dc496f9f>:0
  at SKCivilianIndustry.Persistence.CivilianMilitiaExternalData.SerializeExternalData (System.Object[] Source, Arcen.Universal.ArcenSerializationBuffer Buffer, System.Boolean IsForPartialSyncDuringMultiplayer) [0x00000] in <b4dcfff58e3d48e099272c53dc496f9f>:0
  at Arcen.Universal.ArcenExternalData.SerializeExternalDataTo (Arcen.Universal.ArcenSerializationBuffer Buffer, System.String ExternalDataHeader, System.Boolean IsForPartialSyncDuringMultiplayer) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.Universal.ArcenExternalDataLookup.SerializeExternalDataTo (Arcen.Universal.ArcenSerializationBuffer Buffer, System.String ExternalDataHeader, System.Boolean IsForPartialSyncDuringMultiplayer, System.Boolean IsForLastSettings) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.AIW2.Core.GameEntity_Squad.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, Arcen.Universal.UltraEfficientStyle StyleForPKIDsIfNetworkSyncData) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.AIW2.Core.PlanetFaction.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, SerializationCommandType SerializationCmdType, System.Boolean IsForLastSettings) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.AIW2.Core.Planet.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, SerializationCommandType SerializationCmdType, System.Boolean IsForLastSettings) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.AIW2.Core.Galaxy.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, System.Boolean IsForLastSettings) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.AIW2.Core.World_AIW2.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, System.Boolean DoPartialSyncForDuringGameplay, System.Boolean IsForLastSettings) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.Universal.World.SerializeTo (Arcen.Universal.ArcenSerializationBuffer Buffer, System.Boolean DoPartialSyncForDuringGameplay, System.Boolean IsForLastSettings) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.Universal.World.SaveWorldToDisk (System.String SaveName, System.Collections.Generic.List`1[T] SavegameMetadata) [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.AIW2.External.GameCommand_SaveGame.Execute (Arcen.AIW2.Core.GameCommand command, Arcen.AIW2.Core.ArcenSimContext context) [0x00000] in <4e386c2e5e4f4b62b2f4c632dc16857f>:0
  at Arcen.AIW2.Core.GameCommand.Execute (Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.AIW2.Core.World_AIW2.OnClient_ExecuteGameCommandsReceivedFromServer (Arcen.AIW2.Core.ArcenSimContext Context) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.AIW2.External.SimPlannerImplementation.DoActualSimStep (System.Boolean& stalledWaitingOnConnections, System.Boolean& mayUpdateVisuals, System.String& reasonForNoVisualUpdates) [0x00000] in <4e386c2e5e4f4b62b2f4c632dc16857f>:0
  at Arcen.AIW2.Core.Engine_AIW2.ProcessSimStep (System.Boolean& stalledWaitingOnConnections, System.String& reasonForNoVisualUpdates) [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at Arcen.Universal.Engine_Universal.OnUpdateFromMainThread () [0x00000] in <61e10848c4834031a6650d8e71fadd0e>:0
  at Arcen.AIW2.Core.ArcenGameControllerBase.BaseUpdate () [0x00000] in <44cd3bd2652146ffb674e9e63f761e6b>:0
  at ArcenGameController.Update () [0x00000] in <342846c60ad043638e2ec80b42611e65>:0

Offline StarKeep

  • Jr. Member Mark II
  • **
  • Posts: 79
Re: Civilian Industries
« Reply #99 on: October 17, 2020, 01:59:52 am »
Curse you ExternalData!

The error should be mostly harmless, it looks like its sometimes overdrawing ships out of its storage, so it just means an extra couple ships may pop out of a Patrol Post that weren't listed. I'll look into this.

Offline WolfWhiteFire

  • Full Member Mark II
  • ***
  • Posts: 195
Re: Civilian Industries
« Reply #100 on: October 17, 2020, 06:06:02 pm »
This mod seems to be causing a lot of errors when I try running it in the game, with the biggest problem being that it somehow prevents the game from generating a galaxy in the lobby, while none of these errors appear with the mod disabled. Not really sure what is causing the issues, but I took some screenshots of the error messages and found the debug log. The mod seems to be up to date, showing as being last modified at 10/15/2020. Using Windows 10, playing through steam, the only other mods activated being the ones that Arcen added as coming packaged with the game itself like this one. Let me know if there is anything else you need to figure out what the problem is. Also, I verified the integrity of the data cache and it didn't find any issues.
« Last Edit: October 17, 2020, 06:08:03 pm by WolfWhiteFire »

Offline StarKeep

  • Jr. Member Mark II
  • **
  • Posts: 79
Re: Civilian Industries
« Reply #101 on: October 17, 2020, 07:50:33 pm »
I'm worried that this error keeps popping up. Here are the steps from a Mantis report that fixed it for them.

A: Remove any Civilian Industries files from AI War 2\GameData\ModdableLogicDLLs.
Mods used to require their dll to be put in here, and if you used the mod in the past, there is a chance the old dll is still hanging out within.
B1: Delete the SKCivilianIndustry folder from AI War 2\XMLMods.
B2: Revalidate game files on Steam
Sometimes things just happen in regards to file updates on steam.

If neither of these work; please reply back.

Offline Gott365

  • Newbie Mark II
  • *
  • Posts: 11
Re: Civilian Industries
« Reply #102 on: November 06, 2020, 09:48:26 am »
Hey there, I got an issue, where none of the trading ships or builders move from their spawn at the Homeworld. Got a few tradeposts and militia outposts all from the same battlestation (first one you get). I have the mods enabled that are issued with the game atm, but only got an error message from another one, not this one. Trade ships and builders are simply spawning, decolliding and that´s it. No other ships are spawning either. Screen and save attached (there´s a lot going on, though).
Mod list:
 
Spoiler for Hiden:
(AMU, Extended Ship Variants (+Fallen Spire), Kaizers Marauders, More Starting options (didn't pick one of the new ones), this mod and Spire Railgun Shop)

Also tried deleting/validating the mod files, no change.

Offline StarKeep

  • Jr. Member Mark II
  • **
  • Posts: 79
Re: Civilian Industries
« Reply #103 on: November 11, 2020, 12:32:37 am »
Oh yikes, I'm sorry I didn't see this before now. It looks like the forum's 'notify' feature isn't working anymore.

I'll look into it within the next few days and see if I can reproduce it and look about a fix for you.

Offline Endovior

  • Newbie Mark II
  • *
  • Posts: 17
Re: Civilian Industries
« Reply #104 on: November 11, 2020, 03:02:06 am »
Oh yikes, I'm sorry I didn't see this before now. It looks like the forum's 'notify' feature isn't working anymore.

On my end, it's still working... except that the email notifications are being sent to spam. Something in how the automatic notifications are formatted causes them to appear to be from [email protected], as opposed to [email protected], and Google can tell that [email protected] isn't really the sender, and views this as suspicious.