The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
guildstones broke?
Author Message
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #41
RE: guildstones broke?
you can use ToggleAbbreviation function to toggle guild abbrev on/off
Code:
[FUNCTION JOINWEI]
REF1=040004000
REF1.JoinAsMember <SRC>
REF1.ToggleAbbreviation <SRC>
SRC.NotoUpdate

but stone privs are working fine, 100=enemy and 101=ally
https://github.com/Sphereserver/Source/b...se.h#L2057

also try using .notoupdate manually on both chars, maybe your guild is already working but just not updating the char notoriety color on name (.notoupdate will force it to update)
12-23-2016 02:59 PM
Find all posts by this user Like Post Quote this message in a reply
Ben
Sphere Developer
*****

Posts: 612
Likes Given: 2
Likes Received: 123 in 70 posts
Joined: Mar 2010
Reputation: 18

SphereCommunity

Post: #42
RE: guildstones broke?
After looking at this for a while, there are flaws in the guild system.
It seems to work fine when 2 guilds are of opposite alignment (order/chaos)
Things get messed up when guilds have no alignments. ISALLY seems to always return true...
It would take some time to revise the whole system as I think even the dialogs are flawed (no method to declare allies... or is not at war assumed to be allies?)

For now, there is a method I found that you can use to override things.
There are 2 functions in sphere_genericstone_functions.scp:
f_stonesys_internal_isatwarwith
f_stonesys_internal_isalliedwith
uncomment them both, to override internal functions. RETURN 2 in this case will make it check internal functions.
This line ---> If (<guildfromuid.<argo.uid>.isally> && <argo.guildfromuid.<uid>.isally>) seems to be causing the issue so you might want to eliminate it or customise the whole function.
You could basically hardcode which guilds are at war with these 2 functions.
Anyways, I'm sure you can figure it out from here

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
01-09-2017 08:20 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
x77x
Master
**

Posts: 488
Likes Given: 0
Likes Received: 15 in 15 posts
Joined: Mar 2012
Reputation: -4



Post: #43
RE: guildstones broke?
yipee! BACK ORANGE =P

250 days and someone believes me, thanks Ben

Dragons of Time 2000-2020
http://dragonsoftime.com
(This post was last modified: 01-10-2017 01:04 AM by x77x.)
01-09-2017 09:35 AM
Find all posts by this user Like Post Quote this message in a reply
Coruja
Sphere Developer
*****

Posts: 987
Likes Given: 5
Likes Received: 226 in 187 posts
Joined: Jul 2012
Reputation: 7

Dimension Shard

Post: #44
RE: guildstones broke?
that's what I already said some weeks ago... f_stonesys_internal_isatwarwith / f_stonesys_internal_isalliedwith
but it's nice to know that the problem is now solved Veryhappy

anyway, nice finding Ben. To prevent some problems like this, maybe it's better change guildstones to use guild alignment only on wars but not on alliances
01-11-2017 07:53 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)