Cocos Console Front End

Hi,

I’m learning cocos2d-x and found that I’m very lazy to keep typing cocos new / compile / run on the terminal. So I built a small windows application to easy my time.

You can find it here: https://github.com/thiagonevess/cocoscompilefe

Screenshots:
1.

5 Likes

Very nice! Thanks!

When I click the button to select project folder I get the error “Unhandled exception has occured in your application

The path is not of a legal form”

This is the details -

> See the end of this message for details on invoking 
> just-in-time (JIT) debugging instead of this dialog box.

> ************** Exception Text **************
> System.ArgumentException: The path is not of a legal form.
>    at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
>    at System.IO.Path.GetFullPathInternal(String path)
>    at System.IO.FileSystemEnumerableIterator`1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler`1 resultHandler, Boolean checkHost)
>    at System.IO.Directory.EnumerateDirectories(String path)
>    at CocosConsoleFE.FormMain.initProjects()
>    at CocosConsoleFE.FormMain.btnSelectProjectsFolder_Click(Object sender, EventArgs e)
>    at System.Windows.Forms.Control.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnClick(EventArgs e)
>    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
>    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
>    at System.Windows.Forms.Control.WndProc(Message& m)
>    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
>    at System.Windows.Forms.Button.WndProc(Message& m)
>    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
>    at System.Windows.Forms.Control.ControlNativeWindow.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.34209 built by: FX452RTMGDR
>     CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
> ----------------------------------------
> CocosConsoleFE
>     Assembly Version: 1.0.0.0
>     Win32 Version: 1.0.0.0
>     CodeBase: file:///G:/Projects/Split/CocosConsoleFE.exe
> ----------------------------------------
> System.Windows.Forms
>     Assembly Version: 4.0.0.0
>     Win32 Version: 4.0.30319.34250 built by: FX452RTMGDR
>     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.34209 built by: FX452RTMGDR
>     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.34239 built by: FX452RTMGDR
>     CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.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:

> <configuration>
>     <system.windows.forms jitDebugging="true" />
> </configuration>

> 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.

Hi, sorry about the delay. I have compiled another executable and it is at: https://github.com/thiagonevess/cocoscompilefe/tree/master/Binaries/v0.02

Thank you for your feedback. :slight_smile:

It’s working now :+1:

Thanks.