OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: recon on 07 Apr 2003, 10:12:57
-
Ive got a great little mission on sebs la drang valley map, The thing is I only use the triangular shaped base in the bottom right hand corner, It is really laggy as the base is packed with units, I dont want to comprimise by deleting some units so I was wondering if it was possible to delete all the objects on the map except the base? I am not very proficiant at pc know how so if the description could be thougher?
thanks
RECON.
-
Download WrpEdit, I'm pretty sure it's hosted somewhere in here, that should help you. Then all you do is run it, open the map, and delete or add as nessessary.
-
The Ed Depot has loads of stuff on Wrpedit.
I know you don't want to delete any units, but just in case it helps ...
macguba's quick guide to reducing lag
The main causes of lag (in no particular order) are:-
Aircraft and choppers - These are the ultimate lag demons. Do you really need them? Do you really need that many? If you do, can they land somewhere while they are not needed?
Ground vehicles - Particularly if they are of many different types, since OFP has to run the movement characteristics of every type of vehicle in the mission. Reduce the number of types, and there is less going on in the background. Do you really need both BMPs and BMP2s? Similarly weapon types etc.
Waypoints - Use as few as you can
Triggers - If several events can be traced back to one root cause, use just one trigger and do everything else in a script
Scripts - Ususally a good thing, since they reduce the need for triggers. However, there are two places to be careful. Using @condition (which is very bad) and fast loops. Triggers check themselves every 0.5 seconds. Do you really need your loop to run faster than that?
Groups - The fewer the groups, the less the lag. Single soldiers are not too bad for lag, so if needs be you can make existing groups bigger.
Irrelevant units/vehicles - We all like a bit of eye candy, but think about what you are doing. A few well placed vehicles can make a camp look a lot busier than a lot of badly placed ones. Use static or empty objects rather than soldiers.
Units close by - The further away a unit is from the player, the less lag it will cause. In other words have your A10s circling a long way off.
Cloudlets/particles - Be they ordinary fires or helicopter dust scripts.
-
another tip: when you have a chopper in your mission and it's not needed anymore, kill it. that way, he won't count as a unit and a.i. and all... for example, give him a wp with setdammage 1.0 in it where no1 can see him.
-
Thanks for the advice, I have downloaded wrp edit but it wont let me open sebs la drang valley map!!! It says its not a valid something or other???
-
give him a wp with setdammage 1.0 in it where no1 can see him.
what? so that the player could hear the boom and get scared? ;D
Dead units cause lag too.. if not that much as the alive ones, but still.
What you really want to do is to delete it
deletevehicle unitname
-
Make shure you dePBO the file before using Wrp!
use a dePBO tool!
-
But remember that WrpEdit is advanced, IÂ've just started reading the tutes. Plus that everyone must download your island when you are done. So putting out one bush or that kinda stuff ainÂ't good.
-
what? so that the player could hear the boom and get scared? ;D
Dead units cause lag too.. if not that much as the alive ones, but still.
What you really want to do is to delete it
deletevehicle unitname
yikes :P what I mean was: put it out over sea or something, and good advice