Jump to content

Hal's Prefab Editor


HAL9000

Recommended Posts

Hi Hal, Just ran the auto update and received the following error when launching the editor. [IMG]http://i.imgur.com/BJf0j0S.png[/IMG] See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.TypeInitializationException: The type initializer for 'SDTDEditor.Helper' threw an exception. ---> System.TypeLoadException: Method 'Get' in type 'Prefab' from assembly 'SDTDEditor, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation. at SDTDEditor.frmPrefabEditor..ctor() at SDTDEditor.Helper..cctor() --- End of inner exception stack trace --- at SDTDEditor.Helper.LoadSettings() at SDTDEditor.frmMenu.frmMenu_Load(Object sender, EventArgs e) at System.Windows.Forms.Form.OnLoad(EventArgs e) at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible) at System.Windows.Forms.Control.CreateControl() at System.Windows.Forms.Control.WmShowWindow(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.Form.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Loaded Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18444 built by: FX451RTMGDR CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll ---------------------------------------- SDTDEditor Assembly Version: 1.0.0.0 Win32 Version: 1.0.0.0 CodeBase: file:///C:/Users/Earl%20Lazarus%20Kiamzon/Desktop/Hal's%20Prefab%20Editor%202.0/SDTDEditor.exe ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.0.30319.18408 built by: FX451RTMGREL CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- Assembly-CSharp Assembly Version: 0.0.0.0 Win32 Version: CodeBase: file:///C:/Users/Earl%20Lazarus%20Kiamzon/Desktop/Hal's%20Prefab%20Editor%202.0/Assembly-CSharp.DLL ---------------------------------------- UnityEngine Assembly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///C:/Users/Earl%20Lazarus%20Kiamzon/Desktop/Hal's%20Prefab%20Editor%202.0/UnityEngine.DLL ---------------------------------------- ************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled. For example: When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
Link to comment
Share on other sites

[QUOTE=HAL9000;93864]Can someone make a video of the update process not working? It's happening on too many different computers for it to be a user problem but without details or a reproducible pattern I can't write a solution. Cheers, Hal[/QUOTE] I'm now getting the same error as the others. here's a video [url]http://screencast-o-matic.com/watch/c21l3anpQe[/url]
Link to comment
Share on other sites

[QUOTE=daq007;94043]I'm now getting the same error as the others. here's a video [url]http://screencast-o-matic.com/watch/c21l3anpQe[/url][/QUOTE] Thanks daq. I've released a new version with the update procedure changed. Download it again and let me know how it goes. Cheers, Hal
Link to comment
Share on other sites

[QUOTE=HAL9000;94238]Thanks daq. I've released a new version with the update procedure changed. Download it again and let me know how it goes. Cheers, Hal[/QUOTE] Thanks, Hal! Can't wait to get home to try it. Redownload from regular link?
Link to comment
Share on other sites

Update fails on ICSharpCode.SharpZipLib.dll (access denied, says it is in use by another process), sorry for not being more precise, I'm on a Dutch windows 7-64, so not sure but think it's an unhandled exception. Anyway here are the details... in dutch. Zie het einde van dit bericht voor meer informatie over het aanroepen van JIT-foutopsporing (Just In Time) in plaats van dit dialoogvenster. ************** Tekst van uitzondering ************** System.IO.IOException: Kan geen toegang krijgen tot het bestand C:\_temp\_\7D2D\7D2D Tools Editors\7DTD_Editor HAL9000/ICSharpCode.SharpZipLib.dll omdat het wordt gebruikt door een ander proces. bij System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) bij System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite) bij SDTDEditor.frmUpdate.btnUpdate_Click(Object sender, EventArgs e) bij System.Windows.Forms.Control.OnClick(EventArgs e) bij System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) bij System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) bij System.Windows.Forms.Control.WndProc(Message& m) bij System.Windows.Forms.ButtonBase.WndProc(Message& m) bij System.Windows.Forms.Button.WndProc(Message& m) bij System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) bij System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) ************** Geladen assembly's ************** mscorlib Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5477 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll ---------------------------------------- SDTDEditor Assembly-versie: 1.0.0.0 Win32-versie: 1.0.0.0 CodeBase: file:///C:/_temp/_/7D2D/7D2D%20Tools%20Editors/7DTD_Editor%20HAL9000/SDTDEditor.exe ---------------------------------------- System.Windows.Forms Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5468 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5467 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5467 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- System.Core Assembly-versie: 3.5.0.0 Win32-versie: 3.5.30729.5420 built by: Win7SP1 CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- UnityEngine Assembly-versie: 0.0.0.0 Win32-versie: 0.0.0.0 CodeBase: file:///C:/_temp/_/7D2D/7D2D%20Tools%20Editors/7DTD_Editor%20HAL9000/UnityEngine.DLL ---------------------------------------- Microsoft.VisualBasic Assembly-versie: 8.0.0.0 Win32-versie: 8.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System.Web.Services Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5483 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll ---------------------------------------- System.Xml Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5476 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Configuration Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5476 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll ---------------------------------------- x_oqzbvu Assembly-versie: 1.0.0.0 Win32-versie: 2.0.50727.5467 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- mscorlib.resources Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5477 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll ---------------------------------------- ICSharpCode.SharpZipLib Assembly-versie: 2.84.0.0 Win32-versie: 2.84.0.0 CodeBase: file:///C:/_temp/_/7D2D/7D2D%20Tools%20Editors/7DTD_Editor%20HAL9000/ICSharpCode.SharpZipLib.DLL ---------------------------------------- System.Windows.Forms.resources Assembly-versie: 2.0.0.0 Win32-versie: 2.0.50727.5420 (Win7SP1.050727-5400) CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_nl_b77a5c561934e089/System.Windows.Forms.resources.dll ---------------------------------------- ************** JIT-foutopsporing ************** Als u JIT-foutopsporing wilt inschakelen, moet in het configuratiebestand voor deze toepassing of computer (machine.config) de waarde jitDebugging in het gedeelte system.windows.forms zijn ingesteld. De toepassing moet ook zijn gecompileerd terwijl foutopsporing was ingeschakeld. Bijvoorbeeld: Wanneer JIT-foutopsporing is ingeschakeld, worden onverwerkte uitzonderingen naar het JIT-foutopsporingsprogramma gestuurd dat op de computer is geregistreerd en worden niet door dit dialoogvenster verwerkt
Link to comment
Share on other sites

Hi Last-I, How are you updating the program? Through the auto-update? If so can you try downloading the editor again from the link in the first post. The auto-update is fixed but only in the version you need download. Download from the link in the OP and put them into your editor folder. Overwrite all the files it wants to then open the editor again. Let me know if that works. Cheers, Hal
Link to comment
Share on other sites

Hi Hal, Having a problem with the new update. First i got this error. [url]http://pastebin.com/0uKtWGhK[/url] [ATTACH=CONFIG]3184[/ATTACH] So I re download the files. As usual it asked me to add it to the exclusions list. [ATTACH=CONFIG]3185[/ATTACH] When I tried updating after re-downloading it seem to run a batch file but failed right away and then does nothing. [ATTACH=CONFIG]3186[/ATTACH] The Command line seems to pop up for a split second and then closes. I ran the executable that is added called 7DTDEditorUpdate.exe and it pops up with a dialogue box saying updating blocks and then works, the update box does not appear. When running the default executable after the new executable it still seems to cause the same problem so it does not fix it. Thanks for your time. Sythius. I think the Images have been shrunk so these images might be better to see. [url]http://pasteboard.co/LlxvdO6.png[/url] [url]http://pbrd.co/1xVGeXf[/url] [url]http://pbrd.co/1xVGkym[/url]
Link to comment
Share on other sites

[QUOTE=Sythius;94293]Hi Hal, Having a problem with the new update. First i got this error. [url]http://pastebin.com/0uKtWGhK[/url] [ATTACH=CONFIG]3184[/ATTACH] So I re download the files. As usual it asked me to add it to the exclusions list. [ATTACH=CONFIG]3185[/ATTACH] When I tried updating after re-downloading it seem to run a batch file but failed right away and then does nothing. [ATTACH=CONFIG]3186[/ATTACH] The Command line seems to pop up for a split second and then closes. I ran the executable that is added called 7DTDEditorUpdate.exe and it pops up with a dialogue box saying updating blocks and then works, the update box does not appear. When running the default executable after the new executable it still seems to cause the same problem so it does not fix it. Thanks for your time. Sythius.[/QUOTE] The attachments on your post aren't working. Are they screenshots? So you've downloaded again from the OP? And copied the files over the old ones? Yes the command prompt should appear for a split second as it copies the files it needs. What do you mean by "failed right away"? If you want to check if the batch file is failing you can find it in the editor directory called "Update.bat". Edit it in notepad and add a new line and write "pause" without the quotes. Save the file then double click on the file to open it. The command prompt will open and it will run the copy methods but it will stay open after. Does it say the files were copied successfully or is there an error? Cheers, Hal --edit -- Ah, I see your screenshots now. Can you copy the contents of "Update.bat" here? It looks like there's a problem with the location
Link to comment
Share on other sites

[QUOTE=HAL9000;94296]The attachments on your post aren't working. Are they screenshots? So you've downloaded again from the OP? And copied the files over the old ones? Yes the command prompt should appear for a split second as it copies the files it needs. What do you mean by "failed right away"? If you want to check if the batch file is failing you can find it in the editor directory called "Update.bat". Edit it in notepad and add a new line at write "pause" without the quotes. Save the file then double click on the file to open it. The command prompt will open and it will run the copy methods but it will stay open after. Does is say the files were copied successfully or is there an error? Cheers, Hal[/QUOTE] Thanks for the quick reply. Never thought to add pause to the batch file thanks. I could see in the images before uploading. The batch file says: 'C:\Downloads\7DTD_Editor' is not recognized as an internal or external command. Operable program or batch file. Not too sure what you mean by OP, i downloaded it from the Here link on first post. I also downloaded it from the URL given at the top of the update text dialogue box that says download again from the OP or us this link. Once downloaded i just tried running the executable again. [COLOR="silver"][SIZE=1]- - - Updated - - -[/SIZE][/COLOR] The batch file contains this: http://pastebin.com/2FYFr8Lh. Thanks for your time.
Link to comment
Share on other sites

It seems to be the brackets in the name of the folder, so i deleted the rest of the zipped files and renamed the new zipped file so it did not have (2) in it, i then extracted the file again and all worked fine. Thank you for the live debugging. Sythius.
Link to comment
Share on other sites

Yeah I just found that too. Even adding a space before the parenthesis makes it work. Very strange. I wonder if it's a dos command but I'll have to have a look and see why it's doing that. Glad you got it fixed. Yeah I just found that too. Even adding a space before the parenthesis makes it work. Very strange. I wonder if it's a dos command but I'll have to have a look and see why it's doing that. Glad you got it fixed. --edit-- Just in case any geeks are reading. It was caused by the way cmd.exe /c parses the second parameter. Wrapping it all in another set of quotes fixes it. And I thought my days of debugging DOS were long over! The update links have been updated with fixed version in case anyone else has this issue.
Link to comment
Share on other sites

Found my problem. Looks like older versions of the editor used older versions of .NET. The latest uses a version higher than what I had. Had to update. Determined this in the Windows Event Viewer. Possible for the editor to check the system for the correct version of .NET?
Link to comment
Share on other sites

[QUOTE=Hiyoto;94342]Found my problem. Looks like older versions of the editor used older versions of .NET. The latest uses a version higher than what I had. Had to update. Determined this in the Windows Event Viewer. Possible for the editor to check the system for the correct version of .NET?[/QUOTE] Yeah I've had to re-upgrade the framework the editor uses to 4.5 so I can have the assembly-csharp.dll included as a reference inside the editor. Unfortunately there's no way for the editor to check if the framework is installed as it needs the framework to open. I usually just put ther requirement in the first post but I can't edit here. Can a mod add the line "Required .NET Framework 4.5 found [URL="http://www.microsoft.com/en-gb/download/details.aspx?id=40779"]here[/URL]" to the original post please? Cheers, Hal
Link to comment
Share on other sites

Hal, It looks like the update is stuck in a loop.. It updates.. replaces the Assembly-CShapp.dll then exits, restarts and says an update is available.. If I exit I still have .22 listed. I think it worked, but the version didn't get updated so it tries to update again.
Link to comment
Share on other sites

[QUOTE=Wsiegel;94898]Hal, It looks like the update is stuck in a loop.. It updates.. replaces the Assembly-CShapp.dll then exits, restarts and says an update is available.. If I exit I still have .22 listed. I think it worked, but the version didn't get updated so it tries to update again.[/QUOTE] Ah ok, try now. Just updated the link Cheers, Hal
Link to comment
Share on other sites

All right I'm not sure if it's a bug or I am using the program wrong. Most likely the latter is the problem but here it is. When editing my prefab and using the info button to change the orientation of a block upon switching back to the edit button the program is replacing blocks with other blocks that I have not specified. For example: I go to info mode to change the iron bars I placed to the correct orientation. I tell the program to save and then go back to the edit mode. Upon going up or down a layer I find that the program has replaced some blocks with iron bars and those blocks are not even in the area I was working with. Does anyone have this problem or could perhaps tell me what I am doing wrong. I am getting pretty frustrated as trying to fix it just seems to cause other blocks to change as well. The only work around I have found is when using the info mode I have to save and close the editor, restart it, edit the blocks back and everything is fine. I hope I explained it well enough as this is continually happening to me.
Link to comment
Share on other sites

[QUOTE=Allurapre;94932]All right I'm not sure if it's a bug or I am using the program wrong. Most likely the latter is the problem but here it is. When editing my prefab and using the info button to change the orientation of a block upon switching back to the edit button the program is replacing blocks with other blocks that I have not specified. For example: I go to info mode to change the iron bars I placed to the correct orientation. I tell the program to save and then go back to the edit mode. Upon going up or down a layer I find that the program has replaced some blocks with iron bars and those blocks are not even in the area I was working with. Does anyone have this problem or could perhaps tell me what I am doing wrong. I am getting pretty frustrated as trying to fix it just seems to cause other blocks to change as well. The only work around I have found is when using the info mode I have to save and close the editor, restart it, edit the blocks back and everything is fine. I hope I explained it well enough as this is continually happening to me.[/QUOTE] I can't replicate what you're describing but I did find something that needed tweaking in the show block info area. Try a manual update and see if it helps. If it doesn't then I'll need step-by-step instructions to reproduce. e.g. 1) Create a 5x5x5 prefab 2) Fill layer 0 with stone 3) Add 4 iron bars at the corners 4) Set info mode and change direction to "North-west" .... Cheers, Hal
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...