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
Strain.
Author Message
Mordaunt
Super Moderator
****

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



Post: #1
Strain.
Yes it's a strange title but bear with me.

Looking into changing the way my environmental script runs it's checks on players, currently it's this:

Code:
ON=@Environchange
        if <isplayer>
            f_environ_calc
            if <def.tempaffect>
                if !(<restest 1 i_tempaffect>)
                    serv.newitem i_tempaffect
                    new.equip
                endif
                local.layer=3
                for 14
                    if (<dlocal.layer>==8)
                        local.layer=12
                    elif (<dlocal.layer>==14)
                        local.layer=17
                    elif (<dlocal.layer>==18)
                        local.layer=19
                    elif (<dlocal.layer>==21)
                        local.layer=22
                    endif    
                    if (<findlayer(<dlocal.layer>)>)
                        tag0.temp = <fval <tag0.temp>+1.0>
                    endif
                    local.layer +=1
                endfor
                if (<tag0.temp> < 32.0)
                    tag0.temp = <fval (<tag0.temp> + <eval (<src.rescold>/2)*10)>)>
                elif (<tag0.temp> > 80.0)
                    tag0.temp = <fval (<tag0.temp> - <eval (<src.resfire>/2)*10)>)>
                endif
            endif
        endif

While this is a simple check to see what the current region temperature is and a check to see what the player is wearing it does create problems on a populated server with the @environchange trigger firing quite often (something I was never encountered on my private test server)

This script already runs a seperate timekeeping function under the f_onserver_timer function firing each minute. Would including a player check under this timer create a bunch of lag?
That's my question

And my noob question of the day because it's slipped my mind....

someone please remind me what value fval returns.Blush

[EDIT:]Wow looking at this on my server NONE of the weather effects even seem to work anymore which is a tad bit disappointing, has anyone using these forums run this script on the latest nightly builds?....
Thinking this could be a complete rebuild from scratch deal here

[Image: 2nis46r.jpg]
(This post was last modified: 08-17-2012 01:43 PM by Mordaunt.)
08-17-2012 01:15 PM
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
Strain. - Mordaunt - 08-17-2012 01:15 PM
RE: Strain. - Shaklaban - 08-17-2012, 01:44 PM
RE: Strain. - Mordaunt - 08-17-2012, 01:52 PM
RE: Strain. - Shaklaban - 08-17-2012, 02:00 PM
RE: Strain. - Extreme - 08-17-2012, 02:32 PM
RE: Strain. - RanXerox - 08-18-2012, 01:00 AM
RE: Strain. - Extreme - 08-18-2012, 01:03 AM
RE: Strain. - Mordaunt - 08-18-2012, 03:19 AM
RE: Strain. - Mordaunt - 08-18-2012, 05:32 AM
RE: Strain. - Extreme - 08-18-2012, 09:43 AM
RE: Strain. - Anarch Cassius - 08-18-2012, 01:46 PM
RE: Strain. - Mordaunt - 08-19-2012, 03:33 AM
RE: Strain. - Extreme - 08-19-2012, 06:11 AM

Forum Jump:


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