SVN Revision 1926

View and discuss the latests SVN commits, to ensure the best efficiency in our work.

Moderators: Support Team, Developer Team

SVN Revision 1926

Postby DOLBot » Sun Oct 04, 2009 9:38 pm

Commit from dunnerholl

Log Messages
Added : Constant to be used for Autoaggrovalues for mobs, default -1 in aggrorange

Files Changed:
MODIFY - DOLSharp/trunk/GameServer/GlobalConstants.cs
MODIFY - DOLSharp/trunk/GameServer/gameobjects/GameNPC.cs

View Changes:
http://dolserver.svn.sourceforge.net/do ... v&rev=1926
User avatar
DOLBot
DOL Bot
 
Posts: 1933
Joined: Sat Jan 08, 2011 1:23 pm

Re: SVN Revision 1926

Postby Dunnerholl » Sun Oct 04, 2009 9:39 pm

wanted to say constant to be used for autovalues :) as its name indicates (and cause we planned to use it for multiple things)
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: SVN Revision 1926

Postby Tolakram » Sun Oct 04, 2009 9:40 pm

Can you make the check insist on both aggrorange AND aggroamount be == -1?
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: SVN Revision 1926

Postby Dunnerholl » Sun Oct 04, 2009 9:42 pm

Can you make the check insist on both aggrorange AND aggroamount be == -1?
i was thinking about this, but its kinda same stupid as checking for just one.

because what indicates an aggrolevel of 100 and aggrorange of -1 ?

and what would be if aggrorange is 10000 and aggrolevel -1 ?

we would have to split that logic up to set range dynamically on -1 and level dynamically on -1. should i?
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: SVN Revision 1926

Postby Tolakram » Sun Oct 04, 2009 9:49 pm

Well.

Shouldn't it be level instead of range then? Seems to me the amount of aggression is more suggestive than the range of agression.

/shrug; 6 of one, half dozen of the other. :)

Storm DB updated.
Code: Select all
update mob set aggrorange = -1 where aggrorange = 0;
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: SVN Revision 1926

Postby Dunnerholl » Sun Oct 04, 2009 9:53 pm

most interesting for me during the last update :
Code: Select all
/// <summary>
/// Aggressive Level in % 0..100, 0 means not Aggressive
/// </summary>
int AggroLevel { get; set; }
hahaha :D
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: SVN Revision 1926

Postby Kakuri » Mon Oct 12, 2009 1:08 am

Is adding a new class named Constants really a good approach for this?

And should it be a constant in the code, or does it make any sense to make it (shudder) another server property?
User avatar
Kakuri
Developer
 
Posts: 803
Joined: Tue Oct 28, 2008 10:40 pm
Website: http://enlight.hostrator.com/

Re: SVN Revision 1926

Postby Graveen » Mon Oct 12, 2009 7:34 am

i vote SP, yup
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: SVN Revision 1926

Postby Dunnerholl » Mon Oct 12, 2009 8:01 pm

in my opinion server properties are overused. its a total chaos to manage. and this constant is totally code related, you would not want to change it on the fly or during server uptime.
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: SVN Revision 1926

Postby Kakuri » Mon Oct 12, 2009 10:09 pm

If it ought to be user-configurable at all, I think a server property is the way to go (even if it shouldn't be changed while the server's running).

If it need not be user-configurable, then why not just define it as a constant in GlobalConstants.cs? What's the need for the new class Constants?
User avatar
Kakuri
Developer
 
Posts: 803
Joined: Tue Oct 28, 2008 10:40 pm
Website: http://enlight.hostrator.com/

Re: SVN Revision 1926

Postby Graveen » Mon Oct 12, 2009 10:30 pm

ServerProperties are similar to an xml or an ini file. The DoL choice is to gather configurables items in SP, and typically, the default aggro range worths to be in :)
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France

Re: SVN Revision 1926

Postby Tolakram » Mon Oct 12, 2009 10:51 pm

If it ought to be user-configurable at all, I think a server property is the way to go (even if it shouldn't be changed while the server's running).

If it need not be user-configurable, then why not just define it as a constant in GlobalConstants.cs? What's the need for the new class Constants?
This is doable, just make the server property readonly (I think) ... the way almost all of them used to be before I changed them so I could update settings on the fly.
- Mark
User avatar
Tolakram
Storm / Storm-D2 Admin
 
Posts: 9189
Joined: Tue Jun 13, 2006 1:49 am
Location: Kentucky, USA

Re: SVN Revision 1926

Postby Dunnerholl » Tue Oct 13, 2009 7:17 am

ServerProperties are similar to an xml or an ini file. The DoL choice is to gather configurables items in SP, and typically, the default aggro range worths to be in :)
this is NOT the default aggrorange it is the value used to trigger autoconfigure. nothing that needs to be customized
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: SVN Revision 1926

Postby Dunnerholl » Tue Oct 13, 2009 7:18 am

If it ought to be user-configurable at all, I think a server property is the way to go (even if it shouldn't be changed while the server's running).

If it need not be user-configurable, then why not just define it as a constant in GlobalConstants.cs? What's the need for the new class Constants?
show me how
Dunnerholl
Developer
 
Posts: 1229
Joined: Mon Sep 08, 2008 8:39 pm

Re: SVN Revision 1926

Postby Graveen » Tue Oct 13, 2009 7:27 am

ServerProperties are similar to an xml or an ini file. The DoL choice is to gather configurables items in SP, and typically, the default aggro range worths to be in :)
this is NOT the default aggrorange it is the value used to trigger autoconfigure. nothing that needs to be customized
effectively.
Image
* pm me to contribute in Dawn of Light: code, database *
User avatar
Graveen
Project Leader
 
Posts: 12661
Joined: Fri Oct 19, 2007 9:22 pm
Location: France


Return to “%s” DOL SVN Commits

Who is online

Users browsing this forum: No registered users and 0 guests