![]() |
Re: Dom3 Unit Maker
I have now tested this with Mono 1.2.2.1 and it works fine for one negligible unimplemented method:
<font class="small">Code:</font><hr /><pre>Unimplemented: Control::set_AutoSize(bool)</pre><hr /> and one shortcoming: You seem to be using the backslash as directory seperator which gives problems with non-Windows systems, of course. Since Windows is POSIX-conform since WinNT and takes a slash "/" instead of a backslash "\", too, could you change your program to use slashes instead, or find out what the right character to use is? I think the trouble is just that you have the backslash hardcoded so far. So far, it saves the files under weird filenames (in the parent directory where you want to save it, with the filename "dir\file.dm" for the file. |
Re: Dom3 Unit Maker
yeah, those slashes are hardcoded. i believe windows will take either the back- or forward slash, so should be an easy fix. ive been waiting for my new lappy to arrive before starting to play with new software, my old pc is barely limping along. so after i get that i'll experiment with mono and get that multiplatform release out.
|
Re: Dom3 Unit Maker
Will MapGen come out multiplatform also?
Id like to program a basic program to run batches of daily maps off of my server. Something like I did for Dom2 with DomMap (which I might resurrect) http://www.dom2minions.com/~dominion...andomMaps.html I was thinking of having it run at night on my Windows machine then automate transfering them to the linux server. But Id much rather it all ran on linux |
Re: Dom3 Unit Maker
so, when can we expect the next version of the unit gen?
I love this thing! saves me tons of time modding! |
Re: Dom3 Unit Maker
Quote:
using System.IO; public class Test { public static void Main(string[] args) { Console.WriteLine("This is the DirectorySeparatorChar: " + Path.DirectorySeparatorChar); } }</pre><hr /> Quote:
|
Re: Dom3 Unit Maker
Thanks for the info. Or a vmware to run an emulation of winxp.
But no Id rather not. My 2 linux boxes are internet servers so I try to avoid gui and emulated environments. As kludgy as it sounds, Id rather do a nightly transfer from my desktop. Its more serverish (thats not a word) |
Re: Dom3 Unit Maker
eventually i will try and get mapgen to be multi-os. think i mentioned this before, maybe not.
|
Re: Dom3 Unit Maker
P.S.: Since I'm getting the Dom3 server monitor tool ready for Linux / Mono, too, and there is the same trouble as here: Probably the best way of getting the full path for a file is to use Path.Combine. Example code:
<font class="small">Code:</font><hr /><pre>using System; using System.IO; public class Test { public static void Main(string[] args) { string s = Path.Combine(Environment.GetEnvironmentVariable("H OME"), "test"); Console.WriteLine(s); Console.WriteLine(File.Exists(s)); Console.WriteLine(Directory.Exists(s)); } }</pre><hr /> I didn't have any experience with C# so far, but it sure is nice, I must admit. http://forum.shrapnelgames.com/images/smilies/happy.gif |
Re: Dom3 Unit Maker
For some reason that doesnt work on my linux system.
Personally, since you have a config file asking for a path to a file, Id just add another option for the path seperator. Or if I were to do a test I think it would be something like this. can I see ./program.cfg or do I have to look at .\program.cfg |
Re: Dom3 Unit Maker
Gandalf, have you installed Mono? What does "mono --version" tell you?
If you have installed it, then running "mono Dom3UnitMaker.exe" should work for you without problems, except for lots of "Unimplemented: Control::set_AutoSize(bool)" messages. |
All times are GMT -4. The time now is 08:38 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.