XNA Creators Club Online
Page 1 of 1 (16 items)
Sort Posts: Previous Next

Policy on non-C# code

Last post 01-13-2008 1:50 PM by subsonicZ. 15 replies.
  • 12-15-2007 10:03 AM

    Policy on non-C# code

    In a thread regarding last year's DBP Dave Mitchell said the following:

    "That said however, any other engine, tools, etc. based on 100% managed code output in C# will be accepted.  What we won't accept is native libraries wrapped in managed code."

    and Mitch Walker said:

    "Any code or library used for the game must be written in C#.  So compiling the SpeedTree library with the /CLR switch doesn't cover this requirement, as it is still (as far as I know) a native C/C++ library."

    Although these "rules" were never laid out specifically in the Official Rules, do they still hold true for this year's DBP warmup?

  • 12-15-2007 11:09 AM In reply to

    Re: Policy on non-C# code

    Adam,

    According to MSDN-- code compiled using /CLR pure is not native code (http://msdn2.microsoft.com/en-us/library/85344whh(VS.80).aspx):

    Advantages of /clr:pure Better Performance: Because pure assemblies contain only MSIL, there are no native functions, and therefore no managed/unmanaged transitions are necessary. (Function calls made through P/Invoke are an exception to this rule.)
    Hence, if you recompile a native C++ library using /CLR pure the resulting DLL is pure and verifiable MSIL code. I am not a judge; this is what I know from having converted C++ libraries to MSIL before. The competition was a fantastic success and I agree that it would be useful to hear whether the aforementioned requirements apply.
  • 12-15-2007 11:50 AM In reply to

    Re: Policy on non-C# code

    Yup, I'm not disagreeing with your interpretation of 'native code'...

    This year source code needs to be submitted, so dodging the C# requirement by compiling C++ with the /CLR pure flag isn't going to fool anyone. I can understand the fact that the judges need to be able to read the source code and that if it's in the entrant's favourite obscure language that isn't going to help things, but I would expect Rare and Lionhead staff would have a harder time understanding C# than they would C++ given how they love it so. :)

  • 12-15-2007 12:02 PM In reply to

    Re: Policy on non-C# code

    I see nothing in the FAQ, the How to Play or the official rules which states that C# must be used ;-) It says you need a .ccgame and the source code!

    Of course we must wait for an official reply rather than speculate...



    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
  • 12-17-2007 7:13 AM In reply to

    Re: Policy on non-C# code

    I do hope that they allow all types of managed code that would run on both Win32 and Xbox 360.
    Granted 99.99% of of entries will be C#, but at least there is scope for other languages to show their stuff.
    There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.
    -= Paulo Coelho =-
  • 12-20-2007 7:14 AM In reply to

    Re: Policy on non-C# code

    We updated the FAQ. We allow C# source code only.

     

    ThorsLightning, Microsoft Research Cambridge

     

  • 12-20-2007 7:20 PM In reply to

    Re: Policy on non-C# code

    Doh! So no VB.NET, Chrome or any other 100% managed .NET compiler that works with XNA? That is a pity.
    It's not like the judges wouldn't understand the other bits of managed code.
    There are a lot of people who are dead while they are still alive. I want to be alive until the day I die.
    -= Paulo Coelho =-
  • 12-21-2007 12:21 PM In reply to

    Re: Policy on non-C# code

    ThorsLightning:

    We updated the FAQ. We allow C# source code only.

     

    ThorsLightning, Microsoft Research Cambridge

     



    This is senseless.

    Two months for developing a game AND convert a pre-existing tool for AI in C#... ridiculous.
  • 12-21-2007 12:53 PM In reply to

    Re: Policy on non-C# code

    Monkey Soft:
    ThorsLightning:

    We updated the FAQ. We allow C# source code only.

     

    ThorsLightning, Microsoft Research Cambridge

     



    This is senseless.

    Two months for developing a game AND convert a pre-existing tool for AI in C#... ridiculous.


    It makes perfect sense. The warmup content is about AI and requires source code. They need to be able to understand the code. If you give them a language they don't know, it will waste their time trying to figure it out as opposed to judging the actual content.

    If you want a quick way to convert to C#, simply compile your game, open it in Reflector, and set the language to C#. It will disassemble your MSIL and put it into C#. Then you can snag the C# real quick.


    Nick Gravelyn -- Microsoft XNA MVP
    Blog | Metacreature Games | Super Gravelyn Bros | Bloc | Next-Gen
  • 12-23-2007 5:19 AM In reply to

    Re: Policy on non-C# code

    So why cut down C++, a language I think judges will understand BETTER than C#?
  • 12-23-2007 6:39 AM In reply to

    Re: Policy on non-C# code

    Monkey Soft:
    So why cut down C++, a language I think judges will understand BETTER than C#?


    Possibly to make it so all games are the same language? I'm not a part of the decision making process, but it's possibly a mix of picking languages they know (that way someone doesn't give them something in Chrome, for example) and making sure everyone uses the same language so it's easier to judge from one to the next.


    Nick Gravelyn -- Microsoft XNA MVP
    Blog | Metacreature Games | Super Gravelyn Bros | Bloc | Next-Gen
  • 12-23-2007 12:46 PM In reply to

    Re: Policy on non-C# code

    The Dream Build Play competition is marketing promotion for XNA Game Studio... XNA Game Studio officially only supports managed code and specifically C#. So it makes total sense for the competition to allow only those technologies its trying to promote. Imagine the situation where MS are saying 'XNA Game Studio and C# are the way to go' and one of the winners of their competition used C++

    There are other competitions that don't have such a restriction http://www.garagegames.com/news/13960 and http://www.gamedev.net/community/contest/4e6/

     



    The ZBuffer News and information for XNA

    Please read the forum FAQs - Bug reporting
  • 12-23-2007 2:00 PM In reply to

    Re: Policy on non-C# code