DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • July 01, 2016, 06:17:55 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: [1]   Go Down
  Print  
Author Topic: RE: Multi-village statue modification  (Read 2922 times)
0 Members and 1 Guest are viewing this topic.
Kendaer
Guest
« on: September 08, 2004, 11:44:16 AM »

On a side note, I have managed to do 2 mods for our server. I created a halfling race using the racetroll as a template and I modified Eric Stevens Statue mod to work on a per-village level. The main city works as usual, with MightyE's statue getting replaced with the newest hero's statue. The villages, however, use the latest hero from that village, or MightyE's statue if there are no local heroes. These are available from the modules section on our server: http://dragon.not.net

I'd specifically like to merge the statue modification back into the core after I check through it.  Assuming you don't mind of course Smiley  I might or might not want to put the halfling module into the core (I haven't looked at it yet Smiley)
Logged
Kendaer
Guest
« Reply #1 on: September 08, 2004, 11:54:48 AM »

Okay, checking through it, and it doesn't work.

If someone else DK's the village statue in all other villages will revert to MightyE.

Also, due to the way you did the changes, you broke the datacaching, so it will fetch from the database far more often than it should.

It's definately the right start down the path, but it's far from correct.
The biggest problem is that the 'hero' setting is global, not per-village.
It's correctable however, and I'll probably make it work correctly at some point, I was just hopeful someone else had saved me the work Smiley
Logged
Mapfiend
Guest
« Reply #2 on: September 09, 2004, 09:33:13 PM »

Thanks for taking a look at this. How did I break the datacaching and how would I go about correcting it?
Also, on the DK clearing all village statues, I thought I had corrected this, I'll take a look. It's possible that I fixed it and didn't update the zip.
Logged
Kendaer
Guest
« Reply #3 on: September 10, 2004, 08:05:32 AM »

You broke the datacaching by reusing the same datacache for local village statues as was used for the global.  Which means that every time someone looks at a statue they will either get the wrong one (if the data in the cache is from a different village and the cache hasn't expired) or they will load the cache with the wrong data.

The reason for the other problem (losing the statues on a given village) is due to you reusing the 'hero' variable.  It won't match the local village most times so will show 'MightyE'.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Please take the time to read the FAQ and browse the DragonPedia

Support Us
No funds raised yet this year
Your help is greatly appreciated!
Who's Online
46 Guests, 0 Users
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search