Won't compile, but no errors?

Discussion in 'Server Support on Mono' started by TheNorthStar, Dec 9, 2010.

  1. TheNorthStar Sorceror

    Message Count:
    731
    I'm trying to compile my server on in Mono on an Ubuntu server. It's a modified ML-SVN core, but the changes I made are almost exclusivly to mobile.cs, so I don't think it's something I did wrong.

    Does anyone have any ideas? and what does this part mean?:

    Code (text):
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    full output:

    Code (text):
    RunUO - [www.runuo.com] Version 2.1, Build 3995.24284
    Core: Running on .NET Framework Version 2.0.50727
    Core: Unix environment detected
    Scripts: Compiling C# scripts...ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    done (0 errors, 18 warnings)

    EDIT: I'm running Mono 2.6.7 if that makes anything more clear.
  2. Mark Knight

    Message Count:
    7,071
    If you're using Ubuntu, ensure that you have installed the packages mono-gmcs, mono-runtime, and libmono-winforms2.0-cil.

    Completely remove the Scripts\Output directory and try again.
  3. TheNorthStar Sorceror

    Message Count:
    731
    Okay, I verified all packages are installed and full up to date, and I tried clearing output and recompiling, still the same result. I'm not really certain where to go from here, I really don't even understand what the problem is.
  4. Mark Knight

    Message Count:
    7,071
    Did you build the core yourself?

    If so, did you remember to add '/D:MONO'?
  5. TheNorthStar Sorceror

    Message Count:
    731
    Yeah, here is what I use to compile the core.
    Code (text):
    mono-csc /out:../RunUOsvnServerMONO.exe -d:MONO -optimize+ -unsafe -r:Ultima.dll,System,System.Configuration.Install,System.Data,System.Drawing,System.EnterpriseServices,System.Management,System.Security,System.ServiceProcess,System.Web,System.Web.Services,System.Windows.Forms,System.Xml -nowarn:219 -recurse:*.cs
     
  6. Felladrin Sorceror

    Message Count:
    753
  7. TheNorthStar Sorceror

    Message Count:
    731
    I followed the tutorial and still get the same result. :(
    I don't understand what the .config file is for though? I used it, I just don't know what it does. The explanation link is broken.
  8. Mark Knight

    Message Count:
    7,071
    I believe you are referring to the configuration file with a dllmap entry for libz. It shouldn't be necessary in most cases (and it has nothing to do with your current issue).

    See if the stock RunUO distribution works for you.
  9. TheNorthStar Sorceror

    Message Count:
    731
    Stock RunUO works just fine. :-/ I'm not sure what to do now... I think I'll try to compile stock RunUO with my custom core. maybe it's one of the scripts messing things up.

    Code (text):

    RunUO - [www.runuo.com] Version 2.1, Build 3995.39652
    Core: Running on .NET Framework Version 2.0.50727
    Core: Unix environment detected
    Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
    Scripts: Skipping VB.NET Scripts...done (use -vb to enable)
    Scripts: Verifying...done (2272 items, 530 mobiles)
    Enter the Ultima Online directory:
     
    EDIT: okay, it will not compile with my core. interesting.

    EDIT 2: I've narrowed it down to my mobile.cs, but without errors I really don't know what the issue is.
  10. TheNorthStar Sorceror

    Message Count:
    731
    Okay, I am 90% certain it is failing just because there are warnings. As long as I remove every warning, it seems to compile. Any idea why this would be?
  11. NOOOBY123 Wanderer

    Message Count:
    38
    can u be more specific what warnings are u getting and wat version of runuo ur using thanx
  12. TheNorthStar Sorceror

    Message Count:
    731
    I'm using the latest RunUO SVN, and the warnings are any warning at all. Even completely harmless warnings seem to totally stop it from compiling. for example, it wouldn't compile because I had a variable that wasn't being used. once I used it, it compiled. Any idea why? looking at scriptcompiler.cs it looks like it should be fine on warnings unless I specifically tell it to hault on warnings.
  13. robynuo Sorceror

    Message Count:
    609
    I have the same errors when compiling under mono, but it never stopped from compiling because of that.
  14. TheNorthStar Sorceror

    Message Count:
    731
    I cannot get it to compile as long as it has those errors. I've updated to Mono-2.8 and I still have the same problem. Completely stock RunUOSVN core aside from a slightly modified mobile.cs, no custom scripts. still the same problem. the warnings I am getting are from moving IsStealthing, Executelightning strike, etc to mobile.cs, and how playermobile.cs is overriding them. When I remove them from there it compiles fine.

    EDIT: It appears to only be warnings about overriding things without using 'new' or 'override'. I guess those are reasonable things to stop on.
  15. sec_goat Squire

    Message Count:
    321
    I know this is an old thread, but I am currently having the same issue. I am working on clearing out the new and override warnings. However why would it compile and run fine on windows but not on linux with all those warnings?

Share This Page