OpenRA - A deep dive into its source-code

topic deleted

Information and discussion for custom maps and mods.
Post Reply
Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

OpenRA - A deep dive into its source-code

Post by Ronald »

.
Last edited by Ronald on Mon Oct 11, 2021 7:55 pm, edited 3 times in total.

Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald »

.
Last edited by Ronald on Mon Oct 11, 2021 7:28 pm, edited 1 time in total.

abcdefg30
Posts: 641
Joined: Mon Aug 18, 2014 6:00 pm

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

Post 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.

penev
Posts: 24
Joined: Tue Jan 20, 2015 4:09 pm

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

Post 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?)

User avatar
dragunoff
Posts: 8
Joined: Tue Jul 24, 2018 10:00 am

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

Post 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 )
Attachments
vs2019-setup-openra-development.png
vs2019-setup-openra-development.png (124.08 KiB) Viewed 10824 times

Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald »

.
Last edited by Ronald on Mon Oct 11, 2021 7:28 pm, edited 1 time in total.

User avatar
Graion Dilach
Posts: 277
Joined: Fri May 15, 2015 5:57 pm

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

Post by Graion Dilach »

VS2015 only supports .NET Core 1.X. You'll need to bump it in the foreseeable future to atleast 2017 though.

Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald »

.
Last edited by Ronald on Mon Oct 11, 2021 7:27 pm, edited 1 time in total.

Matt
Posts: 1144
Joined: Tue May 01, 2012 12:21 pm
Location: Germany

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

Post 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.

Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald »

.
Last edited by Ronald on Mon Oct 11, 2021 7:27 pm, edited 1 time in total.

Adrian
Posts: 73
Joined: Wed Feb 12, 2020 5:44 pm

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

Post 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?

Ronald
Posts: 166
Joined: Fri Aug 30, 2019 9:05 pm

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

Post by Ronald »

.
Last edited by Ronald on Mon Oct 11, 2021 7:27 pm, edited 1 time in total.

SirCake
Posts: 393
Joined: Thu Feb 04, 2016 5:40 pm

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

Post 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

User avatar
DoDoCat
Posts: 28
Joined: Wed Oct 10, 2018 1:20 am
Contact:

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

Post 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

Post Reply