1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Off-Topic

My examproject in programming

  • Zacker
  • April 20, 2006 at 9:54 AM
  • Zacker
    • April 20, 2006 at 9:54 AM
    • #1

    For the first time ever I have had programming as a subject in school this year. As a final project for this year I have naturally chosen to develop a game.

    It's a mostly textbased simple hack&slash game. The interface language is danish, but it's rather simple so you should have a chance even with no knowledge of danish. Programmed in Visual Basic.NET and therefore requires the .NET framework 1.1.

    It needs to be done at May the 5th, so the game is for a large part done by now. There are however still a few features to implent and also lots of QA and gameplay tweaking left.

    Download:

    http://www.thefuture.dk/skole/Programme ... rojekt.exe

  • RD
    • April 20, 2006 at 5:59 PM
    • #2

    pics?

  • Zacker
    • April 20, 2006 at 7:26 PM
    • #3

    It's a VB.NET program, so it's text and buttons in a window which is not really worth showing pictures of. Besides it's jsut a 300kb download, so should not take long to check out:)

  • RD
    • April 20, 2006 at 9:48 PM
    • #4

    i ran the .exe and windows complains about security and disables half of the functionality, eventually shutting it down. Besides that its in danish and i only understood the word "angrib". Attack right?

  • Zacker
    • April 21, 2006 at 1:21 PM
    • #5

    Sounds like an issue with missing framework or so. And yep, "Angrib" means "Attack":)

  • Thrik
    • April 21, 2006 at 2:08 PM
    • #6

    Can't really comment since I don't understand a word.

  • Johnny
    • April 21, 2006 at 7:49 PM
    • #7

    who takes visual basic

  • Zacker
    • April 21, 2006 at 9:09 PM
    • #8

    We have never been offered programming as a subject before in this last year of high scool. Naturally I took it regardless of what language we would be programming in.

    Here is what I had to say about "The life of a Visual Basic coder" after half a year:

    http://chelsea.wesowe-is.nl/~sandsofw/f ... php?t=1675

    Screenshot of version 3 which looks rather similar to the current version:

    [Blocked Image: http://www.thefuture.dk/skole/Programmering/Eksamensprojekt/v3.png]

  • Section_Ei8ht
    • April 22, 2006 at 3:18 AM
    • #9

    great...

    now try writing in a real programming language.

  • ReNo
    • April 22, 2006 at 4:37 AM
    • #10

    What other languages have you tried Zacker? I noticed you seemed to mention c++/java in your post on the SoW forums, how long you been using them? I've never used VB myself, but in my school all we got to do was a little bit of pascal, so count yourself lucky

  • wacko
    • April 22, 2006 at 6:15 AM
    • #11
    Quote from Section_Ei8ht

    great...now try writing in a real programming language.

    Even though I hate vb.net I will have to defend zacker here in that vb.net is a powerful language when it comes to .net programming and in many cases can be just if not more efficient that something like c++ on the windows platform.

    We see many good things come out of vb.net for example a good chunk of xbox live for the xbox 360 was written in vb.net/c# and we are seeing more and more on the graphics front with managed DX and looking forward to that we are seeing that these languages such as vb.net are starting to meet the needs of even the more seasoned programmer.

    I would like to give you an example 

    lets take a simple windows application written in vb.net:

    public Class Form1 inherits System.Windows.Forms.Form

    Private Sub InitializeComponent()

    End sub

    End Class

    For the most part this is all that’s needed for a windows application in vb.net now lets goto a c++ application and all we want to do is create a window with our application and this is a full on c++ app none of that CLR Visual c++ stuff.

    C++:

    #include “windows.h”

    LRESULT APIENTRY WndProc(HWD hwnd,UNIT msg,WPARAM wParam,LPARAM lparam);

    Int APIENTRY WinMain(HINSTANCE hInst,HINSTANCE hPrev,LPSTR cmdline,int cmdshow)

    {

    HWND hwnd;

    WNDCLASS wc;

    Wc.lpfnWndProc = (WNDPROC)WndProc;

    wc.lpszClassName = "TheWindowClass";

    RegisterClass(&wc);

    hwnd = CreateWindow("TheWindowClass","Title",WS_OVERLAPPEDWINDOW,0,0,640,480,0,0,hInst,0);

    ShowWindow(hwnd,SW_SHOW);

    UpdateWindow(hwnd);

    Return 0;

    }

    Now I am sure you can see here the code involved is quite larger for doing something so very straight forward as creating a window. So to say that vb.net is not a real programming language just shows how ignorant you are in your programming. I do not know of many programmers today that would say well I am going to write this code in c++ over vb.net/c# on the windows platform.

  • wacko
    • April 22, 2006 at 6:16 AM
    • #12

    is this a .net 2.0 application ? you can get ride of that security stuff in the properties of the project.

    edit: I see this is a 1.1 application I would recommend upgrading it to a 2.0 application. try out VB.net Express which is free and I recommend that all of you who have never tried programming in VB.net or c# to grab it and try it out.

    http://msdn.microsoft.com/vstudio/express/vb/

    http://msdn.microsoft.com/vstudio/expre ... fault.aspx

  • wacko
    • April 22, 2006 at 6:21 AM
    • #13

    just a comment not being able to read it you shoudl create locale files in XML that way those of us who live in the english speaking world can read it

  • Zacker
    • April 22, 2006 at 10:34 AM
    • #14

    We unfortunately haven't had any choice regarding what language we want write in. VB.NET 2003 is what they got at our school at what our teacher knows, so we are limited to that.

    I have tried a bit of everything including c++, java, php, asp, ti-basic, actionscript and dos/bat. In Java I have made some small programs and games, but I haven't used that language for some years now. The only c++ I have done is small parts of the SoW1 and SoW2 code.

    I considered having xml localization files but that would probably be out of the project scope.

  • Skjalg
    • April 22, 2006 at 2:19 PM
    • #15

    you should display how much health one has (in numbers) and how much it costs to purchase food and weapons... (also in numbers)

    Aside from that, its super :]

    edit. got an errror: (unhandled exception)

    Code
    See the end of this message for details on invoking 
    
    
    just-in-time (JIT) debugging instead of this dialog box.
    
    
    
    
    ************** Exception Text **************
    
    
    System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
    
    
       at Microsoft.VisualBasic.FileSystem.FileGet(Int32 FileNumber, ValueType& Value, Int64 RecordNumber)
    
    
       at Eksamensprojekt.Form1.Gem_Highscore()
    
    
       at Eksamensprojekt.Form1.Angrib_f()
    
    
       at Eksamensprojekt.Form1.Flygt()
    
    
       at Eksamensprojekt.Form1.Flygt(Object sender, EventArgs e)
    
    
       at System.Windows.Forms.Control.onclick(EventArgs e)
    
    
       at System.Windows.Forms.Button.onclick(EventArgs e)
    
    
       at System.Windows.Forms.Button.onmouseup(MouseEventArgs mevent)
    
    
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    
    
       at System.Windows.Forms.Control.WndProc(Message& m)
    
    
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    
    
       at System.Windows.Forms.Button.WndProc(Message& m)
    
    
       at System.Windows.Forms.ControlNativewindow.OnMessage(Message& m)
    
    
       at System.Windows.Forms.ControlNativewindow.WndProc(Message& m)
    
    
       at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    
    
    
    
    
    
    ************** Loaded Assemblies **************
    
    
    mscorlib
    
    
        Assembly Version: 1.0.5000.0
    
    
        Win32 Version: 1.1.4322.573
    
    
        CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
    
    
    ----------------------------------------
    
    
    Eksamensprojekt
    
    
        Assembly Version: 1.0.2301.23183
    
    
        Win32 Version: 1.0.2301.23183
    
    
        CodeBase: file:///C:/Documents%20and%20Settings/Skjalg%20M%E6hre/Desktop/Eksamensprojekt.exe
    
    
    ----------------------------------------
    
    
    System.Windows.Forms
    
    
        Assembly Version: 1.0.5000.0
    
    
        Win32 Version: 1.1.4322.573
    
    
        CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
    
    
    ----------------------------------------
    
    
    System
    
    
        Assembly Version: 1.0.5000.0
    
    
        Win32 Version: 1.1.4322.573
    
    
        CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
    
    
    ----------------------------------------
    
    
    System.Drawing
    
    
        Assembly Version: 1.0.5000.0
    
    
        Win32 Version: 1.1.4322.573
    
    
        CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
    
    
    ----------------------------------------
    
    
    Microsoft.VisualBasic
    
    
        Assembly Version: 7.0.5000.0
    
    
        Win32 Version: 7.10.3052.4
    
    
        CodeBase: file:///c:/windows/assembly/gac/microsoft.visualbasic/7.0.5000.0__b03f5f7f11d50a3a/microsoft.visualbasic.dll
    
    
    ----------------------------------------
    
    
    
    
    ************** JIT Debugging **************
    
    
    To enable just in time (JIT) debugging, the config file for this
    
    
    application or machine (machine.config) must have the
    
    
    jitDebugging value set in the system.windows.forms section.
    
    
    The application must also be compiled with debugging
    
    
    enabled.
    
    
    
    
    For example:
    
    
    
    
    
    
    
    
    
    
    
    
    When JIT debugging is enabled, any unhandled exception
    
    
    will be sent to the JIT debugger registered on the machine
    
    
    rather than being handled by this dialog.
    Display More

    No idea if that helps or if its just some crap:P

  • Zacker
    • April 22, 2006 at 4:44 PM
    • #16

    New version up which includes numerical display of health values along with prices.

  • Section_Ei8ht
    • April 22, 2006 at 5:19 PM
    • #17
    Quote

    So to say that vb.net is not a real programming language just shows how ignorant you are in your programming. I do not know of many programmers today that would say well I am going to write this code in c++ over vb.net/c# on the windows platform.

    I was being sarcastic :roll:

  • wacko
    • April 22, 2006 at 8:09 PM
    • #18
    Quote from Zacker

    We unfortunately haven't had any choice regarding what language we want write in. VB.NET 2003 is what they got at our school at what our teacher knows, so we are limited to that.I have tried a bit of everything including c++, java, php, asp, ti-basic, actionscript and dos/bat. In Java I have made some small programs and games, but I haven't used that language for some years now. The only c++ I have done is small parts of the SoW1 and SoW2 code.

    I considered having xml localization files but that would probably be out of the project scope.

    well give me the source and I will make the localization files

  • Zacker
    • April 22, 2006 at 9:55 PM
    • #19

    You mean that you can make my code work with localization files? That would indeed be sweet:)

    Edit:

    New version up including a fully working highscore system, more helper texts when you hover over buttons and solutions for other random issues.

  • Skjalg
    • April 24, 2006 at 1:38 AM
    • #20

    The helper text and numerical stuff made the whole thing much better, great job! Could you explain the difference between exploring more and moving onto a new territory?

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Custom Gamemodes Contest

    Angel
    July 20, 2026 at 11:46 AM
  2. FAQ

    Angel
    July 20, 2026 at 10:14 AM
  3. Tangerine

    Harry Poster
    July 18, 2026 at 11:10 AM
  4. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  5. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  6. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  7. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  8. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  9. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  10. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM

Users Viewing This Thread

  • 2 Guests
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™