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
Spawn Doctor
Author Message
Barnabus
Journeyman
*

Posts: 124
Likes Given: 0
Likes Received: 3 in 2 posts
Joined: Apr 2012
Reputation: 1



Post: #6
RE: Spawn Doctor
Thanks Shaklaban, Ive tried this one, but my client was running out of memory and I thought it was the 10000 CTAGS
later I realised there was an error in the loop, so it maybe was not the CTAGS, and I didnt recheck I just went bannanas.

AND <dlocal._for> Geez I never thought of that ! Thanks

So maybe this will work - but it isnt Ideal because -

PHP Code:
[FUNCTION f_SpawnAnalyzer]
REF1=<UID>
LOCAL.SpawnLoopCount=0
FORINSTANCES i_worldgem_bit
     
IF <f_PassesUserFilters>
          
LOCAL.SpawnLoopCount ++  
          
TAG.SpawnNo=<EVAL <LOCAL.SpawnLoopCount>>
          
REF1.CTAG.SpawnSelection_<EVAL <LOCAL.SpawnLoopCount>>=<UID>
     ENDIF
ENDFOR 

Oh Shit this will work it is Ideal !! Because I can now flick through the CTAGS on the player get the UID and do what I like then, and I wont have to LOOP the entire server every time to find SpawnSelection_3_ for example.

Very Nice hopefully the client can handle 1000's of CTAGS ! Ill get back to this later to test it...

Thanks Big Grin

When I went Bannanas I did this.

PHP Code:
[FUNCTION f_SpawnAnalyzerMoreThanAmount]
REF1=<SERV.UID.<ARGV[0]>>
LOCAL.SpawnCounter=0
SERV
.LOG @f_SpawnAnalyzerMoreThanAmount <REF1.NAME>
FORINSTANCES i_worldgem_bit
    
IF <AMOUNT> > <EVAL <REF1.CTAG0.SpawnDoctorAmount>>
        
LOCAL.SpawnCounter ++
        
REF1.GO = <P>
        
REF1.CTAG.SpawnDoctorNext=
        WHILE (!<EVAL <
REF1.CTAG0.SpawnDoctorNext>>)
            
REF1.CTAG.SpawnAnalyzerAmountLT_NUMBER=<EVAL <LOCAL.SpawnCounter>>
            
REF1.CTAG.SpawnAnalyzerAmountLT_<EVAL <LOCAL.SpawnCounter>>_ID=<MORE1>
            
REF1.CTAG.SpawnAnalyzerAmountLT_<EVAL <LOCAL.SpawnCounter>>_AMOUNT=<AMOUNT>
            
REF1.CTAG.SpawnAnalyzerAmountLT_<EVAL <LOCAL.SpawnCounter>>_SPAWNED=<MORE2>
            
REF1.CTAG.SpawnAnalyzerAmountLT_<EVAL <LOCAL.SpawnCounter>>_P=<P>
            
REF1.SDIALOG d_spawnDoctorTweak 1
        
ENDWHILE
        
REF1.CTAG.SpawnDoctorNext=
    ENDIF
ENDFOR 

Then I got looped into trying to pause a loop in the middle of it (If I could something like this it saves 1000 of Ctags)
(This post was last modified: 10-16-2012 09:12 PM by Barnabus.)
10-16-2012 09:09 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
Spawn Doctor - Barnabus - 10-16-2012, 09:23 AM
RE: Spawn Doctor - Extreme - 10-16-2012, 09:31 AM
RE: Spawn Doctor - Shaklaban - 10-16-2012, 06:51 PM
RE: Spawn Doctor - Barnabus - 10-16-2012, 08:26 PM
RE: Spawn Doctor - Shaklaban - 10-16-2012, 08:31 PM
RE: Spawn Doctor - Barnabus - 10-16-2012 09:09 PM

Forum Jump:


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