Packaging error

I’m having an error while packaging my game, I looked for a solution but found nothing, hopefully, someone can help me.

the error:
PackagingResults: Error: Unable to compile source files.
UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Error

full log
Error.txt (116.7 KB)

You log file points to the error


UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(3,17) : error CS1514: { expected
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(3,17) : error CS1519: Invalid token '-' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(3,29) : error CS1519: Invalid token ':' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(4,1) : error CS1519: Invalid token '{' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(5,12) : error CS1519: Invalid token '-' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(5,17) : error CS1520: Method must have a return type
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(5,43) : error CS1002: ; expected
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(5,56) : error CS1519: Invalid token ')' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(7,8) : error CS1519: Invalid token '=' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(7,25) : error CS1519: Invalid token ';' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(8,23) : error CS1519: Invalid token '(' in class, struct, or interface member declaration
UATHelper: Packaging (Windows (64-bit)): c:\Unreal Projects\SCP-1936\Intermediate\Source\SCP-1936.Target.cs(10,1) : error CS1022: Type or namespace definition, or end-of-file expected

Please post your target file. You probably have invalid syntax (either unclosed brackets or a missing semicolon.

1 Like

I’ve seen it but I didn’t know what it means
I didn’t use any C++ for this project, only blueprints
and I don’t know if it helps but I’ve deleted the Intermediate folder except for the config

Upload it and I’ll check if the brackets are matching and if it has any syntax errors.

Your target file should be in the source folder not in the intermetiate.

1 Like

i got it to work, one of these two steps fixed it
I remember deleting visual studio a few days ago and I reinstalled it just now
and i also changed the project folder name, one of these steps fixed the issue
thanks for ur help!

Greetings @Ghost_Masaki

Were you able to get this issue resolved?

1 Like

yes

Excellent! I’m glad that was resolved.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.