Author Topic: strange problem  (Read 5385 times)

0 Members and 1 Guest are viewing this topic.

Joey

  • Guest
Re:strange problem
« Reply #15 on: August 23, 2003, 07:20:51 PM »
maybe it would be easier if I showed you the logic  :P. here. i attached it.

Offline Joel

Re:strange problem
« Reply #16 on: August 23, 2003, 08:56:02 PM »
there's nothing wrong with that code that I can find. I created a blank game from the template game and pasted that code as a new logic in that game, then added all the appropriate words, and it worked fine.

so, do this:

Code: [Select]
if (said("examine")) {
  print("There is a man at the ticket counter, and a door that reads "
        "'bathroom'. Hey, is that shit on the ground near the bathroom door?");
}

// don't know the number off the top of my head;
// you should use defines anyway
reset(input_parsed);

if (said("talk","man")) {
   print("Hello.");
}

and see if that changes anything.

Joey

  • Guest
Re:strange problem
« Reply #17 on: September 27, 2003, 05:55:05 PM »
GRRR! this did not work either! how come in other games they dont need that command? and where exactly do i put the command? i tried putting it in numerous places and it wont work. i dont know whats wrong. and what about those numbers you were talking and the defines thing? i have #include defines.txt at the top and thats it. i dont know whats up here.

Offline Eigen

Re:strange problem
« Reply #18 on: September 28, 2003, 10:09:46 AM »
Joey, try putting the logic you attached into a new fresh game and see if it works. If it works then you know something in some other logic causes this.

Or maybe you've edited something in logic.000 or logic.090


-Eigen
Artificial Intelligence Competition

Joey

  • Guest
Re:strange problem
« Reply #19 on: September 28, 2003, 02:14:52 PM »
well if it worked with joel, it would work if i created a new game, so it must be something in a logic file. any ideas?

Offline Andrew_Baker

Re:strange problem
« Reply #20 on: September 29, 2003, 08:33:37 PM »
Yeah, check your other logics like Logic.000 to see if they are calling any logics that are parsing your commands before your current room logic is.  And I can't stress enough that you add some debug logic into your rooms, so by going into debug mode, you'll get a display of what's going on.
I hope you realize that one day I will devour the Earth.

Joey

  • Guest
Re:strange problem
« Reply #21 on: September 30, 2003, 01:39:37 PM »
im not so sure what you mean. what do you mean by see if other logics are parsing?

Offline Joel

Re:strange problem
« Reply #22 on: September 30, 2003, 07:04:14 PM »
Joey, would you mind sending me the game with full source? Of course, under the promise that I'll delete the entire thing immediately once I'm finished looking for your problem and that I won't release it to anyone else.

And do rebuild your vol files if you decide to do that, and let me know you've done it here, because I probably won't check the e-mail I've got listed here unless I know it's coming.

If you do that, I'll try to figure out exactly what's causing the bug.


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

Page created in 0.056 seconds with 21 queries.