Community

AGI Programming => Mega Tokyo AGI Archive => Topic started by: lemur on September 22, 2002, 06:10:34 PM

Title: Annoying problem with "W"-words...
Post by: lemur on September 22, 2002, 06:10:34 PM
Hi all,
This will probably sound stupid and odd to you:

I'm new to this AGI-dev stuff and I'm eating my fridge in frustration over a strange thing. I can't seem to add words beginning with "w" to the words.tok - file. The interpreter doesn't recognize them. I can add whatever other words I like except for "w"-words. Kinda annoying since I wanna have a "wallet" in my game :).

I use AGI Studio 1.35. Anyone came across this problem before? I've tried other fanmade games and there it works fine. I can't find anything I do wrong. Help! :)
Title: Re:Annoying problem with "W"-words...
Post by: Parabola on September 22, 2002, 08:45:24 PM
not a solution, just a thought. what about having the wallet as the inventory screen and carried objects are put in the 'wallet'?  :-\
Title: Re:Annoying problem with "W"-words...
Post by: CapTAmerik@ on September 23, 2002, 02:56:53 AM
Maybe you could use a 'money clip' (if you use the wallet for money)?

Or maybe a 'business card holder' when you use it for business cards?

CaptAmerik@
Title: Re:Annoying problem with "W"-words...
Post by: Cosmic R on September 23, 2002, 03:21:41 AM
I think that kinda defeats the purpose.  The problem is still there. what if he wanted wand? or willow, or wasp?
Title: Re:Annoying problem with "W"-words...
Post by: Te Rangi on September 23, 2002, 03:30:49 AM
I agree with Rainer. What's the point of making a solution to a problem that will still be there?
Title: Re:Annoying problem with "W"-words...
Post by: CapTAmerik@ on September 23, 2002, 04:20:45 AM
I'm not saying I possess the knowledge. I'd be one of the worst when it would come to giving you a programming solution to the whole W in .tok...

So I was just trying to come up with a creative solution, as I'm sure there are other words for 'wand', 'wasp' and 'willow' as well.

The point I'm making is this: if no one knows the problem exists, or no one knows how to deal with it, avoid it when making your game concept!
 
 :-\

CaptAmerik@

Title: Re:Annoying problem with "W"-words...
Post by: Te Rangi on September 23, 2002, 04:24:02 AM
Sorry for being a total bitch, but shouldn't we concentrate on finding a solution?
Title: Re:Annoying problem with "W"-words...
Post by: lemur on September 23, 2002, 04:50:25 AM
I've got all kinds of synonyms for the wallet. Like cash / money / billfold / etc... The strange thing is this, my code:

if (said("look","wallet")

And I write: "look wallet" I get an error: "logged an unknown word".

But if I write: "look cash" everything works fine! "Wallet" and "Cash" are in the same wordgroup:

billfold | cash | money | wallet

and the code says "look","wallet" (above) but still I can't use that word, but the other words in the same group?!?! strange isn't it? I noticed yesterday that some words work. Words that don't get recognized: war, walls, wallet, water. Words that get: woman, word, wuzz.

I've tried to take away the debug stuff but then I'll get the game-error, unrecognized word bla bla bla, instead which is pretty much the same :-)

Thanks for trying to help!
Title: Re:Annoying problem with "W"-words...
Post by: Te Rangi on September 23, 2002, 05:03:42 AM
No problem, lemur  ;)
Title: Re:Annoying problem with "W"-words...
Post by: Chris Cromer on September 23, 2002, 05:06:50 AM
Be sure to recompile your script after you alter the word list, if you don't recompile it then it won't know that the word exists(and give you the error).

That is the only time I have ever had that error before... so if that isn't it then I am not sure what is.
Title: Re:Annoying problem with "W"-words...
Post by: StrangeQuark on September 23, 2002, 09:44:17 AM
Try what Chris said.

Words that don't get recognized: war, walls, wallet, water. Words that get: woman, word, wuzz.

Looks to be only words starting with wa.
Title: Re:Annoying problem with "W"-words...
Post by: lemur on September 23, 2002, 11:16:09 AM
Chris: Yes I've recompiled all the scripts. Besides, the interpreter recognizes words that I've added AFTER the word "wallet". Would be great if someone had time to test this on their machine.

It's words that start with "wa", "wb" and "wc" aswell. Haven't tried how far up it goes, but "wo" works fine.
Title: Re:Annoying problem with "W"-words...
Post by: Jelle on September 23, 2002, 11:21:58 AM
Send it to me... And I'll try to find out what's wrong with it...
Title: Re:Annoying problem with "W"-words...
Post by: lemur on September 23, 2002, 11:42:06 AM
Jelle: Sure I could do that! But I meant if someone could just try to add the word "wallet" to their words.tok-file and see if the game understands it. Just a dumb-check to make sure there's no bug hidden somewhere...
Title: Re:Annoying problem with "W"-words...
Post by: Jelle on September 23, 2002, 12:26:40 PM
Oh sorry.

I have some W-words in my game: watch, who,...   and they all work!
Title: Re:Annoying problem with "W"-words...
Post by: David Smith on September 23, 2002, 09:08:51 PM
I'm sure this isn't it, but sometimes it's the little things. Are you sure that you didn't put a space before or after the word in the words.tok file. I did that once and it didn't work until I removed the space.
Title: Re:Annoying problem with "W"-words...
Post by: lemur on September 24, 2002, 12:32:09 AM
Thanks David and yes, I've made sure there are no spaces before or after the words.
Title: Re:Annoying problem with "W"-words...
Post by: Joel on September 24, 2002, 05:30:43 PM
I have some w words in my game (including some "wa" words), and they all work without any problems.

Have you tried deleting the problem word and then re-adding it?
Title: Re:Annoying problem with "W"-words...
Post by: lemur on September 25, 2002, 09:51:03 AM
Joel: Yes I have, hundreds of times! :-) I don't know how this works, but could it be a problem with the specific version of AGI-interpreter I'm using?

I'm using v2.936.
Title: Re:Annoying problem with "W"-words...
Post by: Kon-Tiki on September 25, 2002, 10:04:22 AM
I'm using v2.936 too, but it works fine (the word 'wall').

-Kon-Tiki-
Title: Re:Annoying problem with "W"-words...
Post by: Te Rangi on September 25, 2002, 10:13:24 AM
Maybe you should switch to SCI. It doesn't discriminate against the letter "W" like your AGI does.
Title: Re:Annoying problem with "W"-words...
Post by: Joel on September 25, 2002, 12:37:25 PM
It probably is not the interpreter version, but I can't say that for certain. If you're using the interpreter packaged with the template game that comes with the latest versions of AGI Studio, I'd recommend at least trying a different interpreter if not using another one all the time (as far as I can tell, sound doesn't work in the interpreter packaged with the template game...it's a hacked version 2.936 interpreter...an unhacked 2.936 interpreter is available at agidev.com).

The only other thing I can think to do is as was previously suggested. Post the words.tok file or send it to someone to look at it.
Title: Re:Annoying problem with "W"-words...
Post by: nio on September 25, 2002, 03:22:19 PM
Hello! I think it depends on the agi-studio version you are using. just try an other version.
Title: Re:Annoying problem with "W"-words...
Post by: Joel on September 25, 2002, 04:41:53 PM
also, have you tried running the game with NAGI?
Title: Re:Annoying problem with "W"-words...
Post by: Nick Sonneveld on September 25, 2002, 08:45:45 PM
lemur:
make sure the problem still exists and then could you email the files to sonneveld@hotmail.com ?

I'll have a look

- Nick
Title: Re:Annoying problem with "W"-words...
Post by: lemur on September 29, 2002, 05:33:18 PM
Thanks Nick, I'll do that!
Title: Re:Annoying problem with "W"-words...
Post by: Nick Sonneveld on October 02, 2002, 03:08:36 AM
I've found the problem, some bug make agi studio put the words in the wrong order (they need to be alphabetical) and the index was wrong also because of it.

Quick fix: delete wallet and enter it again.  I used AGI Studio 1.36.

See http://www.nailhead.org/agistudio/forum/viewtopic.php?p=50 (http://www.nailhead.org/agistudio/forum/viewtopic.php?p=50)

- Nick
Title: Re:Annoying problem with "W"-words...
Post by: Oliver on October 02, 2002, 07:22:54 AM
I've got the same problem (I just make the wallet a money bag)
Title: Re:Annoying problem with "W"-words...
Post by: lemur on October 03, 2002, 03:07:31 PM
Oliver: Yes, but if you wanna make a good game, or at least a decent one, the interpreter should understand obvious synonyms like "money bag"-"wallet". I think so anyway.

And the quickfix Nick suggested doesn't work for me.

Today as I was working in harmony with my game I got the same problem with the word "van". This is really shitty. The mother is extending!!! :-)

Could someone with some extra time on their hands write a quick and dirty tool that simply sorts the words inside the words.tok-file correctly?
Title: Re:Annoying problem with "W"-words...
Post by: Joel on October 03, 2002, 04:25:57 PM
Just a question regarding the quick fix -- did you save the WORDS.TOK file after deleting the word?

If not, try doing that. Delete the word. Save. Add the word. Save again. That may take care of it.
Title: Re:Annoying problem with "W"-words...
Post by: Nick Sonneveld on October 03, 2002, 06:35:10 PM
I could probably whip up a sorting tool but I'm still interested in fixing the original problem in agi studio.

- Nick
Title: Re:Annoying problem with "W"-words...
Post by: robingravel on October 03, 2002, 06:39:33 PM
I see no problem with ws but I still use agi studio 1.31.

Robin Gravel
Title: Re:Annoying problem with "W"-words...
Post by: Allen on October 04, 2002, 09:53:25 AM
Will it work with other versions of AGI Studio or is this happening on all of them?

-Allyb-
Title: Re:Annoying problem with "W"-words...
Post by: Jelle on October 04, 2002, 10:02:27 AM
Quote
I see no problem with ws but I still use agi studio 1.31.

Same here.
Title: Re:Annoying problem with "W"-words...
Post by: thesam on October 06, 2002, 02:31:00 PM
I had the same problem with a game I was working on, but it worked when I resaved the WORDS.TOK in the Windows port of the Linux AGI Studio, and later I found out that it worked with nailheads AGI Studio too. I believed it had something to do with my Swedish version of Windows 98, since everyone else was using the English one, and the Swedes I spoke with (the guys working on Lawman for hire)had the same problem.

TheSam
Still visiting this place from time to time
Title: Re:Annoying problem with "W"-words...
Post by: lemur on October 07, 2002, 02:46:39 PM
Joel: Yeah, I did. before, after, during, between. I really hate this bug and I even consider giving up the AGI-programming just in protest!!!! :-)
Title: Re:Annoying problem with "W"-words...
Post by: Nick Sonneveld on October 07, 2002, 06:57:03 PM
who else has a different language version of Windows AND has or had problems with AGI Studio?

- Nick
Title: Re:Annoying problem with "W"-words...
Post by: lemur on October 10, 2002, 09:48:42 PM
I use a swedish Windows 98 aswell. Maybe that's it then...