Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I need samegame, clickmania, cubecrush, however you may call it. I need the game, hopefully in vb.net...atleast a basic structure, so that I can improvise on it..I have until 22nd dec to do this.... All I know is a bit of VB.Net, but not enough to create a full game... I referred to SameGame tutorial by Ben Marchant, but Visual C++ with MFC is something a student can't learn in 10 days..

I loved the Clickmania game by aaccoobb, but its in C#, a language I'm not acquainted with. If I could even get any directions as to how to convert this game to VB.Net, it'll work.

Clickmania Game[^]


I converted the whole c#Clickmania project using SharpDevelop 4.4(I had to install 3 other things before installing it), conversion was successful, but when I tried to open the solution, I got an error and it didn't open. Then, many more changes later, I was able to remove all errors manually somehow, but now I've got one that I can't even understand..something about resource culture and embedding.

Also, I'd like to create a game like the SameGame by Ben Marchant.. but only with vb.net.... adding the blocksize and blockcount features, undo-redo, 5 levels of 3,4,5,6,and 7 colors, and the like.

http://www.cprogramming.com/tutorial/game_programming/same_game_part1.html[^]

For this, I'd need to add the buttons to the form via the code.. maybe using arrays to set up the 15x15 board(how?), and I'd need to assign colors to the buttons (again, not using the button1.backcolor property, I guess), randomly set up or shuffle the buttons, know the color and location of each button(which button is next to which colored button) and all..

Sorry for my basic knowledge, but the only way I could hope for some answers is by being brutally honest.

If only I could get some elaborated pointers to tutorials or books that could help, I'd be grateful. And if I get help from here itself, even better. I really need to get this done fast.

Thank you for taking the time to read and reply. If any of you want, I'd provide the convertedToVb.net project so that you could check out the error.

I'd reposted by mistake as I'm still new to this site. But please reply, I have just one day now and really need your help.
Posted
Updated 21-Dec-14 22:10pm
v2
Comments
Tomas Takac 22-Dec-14 3:29am    
[no name] 22-Dec-14 3:47am    
I mentioned in this question that I reposted By Mistake.
I tried to delete the question, but couldn't. I posted this question because, if you observe closely, the queries in both posts are different. Also, the other one is closed. So, I had no choice but to actually post my question to get an answer.
BillWoodruff 22-Dec-14 5:28am    
You are wasting your time, and ours, by trying to port games from C# to VB.NET: what you should be doing is studying VB.NET WinForms to learn fundamentals: how you implement the same types of facilities found in any C# WinForms Application:

1. how you create an Application.
2. how you create Windows (Forms); how you put Controls on Forms and write EventHandlers for the Events they expose.
3. how you define Fields, Methods, Properties, Interfaces, Classes, and other structures; how you encapsulate these by access modifiers or syntax (NameSpaces)
4. how you implement looping (repetition)
5. how you communicate between (make interactive) Windows (Forms)
6. how you open, read, save Files
7. and, so on ...

If you try and learn VB.NET WinForms by porting obscure games in C#, you will lose yourself in obscure details and "translation" work-a-rounds.

Try and "think past" whatever short-term "crisis" you may think you are in, and focus on your long-range goals that will be achieved only by investing your time wisely.

1 solution

Why do you think that today someone will do your work for you?
Things are going differently around here - YOU bring the code, we bring the advise!
The basic of all developer work is learning, learning the subject, learning the tools, learning the environment...
I doubt that anyone can do this work in about 7 hours left from the 22th of December...
Even you have cod to show us to check for errors, you didn't do this! You not even care to post exact error messages, but left to our guessing to find what is should be...
You are asking for 'pointers' and 'tutorials', but probably didn't opened your browser to run some searches to find them for yourself...and they are out-there!
You also offer - very generously - your project source to us to debug it for you! Why! It's like you tell us that you time is much more precious, than ours. Let me correct this for you - we do not care for your time, not a bit...
 
Share this answer
 
Comments
[no name] 22-Dec-14 4:02am    
What are you getting so worked up and angry for, Peter? I don't want ANYONE to do my work for me, I simply need some help. And as for the angry Q's you mentioned in your 'solution':

1) The code is HUGE. Even after conversion from c# to VB.net, It had about 66 errors, including menial & syntactical('?:' c# statements were not correctly converted and it ruined the whole code) to big ones..but I solved them myself somehow with the help of the Internet, because I don't think I should bother anyone over here with petty errors that can be solved by applying some logic and using the internet.

2)Pointers and tutorials.... Don't you think I'd have searched for it all? I'm not a person of this field, but I did my best to search for anything that could help me...How do you think I stumbled onto the c# game, or this website? I only asked for pointers and tutorials because I thought you guys would know better.. I mean, most of the stuff I found wasn't very easy for an amateur to understand, or didn't exactly match the criteria.

3)Obviously not...I don't want anyone to "debug it for me", I only mentioned it because I thought posting my whole big code, or somehow including it as a zip file to the question would only give the message that you got...No one is free these days to download and take a look at someone else's project! I only meant if anyone is curious or generous enough to take a look at the code.

4)And here is your error.
The error :

System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure \"BlockBuster.MainForm.resources\" was correctly embedded or linked into assembly \"BlockBuster\" at compile time, or that all the satellite assemblies required are loadable and fully signed."
Source="BlockBuster"
StackTrace:
at BlockBuster.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at BlockBuster.My.MyProject.MyForms.get_MainForm()
at BlockBuster.My.MyApplication.OnCreateMainForm() in I:\_speeed\BlockBuster\BlockBuster\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at BlockBuster.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
BillWoodruff 22-Dec-14 5:36am    
Hi Peter, I believe I understand very well how you FELT while writing this, but I must ask you if this really should be posted as a "solution."
Kornfeld Eliyahu Peter 22-Dec-14 5:38am    
No. But I have no other way to remove this b***t from the list...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900