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-nmm7 (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-nmm7 (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-nmm7 (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
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
Post Reply 


Messages In This Thread
guildstones broke? - x77x - 05-03-2016, 09:18 PM
RE: guildstones broke? - x77x - 09-06-2016, 07:45 AM
RE: guildstones broke? - x77x - 09-13-2016, 08:30 AM
RE: guildstones broke? - Ben - 09-13-2016, 09:50 AM
RE: guildstones broke? - x77x - 09-13-2016, 09:52 AM
RE: guildstones broke? - Ben - 09-13-2016, 09:55 AM
RE: guildstones broke? - x77x - 09-13-2016, 10:17 AM
RE: guildstones broke? - rastrero - 09-14-2016, 09:26 AM
RE: guildstones broke? - x77x - 09-14-2016, 09:36 AM
RE: guildstones broke? - Coruja - 09-14-2016, 11:53 AM
RE: guildstones broke? - x77x - 09-14-2016, 09:33 PM
RE: guildstones broke? - Coruja - 09-15-2016, 12:18 AM
RE: guildstones broke? - x77x - 09-15-2016, 01:28 AM
RE: guildstones broke? - Coruja - 09-15-2016, 02:33 AM
RE: guildstones broke? - x77x - 09-15-2016, 04:03 AM
RE: guildstones broke? - Ben - 09-20-2016, 10:36 AM
RE: guildstones broke? - x77x - 09-23-2016, 09:04 PM
RE: guildstones broke? - Coruja - 09-24-2016, 01:30 AM
RE: guildstones broke? - x77x - 09-25-2016, 05:54 AM
RE: guildstones broke? - Ben - 09-25-2016, 06:47 AM
RE: guildstones broke? - Coruja - 09-25-2016, 05:35 PM
RE: guildstones broke? - Ben - 09-26-2016, 06:40 AM
RE: guildstones broke? - x77x - 09-27-2016, 01:52 AM
RE: guildstones broke? - Kanibal - 09-27-2016, 02:15 AM
RE: guildstones broke? - x77x - 09-27-2016, 02:28 AM
RE: guildstones broke? - Ben - 09-27-2016, 09:31 AM
RE: guildstones broke? - Coruja - 09-28-2016, 03:29 AM
RE: guildstones broke? - x77x - 09-28-2016, 05:53 AM
RE: guildstones broke? - Ben - 09-28-2016, 09:39 AM
RE: guildstones broke? - x77x - 10-02-2016, 01:47 AM
RE: guildstones broke? - Ben - 10-02-2016, 07:54 AM
RE: guildstones broke? - x77x - 10-03-2016, 07:37 AM
RE: guildstones broke? - Coruja - 10-06-2016, 08:45 AM
RE: guildstones broke? - x77x - 10-06-2016, 01:41 PM
RE: guildstones broke? - x77x - 12-21-2016, 08:20 AM
RE: guildstones broke? - Coruja - 12-21-2016, 08:50 AM
RE: guildstones broke? - x77x - 12-21-2016, 09:05 AM
RE: guildstones broke? - Coruja - 12-21-2016, 10:13 AM
RE: guildstones broke? - Ben - 12-21-2016, 10:18 AM
RE: guildstones broke? - x77x - 12-22-2016, 06:57 AM
RE: guildstones broke? - Coruja - 12-23-2016, 02:59 PM
RE: guildstones broke? - Ben - 01-09-2017 08:20 AM
RE: guildstones broke? - x77x - 01-09-2017, 09:35 AM
RE: guildstones broke? - Coruja - 01-11-2017, 07:53 AM

Forum Jump:


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