How do add custom traits?
Posted: Fri Nov 22, 2019 9:41 pm
Greetings,
is there a Tutorial how to add custom traits, if yes, where can i find it, if no, how to do it.
As far as my understanding goes it has to do with (for example the "example" mod) the "OpenRA.Mods.Example" folder, the Traits themself are in form of ".cs" files and it has something to do with the "OpenRA.Mods.Example.csproj"
if i add some stuff there and run the "make.cmd" with "all" command i get various errors displayed.
when i add entrys in the "OpenRA.Mods.Example"
<Compile Include="Traits\XXX.cs" />
i get the error like:
"C:\Program Files\dotnet\sdk\3.0.100\Roslyn\Microsoft.CSharp.Core.targets(59,5): error MSB3105: Das Element "Traits\XXX.cs" wurde im Parameter "Sources" mehrmals angegeben. Doppelte Elemente werden vom Parameter "Sources" nicht unterstützt."
translated to english it means the Element with the Parameter "Sources" has multiple entrys"
is there a Tutorial how to add custom traits, if yes, where can i find it, if no, how to do it.
As far as my understanding goes it has to do with (for example the "example" mod) the "OpenRA.Mods.Example" folder, the Traits themself are in form of ".cs" files and it has something to do with the "OpenRA.Mods.Example.csproj"
if i add some stuff there and run the "make.cmd" with "all" command i get various errors displayed.
when i add entrys in the "OpenRA.Mods.Example"
<Compile Include="Traits\XXX.cs" />
i get the error like:
"C:\Program Files\dotnet\sdk\3.0.100\Roslyn\Microsoft.CSharp.Core.targets(59,5): error MSB3105: Das Element "Traits\XXX.cs" wurde im Parameter "Sources" mehrmals angegeben. Doppelte Elemente werden vom Parameter "Sources" nicht unterstützt."
translated to english it means the Element with the Parameter "Sources" has multiple entrys"