[Loading Library -> C#]

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Jangan

Well-known member
Joined
Feb 2, 2018
Messages
2
I was wondering, any future plans to make us script/code in C# and just use the library as a base resource? C++ referencing confuses me a lot :P
 
Not likely. It would require a lot of work because i would need to create a C# wrapper for each C++ class. There are some other issues with it too like hooks, UE types..
 
i actually started this but seemed far too much effort you have to write a cli wrapper that has the ability to communicate to the c++ side and the c# side either way so yeah its a little much

might look into it again soon i could make it more simple like premade hooks and it would call the c# side to a function like this so its less work.

bool OnPlayerDamage(int AttackerID, string AttackerName, string AttackerTribe, int VictimID, string VictimName, string VictimTribe)
{
return true; //return false to reject damage
}
 
Last edited:
I would really really love a sexy feature like this, C++ has a niche market, if we expand to C# i think it would bring more developers to the site, including myself... atm im just playing around with c++/ue4
 
meh, at that point why stop at C# when languages like Java, Python and Javascript would work so much better with web interfaces and have a larger following? I honestly don't mind trying to learn C++ in order to create plugins
 
you should it's a more native language you have more control and its best to keep to the same language as the game when making such api's / plugins
 
Learning to program in C++ takes a great deal of time and a lot of real-world practice. Learning to program *well* in C++ can take years or decades, and some people never do.

Unless you use C++ for your job, few people have the time or energy to devote to learning low-level languages like C/C++. This is why there are millions of times more people who are proficient in higher level languages like Python, Java, and C#.

Of course, in some ways it may "better" to write any software in something like C++, but you could say the same about assembler. That doesn't mean it's the only way or even the best way. Having millions of times more qualified programmers available to work on a project is a devastating advantage.

In this case I suppose it depends on what purpose the author of this API has in mind for his wonderful creation. At the moment there is really only a tiny group of people to be able use his work to create things for the community, especially considering the total and complete lack of documentation. If you thought about how many programmers were interested in ARk as well as being experienced enough in C++ and motivated enough to dig through the API source code to try and work it all out... well I'd say you're going count them on two hands.

Just by creating some documentation he could massively expand his audience and allow all his wonderful work to be utilised by a much larger group of programmers.

And by considering expanding the work to include wrappers for C# or Java or even Python, you could take your potential audience into the thousands of people.

Just my thoughts. No offence intended to anyone :)
 
The API uses C++ not because it's 'better', but because it was the easiest way to start with, since Ark uses C++ too. Having a wrapper would be nice, of course, but creating it requires a lot of effort and time, moreover, the wrapper would require regular updates too.

Documentation is planned.. but again, how exactly it should look like? Ark has thousands of functions, it's very hard to cover them all. However, there are plenty of open source plugins to learn from and i'm usually trying to help devs as well.

At last, there are more plugin developers than you see here, just most of them don't release their plugins. As practice showed, even the people who just started learning C++ were able to start creating plugins.
 
I have had to document some work like yours in the past, and I know how incredibly difficult and often boring it can be, but it really is worth it when you see how many more people are able to make use of your work.

I think even a simple Wiki with just a few of the most commonly used functions and some really simple examples would be a truly massive help.

The great thing about wikis is that you can allow other people, perhaps just a few who you know and trust, to slowly add information over time. That way you're not stuck with doing everything all by yourself.

I'd be very happy to help you get started setting up a wiki at some point if you ever decide that was something you'd like to do.

In the mean time, thanks again for all your hard work.
 
This article was published two years ago, but it's still a very good idea.C++ really makes me miserable.C# is an easy language for me to learn.Hopefully, you'll be able to use C# to develop plug-ins someday.
 
i am trying to learn c++ but the only problem is that i dont know what kind of course should i take to be able to start a simple plugin , like all the course i download are simillar to any other language they just talk about variable and function and stuff like that if someone can just help me with what course to pick so i can find my way out thank u
 
Back
Top