FlaME -- The Warzone 2100 Map Editor

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: FlaME -- The Warzone 2100 Map Editor

Post by NoQ »

I ran FlaME under VirtualBox before the mono version came out.
It was sort of usable, but very slow.

Mono is certainly the right way to try on linux/macs.

Somebody said that he managed to run FlaME under some recent versions of wine.
Flail13 wrote:Links to 1.28 are in the first post.
:D
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: FlaME -- The Warzone 2100 Map Editor

Post by Goth Zagog-Thou »

Code: Select all

        Public MapViewBPP As Integer = 24
        Public TextureViewBPP As Integer = 24
In modSettings.vb line 26 and 27. Had to change the values to 24 for each before it would compile and run on MonoDevelop (Xubuntu 11.10). Before that, invalid parameter errors kept it from working.

Good release, Flail.
User avatar
tmp500
Trained
Trained
Posts: 120
Joined: 30 Jun 2010, 16:31

Re: FlaME -- The Warzone 2100 Map Editor

Post by tmp500 »

damn... still no mono luck :|

Code: Select all

FlaME 1.28$ mono FlaME.exe 
Gtk-Message: Failed to load module "pk-gtk-module"
X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     135 (5)
  Resource ID: 0x320000F
  Serial:      197
  Hwnd:        Hwnd, Mapped:False ClientWindow:0x320000F, WholeWindow:0x320000E, Zombie=False, Parent:[<null>]
  Control:     OpenTK.GLControl   at System.Environment.get_StackTrace()
   at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr , IntPtr , IntPtr )
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr display, IntPtr drawable, ContextHandle context)
   at OpenTK.Platform.X11.X11GLContext.MakeCurrent(IWindowInfo window)
   at OpenTK.Graphics.GraphicsContext.MakeCurrent(IWindowInfo window)
   at OpenTK.GLControl.MakeCurrent()
   at OpenTK.GLControl.OnHandleCreated(System.EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message ByRef m)
   at System.Windows.Forms.Control.WndProc(Message ByRef m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
   at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
   at System.Windows.Forms.UserControl.WndProc(Message ByRef m)
   at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
   at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.CreateControl()
   at OpenTK.GLControl.ValidateState()
   at OpenTK.GLControl.get_Context()
   at FlaME.modMain.Main()

OpenTK.Graphics.GraphicsContextException: Failed to make context current.
  at OpenTK.Platform.X11.X11GLContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.GLControl.MakeCurrent () [0x00000] in <filename unknown>:0 
  at OpenTK.GLControl.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.UserControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     135 (5)
  Resource ID: 0x320000F
  Serial:      291
  Hwnd:        Hwnd, Mapped:True ClientWindow:0x320000F, WholeWindow:0x320000E, Zombie=False, Parent:[<null>]
  Control:     OpenTK.GLControl   at System.Environment.get_StackTrace()
   at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr , IntPtr , IntPtr )
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr display, IntPtr drawable, ContextHandle context)
   at OpenTK.Platform.X11.X11GLContext.MakeCurrent(IWindowInfo window)
   at OpenTK.Graphics.GraphicsContext.MakeCurrent(IWindowInfo window)
   at OpenTK.GLControl.MakeCurrent()
   at FlaME.ctrlMapView.GLInitialize(System.Object sender, System.EventArgs e)
   at System.Windows.Forms.Timer.OnTick(System.EventArgs e)
   at System.Windows.Forms.Timer.FireTick()
   at System.Windows.Forms.XplatUIX11.CheckTimers(System.Collections.ArrayList timers, DateTime now)
   at System.Windows.Forms.XplatUIX11.PeekMessage(System.Object queue_id, MSG ByRef msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags)
   at System.Windows.Forms.XplatUIX11.DoEvents()
   at System.Windows.Forms.XplatUI.DoEvents()
   at System.Windows.Forms.Application.DoEvents()
   at FlaME.modMain.Main()


Unhandled Exception: OpenTK.Graphics.GraphicsContextException: Failed to make context current.
  at OpenTK.Platform.X11.X11GLContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.GLControl.MakeCurrent () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) OpenTK.GLControl:MakeCurrent ()
  at FlaME.ctrlMapView.GLInitialize (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Timer.FireTick () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer:FireTick ()
  at System.Windows.Forms.XplatUIX11.CheckTimers (System.Collections.ArrayList timers, DateTime now) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.PeekMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.DoEvents () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.DoEvents () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Application.DoEvents () [0x00000] in <filename unknown>:0 
  at FlaME.modMain.Main () [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: OpenTK.Graphics.GraphicsContextException: Failed to make context current.
  at OpenTK.Platform.X11.X11GLContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.GLControl.MakeCurrent () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) OpenTK.GLControl:MakeCurrent ()
  at FlaME.ctrlMapView.GLInitialize (System.Object sender, System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Timer.OnTick (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Timer.FireTick () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.Timer:FireTick ()
  at System.Windows.Forms.XplatUIX11.CheckTimers (System.Collections.ArrayList timers, DateTime now) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.PeekMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax, UInt32 flags) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUIX11.DoEvents () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.XplatUI.DoEvents () [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Application.DoEvents () [0x00000] in <filename unknown>:0 
  at FlaME.modMain.Main () [0x00000] in <filename unknown>:0 
tmp500 wrote:never got flame mono to work under fedora :!: any ideas?

those versions are installed:
Name : mono-basic
Arch : x86_64
Version : 2.10
Name : mono-data
Arch : x86_64
Version : 2.10.8
Name : mono-core
Arch : i686
Version : 2.10.8

thats the error (same for 1.27)

Code: Select all

FlaME 1.25$ mono FlaME.exe 
Gtk-Message: Failed to load module "pk-gtk-module"
X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     135 (5)
  Resource ID: 0x2E00013
  Serial:      211
  Hwnd:        Hwnd, Mapped:False ClientWindow:0x2E00013, WholeWindow:0x2E00012, Zombie=False, Parent:[<null>]
  Control:     OpenTK.GLControl   at System.Environment.get_StackTrace()
   at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr , IntPtr , IntPtr )
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr display, IntPtr drawable, ContextHandle context)
   at OpenTK.Platform.X11.X11GLContext.MakeCurrent(IWindowInfo window)
   at OpenTK.Graphics.GraphicsContext.MakeCurrent(IWindowInfo window)
   at OpenTK.GLControl.MakeCurrent()
   at OpenTK.GLControl.OnHandleCreated(System.EventArgs e)
   at System.Windows.Forms.Control.WmCreate(Message ByRef m)
   at System.Windows.Forms.Control.WndProc(Message ByRef m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message ByRef m)
   at System.Windows.Forms.ContainerControl.WndProc(Message ByRef m)
   at System.Windows.Forms.UserControl.WndProc(Message ByRef m)
   at System.Windows.Forms.Control+ControlWindowTarget.OnMessage(Message ByRef m)
   at System.Windows.Forms.Control+ControlNativeWindow.WndProc(Message ByRef m)
   at System.Windows.Forms.NativeWindow.WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.XplatUIX11.SendMessage(IntPtr hwnd, Msg message, IntPtr wParam, IntPtr lParam)
   at System.Windows.Forms.XplatUIX11.CreateWindow(System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.XplatUI.CreateWindow(System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.NativeWindow.CreateHandle(System.Windows.Forms.CreateParams cp)
   at System.Windows.Forms.Control.CreateHandle()
   at System.Windows.Forms.Control.CreateControl()
   at OpenTK.GLControl.ValidateState()
   at OpenTK.GLControl.MakeCurrent()
   at FlaME.ctrlMapView..ctor(FlaME.frmMain Owner)
   at FlaME.frmMain..ctor()
   at FlaME.modProgram..cctor()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[] commandLine)
   at FlaME.My.MyApplication.Main(System.String[] Args)

OpenTK.Graphics.GraphicsContextException: Failed to make context current.
  at OpenTK.Platform.X11.X11GLContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.Graphics.GraphicsContext.MakeCurrent (IWindowInfo window) [0x00000] in <filename unknown>:0 
  at OpenTK.GLControl.MakeCurrent () [0x00000] in <filename unknown>:0 
  at OpenTK.GLControl.OnHandleCreated (System.EventArgs e) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WmCreate (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ScrollableControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.ContainerControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.UserControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0 
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0 
X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     135 (5)
  Resource ID: 0x2E00013
  Serial:      228
  Hwnd:        Hwnd, Mapped:True ClientWindow:0x2E00013, WholeWindow:0x2E00012, Zombie=False, Parent:[<null>]
  Control:     OpenTK.GLControl   at System.Environment.get_StackTrace()
   at System.Windows.Forms.XplatUIX11.HandleError(IntPtr display, XErrorEvent ByRef error_event)
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr , IntPtr , IntPtr )
   at OpenTK.Platform.X11.Glx.MakeCurrent(IntPtr display, IntPtr drawable, ContextHandle context)
   at OpenTK.Platform.X11.X11GLContext.MakeCurrent(IWindowInfo window)
   at OpenTK.Graphics.GraphicsContext.MakeCurrent(IWindowInfo window)
   at OpenTK.GLControl.MakeCurrent()
   at FlaME.ctrlMapView..ctor(FlaME.frmMain Owner)
   at FlaME.frmMain..ctor()
   at FlaME.modProgram..cctor()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
   at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(System.String[] commandLine)
   at FlaME.My.MyApplication.Main(System.String[] Args)
User avatar
Mr T
Trained
Trained
Posts: 79
Joined: 21 Apr 2012, 19:49

Re: FlaME -- The Warzone 2100 Map Editor

Post by Mr T »

Flail13 wrote:Mr T, how does it look in 1.28? I added in another step to hide the textures when not on that tab.
Really sad to tell you that not only didn't the old problem disappeared, I also found an other error (with I also now noticed is in ver 1.27).
You can se in the picture how the selected option from under "Terrain Painter" can be seen under other tabs like a blue box with white text. This only happens when the selected is the last thing I click on.
You do not have the required permissions to view the files attached to this post.
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: FlaME -- The Warzone 2100 Map Editor

Post by Goth Zagog-Thou »

@ tmp500: That's an error indicating that you don't have mono-gtk-sharp installed, iirc. Not sure how you'd go about getting it on Fedora though. You also need tcl-8.4, tcl-8.5 and tk-8.4 minimum. Probably a lot of other things too. I'll help out as best I can, bud.

[EDIT] Further down the log, the second one is the error indicating that you need to dig into the code and change the values as I specified above your post.
User avatar
tmp500
Trained
Trained
Posts: 120
Joined: 30 Jun 2010, 16:31

Re: FlaME -- The Warzone 2100 Map Editor

Post by tmp500 »

ok actually im pretty proud of myself :) i found the source, figured out i need mono develop, draged flame mon....sln into the mono develop gui, compiled it made a package :O and it runs!!! the only glitch i have seen so far is that i am missing the pictures in the icons on the top.

thanks goth, dunno if that was necessary but i edited the file before compiling it :)
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: FlaME -- The Warzone 2100 Map Editor

Post by Goth Zagog-Thou »

Good going. As Obi-Wan Kenobi would say, "You've taken your first step in a larger world". :lol2:

The icons at the top are missing? That's a bit unusual. No idea what could cause that.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: FlaME -- The Warzone 2100 Map Editor

Post by NoQ »

The tab icons? The toolbar icons? Which ones? Cause it's sort of normal that tab icons are missing, it has always been that way.

P.S. can't wait to see what sort of maps you will come up with :3
User avatar
tmp500
Trained
Trained
Posts: 120
Joined: 30 Jun 2010, 16:31

Re: FlaME -- The Warzone 2100 Map Editor

Post by tmp500 »

i fixed it by copying the interface folder into my packaged version... still stunned i could walk through this process its like driving a car, not knowing what a clutch, steeringwheel and a stop sign is ;)
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: FlaME -- The Warzone 2100 Map Editor

Post by Goth Zagog-Thou »

That's why we take Driver's Ed. :D You get to study a bit before getting behind the wheel.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: FlaME -- The Warzone 2100 Map Editor

Post by NoQ »

Why was object priority property marked as 2.3 only? Did i miss something? :hmm:
User avatar
Flail13
Code contributor
Code contributor
Posts: 263
Joined: 16 May 2008, 12:00

Re: FlaME -- The Warzone 2100 Map Editor

Post by Flail13 »

I read somewhere the removal of base structures was done in no particular order in 3+
iamaloner
Trained
Trained
Posts: 49
Joined: 23 May 2012, 12:09
Location: Zagreb,Croatia

Re: FlaME -- The Warzone 2100 Map Editor

Post by iamaloner »

I got a problem... When i run flame, only flames console shows, the black dos one and nothing is wroten or getting loaded... I tried portable and the installed one, nothing.. WTF
User avatar
Merowingg
Regular
Regular
Posts: 2468
Joined: 15 Nov 2009, 13:05
Location: Poland

Re: FlaME -- The Warzone 2100 Map Editor

Post by Merowingg »

Flail13 hello Sir :)

I forgot to report it for some time, it is really anoying.. I open for example Terrain Painter, I chose Red, and then I click on how big the brush I want to be.. at this moment all the tab scroles to the right so I cannot see it, I see it only in about 30%.. it happen however big I the tabs area is made.. to see the size I chose, or to paint another tile type I have to scroll it back.. and it happens all the time..

Is it me??.. I use 1.27..

Help my friend :(
“Beneath this mask there is more than flesh. Beneath this mask there is an idea, and ideas are bulletproof.” - V

"Mark my words boy, Mark them well, I have survived your predecessors and I will survive you." - Merovingian

Regards - Mero
User avatar
Giani
Regular
Regular
Posts: 804
Joined: 23 Aug 2011, 22:42
Location: Argentina

Re: FlaME -- The Warzone 2100 Map Editor

Post by Giani »

How do I make smooth cliffs?
And how to delete features?
My maps: http://forums.wz2100.net/viewtopic.php?f=10&t=9501