Daniele

Members
  • Content Count

    14
  • Joined

  • Last visited

Posts posted by Daniele


  1. I've just solved the problem. I'll write it there, if someone may need.

     

    It was due to the program running with .NET Framework on 64 bit.

    To force the application to run on 32 bit there is the following workaround:

     

     

    http://stackoverflow.com/questions/1108137/how-to-run-a-32-bit-net-application-in-a-64-bit-environment

     
     
     
    If you have a 64 bit machine and want to run a .NET application that only works with the 32 bit CLR you would have to make changes to the .NET framework on your machine
     
    Set the .NET framework to load the CLR in WOW mode through this command
     
    Open up command prompt and type this command
     
    C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe SetWow
     
    Now you should be able to run apps that use only the .NET 32 bit CLR.
     
    To revert back to the default 64 bit framework run
     
    C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe Set64
    • Like 2

  2. Try reinstalling to C:\Program Files (x86)\ -- I've seen this in the past. This will tell Windows it is a 32-bit application. 

     

    Doesn't always work, but I've seen this same issue when installing older games made for 32-bit platforms.

    Well thanks, however the program is not installed, is just a standalone .exe

    I've put it in x86 but nothing happens


  3. It throws 

     

     

     

     

     

     

    See the end of this message for details on invoking 

    just-in-time (JIT) debugging instead of this dialog box.
     
    ************** Exception Text **************
    System.BadImageFormatException:  is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
       at KAuroraEditor.KAuroraMain.loadFromAsciiFileToolStripMenuItem1_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(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: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    KAuroraEditor
        Assembly Version: 0.2.0.0
        Win32 Version: 0.2.0.0
        CodeBase: file:///C:/Users/daniele/Documents/kotor%20tools/KAuroraEditor/KAuroraEditor.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 2.0.0.0
        Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
        CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.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.
     
     

  4. Hi,

    Mdlops seems to have a hard time compiling files which are too heavy. So, if I try to compile a .mdl heavier than say 1500 vertices, it throws an "Out of memory" error or just crashes. I tested it on some computers with good memory and CPU and the result is the same.

    Is it normal? And are there good alternatives to use?


  5. Thanks. Ok I think that given what I'm trying to do, restyling the whole area, I may rebake the whole lightmap.

     

    Depending on what you want to do it might be easier to leave the vanilla model alone and add a new model on top of that instead of remaking the entire lightmap.

    You'd then have to make a lightmap only for the new model and add the model to both the .lyt and .vis file of the module. But that's probably still the easier way to go^^

     

    That's also an idea, how do you do that?


  6. Hello guys,

    I'm trying to take map models .mdl  from KotOR 2, modify them a little bit, and put them back into the game. I managed to do it but I get visibility problems: the whole model appears invisible, except for the objects with the glowing material and texture, as can be seen in the image.

     

    post-32357-0-16486800-1493036886_thumb.png

     

    I guarantee that the .mdl geometry is there although invisible. In the second image I've removed part of the geometry so that the rest of the map can be seen through.

     

    post-32357-0-39498300-1493036941_thumb.png

     

     

    I guess that this problem could be given by errors with the visibility map or the light map, but I have no idea of how to solve this.


  7. Hello, there is a very good tutorial for editing KotOR models: 

    as the video shows, after you exported the model you have to edit with a 3d software. He uses 3dMax, you can alternatively use the free software Blender (as I do), in the latter case the script needed to export the Ascii .mdl in-out Blender is http://www.beastwithin.org/gaming/nwn/neverblender

     

    (there is also http://deadlystream.com/forum/topic/3105-wip-kotor-model-exporter-for-blender/ but I still have to try it).

     

    Remember that Blender/3dMax read-write .mdl Ascii files, you'll have to convert them to bynary .mdl, which you can do with MdlOps.