Fixing a few Hugo problems

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:smile: :sad: :eek: :shock: :cool: :-x :razz: :oops: :evil: :twisted: :wink: :idea: :arrow: :neutral: :mrgreen:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Fixing a few Hugo problems

Re: Fixing a few Hugo problems

by Tdarcos » Tue Dec 31, 2019 11:23 pm

Roody_Yogurt wrote: Mon Dec 30, 2019 12:03 pm
Tdarcos wrote: Sun Dec 29, 2019 8:34 pmI don't have a problem with the message routine.
Paul, text games are all smoke and mirrors. In many scenarios, if you change the messages correctly, the player can't tell any difference.
I see what you're getting at, use the message intercept for that message to check and actually perform the work. I considered that, but the easiest way to make errors is to change a procedure's function to something not normally expected. Or to quote the slogan of the fictional Good Intentions Paving Company, LLC, "We will pave it!" err, I mean "The road to hell is paved by Good Intentions." Much simpler to fix the code in DOENTER to handle the case I have - which can then allow me to use it in a later game if a double "inside" is needed - it will work correctly "out of the box. I could set up a flag to enable this feature, then offer it to you as an option for the next re;ease of Roodylib [ uf there will be one - for those who need it.

Plus if I insert the enter code in the message routine I have to duplicate all of the code that is normally handled nu DOENTER. I prefer simple and clean.

Re: Fixing a few Hugo problems

by Jizaboz » Tue Dec 31, 2019 11:08 pm

Tdarcos wrote: Tue Dec 31, 2019 11:00 pm
Jizaboz wrote: Mon Dec 30, 2019 3:33 pm
Ice Cream Jonsey wrote: Tue Dec 24, 2019 1:35 pm Guys, it's clear Jiz doesn't have the Hugo programming experience that Tdarcos does.
I only make stuff in Twine :(
Guys, let's try to convince Jiz to switch over to Hugo. He might be ready. After all, he's just hanging on by a thread!
Just kidding about Twine heh-heh

However yeah everything I have previously released to the public was created in Inform7.

Like I stated before, I do have experience in Hugo. I made a few prototypes and am still working on a full game with graphics and all. The old demo version is still available on Jizaboz.com in the Projects section if you’d like to try!

Re: Fixing a few Hugo problems

by Tdarcos » Tue Dec 31, 2019 11:00 pm

Jizaboz wrote: Mon Dec 30, 2019 3:33 pm
Ice Cream Jonsey wrote: Tue Dec 24, 2019 1:35 pm Guys, it's clear Jiz doesn't have the Hugo programming experience that Tdarcos does.
I only make stuff in Twine :(
Guys, let's try to convince Jiz to switch over to Hugo. He might be ready. After all, he's just hanging on by a thread!

Re: Fixing a few Hugo problems

by Jizaboz » Mon Dec 30, 2019 3:33 pm

Ice Cream Jonsey wrote: Tue Dec 24, 2019 1:35 pm Guys, it's clear Jiz doesn't have the Hugo programming experience that Tdarcos does.
I only make stuff in Twine :(

Re: Fixing a few Hugo problems

by Roody_Yogurt » Mon Dec 30, 2019 12:03 pm

Tdarcos wrote: Sun Dec 29, 2019 8:34 pm No, no, no, no, no. Again, I'm not trying to do anything with the message routine. I don't have a problem with the message routine.
Paul, text games are all smoke and mirrors. In many scenarios, if you change the messages correctly, the player can't tell any difference.

Re: Fixing a few Hugo problems

by Ice Cream Jonsey » Sun Dec 29, 2019 8:56 pm

Yeah, Roody! This is just the outline, Tdarcos wasn't going to make the WHOLE GAME like that!

Paul, you let this forum know what issues you're having, although Roody was right in that maybe God will step in to stop this game from ever being completed.

Re: Fixing a few Hugo problems

by Tdarcos » Sun Dec 29, 2019 8:34 pm

Roody_Yogurt wrote: Sun Dec 29, 2019 10:19 am I mean, it's not the content that bothers me, just the design. Paul, you are putting way too much effort into a "You can't do that." message. If anything, you should be making things work, like:
No, no, no, no, no. Again, I'm not trying to do anything with the message routine. I don't have a problem with the message routine.

What I have a problem with is I can't ENTER something that is on the same platform as me unless I get off the platform first. That was all. And the one line which is the "elseif code" is the exact spot where I have to make a change. For the condom issue I can, and would have, made a special before or after routine for that item if it came down to it.
Roody_Yogurt wrote: Sun Dec 29, 2019 10:19 am
>WEAR RUBBER
You roll off your girlfriend first.

You put on the rubber.
Some people have some misguided notion that not being able to do anything the player wants to do is part of the appeal of text games.
It was (at least partially) a joke, the guy waNts to get rid of the condom so bad he can' t even remember to get out of her, first!
Roody_Yogurt wrote: Sun Dec 29, 2019 10:19 am Paul, it really makes me wonder if you have played any text games written in the last 15 years that weren't written by Robb.
Drop the last 5 words of your sentence, and the answer is, "No." Same if you replaced those words with "that weren't written by you."
Roody_Yogurt wrote: Sun Dec 29, 2019 10:19 am As you are describing it, your game is not meant for people who like to play games, so please do not write it.
Jesus, what a buzzkill! You're judging a game I barely even wrote and basing it, not on the actual game itself, but on a scenario I made up in my head to show an example of what the game might look like.

I started this the first week in November, I have apent the last seven weeks.:
  1. Re-learning the language (I wrote my last game Tripkey about three years ago.)
  2. Figuring out the verbs that would be used for the program.
  3. Add grammar for the verbs not handled by verblib, verbstub and roodylib.
  4. Writing stub code for the verbs not handled by the built-in routines.
  5. Figure out how to use Roodylib (I had not used it on the games I wrote before.)
  6. Figure out how certain verbroutines do which things to know where or what I have to catch (like seting an attribute or chnging a property, pt adding a before or after routine and what I might have to replace (because it does not do what I need and I have to replace the routine to fix it.)
I shall definitely take your comments into heart, by including the following message:
"I'd like to thank Roody Yogurt for his strong encouragement that I not write this game."

Let me say a few things about what the game was intended to be about.
  1. I hadn't even thought of the use of a rubber after having used one.
  2. I have not played any of Robb's games.
  3. I simply wanted to write a game, and the condom thing was just something I threw in.
  4. The story of The Librarian is a story about a man who hears an announcement over the Radio that a local bank was doing a tie in with the Zenith Public Library. Open a checking sccount with $1,000 and bring a library book with you to show them, and they would credit your account with $300 (after hte account has been open 90 days, of course.)
  5. You discover you can't find your library card.
  6. Okay, you'll just apply for as duplicate. Only you can't find your driver's license.
  7. Scenario 1. Steal a book from the library, temporarily. May or may not work.
  8. Scenario 2. Burn down the library and in the resulting confusion, steal a book. Same issue as previous item.
  9. Scenario 3. Go get your license. Go to DMV, go through the fun of waiting in line, filling out forms, then waiting to be seen. May or may not require he have extra items for verification.
  10. Scenario 3A. Get driver's license, go back to library, get card, borrow book (this becomes the easiest scenario)
  11. Scenario 3B. Ger license, go back to library, apply for replacement card, discover you owe fines and a lost book fee. Do you have cash?
  12. Scenario 4. Blow up library to steal book instead of burning it down. Similar to scenario 2. Woe to you if you DROP the vial of nitroglycerine instead of PLACEing it on ground.
  13. Scenario 5. Locate one of your friends, get them to go to the library, then borrow a book for you.
  14. Flirt with librarian, ask her out, go by her place, seduce her, take her to bed and have sex, then ask her to give you a book temporarily. This is the only scenario where the sex incident would take place, and probably represents 1-5% of the game.
  15. Scenarui 6. Knock out the bookmobile driver, steal hia uniform and pick up books.
There may be other scenarios, some existing one might be used when one scenario is too difficult.

In fact, I'm going to add an EAST, MEDIUM< ans HARD MODE, each creating somewhat more difficult puzzles/obstacles along the way.

I did something like this in Tripkey. Two acts: First Act, get the Sentient Cottage Cheese to give you the tripkey, without blowing the nuclear reactor and making the game unwinnable.
Act two, once you get the Tripkey, you have to get to the exit. No problem, just find the exit token. Two choices:
* (1) meet the Casino Manager, (a man with so little patience with time wasters that if you bother him, he'll have you butchered and served as tomorrows fresh pork ribs) and givrhim something, whereupon if you go get him something he'll pay you. with the money, buy the exit pass.
*(2) Find the exit pass in the maze.

Re: Fixing a few Hugo problems

by Roody_Yogurt » Sun Dec 29, 2019 10:19 am

Anyhow, sorry, I've been meaning to post here for several days now just to acknowledge that no, I won't be helping with this thread. As much as I like helping with Hugo code (quick advice: instead of making the girlfriend a container, just use a "fucking" attribute and check for it accordingly), this whole scenario bothers me too much. I mean, it's not the content that bothers me, just the design. Paul, you are putting way too much effort into a "You can't do that." message. If anything, you should be making things work, like:
>WEAR RUBBER
You roll off your girlfriend first.

You put on the rubber.
Some people have some misguided notion that not being able to do anything the player wants to do is part of the appeal of text games. Paul, it really makes me wonder if you have played any text games written in the last 15 years that weren't written by Robb. As you are describing it, your game is not meant for people who like to play games, so please do not write it.

Re: Fixing a few Hugo problems

by Ice Cream Jonsey » Tue Dec 24, 2019 1:35 pm

Guys, it's clear Jiz doesn't have the Hugo programming experience that Tdarcos does.

Re: Fixing a few Hugo problems

by Flack » Tue Dec 24, 2019 6:56 am

Image

Re: Fixing a few Hugo problems

by pinback » Tue Dec 24, 2019 6:53 am

Tdarcos wrote: Tue Dec 24, 2019 2:30 am Further, that word already has legitimate uses as a noun. "When he plays craps he bets on the come line."
In that case, it is an adjective, not a noun. Perhaps you need to start diagramming your sentences.

Re: Fixing a few Hugo problems

by Tdarcos » Tue Dec 24, 2019 2:30 am

Jizaboz wrote: Tue Dec 24, 2019 12:47 am
pinback wrote: Mon Dec 23, 2019 6:36 pmunsubscribe
No shit. Our friend is breaking Hugo trying to make “come” a noun.
Speaking of come, Jiz, my friend, it's clear you have never programmed in Hugo. The "noun" propery is used to define the object if the player wants to refer to the object. *Thhe "name" is just for display and is not parsed. I know, I tried it. This way, if the user types "take come" I get to display a nasty message which, here. decorum prohibit mentioning.

Further, that word already has legitimate uses as a noun. "When he plays craps he bets on the come line." or preceded with, "She spit out his".

There is also (approximately) this dialog from Thpmas Harris' book Silence of the Lambs"
Hannibal Lecter: Clarice, are you alright?
FB I Agent Clarice Starling" Rafael threw come on me!

Re: Fixing a few Hugo problems

by Tdarcos » Tue Dec 24, 2019 2:10 am

pinback wrote: Mon Dec 23, 2019 6:36 pmunsubscribe
CR: Halo, ovo je robot za pretplatu.
PL: Witam, jest to Subskrybuj bota
RU: Здравствуйте, это подписаться бот
EN: Hello, this be subscription bot.

CR: Primili smo vaše subacribe/odjava zahtjev.
PL: Otrzymaliśmy prośbę o subacribe/anulowanie subskrypcji.
RU: Мы получили ваш подписку / отписаться запрос.
EN: We having received your request to subscribe / unsubscribe.

CR: Čestitam! Zahtjev za razgledavanje za potpuno pretplatu na sve poruke je odobren.
PL: Gratulacje! Wniosek o wycieczkę, aby w pełni zasubskrybować wszystkie wiadomości zostały zatwierdzone.
RU: Поздравляю! Заявка на полное подписку на все сообщения была одобрена.
EN: You are to be congratulations! Requesting by you to subscribe to all messages has was approve.




CR: Ovaj softver je savršen i provjeren, i pronašao grešku besplatno. Ako želite stupiti u kontakt, naša adresa je "
PL: To oprogramowanie jest idealne i został sprawdzony, i znalazłem błąd darmo. Jeśli chcesz się skontaktować, nasz adres to "
RU: Это программное обеспечение является совершенным и был проверен, и нашли ошибки бесплатно. Если вы хотите связаться с нами, наш адрес
EN: This software has perfeck is been and check, and founded no error free. If you wish to contact is, our address us:

Prescion Softwear
144 najveći country Avenue svijeta.
Zagreb 67, Croatia

* Translation service by Bing Translate

Re: Fixing a few Hugo problems

by Jizaboz » Tue Dec 24, 2019 12:47 am

pinback wrote: Mon Dec 23, 2019 6:36 pmunsubscribe
No shit. Our friend is breaking Hugo trying to make “come” a noun.

Sometimes, prototypes show our flaws. A “puzzle where you enter unix commands” seemed like a neat concept for my DPRK Hugo game, but the more Roody and I tinkered with it the more it just didn’t work. Rethink this one.

Re: Fixing a few Hugo problems

by pinback » Mon Dec 23, 2019 6:36 pm

unsubscribe

Re: Fixing a few Hugo problems

by Tdarcos » Mon Dec 23, 2019 5:26 pm

Flack wrote: Sun Dec 22, 2019 11:17 am > ENTER

Did you mean enter (SHOWER) or enter (PAUL'S GIRLFRIEND)?
Flack, when I was writing the article to 'fess up and admit what I was doing, I debated whether or not to put a line in. Then, for humor I put in " Inside her is some come." I even figured out how to get the parser to respond with that phrasing.

object come "come"
{
`noun "come"`
article "some"
in your_room
}

In non-testing mode it won't show up except for the two scenarios . I might reverse the results since the player won't be doing his girlfriend (whom it might be can be guessed if you remember the naame of the game) if he does the woman bare she's pissed (of course, the question being why she didn't notice he did not put one on.)

But I thought what I wrote was funny but yours was gut busting. You owe me for the cost of my hernia operation.

Re: Fixing a few Hugo problems

by Tdarcos » Mon Dec 23, 2019 4:56 pm

Roody_Yogurt wrote: Thu Dec 19, 2019 11:12 pm I tackled the coffin issue myself some years ago:

http://notdeadhugo.blogspot.com/2014/07 ... -code.html

In the end, as you'll see, I decided that it works best if you move the player to another room altogether when the coffin is closed.
Actually I was going to say the coffin scenario was (actually a ruse) because I didn't want to mention the "real" reason for being able to enter something on a platform with the player, but seeing the example you gave offered me some ideas I might use. I'm probably going to include the mortuary scenario after all
Roody_Yogurt wrote: Thu Dec 19, 2019 11:12 pm Probably makes more sense, though, to just say "There's no room on the table, with the coffin taking up so much space."
For the reason I admitted and was gut-busting-funny parodied by Flack, not being able to enter the thing on the same platform as the player isn't an option.
Roody_Yogurt wrote: Thu Dec 19, 2019 11:12 pm I hope you realize that the whole point of code segments like

Code: Select all

elseif player not in location
		VMessage(&DoGo, 3)       ! "You'll have to get up..."
	elseif object is openable, not open
are so people don't have to replace the whole routine.
Roody, I want to apologize; chalk it off to my vision problems. I thought I quoted one line above, and one line below, the line of code I was referring to.

The line in question is line 11,425 in roodylib.h version 4.1.2 or in the stock hugolib.h by coincidence is the exact same line number. It is:

elseif player not in location

What I did was quote the line and the two lines below it. So instead of referring to the ELSEIF statement I reweferred to the message. Since what I need to change involves an elseif, I do need to replace doenter.
Roody_Yogurt wrote: Thu Dec 19, 2019 11:12 pm Also, the room description text you're looking for is not called by DoGo. The stuff in the main window is written by DescribePlace and the stuff in the status bar is written by PrintStatusLine.
I was aware of that.
Tdarcos wrote: Tue Dec 17, 2019 1:59 pm The other thing is DescribePlace, it has a local variable place so that if the place to be described is not the location, it names the location, then the place. I suspect it nrrfs a place2, so if place's parent is not location it states location,
My comment might have been easy to miss, being in the middle of my message. So I know what I have to fix.

In the case of DoEnter I know exactly where, just not what. For DescribePlace I know exactly what, just not where.

Re: Fixing a few Hugo problems

by pinback » Mon Dec 23, 2019 7:40 am

Image

Re: Fixing a few Hugo problems

by Flack » Sun Dec 22, 2019 11:17 am

You have an overwhelming urge to take a shower.

> TAKE SHOWER.

Sorry, you can't take that!

> SHOWER

First you'll need to ENTER the shower.

> ENTER

Did you mean enter (SHOWER) or enter (PAUL'S GIRLFRIEND)?

Re: Fixing a few Hugo problems

by pinback » Sun Dec 22, 2019 11:13 am

This is the first thread on this BBS that I felt the urge to shower after I read it.

Top