Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Sat May 16, 2026 1:00 pm
All times are UTC + 0
[WAE] Index was outside the bounds of the array
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ousagi
AA Infantry


Joined: 02 Nov 2022

PostPosted: Tue May 05, 2026 2:59 pm    Post subject:  [WAE] Index was outside the bounds of the array
Subject description: Back again in fixing WAE
Reply with quote  Mark this post and the followings unread

Code:
05.05. 22:54:42.817    World-Altering Editor (WorldAlteringEditor, Version=1.8.9620.35827, Culture=neutral, PublicKeyToken=null)
05.05. 22:54:42.818    Release version: 1.8.4
05.05. 22:54:42.818    Unhandled exception! @ 22:54:42
05.05. 22:54:42.818    Message: Index was outside the bounds of the array.
05.05. 22:54:42.828    Stack trace:    at TSMapEditor.Helpers.CreateEdges(Int32 maxWidth, Int32 maxHeight, IEnumerable`1 foundationCells) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Helpers.cs:line 708
   at TSMapEditor.Models.ArtConfig.Foundation.ReadFromIniSection(IniSection iniSection) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Models\ArtConfig\BuildingArtConfig.cs:line 41
   at TSMapEditor.Models.ArtConfig.BuildingArtConfig.ReadFromIniSection(IniSection iniSection) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Models\ArtConfig\BuildingArtConfig.cs:line 189
   at TSMapEditor.Initialization.Initializer.InitBuildingArtConfig(IMap map, AbstractObject obj, IniFile artIni, IniSection artSection) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Initialization\Initializer.cs:line 210
   at TSMapEditor.Initialization.Initializer.ReadObjectTypeArtPropertiesFromINI[T](T obj, IniFile iniFile, String sectionName) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Initialization\Initializer.cs:line 88
   at TSMapEditor.Models.Rules.<>c__DisplayClass52_0.<InitArt>b__2(BuildingType bt) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Models\Rules.cs:line 173
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at TSMapEditor.Models.Rules.InitArt(IniFile iniFile, IInitializer initializer) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Models\Rules.cs:line 173
   at TSMapEditor.Models.Map.InitializeRules(GameConfigINIFiles gameConfigINIFiles) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Models\Map.cs:line 1608
   at TSMapEditor.Models.Map.InitNew(GameConfigINIFiles gameConfigINIFiles, String theaterName, Point2D size, Byte startingLevel) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Models\Map.cs:line 236
   at TSMapEditor.UI.Windows.MainMenuWindows.MapSetup.InitializeMap(String gameDirectory, Boolean createNew, String existingMapPath, CreateNewMapEventArgs newMapParameters, WindowManager windowManager) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\UI\Windows\MainMenuWindows\MapSetup.cs:line 58
   at TSMapEditor.UI.MainMenu.CreateMapWindow_OnCreateNewMap(Object sender, CreateNewMapEventArgs e) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\UI\MainMenu.cs:line 257
   at TSMapEditor.UI.Windows.MainMenuWindows.CreateNewMapWindow.BtnCreate_LeftClick(Object sender, EventArgs e) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\UI\Windows\MainMenuWindows\CreateNewMapWindow.cs:line 128
   at Rampastring.XNAUI.XNAControls.XNAControl.OnLeftClick(InputEventArgs inputEventArgs)
   at Rampastring.XNAUI.XNAControls.XNAButton.OnLeftClick(InputEventArgs inputEventArgs)
   at Rampastring.XNAUI.WindowManager.<>c.<UpdateControls>b__123_2(XNAControl c, InputEventArgs ie)
   at Rampastring.XNAUI.WindowManager.PropagateInputEvent(Action`2 action, MouseInputFlags mouseInputFlags)
   at Rampastring.XNAUI.WindowManager.UpdateControls(GameTime gameTime)
   at Rampastring.XNAUI.WindowManager.Update(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.SortingFilteringCollection`1.ForEachFilteredItem[TUserData](Action`2 action, TUserData userData)
   at Microsoft.Xna.Framework.Game.DoUpdate(GameTime gameTime)
   at Microsoft.Xna.Framework.Game.Tick()
   at System.Windows.Forms.Application.ThreadContext.Microsoft.Office.IMsoComponent.FDoIdle(msoidlef grfidlef)
   at System.Windows.Forms.Application.ComponentManager.Microsoft.Office.IMsoComponentManager.FPushMessageLoop(UIntPtr dwComponentID, msoloop uReason, Void* pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(msoloop reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(msoloop reason, ApplicationContext context)
   at MonoGame.Framework.WinFormsGameWindow.RunLoop()
   at MonoGame.Framework.WinFormsGamePlatform.RunLoop()
   at Microsoft.Xna.Framework.Game.Run(GameRunBehavior runBehavior)
   at Microsoft.Xna.Framework.Game.Run()
   at TSMapEditor.Program.Main(String[] args) in D:\a\WorldAlteringEditor\WorldAlteringEditor\src\TSMapEditor\Program.cs:line 26


It was having an issue before where it said something about CXROT.shp being missing or corrupted.
Looking at the error, it seems to have an issue with buildings?

Though this time I can't pinpoint where the issue about buildings is. What does "Index was outside the bounds of the array" mean?

Back to top
View user's profile Send private message
Ousagi
AA Infantry


Joined: 02 Nov 2022

PostPosted: Wed May 06, 2026 3:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Found the issue. It was missing FoundationOutline -.-

Didn't know it needed that because it doesn't crash for FA2sp. I thought the orange boxes in the generator were for bibs -.-
I don't know what the outline does, but WAE requires it to not crash.

I somewhat knew it had something to do with Foundation because of Gemini. And I tried to assure if WAE works with Ares,
because removing the Custom Foundation works but it doesn't make sense why it wouldn't be usable by WAE.
So I pushed further and learned about the FoundationOutline.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1673s ][ Queries: 11 (0.0082s) ][ Debug on ]