Results 1 to 2 of 2

Thread: Interactive Fiction project in VB.NET

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2025
    Posts
    1

    Interactive Fiction project in VB.NET

    Hello there,

    Having been wanting to learn about VB.NET I decided to code a project to help me learn. The project is a Interactive Fiction game, formally known as text adventures, in which the player enters commands, such as north, take lamp or i (shows objects that are held).

    I have included the source code in an attachment, without the executable compiled file. The program needs four .xml files to run, which are in the folder containing the code. I have coded a path that compiles and runs for these four files, in the file program.vb . There is a solution file which works ok on my version of Visual Studio. It may be necessary to modify program.vb to put in the correct paths to the .xml files so that they can load.

    Features of the code are the use of .xml files to hold data, LINQ to query the xml files, and a simple version of the singleton design pattern. I have not coded any error handling.

    Any comments welcome
    Attached Files Attached Files

  2. #2
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,958

    Re: Interactive Fiction project in VB.NET

    Used to get this a lot, these days I tend to just use LF, rather than CRLF, and after adding a .editorconfig file to set the line ending the problem mostly went away. In the end I think I also needed to adjust some git configuration to stop it constantly converting files back to CRLF

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width