Won't compile, but no errors?

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

  1. TheNorthStar

    TheNorthStar Sorceror

    Messages:
    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:
    ScriptCompiler: : /home/gar/UO/RunUOsvnServerMONO.exe (Location of the symbol related to previous warning)
    full output:

    Code:
    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

    Mark Knight

    Messages:
    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

    TheNorthStar Sorceror

    Messages:
    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

    Mark Knight

    Messages:
    7,071
    Did you build the core yourself?

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

    TheNorthStar Sorceror

    Messages:
    731
    Yeah, here is what I use to compile the core.
    Code:
    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

    Felladrin Sorceror

    Messages:
    753
  7. TheNorthStar

    TheNorthStar Sorceror

    Messages:
    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

    Mark Knight

    Messages:
    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

    TheNorthStar Sorceror

    Messages:
    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:
    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

    TheNorthStar Sorceror

    Messages:
    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

    NOOOBY123 Wanderer

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

    TheNorthStar Sorceror

    Messages:
    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

    robynuo Sorceror

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

    TheNorthStar Sorceror

    Messages:
    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

    sec_goat Squire

    Messages:
    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