Making editors for cricket games

barmyarmy

Retired Administrator
Joined
Mar 12, 2003
Location
Edinburgh
There's probably a perception on this forum, one that I certainly used to hold, that making editors is incredibly difficult and only certain people can do it.
This is completely wrong.

Both myself and Sid have pretty much learned vb.net from scratch in 2/3 weeks, me with no background at all in programming and Sid without much. Huge thanks again to prakash for helping the two of us...

Anyhow we decided we'd like to help more members learn how to program so if you'll excuse two n00b's telling people what to do please read on. If you already know how to program and don't like sucking eggs, you can stop reading.

We're going to post a series of tutorials over the coming months for making an open-source Stats editor in the hope that once we've completed it lots of people will have been trying out what we've been posting and found that it really is that easy. :)

links to tutorials made so far

Colins introduction and message box program
Rating: Very Easy!

Colins second program: Cricket scorecard
Rating: Easy!

Embi's first introduction to variables
Rating: Medium

More programming basics from Embi (Functions, Subs, Properties)
Rating: Medium

Embi's text editor
Rating: Medium



Colin's Multiple abilities changer Part 1
Colin's multiple abilities changer Part 2
Colin's Multiple Abilities Changer Part 3
Rating: Looks complicated. Medium.

Colin's BLIC Lineup Display program
Rating: Easier than it looks. Medium.

Calculator Tutorial
Rating: Medium


Anyhow tutorial number 1 (courtesy of Sid):

We are going to start a series of walkthrough's just to show how easy making and learning VB.Net is.Its so easy that anyone can learn it.

We are going to make a Stats Editor using it, with which you can easily store,retrive,add and update all the stats for a player.This is an extremely useful utility to have. Our aim is to make sure that members learn and gain interest in VB.Net as we go through these walkthrough's.


These are the stuff you will need to start off.Most of you must already have the .NET Framework.So you can either use SharpDevelop or VB.NET Express Edition(requires XP Service Pack-2).

Links

VB.NET Express Edition - http://msdn.microsoft.com/vstudio/express/vb/

SharpDevelop - http://www.sharpdevelop.com/OpenSource/SD/Download/

.NET Framework V2 - http://www.microsoft.com/downloads/...cb-4362-4b0d-8edd-aab15c5e04f5&DisplayLang=en


YOUR FIRST APPLICATION-SHOWING A MESSAGE

Click on File-->New-->Project-->Windows Application

Give a name to your application(eg-firstap)

You will see a Source and Design.Click on Design and only worry about it for now.


You will see a Window called MainForm.This is the working area,where you can customise how your application will look like,its pretty cool and easy to do.

On the tools bar on the left,click on Windows Forms-->Button

Drag the button onto the form(the dots on screen).Resize it according to your needs.


Give it a name according to the picture shown below.(Make sure it is under Appearance).

msg.jpg


Now double click on this button to give some code to it.

Just type this where you have been taken to

Messagebox.Show("Im gonna make a Stats Editor")

msg2.jpg


So your code will look like so,basically on double clicking that button,you told what would happen when the user clicked that button,and this code messagebox.show...blah blah blah told what message would show on clicking that button.

You can write anything in place of 'Im gonna make a Stats Editor'(something decent hopefully) and it will show up.


TO run your application click on Debug->Run,and pray that it doesnt post any error messages.Just kidding let us know if it posts any error messages.

This will how the compile box will look(yipee,mine shows 0 errors)

msg3.jpg



Click on Message.This will how your program should run.


I wont post the final picture of how it looks after running the program.I want you guys to try and post it in this thread.

Thanks,and more coming up soon.

Please post any comments/suggestions/problems/reports in this thread.
 

BigCrickNan

Chairman of Selectors
Joined
Sep 11, 2005
Great stuff colin! :). I have one problem...I don't seem to have Windows XP service pack 2...:(
 

The Spin

Panel of Selectors
Joined
Sep 24, 2005
This sounds great! Good idea and will follow it myself. Hopefully it will bring on a whole range of editors!
 
Last edited:

barmyarmy

Retired Administrator
Joined
Mar 12, 2003
Location
Edinburgh
Drewska said:
Great stuff colin! :). I have one problem...I don't seem to have Windows XP service pack 2...:(

You can still do this. Just download Sharp Develop rather than Visual Basic Express.
Why don't you have SP2?
 

BigCrickNan

Chairman of Selectors
Joined
Sep 11, 2005
I'm not sure, really because I don't know what it is. I'll try the Sharp Develop thing, thanks.
 

barmyarmy

Retired Administrator
Joined
Mar 12, 2003
Location
Edinburgh
I'm not. I use Visual Basic Express. You'll have to ask Sid what version he uses as he wrote the first tutorial.
 

Briggsey

International Coach
Joined
Aug 29, 2004
Location
Bradford, UK
Online Cricket Games Owned
Ive just started to learn visual basic at university, and once you get the hang of it, its pretty dam easy to make just about anything so these tutorials should be spot on for would be editor creators!
 

BigCrickNan

Chairman of Selectors
Joined
Sep 11, 2005
Yipee! I got an error message :)
Performing main compilation...


c:\Documents and Settings\Owner\My Documents\SharpDevelop Projects\start\MainForm.cs(69,57): error CS1002: ; expected

Build complete -- 1 errors, 0 warnings
 

Ste

Executive member
Joined
Jun 27, 2002
Location
Southport, England
Online Cricket Games Owned
Can someone provide a tutorial of how to access and manipulate data from binary files in HEX format or any format for that matter from a C++ or VB program? That is something i would really love to know.
 

aussie1st

Retired Administrator
Joined
Dec 16, 2003
Location
Auckland
Great work Sid, I will give this a shot sometime down the road. Would be handy being able to create programs without going through uni to do it :D
 

jkartik

Chairman of Selectors
Joined
May 7, 2005
Location
Mumbai,India
Online Cricket Games Owned
excellent !! :) now, we dont have to depend upon you peeps for an editor :p ;) :D . nah, just kidding... keep up the good work :clap :clap

downloading now... will try and let you know soon ! :)
 

sid_19840

International Coach
Joined
Jun 28, 2005
Location
Kolkata,India
Online Cricket Games Owned
Drewska said:
Great stuff colin! :). I have one problem...I don't seem to have Windows XP service pack 2...:(

I dont have it either.Use Sharp Develop.

Drewska said:
Yipee! I got an error message :)
Performing main compilation...


c:\Documents and Settings\Owner\My Documents\SharpDevelop Projects\start\MainForm.cs(69,57): error CS1002: ; expected

Build complete -- 1 errors, 0 warnings

I forgot to say that after each line,you need to put a ;

There is a very easy way to correct error's.Yours is (69,57).Just go to line 69 and look for what is missing there.Yours is a missing ';'

Ste said:
Can someone provide a tutorial of how to access and manipulate data from binary files in HEX format or any format for that matter from a C++ or VB program? That is something i would really love to know.

That's pretty complex to post here.I found many such converter's in many code sites.Just google for them and you will find the codes.Cheers.

The Spin said:
Which version of sharp develop are you using Barmy?

I am using Version 1.1

&To all except Colin & Prakash:I am willing to give a rep to the person who first manages to finish the tutorial and post the output picture.
 

Prakash

Executive member
Joined
Mar 13, 2003
Location
India
Online Cricket Games Owned
The Spin said:
Which version of sharp develop are you using Barmy?
I would recommend you to use SharpDevelop2 Beta1 as SharpDevelop1 doesn't have the debugging feature.

Some vb.net sample projects
http://www.microsoft.com/downloads/...B9-5AEB-4F46-9BF0-2B3E3664BE77&displaylang=en
http://msdn.microsoft.com/vstudio/express/vb/learning/default.aspx (video of rss reader)
http://www.xtremevbtalk.com/forumdisplay.php?f=102 (Be sure to check out useful VB.net links thread)
http://www.xtremevbtalk.com/forumdisplay.php?f=103
 

jkartik

Chairman of Selectors
Joined
May 7, 2005
Location
Mumbai,India
Online Cricket Games Owned
i installed sharpdevelop( V1.1).. but i am a bit confused now !

first of all, when i go to new , there isnt a "new project" option.. and if i click "file" there are lot of options.. i am unsure what to do ! can anyone help me out

here are the pics
 

Attachments

  • 1.JPG
    1.JPG
    65.3 KB · Views: 565
  • 1a.JPG
    1a.JPG
    83.4 KB · Views: 556
Last edited:

Users who are viewing this thread

Top