Author Topic: Funny error  (Read 4923 times)

0 Members and 1 Guest are viewing this topic.

Mickey

  • Guest
Funny error
« on: August 13, 2004, 01:03:53 PM »
While developing an AGI-game, I unexpectedly found a rather mysterious error. It appears as if, whenever I enter a particular simple two-word command, there is an "I don't know that word"-error, even though I have properly entered the specific word into the words.tok-file.

This has never occurred before and for the game, it is imperative that the error be sorted out.



Offline Chris Cromer

Re:Funny error
« Reply #1 on: August 13, 2004, 03:11:47 PM »
You need to save the words.tok changes, then recompile logic 0, and 99 since those 2 files check the words.tok file for unknown words.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Mickey

  • Guest
Re:Funny error
« Reply #2 on: August 13, 2004, 04:27:52 PM »
Thanks, Chris, but I am sorry to report that it didn't seem to have any effect at all.

I am terribly confused. There seems to be no problem with the verb of the command nor the command as a unit.
Interestingly, it is the particular word for the accusative object that is refused; replacing it produces the desired result, which is more or less fucked up.

Offline Allen

Re:Funny error
« Reply #3 on: August 21, 2004, 09:24:03 AM »
Make sure that when you are testing input that you do it like this:

Code: [Select]
//Input

if(said("rock","me","boxers")){
print("Oh, that r0x0rs my b0x3rs.");
}

note that there is a comma between words.
« Last Edit: August 21, 2004, 09:25:28 AM by Allen »
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Mickey

  • Guest
Re:Funny error
« Reply #4 on: August 22, 2004, 04:06:17 AM »
Some days have passed since my last post.

Perhaps I should have mentioned at an earlier moment that I have already taken care of this error. It's not a problem anymore.
However, I don't recall what the mistake in the code was.
I'd guess it'd be interesting for educational purposes to know, but I really don't give a fuck.
Allen's suggestion wasn't completely on target, since it did produce an error, but not the one I fought my way through.

So problem's fixed, thanks for the help anyway.


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.057 seconds with 21 queries.