Classic DB Spawngroup Fix
Found a bug with the log parser we use to make the database. It seems spawngroups were being assigned 50% chance per npc, regardless of how many npcs were in the spawngroup. This caused a greater than 100% chance on groups with more than 2 npcs in it. Thus making the lower mobs on the list not spawn. I created a php script to fix this. Tested it today seems to work great. All our future databases will have this run before release now that we've identified the problem. You must have a php capable web server to run this script.
Fill it in with your own database mysql connect info. Code:
<? hope it helps! |
ugh....
I tried php but seemed to do nothing..
tried to source it but no dice. Content-type: text/html X-Powered-By: PHP/4.3.4 <br /> Parse error: parse error, unexpected '}' in C:\eqemu\test.php on l ine 46<br /> im sure there will be people asking what to do with it.. so I wanted to be the first. |
This will work for any database created with the help of EQBuilder. Nice fix!
|
Might I suggest a design fix in the code that would eliminate this problem in the future:
Don't require the chance to add up to 100. Let it add up to any arbitrary number, and the chance value is the mob's chance to spawn WHEN WEIGHED against the total chance points for that spawngroup. Doing it that way might make it a little more fool-tolerant. |
ya i guess. But they probably wont change the code for a system that works fine. You just have to know wtf is going on with it )
|
Quote:
|
Even if you have php installed, if your web server doesn't know it's there, you will achieve the same results.
For a quick install, if you don't have IIS installed on a winpc, google for foxserv; the only problem with that is it installs MySQL as part of the package and points everything to it's installation. If you use this installation with Winbloze XtraPee, you will also need to change the .conf file for Apache and make a web directory somewhere other than under the foxserv root directory. |
All times are GMT -4. The time now is 12:05 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.