Results 1 to 4 of 4
-
09-07-2012 #1
How to delete 1000+ entities in a mission file easily - all at once ?
I want to remove 1000's of decorative entities from a mission.scn file that has grown to 6.6mb.
It is from a game save from the mod Neverending battles - Korsun pocket I am playing.
From what I have seen in my save folder, normally the mission files are around 1.5mbs
At the moment because of the huge number of entities,
mainly waves of enemy tanks and men, which are the advancing enemy,
my fast computer - the framerate has become very slow and the game crashes often.
I have trapped the tanks at the second line of defence.
More waves continue to come and they are all bunching up off the map.
I just want to finish my last line of defence before I break down the
hedgehogs with an artillery strike.
The game should not be over until they run me over!

Why u no let me finish playing the game !
How to remove these blocks of entities easily, like in a file editor.
example
{Entity "mortar_shellhole" 0x9082
{Position[/COLOR][/B] 2957.02 2470.57 46.7}
{DecalOrder 20}
}
The numbers are different in every instance.
At the moment there are 1113 instances of "mortar_shellhole".
I want to remove every instance within those bold brackets, including the brackets.
I'll remove other decorations also, like trees, etc.Last edited by OVO; 09-07-2012 at 13:04.
-
09-07-2012 #2
Hmmm the mortar shellhole isn't in the vanilla game, its included as part of the NEB mod, so one solution could be to actually delete that particular entity out of the mod then hopefully when you reload they will have all disappeared.
Other than that I think you might have to delete them maually using CTRL and F to find them all, but your right, that would not be easy...
-
09-07-2012 #3
I assume thats in the map file and not script? You could try replacing every "mortar_shellhole" with something that doesnt exist I think map should still load just spit out a lot of warnings in log that such thing doesnt exist if it does load then if u save it that should automatically remove all the entities that dont exist, in theory thats how things worked for me when one would load up some maps with things that dont exist and then save it. Some things could cause a crash but as long as none of those entities are attached to something that shoudl work.
/ Skirmish Missions by DJSatane * DJSatane's Twitch Channel \
=======================================
\ DJSatane@Twitter * DJSatane's Steam Games Picture Library /
-
10-07-2012 #4
Using Notepad++
I removed some map decorations like shell holes
but that did nothing to restore smooth gameplay.
Next I removed most of the enemy tanks off the map
by doing the replace with nothing or blank method. (like with humans entities below)
Didn't speed up the gameplay much either; still got crashes.
An after thought about this;
wouldn't the tank still be active on the map but just invisible ?
It's position and movement details are still in the code.
So what is causing this slow-down in the game ?!
Lastly I found out by Notepad++ search for the word Human that there were
3867 Human entities on the map running around !
Most were hidden off the map, trapped or running around in the fog.
Probably only around 100 of the 3867 were my German soldiers.
How would I remove the Russian Human entities in bulk ?
I tried replacing, for example the Human entity - "mp/rus/rifle"
by replacing all instances with a blank which leaves "".
What you get is blue men.
At this stage there seems no way to bulk delete multiple blocks of code
with certain words in them.Last edited by OVO; 10-07-2012 at 14:34.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)





Reply With Quote
Bookmarks