Hammerwatch Forum

Technical Support => Bug Reports => Topic started by: Grizwhirl on August 13, 2013, 06:09:27 PM

Title: Editor Crash when trying to Test
Post by: Grizwhirl on August 13, 2013, 06:09:27 PM
Whenever I try to test a level in the editor the level fails to load.

Title: Re: Editor Crash when trying to Test
Post by: Juschlan on August 13, 2013, 09:40:18 PM
Is it your level? I mean, is it possible to start the example level?
Title: Re: Editor Crash when trying to Test
Post by: Grizwhirl on August 13, 2013, 09:43:00 PM
No, the example level fails to load as well.
Title: Re: Editor Crash when trying to Test
Post by: Juschlan on August 13, 2013, 09:45:06 PM
How did you test the level? Using the buttons in the editor or did you play it via the hammerwatch.exe in the editor folder?
Or you moved the maps into the folder of the normal game?
Is there an error.txt?
Title: Re: Editor Crash when trying to Test
Post by: Grizwhirl on August 13, 2013, 10:08:03 PM
Running the level from the editor is where the game crashes. I can compile the level and put it in the Hammerwatch level folder, but that is cumbersome when i'm testing inter-connected scripts. I attached an error.txt in my initial post
Title: Re: Editor Crash when trying to Test
Post by: machao on August 14, 2013, 10:36:14 AM
Same for me
Title: Re: Editor Crash when trying to Test
Post by: Linaru on August 14, 2013, 12:11:27 PM
you can  run the debug launcher and test it without compiling the map, but it does not make it as easy to load  as the editor, hope myran can get this fixed soon

alternatively i remember hipshot telling me about a bat file he used to test , i could never get it to work but maybe you can.

just create a test document and put in

Code: [Select]
@Echo off
Echo Level_* file:
set /p Input=
Echo Class (knight/ranger/wizard/warlock):
set /p Input2=
"hammerwatch.exe" l editor\greyfall\levels\level_%Input%.xml c %Input2% r 1920x1080

change greyfull to your maps folder and save it as a bat.

this does require that your maps levels be be named level_example.xml

Title: Re: Editor Crash when trying to Test
Post by: Juschlan on August 14, 2013, 04:36:42 PM
I prever the "start at camera" button.
Debug needs cheatcodes :D
Title: Re: Editor Crash when trying to Test
Post by: Myran on August 14, 2013, 05:22:47 PM
If you right click Hammerwatch in your steam library and go in to properties, betas and select "testing - Public testing" (no password), it should download a patch for the game, it contains a few crash fixes and a few editor fixes, it might help.
The debug version does have cheats, if you open the console (with the standard ~/§ button depending on keyboard layout) theres a bunch of commands you can use, like "god" and "noclip" (use tab to list)
Title: Re: Editor Crash when trying to Test
Post by: Juschlan on August 14, 2013, 05:49:23 PM
The debug version does have cheats, if you open the console (with the standard ~/§ button depending on keyboard layout) theres a bunch of commands you can use, like "god" and "noclip" (use tab to list)

Ok, thanks, I didn't know that^^ I think that's different on my german keyboard, I will try.
Title: Re: Editor Crash when trying to Test
Post by: Linaru on August 14, 2013, 10:02:56 PM
recently discovered that if i copy the whole hammer-watch game folder into program files the run from camera and test buttons in the editor work fine, it would seem that it dosent like the steam folder. Myran is working on a fix for this but in the mean time copying the game folder could be a workaround.

just make sure you don't miss any patches.
Title: Re: Editor Crash when trying to Test
Post by: Grizwhirl on August 15, 2013, 01:54:37 PM
Thanks moving the folder helped. I set up the opt in beta so ill keep an eye on the patches
Title: Re: Editor Crash when trying to Test
Post by: 2665 on August 17, 2013, 05:48:09 PM
I have this same sort of issue.  I can make and a run a map fine, but if I save it and then close and reopen the editor I can't run the map anymore.