Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New Features Request
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #51
RE: New Features Request
The thing with this is....

There is also a "new feature request" option over on the bug tracker.
I'm not sure which is supposed to be the preferred method of submitting these.

[Image: 2nis46r.jpg]
05-02-2013 10:21 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rattlehead
Master
**

Posts: 290
Likes Given: 3
Likes Received: 8 in 6 posts
Joined: Jun 2012
Reputation: 8



Post: #52
RE: New Features Request
seems easier to do it here, as more ppl use the forums, plus its hard to hold a decent conversation on the bug tracker

[Image: matts_siggy.gif]
05-02-2013 11:46 PM
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: #53
RE: New Features Request
I've got a new suggestion: DB.EXECUTEB (or DB.EXECUTEBACKGROUND, but it's too big for a function name lol)
because using DB.EXECUTE will cause sphere to stop everything on the whole server until the SQL return a response, so if you use DB.EXECUTE with a huge SQL command, it will "freeze" the sphere causing lag on all players

example:
Code:
[FUNCTION UpdateKarma]
ON=@KarmaChange
DB.EXECUTE "UPDATE accounts SET karma='<KARMA>' WHERE uid='<UID>' LIMIT 1"

[FUNCTION UpdateKarmaAllPlayers]
FORCHARS 500 //update logout accounts too
  TRIGGER @KarmaChange
ENDFOR
-UpdateKarma: that's a simple function to update just 1 account, no problem using it on a single account, but 100 clients using at the same time will create a huge lag to everyone since sphere must wait the SQL response for every EXECUTE

-UpdateKarmaAllPlayers: using this function, sphere will freeze for 1~60 seconds depending how many players it will update. Again, no problem updating 3~6 players but will freeze the entire server for more than 60 seconds if used on 5000 accounts

the DB.EXECUTEB will be a great solution for this, since the EXECUTE will run on background and sphere does't need to wait for a SQL response, so we can execute much more SQL commands without any lag

------------------------------------

(05-02-2013 10:21 PM)Mordaunt Wrote:  The thing with this is....

There is also a "new feature request" option over on the bug tracker.
I'm not sure which is supposed to be the preferred method of submitting these.
I think it's better create a new forum section named "New Feature Request" under "Sphere .56b" forum
(This post was last modified: 05-05-2013 06:21 PM by Coruja.)
05-05-2013 06:19 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: #54
RE: New Features Request
Please do a little research before suggesting something that's already there.
http://wiki.sphere.torfo.org/index.php/AEXECUTE
http://wiki.sphere.torfo.org/index.php/AQUERY

AxisII's current version: 2.0.4j
AxisII SourceCode on Github
AxisII up to date changelog
05-06-2013 12:20 AM
Visit this user's website 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: #55
RE: New Features Request
thx, I totally forgot about these functions, will take a look tomorrow Smile
btw I researched here (http://wiki.sphere.torfo.org/index.php/Using_MySQL) before posting but I don't found nothing, AEXECUTE and AQUERY is not documented there and nor on nightly changelog :/
(This post was last modified: 05-07-2013 12:37 AM by Coruja.)
05-06-2013 05:56 PM
Find all posts by this user Like Post Quote this message in a reply
Ultima One
Journeyman
*

Posts: 238
Likes Given: 7
Likes Received: 10 in 6 posts
Joined: Jan 2013
Reputation: 6

Ultima One

Post: #56
RE: New Features Request
Didnt know of them either.. will help me greatly Wink Thanks Ben Tongue

ULTIMA ONE
The modern, sphere powered Ultima Online server
05-10-2013 10:22 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Rizz
Master
**

Posts: 396
Likes Given: 21
Likes Received: 14 in 9 posts
Joined: Oct 2012
Reputation: 0



Post: #57
RE: New Features Request
A command to kick the "not logged in" connections
(This post was last modified: 05-19-2013 08:59 PM by Rizz.)
05-19-2013 08:59 PM
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: #58
RE: New Features Request
(05-19-2013 08:59 PM)Rizz Wrote:  A command to kick the "not logged in" connections
I have no idea why you want do this, but I think a not logged in client have it's own active socket too, so you can manage it using some SOCKET functions (I never tried, maybe even doesnt exists functions like this) or play with this .ini setting:
Code:
// Disconnect inactive socket in x min
DeadSocketTime=5

I got a new feature request, @Resurrect (or @CharResurrect, whatever) Smile
it seems quite self explanatory, will run everytime -before- a player got resurrected
-return 0: allow resurrect (default)
-return 1: deny

I'm suggesting this because actually the only way we can get this partially working is using a horrible workaround on @Success of spell 59 (s_resurrect). It works for a basic resurrect when players or NPCs healer cast s_resurrect spell, but doesnt work using "resurrect 1" function since it's not a spell and doesn't call @Success. So in this case there's no way to handle it and this new trigger will be the key to get it working
(This post was last modified: 05-23-2013 03:16 AM by Coruja.)
05-23-2013 02:58 AM
Find all posts by this user Like Post Quote this message in a reply
RanXerox
Master
**

Posts: 550
Likes Given: 1
Likes Received: 12 in 9 posts
Joined: Dec 2010
Reputation: 19



Post: #59
RE: New Features Request
If you want to prevent GMs from using the built-in RESURRECT function... then move it to a higher PLEVEL.

If there are conditions in your code where a built-in RESURRECT function should be prevented, use an IF statement.
05-23-2013 04:40 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: #60
RE: New Features Request
but that's not the point :/
theres "2 types" of resurrect with different functionalities, I just wanna integrated all on a single trigger that works for both, not prevent one type to be used

on my server we use the normal "cast" resurrect (where the resurrect confirmation dialog appears) and theres the "forced" resurrect too (function RESURRECT 1) which we use on scripts (automated quests, systems, etc) where the player -will- be resurrected without any confirmation. No problem resurrecting, because both will resurrect fine. The problem is about how sphere handle both resurrect styles (triggers)

Using a real situation example, I use a realtime SQL paperdoll to show it on the website, when the player dies it must update corpse color to 0 and make it ghost style (works fine with @Death), but when it resurrects the body must be updated again to the correct body and color but this is only possible using the "casted" resurrect (@Success on spell 59). For RESURRECT 1 functions I must create a horrible workaround calling a horrible function every time I use RESURRECT 1 and it's a pain for who uses a lot of them in different script files. So, everything is a horrible workaround because half of the code is wrote on a workaround (@Success on spell 59) and the other half is wrote manually on another workaround. Theres workarounds everywhere and thats not good. Thats why a simple @Resurrect will save tons of ugly workarounds, making everything works perfectly on a single trigger Smile
(This post was last modified: 05-25-2013 05:05 AM by Coruja.)
05-25-2013 04:59 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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

This forum uses Lukasz Tkacz MyBB addons.