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
Open your mind, make the impossible!
Author Message
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: Open your mind, make the impossible!
(08-26-2014 02:16 AM)Crusader Wrote:  yeah but we have different maps....but if u can share the program, at least will be useful for all ppl that has a custom map... Big Grin

besides...i use also custom trees...from the Eriminator Muls... is the program of Feeh customizable?
You can use it on any staticsX.mul files where X is the number of the map.
You will need to change the name to the exe find it.

Feeh told me he could change using the ids from a file to remove the trees, I will tell him later to check if he can do it for us.

(08-26-2014 02:26 AM)XuN Wrote:  For what I've understood ... the problem checks for all items in all tiles, so it doesn't matter what map/statics do you have because it will not care about design, but positions.
Yes, you're right.

How to use the exe:
1 - make a backup of all statics files.
2 - rename your staidx0.mul to staidx0.mul.orig AND statics0.mul to statics0.mul.orig
3 - run the exe and it will be ok.

You have more maps? no problem, change the staticsX.mul to statics0.mul.orig AND staidxX.mul to staidx0.mul.orig
Do it on all maps...

here is the code to check and create trees.
PHP Code:
[FUNCTION CREATEDYNAMICTREES]
FOR 
X 512 2048
 
FOR Y 512 2048
  
IF <SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS>
   FOR 
I 0 <EVAL <SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS>-1>
    IF !<
ISEMPTY <SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.TYPE>>
     IF (<
SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.TYPE> == T_TREE)
      
SERV.NEWITEM <SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.ID>
      NEW.
<dLOCAL.X>,<dLOCAL.Y>,<SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.Z>,0
      
NEW.FIX
     
ENDIF
     IF (<
SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.TYPE> == T_FOLIAGE)
      
SERV.NEWITEM <SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.ID>
      NEW.
<dLOCAL.X>,<dLOCAL.Y>,<SERV.MAP(<dLOCAL.X>,<dLOCAL.Y>,0,0).STATICS.<dLOCAL.I>.Z>,0
      
NEW.FIX
     
ENDIF
    ENDIF
   ENDFOR
  ENDIF
 ENDFOR
ENDFOR
RETURN 

See that it is checking only in MAP 0, so you will have to change it.
And change the FOR X and FOR Y to your map size.


Attached File(s)
.rar  remover_arvores_static.rar (Size: 3.19 KB / Downloads: 30)

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-26-2014 02:40 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Open your mind, make the impossible! - Extreme - 08-26-2014 02:40 AM

Forum Jump:


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