DragonPrime - LoGD Resource Community
Welcome Guest
  • Good morning, Guest.
    Please log in, or register.
  • May 19, 2013, 08:03:01 AM
Home Forums News Links Downloads Login Register Advanced Search
* * *
DragonPrime Menu
Login
 
 
Resource Pages
IRC Channels
Search

Pages: 1 [2] 3   Go Down
  Print  
Author Topic: Beta release - LotGD v1.11 - DragonprimeEdition  (Read 12187 times)
0 Members and 1 Guest are viewing this topic.
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #15 on: May 11, 2007, 01:52:19 AM »

This is plainly impossible... Bluntly said: That's a big lie.
Logged

Running for more than three years now:
tyranny
Guest
« Reply #16 on: May 12, 2007, 10:10:53 AM »

For modules, does this mean that most 1.x.x mods will work, but that any with those two battle hooks will need to be rewritten?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #17 on: May 14, 2007, 09:11:19 PM »

Not really rewritten. You need to add a few lines.

Instead of
Code:
case "battle-victory":
  do_sthings();
  break;

you now have to
Code:
case "battle-victory":
  static $runonce = false;
  if ($runonce === false) {
    do_things();
    $runonce = true;
  }
  break;

This is one way. The final release will most likely contain a battle-victory-runonce hook, so you'd only need to change the hooks' names...
Logged

Running for more than three years now:
dilbert166
Guest
« Reply #18 on: May 14, 2007, 10:19:12 PM »

im thinking about upgrading my 1.1.0 to 1.1.1. i understand there have been changes to a few things, as far as module support are concerned. is there some kind of "idiots guide to what you have change in your installed modules" or anything, so that i can check, which modules i would have to modify? if not, could someone compile a list of things, that will definitely not work anymore (i dont mean a list of modules, more a list of "if your mod uses this function/method/hook x, you have to modify it to y")?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #19 on: May 14, 2007, 11:05:51 PM »

If you mod uses the forementioned hooks, they might execute more than once in a fight (by now).
Logged

Running for more than three years now:
dilbert166
Guest
« Reply #20 on: May 15, 2007, 01:08:40 AM »

If you mod uses the forementioned hooks, they might execute more than once in a fight (by now).

yes, i got that. question was more, if there are other known functions/hooks etc that react different compared to 1.1.0, which would require further modification of the mods i have installed.
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #21 on: May 15, 2007, 01:12:49 AM »

not really. All changes we made were under the great commandment: "THOU SHALL NOT CHANGE A FUNCTION'S BEHAVIOUR!" Grin Grin Grin
Logged

Running for more than three years now:
Adept
Codemeister
****
Offline Offline

Posts: 275

I'm a llama!


View Profile WWW
« Reply #22 on: May 15, 2007, 02:23:43 AM »

not really. All changes we made were under the great commandment: "THOU SHALL NOT CHANGE A FUNCTION'S BEHAVIOUR!" Grin Grin Grin

awww it always permissible to change a function behavior.  as long as add a new parm for new versus old behavior ... default set to old  Burn
Logged
Nightborn
Guest
« Reply #23 on: June 13, 2007, 01:12:30 AM »

> cancelpetition] =
> [cancelreason] = The admins here decided they didn't like something

ah, where is the documentation for that feature/fix whatever it is?

I wonder what else got silently introduced and nobody is aware of  Angry
Logged
rolland
Guest
« Reply #24 on: June 13, 2007, 01:43:08 AM »

good job to everyone who worked on this.  Grin
Logged
SaucyWench
Mod God
*****
Offline Offline

Posts: 2238


I'm a good girl.


View Profile WWW
« Reply #25 on: June 13, 2007, 02:06:54 AM »

> cancelpetition] =
> [cancelreason] = The admins here decided they didn't like something

ah, where is the documentation for that feature/fix whatever it is?

I wonder what else got silently introduced and nobody is aware of  Angry

We have this on Central/Classic. Eric did it for anti-spam, it's to fool the bots. Anything that DOESN'T have this is filtered I think... it is a hidden field so if the bot fills it with something else it triggers.

So, it may be in 1.0.6? If not, then someone pasted Eric's fix into 1.1.0 I think.
Logged

SaucyWench
Owner of GemDust.com and Darton City proudly hosted by LunarPages
Nightborn
Guest
« Reply #26 on: June 13, 2007, 02:12:12 AM »

it was not in the 1.1.1 snapshot I worked on until Oct =)

So it was introduced there, but well.
Anti-Spam can be done via module, I have an example here at my hands that I wrote and it works. My fields are [captcha].

This "hidden field" appearing does not make me feel very comfortable as I don't know what else might be "hidden".
Logged
arieswind
Codemeister
****
Offline Offline

Posts: 388


View Profile
« Reply #27 on: July 05, 2007, 01:07:13 PM »

Quote
NOTE FOR DEVELOPERS: Any module using the hooks "battle-victory" or "battle-defeat" HAVE TO BE REWORKED!. The core now still holds some kind of legacy support. But this will be removed for the final version. It is imperative that you update your modules or they will cause havoc!


"battle-victory" and "battle-defeat" are disappearing? what if i want to use them even if they work differently?
Logged
XChrisX
Global Moderator
Mod God
*****
Offline Offline

Posts: 4647

Be aware of the squirrel!


View Profile WWW
« Reply #28 on: July 05, 2007, 08:40:57 PM »

They are not disappaering. They will be changed into
"battle-victory" and "battle-victory-runonce"
Logged

Running for more than three years now:
Dragon89
Guest
« Reply #29 on: July 05, 2007, 09:17:32 PM »

Sweet!  That solves a lot of issues for modules that hooked battle-victory.  Will this be available in SVN soon, and how or where can I get a SVN checkout from?  I will gladly setup a beta server and have players test the v1.1.1 code.  Please send a PM  Grin

Thanks
~D
Logged
Pages: 1 [2] 3   Go Up
  Print  
 
Jump to:  


*
DragonPrime Notices
Welcome to DragonPrime - The LoGD Resource Community!

Support Us
$100 raised this year
Your help is greatly appreciated!
Who's Online
32 Guests, 1 User
Afkamm
DragonPrime LoGD
Recent Topics
Home Forums News Links Downloads Login Register Advanced Search