View Issue Details

IDProjectCategoryLast Update
0019146AI War 2Crash/ExceptionAug 29, 2018 7:49 pm
ReporterBadgerBadger Assigned ToChris_McElligottPark  
Status closedResolutionfixed 
Product Version0.301 The New HDR Visual Stack 
Summary0019146: InitOnceOnlyEverOrBadThingsHappen problem
DescriptionI was running a game last night and spotted these errors in the morning. They didn't seem to impact gameplay.

The game was (I think) modded to make my ark extra strong and give me some bonus ships. This might also have been around the time I provoked 100K AI ships to attack my fleetball; hard to tell for sure though.
5/30/2017 10:44:43 PM
ErrorsReportedByEngine: -----------^M
Tried to call InitOnceOnlyEverOrBadThingsHappen more than once on 'BulletPointedRed'
Stack Trace: UnityEngine.Debug:LogError(Object)
Arcen.AIW2.Core.GameEntityTypeData:InitOnceOnlyEverOrBadThingsHappen() (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Core/src/Logic/GameState/GameEntity/GameE\
ntityTypeData.cs:323)
Arcen.AIW2.Core.GameEntityTypeDataTable:DoPostInitializationLogic() (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Core/src/Logic/GameState/GameEntity/GameEnti\
tyTypeData.cs:602)
Arcen.Universal.ArcenDynamicTable`1:Initialize(Boolean) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/ArcenExternalDefinitionFramework/ArcenDynamicT\
able.cs:86)
Arcen.AIW2.Core.Engine_AIW2:LoadExternalData(Boolean) (at D:/vclarge/AI_War_2_Ultra/ArcenAIW2Core/src/Logic/Engine_AIW2.cs:111)
Arcen.Universal.Engine_Universal:LoadExternalData(Boolean) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Engine_Universal.cs:579)
Arcen.Universal.Engine_Universal:OnReloadAllExternalDefinitions() (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Engine_Universal.cs:584)
Arcen.AIW2.External.Input_MainHandler:HandleInner(Int32, String)
Arcen.AIW2.External.Input_MainHandler:Handle(Int32, InputActionTypeData)
Arcen.Universal.ArcenInput:InnerHandleAction(ArcenInputAction) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/ArcenInput.cs:158)
Arcen.Universal.ArcenInput:HandleEffectiveRewiredAction(Int32) (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/ArcenInput.cs:147)
Arcen.Universal.ArcenInput:CheckInput() (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Logic/ArcenInput.cs:140)
Arcen.Universal.Engine_Universal:OnUpdate() (at D:/vclarge/AI_War_2_Ultra/ArcenUniversal/src/Engine_Universal.cs:732)
ArcenGameController:Update() (at D:/vclarge/AI_War_2_Ultra/AIW2Unity/Assets/ArcenCode/ArcenGameController.cs:40)


(10:10:58) hostname:~/AIWar2/PlayerData $ grep InitOnceOnlyEverOrBadThingsHappen ArcenDebugLog.txt | grep "Tried to call" | wc -l
196

Looks like I hit almost 200 of these errors.

TagsNo tags attached.

Activities

Chris_McElligottPark

May 31, 2017 10:18 am

administrator   ~0046247

Were you using the "reload external definitions" function? That is currently borked and will give you the result you see above, so I'm going to guess that's what happened here.

BadgerBadger

May 31, 2017 10:27 am

manager   ~0046248

I did try that once, and remember it caused hideous problems. I'll bet you are right.

Chris_McElligottPark

May 31, 2017 10:34 am

administrator   ~0046249

It probably logged one error per ship type or similar it was trying to load, so that would have done it.

Chris_McElligottPark

Jun 19, 2017 8:58 pm

administrator   ~0046308

In 0.402, I have simply commented out the error that this throws in the InitOnceOnlyEverOrBadThingsHappen function. It already skips actually doing anything harmful in that function, so probably this will work out okay anyhow.

Keith, basically I'm assuming that all of the visual cross-links need to not change when this stuff is reloaded, and hopefully this is thus skipping that and just reloading data bits. But I'm not familiar enough with the data-bits loading to confidently state that is what is happening now. ;)

I figure it's worth a glance at some point by Keith, and BadgerBadger hopefully this demonstrably works okay for you in the next build, we'll see.

BadgerBadger

Jun 25, 2017 11:05 pm

manager   ~0046356

When I hit F10 now, I see things like
'GravityGuardian_Mark4' has missing or empty string in attribute 'ship_or_structure_explosion_if_on_other_planet_sfx'
'GravityGuardian_Mark5' has missing or empty string in attribute 'ship_or_structure_explosion_sfx'
'GravityGuardian_Mark5' has missing or empty string in attribute 'ship_or_structure_explosion_if_on_other_planet_sfx'
'HeavyBeamGuardian_Mark2' has missing or empty string in attribute 'ship_or_structure_explosion_sfx'
'HeavyBeamGuardian_Mark2' has missing or empty string in attribute 'ship_or_structure_explosion_if_on_other_planet_sfx'
'HeavyBeamGuardian_Mark3' has missing or empty string in attribute 'ship_or_structure_explosion_sfx'
'HeavyBeamGuardian_Mark3' has missing or empty string in attribute 'ship_or_structure_explosion_if_on_other_planet_sfx'
'HeavyBeamGuardian_Mark4' has missing or empty string in attribute 'ship_or_structure_explosion_sfx'
'HeavyBeamGuardian_Mark4' has missing or empty string in attribute 'ship_or_structure_explosion_if_on_other_planet_sfx'

Perhaps those entries aren't added yet? Y'all do use macros or something to add xml entries like that for everything, right? It would get really tedious otherwise.

Chris_McElligottPark

Jun 26, 2017 10:34 am

administrator   ~0046357

We add the things by hand, because they require specific oversight on what they are. However, the higher-mark versions copy from the lower-mark versions, saving us from repetitive copy-pasting for duplicate values.

In this case the problem is that they are normally copying those data from the Mark1 versions of their ship types, but in the F10 version they are trying to read directly from themselves instead for some reason (which is not what normally would happen).

Chris_McElligottPark

Aug 29, 2018 7:49 pm

administrator   ~0048546

This is incredibly old, and if it's still happening it will be my issue to fix, but I haven't seen it.

Issue History

Date Modified Username Field Change
May 31, 2017 10:12 am BadgerBadger New Issue
May 31, 2017 10:18 am Chris_McElligottPark Note Added: 0046247
May 31, 2017 10:27 am BadgerBadger Note Added: 0046248
May 31, 2017 10:34 am Chris_McElligottPark Note Added: 0046249
Jun 19, 2017 8:58 pm Chris_McElligottPark Note Added: 0046308
Jun 19, 2017 8:58 pm Chris_McElligottPark Assigned To => keith.lamothe
Jun 19, 2017 8:58 pm Chris_McElligottPark Status new => feedback
Jun 25, 2017 11:05 pm BadgerBadger Note Added: 0046356
Jun 25, 2017 11:05 pm BadgerBadger Status feedback => assigned
Jun 26, 2017 10:34 am Chris_McElligottPark Note Added: 0046357
Aug 29, 2018 7:49 pm Chris_McElligottPark Assigned To keith.lamothe => Chris_McElligottPark
Aug 29, 2018 7:49 pm Chris_McElligottPark Status assigned => closed
Aug 29, 2018 7:49 pm Chris_McElligottPark Resolution open => fixed
Aug 29, 2018 7:49 pm Chris_McElligottPark Note Added: 0048546