Author Topic: Editor for Linux in 2017  (Read 1575 times)

Editor for Linux in 2017
« on: 29 Jan 2017, 14:52 »
Hello,

I am just curious how can I install the Editor for Ubuntu 16.04, is there any automated script for PlayOnLinux or is there any Native build?

Wine gives me the error:

Code: Adventure Game Studio
  1. An unexpected error occurred. See below for details.
  2. System.NotSupportedException: Can't get timezone name.
  3.  at System.CurrentSystemTimeZone..ctor (Int64 lnow) [0x000000] in <filename unknown>:0
  4.   at System.TimeZone.get_CurrentTimeZone ()[0x000000] in <filename unknown>:0
  5.   at System.DateTime.get_Now () [0x000000] in <filename unknown>:0
  6.   at AGS.Editor.SplashScreen..ctor () [0x000000] in <filename unknown>:0
  7.   at (wrapper remoting-invoke-with-check) AGS.Editor.SplashScreen:.ctor ()
  8.   at AGS.Editor.Program.RunApplication (System.String&#91;] args) [0x000000] in <filename unknown>:0

Tried to fake me living in NY...
Code: Adventure Game Studio
  1. ~/.wine/drive_c/Program Files (x86)/Adventure Game Studio 3.4.0$ TZ=America/New_York wine AGSEditor.exe
  2. fixme:wincodecs:PngDecoder_Block_GetCount 0x1509448,0x33f318: stub
  3. fixme:wincodecs:PngDecoder_Block_GetCount 0x154d3d0,0x33f318: stub
  4. fixme:wincodecs:PngDecoder_Block_GetCount 0x1587440,0x33f5c8: stub
  5. fixme:wincodecs:PngDecoder_Block_GetCount 0x1560b08,0x33f698: stub
  6. Stacktrace:
  7.  
  8.   at <unknown> <0xffffffff>
  9.   at System.Drawing.Image.get_Palette () <0x00013>
  10.   at (wrapper remoting-invoke-with-check) System.Drawing.Image.get_Palette () <0xffffffff>
  11.   at System.Windows.Forms.Cursor.ToBitmap (bool,bool) <0x005df>
  12.   at System.Windows.Forms.Cursor.CreateCursor (System.IO.Stream) <0x00027>
  13.   at System.Windows.Forms.Cursor..ctor (System.Type,string) <0x0005f>
  14.   at System.Windows.Forms.Cursors.get_VSplit () <0x00047>
  15.   at WeifenLuo.WinFormsUI.Docking.SplitterBase.set_Dock (System.Windows.Forms.DockStyle) <0x0013b>
  16.   at WeifenLuo.WinFormsUI.Docking.DockWindow..ctor (WeifenLuo.WinFormsUI.Docking.DockPanel,WeifenLuo.WinFormsUI.Docking.DockState) <0x0015e>
  17.   at (wrapper remoting-invoke-with-check) WeifenLuo.WinFormsUI.Docking.DockWindow..ctor (WeifenLuo.WinFormsUI.Docking.DockPanel,WeifenLuo.WinFormsUI.Docking.DockState) <0xffffffff>
  18.   at WeifenLuo.WinFormsUI.Docking.DockWindowCollection..ctor (WeifenLuo.WinFormsUI.Docking.DockPanel) <0x000ab>
  19.   at WeifenLuo.WinFormsUI.Docking.DockPanel..ctor () <0x002f7>
  20.   at (wrapper remoting-invoke-with-check) WeifenLuo.WinFormsUI.Docking.DockPanel..ctor () <0xffffffff>
  21.   at AGS.Editor.frmMain.InitializeComponent () <0x00333>
  22.   at AGS.Editor.frmMain..ctor () <0x0001f>
  23.   at (wrapper remoting-invoke-with-check) AGS.Editor.frmMain..ctor () <0xffffffff>
  24.   at AGS.Editor.GUIController.Initialize (AGS.Editor.AGSEditor) <0x00087>
  25.   at AGS.Editor.ApplicationController..ctor () <0x00387>
  26.   at AGS.Editor.Program.startupTimer_Tick (object,System.EventArgs) <0x00147>
  27.   at System.Windows.Forms.Timer.OnTick (System.EventArgs) <0x00023>
  28.   at System.Windows.Forms.Timer.FireTick () <0x00018>
  29.   at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer.FireTick () <0xffffffff>
  30.   at System.Windows.Forms.XplatUIWin32.GetMessage (System.Windows.Forms.MSG&,intptr,int,int,bool) <0x00537>
  31.   at System.Windows.Forms.XplatUIWin32.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) <0x0001f>
  32.   at System.Windows.Forms.XplatUI.GetMessage (object,System.Windows.Forms.MSG&,intptr,int,int) <0x00026>
  33.   at System.Windows.Forms.Application.RunLoop (bool,System.Windows.Forms.ApplicationContext) <0x00b1f>
  34.   at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext) <0x0005b>
  35.   at System.Windows.Forms.Application.Run (System.Windows.Forms.Form) <0x00037>
  36.   at AGS.Editor.Program.RunApplication (string&#91;]) <0x00127>
  37.   at AGS.Editor.Program.Main (string&#91;]) <0x00027>
  38.   at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>
  39.  
  40. abnormal program termination
  41. err:mscoree:expect_no_runtimes Process exited with a Mono runtime loaded.


Thanks!
« Last Edit: 29 Jan 2017, 15:07 by eri0o »

Re: Editor for Linux in 2017
« Reply #1 on: 07 Feb 2017, 23:32 »
I created a machine with the latest Wine (2.0) using PlayOnLinux, selected Install Components and selected dotnet20 , then selected run exe in this wineprefix, and then the latest AGS-3.4.0-P2.exe and everything appears to work!

Re: Editor for Linux in 2017
« Reply #2 on: 20 Aug 2017, 09:57 »
It is in C# and although WinForms will not look pretty and probably be broken, it should compile. Sadly it also depends on native code which I couldn't get to compile See https://github.com/Mailaender/ags/tree/linux-editor for the solution file I generated with MonoDevelop.

Crimson Wizard

  • Local Moderator
  • AGS Project Tracker Admins
    • Best Innovation Award Winner 2013, for spearheading the AGS 3.3.0 project
    •  
    • Lifetime Achievement Award Winner
    •  
    • Crimson Wizard worked on a game that was nominated for an AGS Award!
      Crimson Wizard worked on a game that won an AGS Award!
Re: Editor for Linux in 2017
« Reply #3 on: 20 Aug 2017, 14:33 »
Native C++ code (AGS.Native.dll) was and is the biggest issue. It exists for historical reasons as the remaining part of AGS 2.* editor, which was written in C++. The idea was to rewrite this part in C#, but the progress was not too big over last years (mostly due the lack of participation). I think larger part of what remains there is room-related code which is shared with the engine. Unlike main project file, which is now XML, rooms are still stored in compiled binary format even in the game project.