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
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bigger effects
Author Message
Alaric
Journeyman
*

Posts: 227
Likes Given: 7
Likes Received: 9 in 4 posts
Joined: Oct 2012
Reputation: 7



Post: #1
Bigger effects
I was just trying to make some effects using sendpacket. Although it brought a few questions/problems.

Quote:1, How do you personally use sendpacket - moving items - to make a good effect without lags, bugs, simply pure and fluent?

Tried, for instance:
for 30
sendpacket bla bla bla
endfor

30 moving items is quite much I quess, I had to increase the speed to minimalize lags. (just example, the number should be higher)

2, Who do you send them to.
-sector? Not perfect... when 1 player is standing in sector 1, and 2. player in sector two, one of them dont see the effect.
-room? doesnt work (at least, not to me)
-region? (isnt it unnecessarily big?)
-serv...(...)
-forplayers/forchars? Well, I tried, but it seemed to be slower and less fluent

In conclusion and for those who dont want to read the craps above - How do you make more complicated effects without lags, or eventual client crashes (because of too many packets)

I see the only way and its - forplayers; sendpacket; endfor...
(This post was last modified: 04-25-2013 05:16 AM by Alaric.)
04-25-2013 04:59 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Bigger effects - Alaric - 04-25-2013 04:59 AM
RE: Bigger effects - darksun84 - 04-25-2013, 05:55 AM
RE: Bigger effects - Alaric - 04-26-2013, 03:58 AM
RE: Bigger effects - sco - 04-25-2013, 11:00 PM
RE: Bigger effects - sco - 04-26-2013, 05:06 PM
RE: Bigger effects - RanXerox - 04-27-2013, 01:34 AM
RE: Bigger effects - Mordaunt - 04-27-2013, 01:53 AM
RE: Bigger effects - Alaric - 04-27-2013, 02:55 AM
RE: Bigger effects - RanXerox - 04-27-2013, 03:23 AM
RE: Bigger effects - Alaric - 04-27-2013, 04:19 AM
RE: Bigger effects - RanXerox - 04-27-2013, 05:51 AM

Forum Jump:


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