Advertisement



Go Back   Zune Boards > Zune Discussions > Zune Games

New Member?



 
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Zune Games Discuss, request, share, and download Zune Games here. Having troubles with Zune Games? No problem, we can help.

Reply
 
LinkBack Thread Tools
Old 05-20-2008, 05:55 PM   #1 (permalink)
Jr. Zuner
 
djsnowflake410's Avatar
 
Join Date: Feb 2008
Posts: 34
Reputation: 10
Send a message via AIM to djsnowflake410
Default visual basic


could i deploy a visual basic program to my zune






djsnowflake410 is offline   Reply With Quote
Old 05-20-2008, 05:58 PM   #2 (permalink)
Vista Zune Styler
Premium Member
Experienced Zuner
 
HeXuS's Avatar
 
Join Date: Jun 2007
Posts: 186
Reputation: 37
Send a message via AIM to HeXuS Send a message via MSN to HeXuS Send a message via Yahoo to HeXuS
Default

Depends... the XNA is mainly formatted for Sharp and ++ (C# & C++), not the Visual Studio or Visual Basic series. There may be a plugin for VB though. Google ftw.
__________________

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





HeXuS is offline   Reply With Quote
Old 05-20-2008, 06:08 PM   #3 (permalink)
zB Programmer
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 975
Reputation: 118
Default

No you cant, XNA on the zune only supports C#




LedZepp is offline   Reply With Quote
Old 05-20-2008, 06:58 PM   #4 (permalink)
Jr. Zuner
 
djsnowflake410's Avatar
 
Join Date: Feb 2008
Posts: 34
Reputation: 10
Send a message via AIM to djsnowflake410
Default

well actually it does work with VB i think i havent tryed to deploy the game cuz its not finished yet but i think it should work.


Is there anyone who would be willing to help me fix all the things wromg with my game cuz basically right now its a 2 player fighting game which would be cool with wifi multiplayer like pong but i want to make it into a 1 vs computer game is there anyone who would be willing to help me code this?



djsnowflake410 is offline   Reply With Quote
Old 05-20-2008, 07:15 PM   #5 (permalink)
Jr. Member
 
Tiptup300's Avatar
 
Join Date: Apr 2008
Posts: 387
Reputation: 116
Default

C# is the currently the only supported language for the XNA API on the Zune.



Tiptup300 is offline   Reply With Quote
Old 05-20-2008, 10:59 PM   #6 (permalink)
Zuner
 
Join Date: May 2008
Location: WA
Posts: 71
Reputation: 12
Default

Here is an FAQ XNA Game Studio and other languages

Speculation on what you think SHOULD work is never a good idea.

Its possibly to get VB (or other languages) code running with XNA Game studio but you need to jump through a lot of hoops. Firstly you need to make sure that the language doesn't use its own libraries (the My. namespace in VB for example) which won't exist on 360 or Zune. Then you have to make sure your language doesn't use some of the odd parts of MSIL or rely on some parts of Reflection.

Even if you pass all those tests then the content pipeline and deployment add ins only work from c# so you need to make an empty c# project, add in content and reference the game you wrote as an assembly in VB.

So it will work, but its a lot of bother and you will get little or no support from anyone especially Microsoft.
__________________
Zman - XNA MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





TheZMan is offline   Reply With Quote
Old 05-21-2008, 07:10 AM   #7 (permalink)
Zuner
 
Join Date: Nov 2006
Posts: 74
Reputation: 9
Default

XNA Apps running under Windows are more flexible. With some work many different programming languages can be used, but will only run on your PC
http://www.alanphipps.com/VisualBasicdotNET-XNA.html (PC only)

However XNA apps that run under Zune are much more constrained. They must run the "CIL" intermediate code and run within the "sandbox" environment. They can only use the restricted libraries that are on the Zune.

The C# and VB .NET compilers can produce "CIL" code.
Regular C++ programs, older tools like Visual Basic or Visual C will not.
[There are some crazy options like CIL 'assembler' or C++/CIL]

As mentioned, the SDK currently only supports C#. This is where you should start.
It may be possible to port the (Zune compatible) XNA SDK to work with VB .NET, but I would wait for someone else to do the work for you (possibly for the XBox360)

IMHO If writing a new game, the C# language is sufficiently similar to Visual Basic that writing it in C# is almost as easy.



ZunePet is offline   Reply With Quote
Old 05-21-2008, 07:27 AM   #8 (permalink)
Zuner
 
Join Date: May 2008
Location: WA
Posts: 71
Reputation: 12
Default

Quote:
Originally Posted by ZunePet View Post
XNA Apps running under Windows are more flexible. With some work many different programming languages can be used, but will only run on your PC
http://www.alanphipps.com/VisualBasicdotNET-XNA.html (PC only)
The same rules that Alan uses to make a VB app run XNA will likley work just as well on the Zune. You just need to be careful - see my post above.

Quote:
However XNA apps that run under Zune are much more constrained. They must run the "CIL" intermediate code and run within the "sandbox" environment. They can only use the restricted libraries that are on the Zune.
ALL .Net apps run CIL/MSIL no matter what their platform. The Compact Framework which is used on the 360 and the Zune supports almost all MSIL instructions however its been reported that some languages will generate ones which do not. VB has not found to be one of them. the .Net runtime is what provides the sandbox and that sandbox exists in the desktop framework and the compact one.

The restricted libraries on the zune appear to be the same as the restricted libraries on the 360. They are actually not all that restricted. Windows.Forms, System.Net are the big ommisions. But the rules about which librararies to avoid applies to c# as well. The only issue is if your language needs to use some language specific ones. e.g the My. namespace in VB cannot be used.

Quote:
The C# and VB .NET compilers can produce "CIL" code.
Regular C++ programs, older tools like Visual Basic or Visual C will not.
[There are some crazy options like CIL 'assembler' or C++/CIL]
So?

Quote:
As mentioned, the SDK currently only supports C#. This is where you should start.
It may be possible to port the (Zune compatible) XNA SDK to work with VB .NET, but I would wait for someone else to do the work for you (possibly for the XBox360)
The SDK is jsut a .Net assembly that can be called from any language. The issue for VB.Net and other languages is that they may use parts of .Net that have not


Quote:
IMHO If writing a new game, the C# language is sufficiently similar to Visual Basic that writing it in C# is almost as easy.
That much I can agree with...
__________________
Zman - XNA MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





TheZMan is offline   Reply With Quote
Old 05-21-2008, 04:25 PM   #9 (permalink)
Jr. Zuner
 
djsnowflake410's Avatar
 
Join Date: Feb 2008
Posts: 34
Reputation: 10
Send a message via AIM to djsnowflake410
Default

http://www.alanphipps.com/VisualBasi...nstallXNA.html

so this won't work?

but anyways i know it would be easy to do it in C# but I have the entire program written in VB so i really don't feel like converting damn near 2000 lines of code into C#



djsnowflake410 is offline   Reply With Quote
Old 05-21-2008, 04:55 PM   #10 (permalink)
Zuner
 
Join Date: May 2008
Location: WA
Posts: 71
Reputation: 12
Default

It will work if you follow the rules in the FAQ...

Maybe if you explain which part of the explanation I made or the FAQ you dont understand then I can help
__________________
Zman - XNA MVP

To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.





TheZMan is offline   Reply With Quote
Old 05-24-2008, 12:54 PM   #11 (permalink)
Jr. Zuner
 
djsnowflake410's Avatar
 
Join Date: Feb 2008
Posts: 34
Reputation: 10
Send a message via AIM to djsnowflake410
Default

no i know it will work i just want to know now if someone will help me fix the code cuz right now its a two player game and i need want it to be 1 vs computer game



djsnowflake410 is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -8. The time now is 01:27 AM.

 
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC8
vB Ad Management by =RedTyger=
(C) ZuneBoards 2006-2007
Copyright © 2006 - 2008 Zune Boards | About Zune Boards | Legal | A member of the Crowdgather Forum Community