plugin::RandomRoam
Been trying to use the plugin::RandomRoam but it will not work no matter how I try to use it. I go in Crescent Reach and watch a_grove_snake and a_grove_hare wandering around randomly so I copy one of those lua scrpts to another zone then rename it according to the npc I want it to work on and still nothing. I have los in the zone. What is the catch with this plugin?
|
Quote:
|
Quote:
What version of the plugin are you using too? Are you using the updated plugins from the eqemu_update.pl script? |
Quote:
This is an example of that last script I tried in perl. I have tried the plugin with varying z and los values as well as letting it use default values like this plugin::RandomRoam(500, 500); Code:
my $random=int(rand(100)+1); Quote:
|
Quote:
|
So after some more testing I replaced my map files with the ones from the eqmu_update.pl script and it partially fixed the pathing problem. Some of the npc's do path when using plugin::RandomRoam but others do not. The problem seems to vary according to the terrain. Npc's on hillsides are the ones that will not path correctly. So the z axis of the spawn is likely the culprit. Any other suggestions or idea?
|
Just curious, do the .path files factor in to this in any way ?
I know I have an extra 14 .path files in my map folder that don't come with the update script download. These are ones I have scrounged from around the internet, etc. |
After a lot of trial and error I finally got a lot of the npc's in my zone to move. For some reason the perl script I was using was not working reliably no matter how I changed it and I do not understand why. I ended up using the lua scripting from crescent reach to make my npc's wander around randomly. I would love to know what was wrong with the perl script but as long as the npc's move around it is all good.
Thanks for the help guys. |
Post your script
|
I was using the script I posted above. I tried it with different roam box sizes, different timer values and still nothing. I even tried adjusting the x, y and z values on the npc spawn data and still it only partially functioned. There are some weird redefines going on in the log files which I will post when I get home later today. This weekend I will have more time to tinker with this so I am going to compile my own binaries with more logging enabled instead of using the downloaded binaries from the update script.
|
Once again only use two parameters and you should be fine
|
I have tried plugin::RandomRoam with only two parameters so many times it is starting to approach the definition of insanity. It is simply not working correctly and I know the problem is on my end.
I am starting to think that this problem is not so much something I am actively doing or not doing but something in my server configuration that is not what the plugin is expecting. Using the map file as an example, the one I was initially using was one I created back in 2009 with azone. It worked fine for combat and quest related things that I was using up until I tried plugin::RandomRoam. Then with the new map the lua script worked but not the perl script. Could this possibly be something along the lines of my perl version is different than the one that was used when the binaries were compiled? I am using ActivePerl-5.12.4.1205-MSWin32-x86-294981 before anyone asks. The following is the log file I mentioned above with the weird redefines. Code:
[07-21-2016 :: 18:27:29] [Zone Server] Time Broadcast Packet: EQTime [12:43 am] |
All those messages are "normal" considering there are duplicate sub-routines in:
spawn_utils.pl and spawn_tools.pl and client_messages.pl and vtell.pl, you can delete vtell.pl (if I remember correctly, as that subroutine is in client_messages.pl). There are duplicates in spawn_utils.pl and spawn_tools.pl as well, except for two subroutines (again if I remember correctly) that the one has and the other does not. You can ignore the messages altogether, or look into doing the above. For quest_handin.pl change your variable declaration to look like this to remove the Quote:
Code:
my $npc = plugin::val('$npc'); |
So I compiled the binaries with logging level 10 and still nothing remotely helpful in the logs. I think I am going to work around this little oddity instead of beating my head against a wall. I do appreciate the help in trying to solve this problem.
|
All times are GMT -4. The time now is 08:44 AM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.