AIBrain and 097, need help.

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
neizarr
Neophyte Poster
Posts: 30
Joined: Thu Dec 07, 2006 11:33 pm

AIBrain and 097, need help.

Post by neizarr »

I just finished converting my shard from an old 096 test core all the way up to 097 RC, everything compiled and seems to work except for AI_Brain, which I was using for some NPCs.

When the brain.src script tries to start a script, it returns errors such as :

WARNING: pkg/ai_brain/idle_nerves/graze.ecl: Unable to find module npc

I will admit, graze.src has no npc module, but it never had it before. Are all scripts started from a npc script supposed to now include module npc? What if I want to start a script that has nothing to do with npc movement and stuff? Although I can see how this would be very useful for the brain in being able to cut out all the messages for movement. If someone could explain why this is happening and how to fix it? I don't want to add use npc's to all my ai_brain scripts if that isn't going to fix the problem.

Thanks to anyone who can shed some light.
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Post by qrak »

Im not sure if this is it but there is a bug with mob.setwarmode in newest release candidate. You have to wait for new release or try to fire external script - start_script("warmode", mob).
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Your best bet is to get the latest 097 distro from the SVN and use the brain AI from that - its a completely rewrite (Brain 5.x, Krang edition) and is way better than previous releases.

My assumption is maybe you have an include file in the nerves that has use npc; inside of it.
neizarr
Neophyte Poster
Posts: 30
Joined: Thu Dec 07, 2006 11:33 pm

Thanks! You were right!

Post by neizarr »

I used a script updater for some of my upgrade to 097, and that threw in use npc all over the place, so I had to go back and remove those, and now I don't get that error anymore.

I will look into getting a copy of the distro though to see what the advantages are and how hard it will be to put in with all the stuff I already have for the old system.
Post Reply