Manic Digger

It is currently Tue Sep 30, 2014 5:51 pm

All times are UTC




Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Mac version (download inside)
PostPosted: Tue Mar 01, 2011 10:58 am 
Offline

Joined: Tue Mar 01, 2011 10:46 am
Posts: 37
Location: Strasbourg, France
Hello,
I have compiled a Mac version of Manic Digger.
I used Cocoa for the login window instead of Windows.Forms.
This is my first try with C# so it is far from perfect but at least it is working.

Screenshots:
    Image
    Image

Download:

Know issues:
    You need to install Mono.
    The app won't launch if the path contains spaces.
    The app won't launch if you rename the bundle.
    Uses a lot of CPU.
    Mouse is buggy.
    Menu is not working (not sure it is a mac-specific issue).
    You can't reopen the login window if you close it.

Missing features:
    Server list (I don't like the actual way to present the server list. Would it be possible to have some kind of HTTP API that returns the list in XML or JSON ?)
    User-friendly errors
    Remember username and server address
    Single player mode


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Wed Mar 02, 2011 7:22 am 
Offline
Site Admin

Joined: Mon Jun 21, 2010 12:02 pm
Posts: 394
I tested MD on Mac a few days ago (rare occasion). It was a notebook with core2duo 2.4Ghz, 4GB ram, geforce 320m.

Problems were:
Mouse cursor did hide correctly. (unlike Minecraft on Mac, and Manic Digger on Ubuntu).

Menu:
I think a complete menu system should be made inside opengl window for all platforms (including mobile phones). Start.exe will be removed. This is top priority, because it's currently impossible to start game on Linux and Mac (no server list). Thread about menu: viewtopic.php?f=10&t=340&start=10

Image

Quote:
Server list (I don't like the actual way to present the server list. Would it be possible to have some kind of HTTP API that returns the list in XML or JSON ?)

http://fragmer.net/md/xml.php - there is also POST api for logging in and account verification! i'll post when i find irc log where Fragmer tells details. (I can't access c:\documents and settings\...\irclogs after windows reinstall.)


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Fri Mar 04, 2011 4:48 pm 
Offline

Joined: Tue Mar 01, 2011 10:46 am
Posts: 37
Location: Strasbourg, France
Here is a new version that fixes the following issues :
    Mono is now included in the application, so users don't have to install it anymore.
    The bundle can be renamed/placed anywhere.
    You can reopen the login window if you close it.
    There is an error message if you enter an invalid IP.
    The app remembers the username.
    There is now a server list.

Screenshot:
Image

exe wrote:
I think a complete menu system should be made inside opengl window for all platforms (including mobile phones). Start.exe will be removed. This is top priority, because it's currently impossible to start game on Linux and Mac (no server list). Thread about menu: viewtopic.php?f=10&t=340&start=10

An in-game menu would be good for portability but I think a native UI has some advantages (e.g. if you need to copy an IP from a web page or an email).

PS : I also tried to compile with the last nightly. The menu was indeed working but the crosshair did not move at all.


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Fri Mar 04, 2011 6:09 pm 
Offline
Site Admin

Joined: Mon Jun 21, 2010 12:02 pm
Posts: 394
Quote:
The menu was indeed working but the crosshair did not move at all.

You mean mouse is now completely broken?

Is attached file working on Mac? It uses new OpenTK built from SVN (3064). Cursor should be a little weird (custom acceleration formula) but shouldn't lag.


Attachments:
OpenTkMacMouseTest.zip [726.12 KiB]
Downloaded 203 times
Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Fri Mar 04, 2011 9:00 pm 
Offline

Joined: Tue Mar 01, 2011 10:46 am
Posts: 37
Location: Strasbourg, France
Mouse works fine in the menu and in point-and-click mode, but does not move in first-person and third-person modes.

Your test works fine (except for the weird accelerations).


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Fri Mar 04, 2011 9:32 pm 
Offline
Site Admin

Joined: Mon Jun 21, 2010 12:02 pm
Posts: 394
Rudloff wrote:
Your test works fine (except for the weird accelerations).

Good. So mouse in first-person can be fixed on Mac by using this method.

BTW: Both methods are needed, switched depending on system - OpenTk.Input.Mouse crashes on Ubuntu with "libxi" library missing. AFAIR I couldn't install that library. I don't know if OpenTk.Input.Mouse should be used on Windows: system-wide mouse acceleration is better than manual one (System.Windows.Forms.Cursor better), however I have seen one video on youtube where mouse cursor was not hiding properly (in that case OpenTk.Input.Mouse is better).


Attachments:
Opentk Ubuntu - mouse libxi.png
Opentk Ubuntu - mouse libxi.png [ 28.86 KiB | Viewed 5917 times ]
Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Fri Mar 04, 2011 9:41 pm 
Offline

Joined: Tue Mar 01, 2011 10:46 am
Posts: 37
Location: Strasbourg, France
libxi seems to be available on Ubuntu.
I don't use Linux anymore so I can't test.


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Sat Mar 05, 2011 7:48 am 
Offline
Site Admin

Joined: Mon Jun 21, 2010 12:02 pm
Posts: 394
Rudloff wrote:

It launched, cursor is now hiding. Ubuntu MD package will have to run this line: sudo ln -s /usr/lib/libXi.so.6 /usr/lib/libXi.so . I don't know if libXi is missing after installation.
Another problem: in OpenTkMacMouseTest.exe it's not possible to move cursor when mouse button is pressed. (unplayable)


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Sat Mar 05, 2011 9:54 am 
Offline

Joined: Tue Mar 01, 2011 10:46 am
Posts: 37
Location: Strasbourg, France
exe wrote:
Ubuntu MD package will have to run this line: sudo ln -s /usr/lib/libXi.so.6 /usr/lib/libXi.so.

You can also use a dllmap for that.
exe wrote:
Another problem: in OpenTkMacMouseTest.exe it's not possible to move cursor when mouse button is pressed. (unplayable)

I just verified, I don't have this problem on OSX.


Top
 Profile  
 
 Post subject: Re: Mac version (download inside)
PostPosted: Sat Mar 05, 2011 2:14 pm 
Offline

Joined: Tue Mar 01, 2011 10:46 am
Posts: 37
Location: Strasbourg, France
I've just compiled today's nightly and it appears that mouse does not move in windowed mode but works perfectly in fullscreen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ]  Go to page 1, 2  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group