CSharp AI Interface - Page 2

CSharp AI Interface

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

==Troy==
Posts: 376
Joined: 29 Oct 2008, 15:55

Re: CSharp AI Interface

Post by ==Troy== »

ivand wrote:
If you don't like it I don't care (c).
Please don't turn my thread into holywar.

This is exactly why I have asked not to come up with the MS marketshare.

There is a known statistics for this game specifically, it is about 40% (iirc) of linux players.

Hence your statement above does not apply to the issue I have raised in the relevance of your topic (i.e. your post was a troll).

The only thing I worry about here is the inability of spring getting into distributions, and hence gaining even more linux playerbase.

As aegis has explained, it seems like the C# interface will not be a problem for it, although I would like to have a bit more detailed explanation, in the sence of the case if spring games will require mono to run C# AIs.


I do not really mind this at all, as long as I am not required to install mono whenever I want to play spring on my computer.
ivand
Posts: 310
Joined: 27 Jun 2007, 17:05

Re: CSharp AI Interface

Post by ivand »

==Troy== wrote:
ivand wrote:
If you don't like it I don't care (c).
Please don't turn my thread into holywar.

This is exactly why I have asked not to come up with the MS marketshare.

There is a known statistics for this game specifically, it is about 40% (iirc) of linux players.

Hence your statement above does not apply to the issue I have raised in the relevance of your topic (i.e. your post was a troll).

The only thing I worry about here is the inability of spring getting into distributions, and hence gaining even more linux playerbase.

As aegis has explained, it seems like the C# interface will not be a problem for it, although I would like to have a bit more detailed explanation, in the sence of the case if spring games will require mono to run C# AIs.


I do not really mind this at all, as long as I am not required to install mono whenever I want to play spring on my computer.
Your first post here were not about things I was asking for. So I just replied to you, that you were trying to ignore significant ammount of people who using Windows and very happy with that. Basically as aegis told I offer another option and do not restrict you at all.

I hope that's it.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: CSharp AI Interface

Post by hoijui »

please, the two of you, stop abusing the quote feature.

Troy, you are really useless in this thread.
all the rest of us here know better how spring works (the AI part), then you do, and there is absolutely no harm that could be caused to spring users.
the main goal of the new AI interface for spring, is to attract AI devs, and not to get more AIs for the users. that is how i define it, and it is valid to define it like this. not to say that it is the only valid way to define it.
the only valid argument you have, is that if an AI dev comes to spring, and decides to write an AI, and his preferred language is C#, but he knows Java too. and if then we have a C# interface that only works under windows. and if he decides that user base is not important for him (cause it would be small, cause the interface is not shipped with spring). and if he would have written the AI in Java otherwise. and he does not care for his AI only running under windows.
that scenario is your argument.
aww.. no mood to go on.
this is free software, and he is writing a plugin for it. if you do not like it, do not use it.
ivand
Posts: 310
Joined: 27 Jun 2007, 17:05

Re: CSharp AI Interface

Post by ivand »

Good news about mono&my interface.
My test application which loads the AI interface, Sharp part of Proxy dll and NullSharpAI which have been compiled in Windows work in Mono environment under *nix without any recompilation.

The only question left is if proxy interface (I mean c++ to c# part) would work under *nix. Here I'd need some help from *nix guys.

Thanks.
==Troy==
Posts: 376
Joined: 29 Oct 2008, 15:55

Re: CSharp AI Interface

Post by ==Troy== »

hoijui wrote:please, the two of you, stop abusing the quote feature.

Troy, you are really useless in this thread.
all the rest of us here know better how spring works (the AI part), then you do, and there is absolutely no harm that could be caused to spring users.
the main goal of the new AI interface for spring, is to attract AI devs, and not to get more AIs for the users. that is how i define it, and it is valid to define it like this. not to say that it is the only valid way to define it.
the only valid argument you have, is that if an AI dev comes to spring, and decides to write an AI, and his preferred language is C#, but he knows Java too. and if then we have a C# interface that only works under windows. and if he decides that user base is not important for him (cause it would be small, cause the interface is not shipped with spring). and if he would have written the AI in Java otherwise. and he does not care for his AI only running under windows.
that scenario is your argument.
aww.. no mood to go on.
this is free software, and he is writing a plugin for it. if you do not like it, do not use it.

Most of my posts were a question to make sure that I, as a user, will not have to install mono on my PC to run an AI of a said developer, who prefers C# as his language.

That is all. I do not really care if spring will or will not have C# support, as long as it does not affect end-user in a negative way.
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: CSharp AI Interface

Post by aegis »

==Troy== wrote:
hoijui wrote:please, the two of you, stop abusing the quote feature.
also, my first post clearly said it wouldn't affect you.
ivand
Posts: 310
Joined: 27 Jun 2007, 17:05

Re: CSharp AI Interface

Post by ivand »

Another report with good news.

I've made an experiment to confirm the ABI compatibility between MSVC.dll and minGW Dll Loader (exactly the same model as with spring and my interface dll). Results are suprisingly positive (despite this http://www.angelcode.com/dev/callconv/callconv.html).

The MinGW loader can invoke the functions from MSVC dll using both stdcall and cdecl calling convention
Interesting that opposite is not true, i.e. calling SkirmishAI.dll(MinGW) from MSVC loader fails.

So nearest plan is to check ABI compatibility of (MinGW)spring and (MSVC) interface.dll

P.S. I'm still looking for brave one who'll test my interface under *nix, I was told that you are 40% of gaming community. C'mon show yourself. :)
User avatar
hughperkins
AI Developer
Posts: 836
Joined: 17 Oct 2006, 04:14

Re: CSharp AI Interface

Post by hughperkins »

Hi ivand,

You could test your interfaces on linux using Amazon EC2, or using VirtualBox.
Post Reply

Return to “AI”