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
Mysteryem
Global Moderator
Global Moderator
Posts: 728
Joined: 22 Sep 2008, 19:44
Location: UK

Re: FlaME -- The Warzone 2100 Map Editor

Post by Mysteryem »

NoQ wrote:A couple of feature requests.

1. I'd still like to have an ability to manually adjust triangles. This could have been especially helpful on mountain maps like this, because choosing triangles for icecaps is non-trivial.
You can manually switch triangle direction with ' \'.
"...If pure awesomeness were bricks, this would be the Great Wall of China...
The glory of this has collapsed on its self so far, that even the neutrons have collapsed."
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 »

:oops: :oops: :oops: i looked at the keyboard shortcuts list, really :oops: i just didn't notice :oops:
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 »

Welcome in the club I did the same with few thing here :augh: always in rush always in rush and what for :hmm:
“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
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: FlaME -- The Warzone 2100 Map Editor

Post by NoQ »

Well, i even think i already asked :oops:
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 »

8)

Blinded by the.. rush ? :hmm:

I think we will do so more in future, at least I will.. I already seeing this process of Flail13 beginning to hate me :augh:

:stressed:
“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
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'm having a trouble with "Circular/Square" buttons on one of the machines. On the machine i actually us it everything is ok. I use mono 2.10 on both of them. This doesn't change when i resize the window, and the problem is the same on the "Terrain" and "Height" tabs as well.
You do not have the required permissions to view the files attached to this post.
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 »

Another bug report, better reproducible this time.

When i open the options dialog for the first time, and then accept the changes, mouse wheel zoom starts working incorrectly. Zooming out leads to scrolling down to a certain line and then doing nothing, but only when i reach the default zoom, otherwise it is still zoom out. Keyboard zoom works fine, affecting the "default zoom" mentioned before instead. Also, when you restart FlaME, the initial zoom level becomes very low.

The problem disappears when i remove the following line from settings.ini

Code: Select all

FOVDefault=5E-05
I don't touch the option it refers to.

I'm still using 1.22/mono-2.10 version.
Bruce Marsh
New user
Posts: 1
Joined: 11 Oct 2011, 01:31

Re: FlaME -- The Warzone 2100 Map Editor

Post by Bruce Marsh »

I'm creating my first map, using FlaME 1.22, and I get 2 errors when it loads:

(Warning) Load object data: Loading PIE "drcytran.pie": PIE texture "page-15.png" was not loaded.
(Warning) Load object data: Loading PIE "prhnaval1.pie": PIE texture "page-28-naval.png" was not loaded.

Everything looks fine in FlaME, but when I play the map, the wrecked buildings show up with the wrong texture. The I'm using Warzone 2100 version 2.3.8

Also, the map I'm making is based on the Warzone 2100 logo. Who do I need to get permission from to release the map? Or is the logo public domain now? I think an early version of the map got out when I was trying to get multiplayer to work, so I could test it with my son. As soon as I started hosting the game, several people started joining, and I got several "map downloaded" messages, before I could cancel the game and restart it with a password.
You do not have the required permissions to view the files attached to this post.
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 »

(Warning) Load object data: Loading PIE "drcytran.pie": PIE texture "page-15.png" was not loaded.
(Warning) Load object data: Loading PIE "prhnaval1.pie": PIE texture "page-28-naval.png" was not loaded.
Ignore.
Everything looks fine in FlaME, but when I play the map, the wrecked buildings show up with the wrong texture. The I'm using Warzone 2100 version 2.3.8
You can't place wrecked buildings in rocky mountains in 2.3.8. You just can't. Buildings are for urban.
I think an early version of the map got out
Make sure the final resease has a different map name.
... Warzone 2100 logo. Who do I need to get permission from ...?
Last time i asked, they said i didn't need a permission.
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 »

The first post is updated to 1.23.

I found that the way VB converts data to and from text can vary with your system's location settings. There's a chance some people using 1.20, 1.21 or 1.22 who are not using default English language settings could get corrupted output in their maps or settings file. I've changed 1.23 to use invariant English language for all text.

NoQ that's probably what was causing your options bug. I don't have any ideas for what could be causing the other interface bug.

Because FlaME takes a while to load, I changed it to be a single-instance-application (can only run in one window) with maps loaded as tabs. In Windows you can drag files onto the window to open them.

Gateways can (and will) be undone when pressing ctrl-z in 1.23.
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 »

I'm having issues getting this to run on Ubuntu 11.10 (mono-runtime 2.10.5-1 with libmono-microsoft-visualbasic10.0-cil 2.10-1). FlaME version is 1.23. I'll check the previous posts to see if anyone else has run into the same problem.

Code: Select all

X11 Error encountered: 
  Error: BadMatch (invalid parameter attributes)
  Request:     135 (5)
  Resource ID: 0x3600013
  Serial:      209
  Hwnd:        Hwnd, Mapped:False ClientWindow:0x3600013, WholeWindow:0x3600012, 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()
   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: 0x3600013
  Serial:      226
  Hwnd:        Hwnd, Mapped:True ClientWindow:0x3600013, WholeWindow:0x3600012, 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()
   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)


Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for FlaME.modProgram ---> 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..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) FlaME.ctrlMapView:.ctor ()
  at FlaME.frmMain..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) FlaME.frmMain:.ctor ()
  at FlaME.modProgram..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 
  at FlaME.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for FlaME.modProgram ---> 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..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) FlaME.ctrlMapView:.ctor ()
  at FlaME.frmMain..ctor () [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) FlaME.frmMain:.ctor ()
  at FlaME.modProgram..cctor () [0x00000] in <filename unknown>:0 
  --- End of inner exception stack trace ---
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun () [0x00000] in <filename unknown>:0 
  at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run (System.String[] commandLine) [0x00000] in <filename unknown>:0 
  at FlaME.My.MyApplication.Main (System.String[] Args) [0x00000] in <filename unknown>:0
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 »

Anyway. Little feature request for ya Flail. :)

I'd really love it if when we double-click a unit, feature or structure on the map that it selects that item in the list. Would make designing a lot faster. Thanks ahead of time. :D
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 »

If you didn't already know you can hold ctrl while clicking on units or terrain to select that type.
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 »

Awesome, thanks bud. Didn't know that. :lol2:
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 »

When in the misc, resize, object properties or place objects (without choosing an object to place) tabs, you can click and drag the mouse to select multiple objects. Alternatively, you can use select units button to select all objects within your currently selected area using the selection tool.
Image

Then, in the objects properties tab, choose a player for the objects and it will change all of the selected objects to that player.
I tried and I failed.. what is more I am not sure if it is answer for my question..

I am using flame 1.23 now.

WhatI want to ask or shall I say achieve. I made a symmetric map for four players, I didnt rotate one piece three times yet. Is there a possibility to copy for example base 0 and paste it as base 1 on another piece of land ?? and if please tell me step by step how to do it.. I know I probably failed entirely but simply I cannot figure it out..
“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