[Critical bug] Can't compile created project

Hi.

What’s happened - I can’t understand :).
I have created new 4.9.2 project right now and added 1 StaticMeshActor C++ class and trying to build it.

UE got error:

2015.10.01-09.20.59:945][755]CompilerResultsLog: Info Compiling game modules for hot reload
[2015.10.01-09.20.59:945][755]CompilerResultsLog: Info ERROR: System.ArgumentOutOfRangeException: Индекс за пределами диапазона. Индекс должен быть положительным числом, а его размер не должен превышать размер коллекции.
[2015.10.01-09.20.59:945][755]CompilerResultsLog: Info Имя параметра: startIndex
[2015.10.01-09.20.59:945][755]CompilerResultsLog: Info    в System.String.LastIndexOf(Char value, Int32 startIndex, Int32 count)
[2015.10.01-09.20.59:945][755]CompilerResultsLog: Info    в UnrealBuildTool.UnrealBuildTool.PatchActionHistoryForHotReloadAssembling(List`1 OnlyModules)
[2015.10.01-09.20.59:945][755]CompilerResultsLog: Info    в UnrealBuildTool.UnrealBuildTool.RunUBT(String[] Arguments)

As I understand, it’s not problem in my code, it’s problem in UE 4.9.2 compiler files?

Log file

It’s very critical for me.

How to fix that or how to roll back to the 4.9.1???

Hey -

My project was able to compile successfully after adding a StaticMeshActor to it. Did you add any code to the StaticMeshActor class after creating it?

Cheers

Hello, .

I re-installed UE 4.9.2 (completely removed c:\Program Files\Epic Games\4.9\ ).

After that I created new project, added to it UE 4.9.2 C++ StaticMeshClass. Closed opened MS VS 2013 without any changes. Pressed Compile button in UE Editor. Got Error.

Repro steps: 01.10.2015 - YouTube

I found Failed to generate project files, System.ArgumentOutOfRangeException - C++ - Epic Developer Community Forums and I cleaned %TEMP%, but it doesn’t helped…

When you create the StaticMeshActor class I can’t tell if you are then building the project or running in debug mode? Additionally, your VS solution configuration and platform are set to DebugGame and Win32. If you set these to DevelopmentEditor and Win64 are you able to compile?

I just want to compile game in UE Editor for starting game from UE Editor. In the past, I created UE project, created MS VS projects from UE Editor, compiled C++ code from UE Editor. In the past I never changed build config in MS MVS…

OK, I changed build config, as you recommended, but it doesn’t solved issue:

How to roll back to UE 4.9.1? In 4.9.1 projects compiled very well.

I found some fix for problem:

  • I recompiled my project in Games folder in Solution Explorer;

    1>------ Rebuild All started: Project: RetargetTest, Configuration: Development_Editor x64 ------

    1> Cleaning RetargetTestEditor Binaries…

    **1> “MySQL” не является внутренней или внешней
    1> командой, исполняемой программой или пакетным файлом.

    1> “MySQL” не является внутренней или внешней
    1> командой, исполняемой программой или пакетным файлом.**

    1> Compiling game modules for hot reload

    1> Creating makefile for hot reloading RetargetTestEditor (no existing makefile)

    1> Compiling game modules for hot reload

    1> Performing full C++ include scan (no include cache file)

    1> Parsing headers for RetargetTestEditor

    1> Running UnrealHeaderTool “C:\Users\Documents\Unreal Projects\RetargetTest\RetargetTest.uproject” “C:\Users\Documents\Unreal Projects\RetargetTest\Intermediate\Build\Win64\RetargetTestEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed

    1> Reflection code generated for RetargetTestEditor in 10,5561915 seconds

    1> Performing 7 actions (2 in parallel)

    1> [2/7] Resource PCLaunch.rc


Why no existing makefile initially found?

Why MS VS looking for MySQL?

P.S. After rebuilding in MS VS compiling from UE Editor works correctly:

Info Creating makefile for hot reloading RetargetTest (modules to compile have changed)

Info Compiling game modules for hot reload

Info Target is up to date.

Hey -

Based on your last post it sounds as though you were able to fix the problem you were having. Let me know if this is the case and I can convert your previous comment to an answer. If you are still having compile problems let me know if you can create a new code project, add an actor class to it, and then compile the project through visual studio.

Cheers

I found some fix for problem:

I recompiled my project in Games folder in Solution Explorer;

1>------ Rebuild All started: Project: RetargetTest, Configuration: Development_Editor x64 ------

1> Cleaning RetargetTestEditor Binaries…

**1> “MySQL” не является внутренней или внешней
1> командой, исполняемой программой или пакетным файлом.

1> “MySQL” не является внутренней или внешней
1> командой, исполняемой программой или пакетным файлом.**

1> Compiling game modules for hot reload

1> Creating makefile for hot reloading RetargetTestEditor (no existing makefile)

1> Compiling game modules for hot reload

1> Performing full C++ include scan (no include cache file)

1> Parsing headers for RetargetTestEditor

1> Running UnrealHeaderTool “C:\Users\Documents\Unreal Projects\RetargetTest\RetargetTest.uproject” “C:\Users\Documents\Unreal Projects\RetargetTest\Intermediate\Build\Win64\RetargetTestEditor\Development\UnrealHeaderTool.manifest” -LogCmds=“loginit warning, logexit warning, logdatabase error” -rocket -installed

1> Reflection code generated for RetargetTestEditor in 10,5561915 seconds

1> Performing 7 actions (2 in parallel)

1> [2/7] Resource PCLaunch.rc

Why no existing makefile initially found?

Why MS VS looking for MySQL?

P.S. After rebuilding in MS VS compiling from UE Editor works correctly:

Info Creating makefile for hot reloading RetargetTest (modules to compile have changed)

Info Compiling game modules for hot reload

Info Target is up to date.