?

Log in

Sep. 30th, 2016 @ 06:38 pm C# and tiny caves
So for the past little while I've been trying to figure out C#. In order to do this, I thought, "let's program a game, that'll be fun!" It's a text adventure, but with windows and listboxes and so on.

Tiny Cave Adventure can be found here:
http://www.scougall.net/steven/tca.html

(To get updated as time goes on and I fix things.)

Updates 1/10/16 and 2/10/16: Fixing some basic things with the zip files and a hardcoded pathname I thought I'd gotten rid of.
About this Entry
[User Picture Icon]
From:vincentursus
Date:September 30th, 2016 05:36 pm (UTC)
(Permanent Link)
Unfortunately I get an error message that it's invalid when I try to open the Zip file.
[User Picture Icon]
From:sscougall
Date:October 1st, 2016 09:10 am (UTC)

Hm, weird.

(Permanent Link)
The zip file works for me.

I turned it into a .zip file with 7-zip, apparently. Maybe that's had something to do with it? I'll investigate.
[User Picture Icon]
From:sscougall
Date:October 1st, 2016 09:39 am (UTC)

OK, give it another shot

(Permanent Link)
It turned out to be a pretty dumb mistake!

Anyway, I've got two types of .zip file there now, and I've been able to download both to my PC and open them, so give it another shot.
[User Picture Icon]
From:vincentursus
Date:October 1st, 2016 12:46 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
Ignoring the warning that "...is not commonly downloaded and may be a threat" the downloaded file now opens successfully.
[User Picture Icon]
From:sscougall
Date:October 1st, 2016 02:51 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
I've virus scanned the zip files on my end and they should be fine. Mind you, this is The Internet.
[User Picture Icon]
From:vincentursus
Date:October 1st, 2016 08:14 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
Same here.

I've gotten an error message about it not being able to find a file under "C:\Users\Steven\" etc.

Would you like me to e-mail you the full text?

(At this point, I'm guessing your mailandnews.com e-mail address may no longer be valid.)
[User Picture Icon]
From:sscougall
Date:October 1st, 2016 10:18 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
Hah, mailandnews, I'd forgotten about them. Definitely no longer valid.

Yes, please, could you email me the full text of the error? Send it to me at s_scougall@hotmail.com.

[User Picture Icon]
From:sscougall
Date:October 1st, 2016 11:06 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
And sorry about all this hassle. This is the first time I've put a compiled C# program online, and I'm probably falling into all sorts of common traps and potholes.

I *am* trying to avoid any unforeseen dependencies. After redownloading the zip file to my computer and unzipping it to an entirely new directory, I renamed the Visual Studio directory and all other Tiny Cave Adventure directories. Continuing to need something under C:\Users\Steven means there's something extra and weird that I'm missing.
[User Picture Icon]
From:sscougall
Date:October 2nd, 2016 01:53 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
Thanks for the error message. I've put a newer version up that should have gotten rid of it.
[User Picture Icon]
From:vincentursus
Date:October 2nd, 2016 04:52 pm (UTC)

Re: OK, give it another shot

(Permanent Link)
Success.

Or at least I got farther than I did last time.
[User Picture Icon]
From:lirazel
Date:October 2nd, 2016 02:15 am (UTC)
(Permanent Link)
I got the file open, but when I try to enter any text in the text entry window, I just get the system "unhappy" sound and nothing happens. I did at one point get an exception box saying the system couldn't find part of a path, but I haven't been able to get it to come up again.

FYI, I am running Windows 10 Pro, version 1607, build 14393.222

[User Picture Icon]
From:sscougall
Date:October 2nd, 2016 03:42 am (UTC)

Hm.

(Permanent Link)
Hi Lira, thanks for giving this a shot.

Did you get a form open with the title Tiny Cave Adventure, with three windows in the top part and four in the bottom part? But nothing else happening?

The system "unhappy" noise could possibly be because the program's not expecting any text entry, you instead click on action verbs and objects, but they're not showing up.

Judging from Philip's errors and the path error you got, it sounds a lot like the program is expecting to find the engine and classlibrary stuff in a different directory.
[User Picture Icon]
From:lirazel
Date:October 2nd, 2016 12:36 pm (UTC)

RE: Hm.

(Permanent Link)
I did get the split screen with the four windows at the bottom, but all the options were greyed out and unresponsive.
Hope this helps!
[User Picture Icon]
From:sscougall
Date:October 2nd, 2016 01:58 pm (UTC)

Re: Hm.

(Permanent Link)
I've put up a newer version.

Under the main window, roughly in the center, there's a button. When you first start, everything is grayed out, you get some text in the main window about the Wizard of the Tiny Cave, and the button should be "Next". Are you seeing these? If you click on "Next" a couple of times, you get some more of the prologue, before you finally get control and everything becomes responsive.