This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menuelse if (Parser.Said("But his delight is in the law of the LORD and in his law doth he meditate day rol"))
Quote from: Khris on Fri 09/08/2024 08:54:34Also, you say you're getting errors if you're parsing longer sentences. Can you give examples of what exactly is in your word list and relevant code?I think it's due to the text not being inputted exactly as it appears in the parser. If I put the entire sentence into the list of words, but only type part of the sentence into the game parser, it crashes the game with an error message that says, "Such and such is not in the dictionary or is an ignored word". So for some reason that happens if a whole sentence is in the list of words, but only part of it is typed into the parser in-game.
Psalm 1, Psalms 1
1, Blessed is the, man that walketh, not in the, counsel of the, ungodly nor standeth, in the way, of sinners nor, sitteth in, the seat, of the scornful
2, But his delight, is in the, law of the, LORD and in, his law doth, he meditate day, and night
3, And he shall, be like a, tree planted by, the rivers of, water that bringeth, forth his fruit, in his season, his leaf also, shall not wither, and whatsoever he, doeth shall prosper
4, The ungodly are, not so but, are like the, chaff which the, wind driveth away, wind drives away
5, Therefore the ungodly, shall not stand, in the judgment, nor sinners in, the congregation of, the righteous
6, For the LORD, knoweth the way, of the righteous, but the way, of the ungodly, shall perish, will perish
else if (Parser.Said("Psalm 1:1"))
{ dPsalm1v1.Start(); virtue[29]++; vice[29]--; virtue[13]++; vice[13]--; virtue[20]++; vice[20]--; virtue[8]++; vice[8]--; virtue[5]++; vice[5]--; virtue[10]++; vice[10]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("Blessed is the man that walketh not rol"))
{ dPsalm1v1.Start(); virtue[29]++; vice[29]--; virtue[13]++; vice[13]--; virtue[20]++; vice[20]--; virtue[8]++; vice[8]--; virtue[5]++; vice[5]--; virtue[10]++; vice[10]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("Psalm 1:2"))
{ dPsalm1v2.Start(); virtue[22]++; vice[22]--; virtue[18]++; vice[18]--; virtue[13]++; vice[13]--; virtue[12]++; vice[12]--; virtue[8]++; vice[8]--; virtue[14]++; vice[14]--; virtue[26]++; vice[26]--; virtue[2]++; vice[2]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("But his delight is in the law of the Lord and in his law doth he meditate rol")) //write to this length
{ dPsalm1v2.Start(); virtue[22]++; vice[22]--; virtue[18]++; vice[18]--; virtue[13]++; vice[13]--; virtue[12]++; vice[12]--; virtue[8]++; vice[8]--; virtue[14]++; vice[14]--; virtue[26]++; vice[26]--; virtue[2]++; vice[2]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("Psalm 1:3"))
{ dPsalm1v3.Start(); virtue[17]++; vice[17]--; virtue[5]++; vice[5]--; virtue[2]++; vice[2]--; virtue[28]++; vice[28]--; virtue[29]++; vice[29]--; virtue[14]++; vice[14]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("And he shall be like a tree planted by the rivers of water rol"))
{ dPsalm1v3.Start(); virtue[17]++; vice[17]--; virtue[5]++; vice[5]--; virtue[2]++; vice[2]--; virtue[28]++; vice[28]--; virtue[29]++; vice[29]--; virtue[14]++; vice[14]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("Psalm 1:4"))
{ dPsalm1v4.Start(); virtue[13]++; vice[13]--; virtue[5]++; vice[5]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("the ungodly are not so but are like the chaff which the wind driveth away"))
{ dPsalm1v4.Start(); virtue[13]++; vice[13]--; virtue[5]++; vice[5]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("Psalm 1:5"))
{ dPsalm1v5.Start(); virtue[5]++; vice[5]--; GiveScore(1); txtParser.SetText(""); }
else if (Parser.Said("Therefore the ungodly shall not stand in the judgement nor sinners rol"))
{ dPsalm1v5.Start(); virtue[5]++; vice[5]--; GiveScore(1); txtParser.SetText(""); }
//example
QuoteAs for the resolution thing, which version of AGS are you using, and what settings do you have in your configuration?I forget whether this happened on AGS 3 or AGS 2.7 the first time, I keep switching back and forth between them since I am simultaneously working on two different parts of my game. Now it's happening on AGS 2.7. But I guess it's not a big deal, it just seems to happen when I try running a backup file. I'm going to be making a new game file and combining the two parts I'm working on anyway, so I think that will fix it.
I tried to run a 640x400 game in a 1366x768 virtual machine and all of the fullscreen modes worked more or less. (Although this might be different on actual hardware).
QuoteFinally, I would strongly recommend doing a small demo for people to playtest, of just this particular bit (with only a few verses) before you spend a whole lot of time copying the Bible into AGS: you might get feedback that makes you rethink/tweak the gameplay mechanic to something that needs to be implemented completely differently.Yes, that's why I thought I'd try to make a smaller chapter for MAGS using just the Psalter. I'm not sure I'm going to meet the deadline at this rate, though, and certainly not going to win.
Quote from: Khris on Thu 08/08/2024 07:45:36This is one of these things that is very easy for a human but really convoluted and messy for a computer.Yep. That's why I was inputting everything one by one and trying to think of alternative ways I might spell or word something, and putting synonyms in as I went. Comparing translations for instance. Really tedious, but for the most part I found ways to make it work pretty well, as far as it being able to detect what I was trying to say as long as I had most of it there. It's just so time consuming, though. But I suppose with your module that will save me some time.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.051 seconds with 16 queries.