x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Packaging problem (source file error?)

So when i try and package my project i get multiple error messages that seem to point to my source file.

UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(6,24) : error CS1514: { expected UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(6,24) : error CS1519: Invalid token '.5' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(6,33) : error CS1519: Invalid token ':' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(7,1) : error CS1519: Invalid token '{' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(8,19) : error CS1519: Invalid token '.5' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(8,21) : error CS1520: Method must have a return type UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(8,47) : error CS1002: ; expected UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(8,60) : error CS1519: Invalid token ')' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(10,8) : error CS1519: Invalid token '=' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(10,25) : error CS1519: Invalid token ';' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(12,23) : error CS1519: Invalid token '(' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(19,18) : error CS1518: Expected class, delegate, enum, interface, or struct UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.5.Target.cs(26,1) : error CS1022: Type or namespace definition, or end-of-file expected UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(6,24) : error CS1514: { expected UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(6,24) : error CS1519: Invalid token '.6' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(6,35) : error CS1519: Invalid token ':' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(7,1) : error CS1519: Invalid token '{' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(8,19) : error CS1519: Invalid token '.6' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(8,23) : error CS1520: Method must have a return type UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(8,49) : error CS1002: ; expected UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(8,62) : error CS1519: Invalid token ')' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(10,8) : error CS1519: Invalid token '=' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(10,25) : error CS1519: Invalid token ';' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(12,23) : error CS1519: Invalid token '(' in class, struct, or interface member declaration UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(19,18) : error CS1518: Expected class, delegate, enum, interface, or struct UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(26,1) : error CS1022: Type or namespace definition, or end-of-file expected UATHelper: Packaging (Windows (64-bit)): ERROR: e:\Unreal Engine 4 Projects\Project_04.6.1\Intermediate\Source\Project_04.6.1.Target.cs(6,14) : error CS0101: The namespace '' already contains a definition for 'Project_04' UATHelper: Packaging (Windows (64-bit)): ERROR: Unable to compile source files. UATHelper: Packaging (Windows (64-bit)): (see C:\Users\fotis\AppData\Roaming\Unreal Engine\AutomationTool\Logs\E+UE_4.18\UAT_Log.txt for full exception trace) UATHelper: Packaging (Windows (64-bit)): AutomationTool exiting with ExitCode=1 (Error_Unknown) UATHelper: Packaging (Windows (64-bit)): BUILD FAILED PackagingResults: Error: Unknown Error

I checked my source file and I can see the error however i have no idea as to how to fix it (i dont know code, i made everything in blueprints)

alt text

Product Version: UE 4.18
Tags:
codescrn.jpg (269.9 kB)
more ▼

asked Jun 11 '18 at 02:03 AM in Packaging & Deployment

avatar image

Pravok
9 5 5 10

avatar image Nachtmahr Jun 11 '18 at 10:38 AM

Probably the "." in your Class Name. Change it to a "_" instead aswell as your filename

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Changing the name to something with no "." fixed it. Thanks!

more ▼

answered Jun 12 '18 at 11:59 PM

avatar image

Pravok
9 5 5 10

avatar image Wir3d Feb 12 '19 at 11:37 AM

Just had this problem - my project name had 2 parts separated with "_" sign.

Error in Log told me that { is expected right after _ sign, so I've changed project name and it worked. I guess it is best just not to use any special characters as Unreal Engine project name. (doesn't apply to folder structure, just to the .uproject file name)

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question