Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Level Editor Help reinstalled game with AMFP assets finally- level editor crashes on launch
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#1
Sad  reinstalled game with AMFP assets finally- level editor crashes on launch

so when the 13111111(etc) patch was released ages ago, i installed it incorrectly, in that i forgot to remove the .msh and .anm files. however, somehow, my editor still worked just fine, I just couldn't use any AMFP files. they appeared massively oversized in the editor for some reason.

I just recently took the advice of some folks and tried to start over from scratch- backed up all the stories I wanted to save, and deleted everything else, reinstalled from scratch. this time I made sure to follow the instructions to a T. I'll run it by you and see if you can spot where it went wrong-
1) delete ATDD folder in my 'common' folder in steam.
2) reinstall on steam library.
3) replace the stories I wanted to keep.
4) back up the AMFP files I wanted to move over.
5) remove .msh and .anm files
6) copy over everything (did NOT hit replace with when prompted)
7) installed the patch from frictional, hit replace with.

Now the level editor doesn't open at all, I get the black box crash upon launch every time! wut do?

[Image: signature-2.png]
08-16-2014, 09:09 PM
Find
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#2
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

Go in to documents and check the level editor log (it's the text document). I don't see anything wrong with your installation.

Although, I believe the patch doesn't work on Macs (no idea if that affects you).

[Image: quote_by_rueppells_fox-d9ciupp.png]
08-16-2014, 10:01 PM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#3
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

-------- THE HPL ENGINE LOG ------------
Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init lowlevel graphics: 1024x768 bpp:32 fs:0 ms:0 gpufmt:2 cap:'HPL Level Editor' pos:(-1x-1)
Setting video mode: 1024 x 768 - 32 bpp
Init Glew...OK
Setting up OpenGL
  Vendor: Intel
  Renderer: Intel(R) HD Graphics 4000
  Version: 4.0.0 - Build 9.17.10.2857
  Max texture image units: 16
  Max texture coord units: 8
  Max user clip planes: 8
  Two sided stencil: 1
  Vertex Buffer Object: 1
  Anisotropic filtering: 1
  Max Anisotropic degree: 16
  Multisampling: 1
  Texture compression: 1
  Texture compression S3TC: 1
  Auto generate MipMaps: 1
  Render to texture: 1
  Max draw buffers: 8
  Max color render targets: 8
  Packed depth-stencil: 1
  Texture float: 1
  GLSL Version: 4.00 - Build 9.17.10.2857
  ShaderModel 2: 1
  ShaderModel 3: 1
  ShaderModel 4: 0
  OGL ATIFragmentShader: 0
ATTENTION: System does not support const arrays in glsl!
Setting up G-Bugger: type: 0 texturenum: 4
Adding engine materials
Initializing DevIL
  Vendor String: Abysmal Software
  Version String: Developer's Image Library (DevIL) 1.6.8pre Aug 12 2006
  Version Number: 168
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
  Available OpenAL devices:
   0. Generic Software on Speakers and Headphones (IDT High Definition Audio CODEC)(OpenAL default)
  Trying to open device 'Generic Software on Speakers and Headphones (IDT High Definition Audio CODEC)'... Success!
  Number of mono sources: 32
  Streaming setup: 2 Buffers x 524288 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
-----------------------------------------------------
LevelEditor Build ID: 20101027185544
-----------------------------------------------------
Created Entity Loader
ERROR: Could not load XML document 'AreaTypes.cfg'

[Image: signature-2.png]
08-16-2014, 10:13 PM
Find
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#4
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

AreaTypes.cfg... maybe the text in the file is wrong somewhere?

Spoiler below!

<AreaConfig>
    <Types>
        <Type Name="Script">
            <EditorSetupVars>
                <Var Name="Color" Value="1 0 0 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="PlayerLookAtCallback" Type="String"  DefaultValue=""          Description="Callback called when player looks at entity syntax: MyFunc(string &in entity, int alState) state: 1=looking, -1=not looking" />
                <Var Name="PlayerLookAtCallbackAutoRemove" Type="Bool"  DefaultValue="true"     Description="if look at callback should be removed when player looks."/>
                <Var Name="PlayerInteractCallback" Type="String"  DefaultValue=""         Description="Callback called when player interacts with entity. Syntax: void Func(string &in entity)" />
                <Var Name="PlayerInteractCallbackAutoRemove" Type="Bool" DefaultValue="false"     Description="Should interact callback be removed when entity is interacted with and callback called." />
                <Var Name="ItemInteraction" Type="Bool"  DefaultValue="false"             Description="Set true if an item is used on this area."/>
                <Var Name="MaxFocusDistance" Type="Float"  DefaultValue="-1"             Description="The max focus distance. If -1 then default (from game.cfg) is used."/>
            </Vars>
        </Type>
        
        <Type Name="PosNode">
            <EditorSetupVars>
                <Var Name="Color" Value="0.5 1 0.5 1" />
                <Var Name="Sphere" Value="true" />
                <Var Name="DefaultSize" Value="0.5 0.5 0.5" />
                <Var Name="AllowRotate" Value="false" />
                <Var Name="AllowScale" Value="false" />
            </EditorSetupVars>
            <Vars>
            </Vars>
        </Type>
        
        
        <Type Name="Flashback">
            <EditorSetupVars>
                <Var Name="Color" Value="0 1 0 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="FlashbackFile" Type="File"  Extensions="flash" DefaultValue=""    Description="The flashback file played when player enters area. Flashbacks should be Flashbacks folder."/>
                <Var Name="Callback" Type="String"  DefaultValue=""                 Description="Callback that runs when flasback is over. Syntax: MyFunc()"/>
            </Vars>
        </Type>
        
        <Type Name="Sign">
            <EditorSetupVars>
                <Var Name="Color" Value="0.5 0.5 1 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="TextCat"  Type="String" DefaultValue=""                 Description="Text lang category."/>
                <Var Name="TextEntry"  Type="String" DefaultValue=""                 Description="Text lang  entry."/>
            </Vars>
        </Type>
        
        <Type Name="SlimeDamage">
            <EditorSetupVars>
                <Var Name="Color" Value="0.5 1 0 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="mlSlimeType"  Type="Int" DefaultValue="0"                 Description="Determines attack properies. See game.cfg for the different proper values.."/>
                <Var Name="MinCheckAttackTime"  Type="Float" DefaultValue="2"             Description="The min time between check to attack."/>
                <Var Name="MaxCheckAttackTime"  Type="Float" DefaultValue="5"             Description="The max time between check to attack."/>
                <Var Name="DisableAfterAttack"  Type="Bool" DefaultValue="false"         Description="If area should be disabled after an attack on player."/>
                <Var Name="Callback"  Type="String" DefaultValue=""                 Description="Called when attacking player. Syntax: MyFunc(string &in asArea)"/>
            </Vars>
        </Type>
        
        <Type Name="Examine">
            <EditorSetupVars>
                <Var Name="Color" Value="1 0 1 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="DescCat"  Type="String" DefaultValue=""                 Description="Normal description lang category. Leave empty for no description"/>
                <Var Name="DescEntry"  Type="String" DefaultValue=""                 Description="Normal description entry."/>
            
                <Var Name="DescInsaneCat"  Type="String" DefaultValue=""             Description="Insane description lang category. If empty normal is used."/>
                <Var Name="DescInsaneEntry"  Type="String" DefaultValue=""             Description="Insane description lang ntry."/>
            
                <Var Name="Sound"  Type="File"  ResType="Sound" DefaultValue=""        Description="Normal sound played."/>
                <Var Name="InsaneSound"  Type="File"  ResType="Sound" DefaultValue=""     Description="Insane sound played. If empty normal sound is played."/>
            </Vars>
        </Type>
        
        <Type Name="Insanity">
            <EditorSetupVars>
                <Var Name="Color" Value="1 0.5 0.3 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="AutoDisable"  Type="Bool" DefaultValue="false"                 Description="If the area is disabled once effect is triggered."/>
            </Vars>
        </Type>
        
        
        <Type Name="Ladder">
            <EditorSetupVars>
                <Var Name="ShowOrientation" Value="true" />
                <Var Name="Color" Value="0.5 1 0 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="Material" Type="Enum"  DefaultValue="0"                 Description="The type of sounds the player will make climbing the lader">
                    <EnumValue Name="metal" />
                    <EnumValue Name="wood" />
                    <EnumValue Name="rope" />
                </Var>    
            </Vars>
        </Type>
        
        
        <Type Name="Liquid">
            <EditorSetupVars>
                <Var Name="Color" Value="0 0 1 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="Density" Type="Float"  DefaultValue="100"                 Description="Density of the water. The higher the heavier things float." />
                <Var Name="LinearViscosity" Type="Float"  DefaultValue="0.1"             Description="The higher, the more slowed down things will be in linear transformations (changing postion)" />
                <Var Name="AngularViscosity" Type="Float"  DefaultValue="0.1"             Description="The higher, the more slowed down things will be in angular transformations (changing rotation)"/>

                <Var Name="HasWaves" Type="Bool"  DefaultValue="true"                 Description="If object will go up and down in a wavelike manner."/>
                <Var Name="WaveAmp" Type="Float"  DefaultValue="0.04"                 Description="Height of waves." />
                <Var Name="WaveFreq" Type="Float"  DefaultValue="3"                 Description="How fast the waves will go up and down." />
                
                <Var Name="PlayerSpeedMul" Type="Float"  DefaultValue="0.8"             Description="Player speed is multplied by this when in water." />
                <Var Name="MaxWaveDistance" Type="Float"  DefaultValue="25"             Description="Max distance from player that objects get waves. This is an optimziation thingie." />
                
                <Var Name="PhysicsMaterial" Type="Enum"  DefaultValue="0"             Description="Material of water." >
                    <EnumValue Name="Water" />
                </Var>    
            </Vars>
        </Type>
        
        <Type Name="Sticky">
            <EditorSetupVars>
                <Var Name="Color" Value="0 1 1 1" />
            </EditorSetupVars>
            <Vars>
                <Var Name="MoveBody" Type="Bool"  DefaultValue="true"             Description="If body is moved into postion when placed" />
                <Var Name="RotateBody" Type="Bool"  DefaultValue="true"         Description="If body is rotated according to area." />
            
                <Var Name="CheckCenterInArea" Type="Bool"  DefaultValue="true"         Description="If body center must be in area for it to be attached." />
            
                <Var Name="CanDetach" Type="Bool"  DefaultValue="true"            Description="If the body can be detached." />
            
                <Var Name="PoseTime" Type="Float"  DefaultValue="1"             Description="The time it takes to get moved and rotated into postion." />
                
                <Var Name="AttachableBodyName" Type="String"  DefaultValue=""         Description="If not empty then this determines if a body can be attached or not. If the string exsits in a body name then it is attached. " />
                
                <Var Name="AttachFunction" Type="String"  DefaultValue=""         Description="Called at attach. Call AllowStickyAreaAttachment with if attachment should work (if AttachableBodyName succeeded then no need to call) ! Syntax: void Func(string &in asStickyArea, string &in asBodyName)" />
                <Var Name="DetachFunction" Type="String"  DefaultValue=""         Description="Called at detach Syntax: void Func(string &in asStickyArea, string &in asBodyName)"/>
            
                <Var Name="AttachSound" Type="File"  ResType="Sound"  DefaultValue=""             Description="Sound played when attaching body." />
                <Var Name="DetachSound" Type="File"  ResType="Sound"  DefaultValue=""             Description="Sound played when detaching body." />
            
                <Var Name="AttachPS" Type="File"  ResType="ParticleSystem"  DefaultValue=""             Description="Particles created when attaching body." />
                <Var Name="DetachPS" Type="File"  ResType="ParticleSystem"  DefaultValue=""             Description="Particles created when detaching body." />
            </Vars>
        </Type>
        
        <Type Name="Rope">
            <EditorSetupVars>
                <Var Name="Color" Value="1 1 0 1" />
                <Var Name="Sphere" Value="true" />
                <Var Name="DefaultSize" Value="0.5 0.5 0.5" />
                <Var Name="AllowRotate" Value="false" />
                <Var Name="AllowScale" Value="false" />
            </EditorSetupVars>
            <Vars>
                <Var Name="EndPosNode" Type="String"  DefaultValue=""     Description="A PosNode area that sets the end of the rope" />
                <Var Name="StartBody" Type="String"  DefaultValue=""     Description="The body at the start of the rope. Game first looks for Body with name, and then for entity. Can be empty" />
                <Var Name="EndBody" Type="String"  DefaultValue=""     Description="The body at the end of the rope. Game first looks for Body with name, and then for entity." />
            
                <Var Name="MinTotalLength" Type="Float"  DefaultValue="0.5"     Description="The minimum length of the rope." />
                <Var Name="MaxTotalLength" Type="Float"  DefaultValue="10"     Description="The maximum length for the rope" />
                
                <Var Name="AutoMove" Type="Bool"  DefaultValue="false"         Description="If the rope automoves." />
                <Var Name="AutoMoveAcc" Type="Float"  DefaultValue="5"         Description="Acceleration of automovement." />
                <Var Name="AutoMoveMaxSpeed" Type="Float"  DefaultValue="3"     Description="The maximum speed for automovement." />
                
                <Var Name="RopeFile" Type="File"  Extensions="rope" DefaultValue=""    Description="If set, it overrides all of the settings below."/>
                
                <Var Name="SegmentLength" Type="Float"  DefaultValue="0.3"     Description="Length of each segment." />
                <Var Name="Damping" Type="Float"  DefaultValue="0.1"         Description="The amount of air resitance. The higher the faster it slows down" />
                <Var Name="Strength" Type="Float"  DefaultValue="200"         Description="How much the rope pulls on the connected bodies" />
                <Var Name="Stiffness" Type="Float"  DefaultValue="3"         Description="How much slacking is allowed in the rope. The higher the less slacking." />
                <Var Name="Material" Type="File"  ResType="Material" DefaultValue="textures/ropes/default.mat"    Description="The material used" />
                <Var Name="Radius" Type="Float"  DefaultValue="0.025"         Description="Radius of each segment" />
                <Var Name="LengthTileAmount" Type="Float"  DefaultValue="1"     Description="How many times each material is tiled in a segment" />
                <Var Name="LengthTileSize" Type="Float"  DefaultValue="0.5"     Description="Only used is SegmentLength=0. The length (in m) where material repeats." />
                <Var Name="Sound" Type="File"  ResType="Sound" DefaultValue=""     Description="Sound played when moving" />
                <Var Name="SoundStartSpeed" Type="Float"  DefaultValue="0.49"     Description="Speed when sound starts playing." />
                <Var Name="SoundStopSpeed" Type="Float"  DefaultValue="0.45"     Description="Speed when sound stops playing." />
            </Vars>
        </Type>
        
        
        <Type Name="PathNode">
            <EditorSetupVars>
                <Var Name="Color" Value="0.5 0.5 1 1" />
                <Var Name="Sphere" Value="true" />
                <Var Name="DefaultSize" Value="0.5 0.5 0.5" />
                <Var Name="Icon" Value="Flag" />
                <Var Name="AllowRotate" Value="false" />
                <Var Name="AllowScale" Value="false" />
            </EditorSetupVars>
            <Vars>
            </Vars>
        </Type>
        <Type Name="PlayerStart">
            <EditorSetupVars>
                <Var Name="Color" Value="0.5 1 0.5 1" />
                <Var Name="ShowOrientation" Value="true" />
            </EditorSetupVars>
            <Vars>
            </Vars>
        </Type>
    </Types>
</AreaConfig>


You could try replacing the text in your AreaTypes.cfg file with the stuff above (which works for me). That way you can undo it if it doesn't work (just don't close the file to test it out).

[Image: quote_by_rueppells_fox-d9ciupp.png]
08-16-2014, 11:48 PM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#5
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

it worked! oh, lawd, it worked Big Grin

ok, so now my question is, what other types of .cfg files do you have in your editor directory? Because I was actually missing AreaTypes and had to make a new one with your code, but it worked! Partially. Because I'm still missing parts of the editor; it works just fine, and the AMFP assets now work, but look: the buttons are all blank! Included in this picture is my editor folder, so you can compare yours to mine.
[Image: XAiA6zZ.jpg]

[Image: signature-2.png]
08-17-2014, 12:08 AM
Find
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#6
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

Oh, I'm not sure which ones cover that and I think I might have just found your mistake: You didn't re-install the editing suite, did you?

Regardless, here's the whole editor file if you need it. Unzip (if it's not in a folder called editor, make one for it - I'm not sure if I made one) in to redist

[Image: quote_by_rueppells_fox-d9ciupp.png]
(This post was last modified: 08-17-2014, 12:22 AM by CarnivorousJelly.)
08-17-2014, 12:22 AM
Find
Streetboat Offline
Posting Freak

Posts: 1,099
Threads: 40
Joined: Mar 2011
Reputation: 56
#7
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

perfect. I'm back in business 100%. you're the best Smile

[Image: signature-2.png]
08-17-2014, 12:23 AM
Find
CarnivorousJelly Offline
Posting Freak

Posts: 1,196
Threads: 41
Joined: Dec 2012
Reputation: 80
#8
RE: reinstalled game with AMFP assets finally- level editor crashes on launch

N'aw X3 Glad I could help!

[Image: quote_by_rueppells_fox-d9ciupp.png]
08-17-2014, 01:05 AM
Find




Users browsing this thread: 3 Guest(s)