To be run like this:
Code: Select all
mono flaME.exe
Code: Select all
mono flaME.exe
Code: Select all
'If My.Application.CommandLineArgs.Count >= 1 Then
' Dim Path As String = My.Application.CommandLineArgs(0)
' Result = Load_Map(Path)
' If Not Result.Success Then
' MsgBox("Failed to open the command-line map file at " & Path & ". Reason; " & Result.Problem)
' End If
'End If
Flail13 wrote:edit: what did the script do?
Code: Select all
#!/bin/bash
type=`echo $1 | sed s#/#' '#g | awk '{print $2}'`
name=`echo $1 | sed s#/#' '#g | awk '{print $3}'`
composite $type/$name $type/tile-17.png ~/tmp.png
mv ~/tmp.png $type/$nameCode: Select all
~/flaME/bin/Debug/tilesets/tertilesc1hw$ find -iname *.png -exec sh s.sh {} \;
~/flaME/bin/Debug/tilesets/tertilesc2hw$ find -iname *.png -exec sh s.sh {} \;
~/flaME/bin/Debug/tilesets/tertilesc3hw$ find -iname *.png -exec sh s.sh {} \;
After uncommenting this, loading maps as command line arguments works well.Flail13 wrote:and you should be able to uncomment: (in frmMain.Initialize)


Code: Select all
Unhandled Exception: System.InvalidOperationException: SetPixel cannot be called on indexed bitmaps.
at System.Drawing.Bitmap.SetPixel (Int32 x, Int32 y, Color color) [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:SetPixel (int,int,System.Drawing.Color)
at flaME.clsTileset.LoadDirectory (System.String Path) [0x00000] in <filename unknown>:0
at flaME.frmMain.LoadTilesets () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) flaME.frmMain:LoadTilesets ()
at flaME.frmMain.Initialize (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.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue, Boolean allowIdle) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.UpdateMessageQueue (System.Windows.Forms.XEventQueue queue) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUIX11.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr handle, Int32 wFilterMin, Int32 wFilterMax) [0x00000] in <filename unknown>:0
at System.Windows.Forms.XplatUI.GetMessage (System.Object queue_id, System.Windows.Forms.MSG& msg, IntPtr hWnd, Int32 wFilterMin, Int32 wFilterMax) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00000] in <filename unknown>:0
at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in <filename unknown>:0
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 That's exactly what i was talking about!It was causing the terrain to be badly coloured when viewing from a distance.

This replacement, together with repainting the tiles, removes all terrain glitches so far (:That patch also fixed a bug where RGB(Red, Green, Blue) should be RGB(Blue, Green, Red) in every RGB() in the clsTileset.LoadDirectory().

Code: Select all
If PixelColor.A < 255 Then
tmpBitmap.CurrentBitmap.setpixel(pixx,pixy,colortranslator.fromole(rgb(128,64,16)))
End If



I'm open to that idea. Are you suggesting to put it on this site, or hosted elsewhere?Per wrote:Can I recommend putting the sources in a version control system? It will make such collaborative work so much easier.



