Page 1 of 1

OpenRA - A deep dive into its source-code

Posted: Wed Oct 02, 2019 9:00 am
by Ronald
.

Re: OpenRA - A deep dive into its source-code

Posted: Wed Oct 02, 2019 9:19 am
by Ronald
.

Re: OpenRA - A deep dive into its source-code

Posted: Wed Oct 02, 2019 10:12 am
by abcdefg30
To A2/A3: VS 2019 Community is free, you just need to log in with a Microsoft or Skype account after the thirty day trial period.
For C1: You could try using Visual Studio Code with C# extensions.

Re: OpenRA - A deep dive into its source-code

Posted: Wed Oct 02, 2019 10:13 am
by penev
As for VisualStudio - the Community versions work perfectly for you. Minimal is probably 2017 by now, but you should just get 2019 anyway. Both VS 2017 Community and VS 2019 Community are easily available on Microsoft's website. You can also find older versions, but not as easily.

You don't need MonoDevelop if you're on Windows, since you already have VisualStudio. (Feel free to try it and see which is better though).
Same for SharpDevelop (I believe abcdefg30 is using that?)

Re: OpenRA - A deep dive into its source-code

Posted: Wed Oct 02, 2019 11:11 am
by dragunoff
VisualStudio Community 2019 is the easiest way to get started on Windows. The setup wizard gives a lot of options to install various tools and extensions but all you need (if I am not mistaken) is ".NET desktop development" (see attached screenshot).

OpenRA has launch configurations for VisualStudio so compiling/launching/debugging can be done with a click of a button. This of course can also be done from the command line (using the make command and launch scripts included with the engine).

You may need to update PowerShell as I'm not sure what version comes with Windows 7 (see here: https://docs.microsoft.com/en-us/powers ... wershell-6 )

Re: OpenRA - A deep dive into its source-code

Posted: Thu Oct 10, 2019 7:32 pm
by Ronald
.

Re: OpenRA - A deep dive into its source-code

Posted: Sat Oct 12, 2019 4:35 pm
by Graion Dilach
VS2015 only supports .NET Core 1.X. You'll need to bump it in the foreseeable future to atleast 2017 though.

Re: OpenRA - A deep dive into its source-code

Posted: Mon Oct 21, 2019 8:56 pm
by Ronald
.

Re: OpenRA - A deep dive into its source-code

Posted: Tue Apr 21, 2020 2:52 pm
by Matt
https://code.visualstudio.com/ is also a nice lightweight and Open Source way to explore the source code. https://code.visualstudio.com/docs/languages/csharp has a tutorial on how to get it going.

Re: OpenRA - A deep dive into its source-code

Posted: Mon Aug 17, 2020 11:08 am
by Ronald
.

Re: OpenRA - A deep dive into its source-code

Posted: Wed Aug 19, 2020 12:24 pm
by Adrian
I like OpenRa mod of Dune2000.
And I would like to explore some parts of source code of that.

I even start to read source code in C#.

So question:
Wouldn't it be impudence to ask at forum about some unclear (for me) parts of source code?

I am newbie in C#.
So it can be questions about C# in general and about OpenRa.
Is it normal here?
Or authors do not like this?

Re: OpenRA - A deep dive into its source-code

Posted: Wed Aug 19, 2020 3:38 pm
by Ronald
.

Re: OpenRA - A deep dive into its source-code

Posted: Wed Aug 19, 2020 8:51 pm
by SirCake
Hey Adrian,

it would certaily be a good idea to get c# basics going before asking the devs, and in my opinion the only way is to write some code yourself. Looking at it won't help much.

If you are new to programming in general, there are excellent tutorials all around the web, with example programs you can go for.

If you are experienced with other languages, I had the feeling that OpenRA code is quite advanced (I'm not an expert though), so take your time. Fortunately the setup and build process is quite simple, so you can experiment really quickly (change some code an see what happens).

Cheers

Re: OpenRA - A deep dive into its source-code

Posted: Fri Aug 28, 2020 3:14 am
by DoDoCat
SirCake wrote:
Wed Aug 19, 2020 8:51 pm
Hey Adrian,

it would certaily be a good idea to get c# basics going before asking the devs, and in my opinion the only way is to write some code yourself. Looking at it won't help much.

If you are new to programming in general, there are excellent tutorials all around the web, with example programs you can go for.

If you are experienced with other languages, I had the feeling that OpenRA code is quite advanced (I'm not an expert though), so take your time. Fortunately the setup and build process is quite simple, so you can experiment really quickly (change some code an see what happens).

Cheers
That is right, write codes and debug the engine, see what is going inside engine since all the source code is there