Pages: [1]
  Print  
Author Topic: Editing bot chat files - OA doesn't recognise random strings  (Read 7139 times)
chaoticsoldier
Member


Cakes 18
Posts: 375


This space intentionally left blank.


« on: April 26, 2009, 07:38:13 AM »

I recently started redoing the bot chat files. I started with Skelebot.
So far, I've created some lines for skelebot_t.c as well as some random strings for rnd.c (some of which are referenced in skelebot_t.c.)

When Skelebot tries to use a random string in his speech (for example, interjection_negative), this error appears:
Error: BotConstructChat: unknown random string interjection_negative

I attached the files as they were when I used them. Can somebody take a peek at them and tell me what I did wrong?

Thanks Wink
Logged

0101100101101111011101010010011101110110011001010010000001101010011101010111001101110100001000000111011101100001011100110111010001100101011001000010000001111001011011110111010101110010001000000111010001101001011011010110010100101110
andrewj
Member


Cakes 24
Posts: 584



« Reply #1 on: April 26, 2009, 09:12:10 PM »

I had a good look at your chat files and the chat loading code.  Couldn't find anything wrong, except that your "action_interfere" is missing a terminating '}'.  Perhaps that is enough to abort loading your rnd.c and hence the messages about missing random strings.  Also you use "peeps" in skelebot_t.c but haven't defined that in rnd.c
Logged
chaoticsoldier
Member


Cakes 18
Posts: 375


This space intentionally left blank.


« Reply #2 on: April 27, 2009, 01:52:35 AM »

Thanks for that.  I added the } and a few semicolons that were missing to but the error still occurs.
I haven't finished editing all of Skelebot's lines yet, so I'll see what happens when his _t.c file is complete.
Logged

0101100101101111011101010010011101110110011001010010000001101010011101010111001101110100001000000111011101100001011100110111010001100101011001000010000001111001011011110111010101110010001000000111010001101001011011010110010100101110
SharpestTool
Lesser Nub


Cakes -27
Posts: 143


« Reply #3 on: April 27, 2009, 09:09:46 AM »

EDIT: FOOT IN MOUTH..SPOKE TOO SOON
Logged
chaoticsoldier
Member


Cakes 18
Posts: 375


This space intentionally left blank.


« Reply #4 on: April 29, 2009, 09:35:08 AM »

I've finished Skelebot's _t.c file for the time being (although it's not totally complete. I'm working on about 6 bots at once). When I tried it again along with rnd.c, it worked fine.

I have a theory on what might have caused the problem before. It was something I didn't mention previously.

What I was doing was this: I wanted to test out the interjection_negative string, so I made about half a dozen of Skelebot's comments say that. Maybe there was too much repetition? I don't know if there is a limit on how many times you can reference the same string in the one  _t.c file. (However, it was recognising none of the random strings, not just the interjection_negative string.)

Anyway, it's working properly now and progress will continue. Smiley
Logged

0101100101101111011101010010011101110110011001010010000001101010011101010111001101110100001000000111011101100001011100110111010001100101011001000010000001111001011011110111010101110010001000000111010001101001011011010110010100101110
cosmo
Member


Cakes 18
Posts: 372


on a dead horse


WWW
« Reply #5 on: April 30, 2009, 04:06:17 AM »

Good! Keep it going.
Logged

- HUNT HIGHSCORES - mapping - xmpp://cosmo@spaceboyz.net
Pages: [1]
  Print  
 
Jump to: