[Tutorial] Fixing MyLevel

 Forum Forum rules Search FAQ
Maps & Mapping
[Tutorial] Fixing MyLevel
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
RoelerCoaster
USER: MMI

i4Games Trusteei4Games Trustee
PostPosted: Sun Aug 31, 2014 15:31    Post subject: [Tutorial] Fixing MyLevel
Reply with quote

I guess some mappers can relate to this: you cannot open Mylevel of your map anymore, or import anything into it. In this tutorial I will show you how to fix this problem for two different causes.

Cause 1: Broken texture
Symptoms: The map can be opened in UnrealEd and in UT, however:
- Opening MyLevel in the texture browser crashes UnrealEd
- Importing anything into MyLevel crashes UnrealEd
- Navigating in the 3D view of UnrealEd may completely freeze the editor
- Playing the map with software renderer crashes UT (perhaps some other renderers as well)

Cause: A corrupted texture in MyLevel, often caused by copying brushes/actors from other maps

Solution Goal: remove the texture from MyLevel.

Solution:

New Solution (since 10/11/2016)
Summary
The main reason that UT crashes is because the SoftwareRenderer does not like these corrupted textures.
So we first have to make sure this renderer is not used anywhere in the editor where the texture may appear (3D viewport, Texture browser).
Then we can attempt to remove the texture.

Steps

  1. Open your UnrealTournament.ini, and look for the section that says
    Code:
    [Engine.Engine]


  2. Find the value
    Code:
    WindowedRenderDevice=<value>

    This is the renderer that the texure browser uses (credit)

  3. If the renderer is set to
    Code:
    SoftDrv.SoftwareRenderDevice
    change it to another renderer:

    D3D 7
    Code:
    D3DDrv.D3DRenderDevice


    D3D 9
    Code:
    D3D9Drv.D3D9RenderDevice


    OpenGL
    Code:
    OpenGLDrv.OpenGLRenderDevice


  4. Save the ini, and open UnrealED

  5. Right-click the top bar of the 3D viewport and select Direct3D


  6. Open the map

  7. Open the texture browser in MyLevel

  8. You may see one or more textures that are completely black (while they should not), or look corrupted.


  9. Go to Tools > Replace Textures in the main editor window.

  10. On the left hand side, enter the corrupted texture (highlight it in the texture browser and click on "set").
    On the right and side set a different texture, preferably a texture that does not yet appear in your map


  11. Click on replace. This replaces all references to the corrupted texture, even on hidden surfaces or in actors.

  12. Repeat this step for every corrupted texture.
    NOTE: UnrealEd has a bug that once you close the Replace Textures tool, you cannot re-open it. If this happens, save, close UnrealEd and re-open it.

  13. Rebuild and save the map.

  14. You can now change back the renderer of both the 3d view-port and that of the texture browser if you want.
    This may be useful to verify if the map has been fixed, as the map should not longer crash using the software renderer.


Old Solution

  1. Download WOTGreal Exporter from here

  2. Open WOTGreal Exporter and find the corrupted texture(s) (see screenshot)


  3. Open UnrealEd.

  4. Right-click the top bar of the 3D viewport and select Direct3D


  5. Open your map.


    1. . If you know where the corrupted texture is located in your map, go there in the 3D view and select the surface.
      Please note that UnrealEd will NOT display the actual corrupted texture, it will just pick some random texture and draw it on that location.
      In the picture below, the floor contain the corrupted texture, but it is displayed as some wall texture from some texture pack.


    2. . If you do not know where the corrupted texture is located in your map, do the following:
      - Select a random surface in your map
      - Type the following command in the UnrealEd console:
      Code:
      POLY SET TEXTURE=MyLevel.<Texture name>

      Where <Texture name> is the texture we discovered in step 2


    - The corrupted texture is now applied to your selected surface. Keep this surface selected.

  6. Right click the surface and do Select Surfaces > Matching Texture (or do Shift+T)


  7. Now apply a different texture to the selected surface, preferably a texture that does not yet appear in your map:


  8. Rebuild the map and save (perhaps under a different name to be sure)

  9. We have now removed all visible references to the texture, but it is possible that invisible surfaces still carry the texture.
    Now enter the following command in the UnrelED console:
    Code:
    TEXTURE CULL


    NOTE: this command clears ALL the invisible surfaces from textures. This shouldn't bee a problem, but just that you know.


  10. Again rebuild and save the map.

  11. Do the above steps for every corrupted texture discovered in step 2.

  12. When finished, close UnrealEd and reopen it again

  13. Open your map

  14. You should be able to open mylevel again and import textures.

  15. You also may want to change back the renderer in the 3D view port to Software (See step 4)

  16. You can now try to re-import the textures that went corrupt in MyLevel and apply then again at the correct places.



I followed the above steps for every texture, but there are still corrupted textures in MyLevel:
It may be the case that a texture is bound to an actor (eg an icon). What you have to do then is find the actor that uses the texture, and remove it, or change the texture reference.

Unless you know exactly which actor it is and where it is located, it is quite hard finding the actor. The only way I know to do this is doing it brute-force, so checking every actor until you find one that uses the texture.

---------------------------------------------------------------------------------------------------------------

Cause 2: Broken sound
Symptoms: Completely unable to open the map in UnrealED or UT (crash)

Cause: Corrupted sound in MyLevel. So far I have only seen this caused by copying a sound from the MyLevel of one map to another.

Solution Goal: remove the sound from MyLevel.

Solution:
The trickiest part is to open the map. After that you can simply delete the actors using the sound, or replace the sound by another sound.

To open the map:

  1. Download WOTGreal Exporter from here

  2. Open WOTGreal Exporter and find the corrupted sounds(s) (see screenshot)

  3. Find a map that has exactly the same sound(s) MyLevel'd, and open it. If you copied the sound from another map, then open this original map.
    If you cannot find a map, then I don't know what to do, you are on your own, sorry.

  4. Now, without closing the editor, open your own map. It should open without crashing now.

  5. Once the map is opened, locate the actor(s) using the broken sound, and remove the sound.

  6. Save the map and close UnrealEd.

  7. Re-open UnrealED and your map. All should be working again.

---------------------------------------------------------------------------------------------------------------

These methods work for me, and I hope this tutorial helps out some people.


Last edited by RoelerCoaster on Thu Nov 10, 2016 13:28; edited 5 times in total


Alchemist
USER: ALCHEMIST

DominatingDominating
PostPosted: Sun Aug 31, 2014 17:02    Post subject: Reply with quote

Roel UT god. Appreciate the time you put in for this!

RoelerCoaster
USER: MMI

i4Games Trusteei4Games Trustee
PostPosted: Mon Sep 01, 2014 07:16    Post subject: Reply with quote

Noticed I forgot a step at the broken sound fix. Updated the tutorial.

Vandora
USER: CHAMBERLY

DominatingDominating
PostPosted: Mon Sep 01, 2014 13:48    Post subject: Reply with quote

Thanks, I've not seem to come across any problem like this before but I'll be sure to keep this in mind if it have happened to me. Smile

p-a-w-e-l
USER: P-A-W-E-L

Godlike!Godlike!
PostPosted: Mon Sep 01, 2014 18:54    Post subject: Reply with quote

Epic job Roel but not too late for that though? Razz Smile

P.E.R.N
USER: PERN

i4Games Admin
PostPosted: Mon Sep 01, 2014 22:32    Post subject: Reply with quote

Pawel u are really negative since 1/2 years about BunnyTrack stuff.
You did some good stuff in the past, so you should sherish a job done late or no (furthemore when the job is well done and took time like Roel just did).

If u are too sad, just leave no ?
If u stay, fine, but try to be more positiv please.


irridium77
USER: IRRIDIUM77

DominatingDominating
PostPosted: Tue Sep 02, 2014 14:10    Post subject: Reply with quote

I can see alot of time went into this turorial Smile
Great work Roel!

The gods forsee a long and happy afterlife for you, with 40 female virgins and as much UT as you can handle.


p-a-w-e-l
USER: P-A-W-E-L

Godlike!Godlike!
PostPosted: Fri Jan 01, 2016 18:06    Post subject: Reply with quote

irridium77 wrote:
The gods forsee a long and happy afterlife for you, with 40 female virgins and as much UT as you can handle.

Lmao Laughing


RoelerCoaster
USER: MMI

i4Games Trusteei4Games Trustee
PostPosted: Thu Nov 10, 2016 13:31    Post subject: Reply with quote

I found a different solution to the corrupted texture problem while messing around with some stuff, which I think is a bit easier to apply.

Start post updated.


CULPRIT
USER: CULPRIT

PlayerPlayer
PostPosted: Thu Nov 10, 2016 15:26    Post subject: Reply with quote

ah very nice, ive been hesitant to try using mylevel in case such a thing happened. You have thrusted some confidence this-a-way. Smile

Many thanks!


Moonspell
USER: MOONSPELL

Killing spreeKilling spree
PostPosted: Tue Nov 15, 2016 07:51    Post subject: Reply with quote

I agree with all Smile
CULPRIT good eyes to see you Smile
Hugs


SO1
USER: UNSTABLE

Wicked Sick!!Wicked Sick!!
PostPosted: Fri Sep 01, 2017 01:01    Post subject: Reply with quote

me2 Very Happy

Display posts from previous:   
Post new topic   Reply to topic All times are GMT
Page 1 of 1

 


Powered by phpBB © phpBB Group