Wrecked Games

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're just that awesome.

Pages: [1] 2

Author Topic: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4  (Read 5548 times)

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« on: November 13, 2007, 02:09:53 PM »

Hello,

First post in the forums!

I've been working with Visual Ogre Studio as a school project for the past few weeks. We need to upgrade the Ogre version on Visual Ogre Studio from the current one (Ogre 1.2) to the latest Ogre 1.4.5.

I was wondering if anybody had tips or something you could provide me with so that I can upgrade. I don't have any idea of where to start.

Thanks,

Ricardo Chavarria
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #1 on: November 13, 2007, 04:34:22 PM »

Hi, interesting to see you decided to go with the project.

First, to upgrade the project you must upgrade the Moger DLLs. Then, compile VOS against the updated Mogre and hopefully there are no API differences (at least nothing major). The Mogre forum has an updated version here: http://www.ogre3d.org/phpBB2addons/viewtopic.php?t=3905

Let me know how it goes, I can also provide some SVN write access if you wish :) Since I have no time for maintaining/enhancing much at the moment.
Logged

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #2 on: November 13, 2007, 07:22:58 PM »

Thanks a lot, I'm going to try it right now!

Yes we decided to work using VOS. Its a fine piece of software, really!

We've been fixing bugs here and there and trying to make it better. I'll ask my team about the write access!

Thanks a lot for your help,

Ricardo Chavarria
Logged

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #3 on: November 13, 2007, 10:13:20 PM »

I changed the files to the new ones. I found out that the version that is currently running on our VOS is MOGRE 0.1.9.0, which is OGRE 1.4, so we are not that far behind from the current release (MOGRE 0.2.2 which is OGRE1.4.3)

I'm also having a problem with the MOGRE LogManager. Apparently it has changed.

Code: [Select]
LogManager.Singleton.Write += new LogListener.WriteHandler(OgreLog_Write);
C:\Documents and Settings\Ricardo Chavarria\My Documents\USC\522\VisualOgreStudio\core\VisualOgreCore\Panes\OgrePane.cs(245,34): error CS0117: 'Mogre.LogManager' does not contain a definition for 'Write'


Any ideas?

Ricardo Chavarria
« Last Edit: November 14, 2007, 01:35:50 AM by skumancer »
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #4 on: November 14, 2007, 06:59:00 AM »

You can comment out the line, or determine what the new method is and subscribe to that event. I'm really not sure what it was modified to be.
Logged

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #5 on: November 14, 2007, 05:04:33 PM »

I commented that and I have a problem with this now:

SetupDefaultListeners();

A call to this at line 101 of the InputManager constructor is giving me a problem. Everything compiles and then the program crashes at this line. Can't find an explanation for this.


Ricardo
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #6 on: November 14, 2007, 08:50:25 PM »

Debug into it?  Check the registers, stack, etc... at that point?
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #7 on: November 14, 2007, 08:58:20 PM »

It's probably not setting up the Ogre logs correctly (which is why it might crash in the native code). I'm sure that the latest Mogre provides a similar method to the old for hooking into the Ogre logger. You could also post some Ogre log here to see what is going on.
Logged

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #8 on: November 14, 2007, 09:32:14 PM »

Debug into it?  Check the registers, stack, etc... at that point?
I can't. I tried but it crashes as soon as it reaches the function with a FileNotFound exception.

It's probably not setting up the Ogre logs correctly (which is why it might crash in the native code). I'm sure that the latest Mogre provides a similar method to the old for hooking into the Ogre logger. You could also post some Ogre log here to see what is going on.
I checked the new LogManager and couldn't find any reference for events to hook into. I'll try to see if I get any Ogre logs, but I doubt it. The application isn't even allowed to start, it crashes 2 seconds into the startup process.

Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #9 on: November 15, 2007, 10:01:11 AM »

Hence why you debug *into* it, not after it crashes.
If you can give a minimal code test-case then I can do it, or are you just using the svn directly (if so, what was the svn url again?).
Logged

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #10 on: November 15, 2007, 09:30:59 PM »

Hence why you debug *into* it, not after it crashes.
If you can give a minimal code test-case then I can do it, or are you just using the svn directly (if so, what was the svn url again?).

Well I can't debug *into* it, it doesn't even go inside the function, that is the whole problem!!

I put a breakpoint before the function and another inside the function, it never reaches the one inside, and when I manually step into the function using the pointer outside, before the function, it crashes before going into the function, exactly when the call is made.

- Ricardo
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #11 on: November 15, 2007, 10:13:11 PM »

I can take a look tomorrow night I suppose.. shouldn't be too much trouble to try out the latest Mogre release.
Logged

skumancer

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 8
    • View Profile
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #12 on: November 15, 2007, 11:35:52 PM »

Thanks a lo!

I've been trying but I can't get it to work!

- Ricardo
Logged

OvermindDL1

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 288
    • View Profile
    • http://www.overminddl1.com/forum/
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #13 on: November 16, 2007, 10:15:26 AM »

That's the thing, by debug into it it I do not mean the function, but the area before it, check that the variable are being stacked correctly, make sure the function address is both not null and points to the valid function location in memory, etc....
Logged

pjcast

  • Administrator
  • Veteran
  • *****
  • Karma: +0/-0
  • Posts: 2652
    • View Profile
    • http://www.wreckedgames.com
Re: Upgrading Visual Ogre Studio from Ogre 1.2 to 1.4
« Reply #14 on: November 16, 2007, 07:47:51 PM »

Ok, I fixed the log manager compile issue. Basically, the event delegate method changed. I experience some sort of error loading the DX Rendersystem (I'm probably not using the same version of DX that the Rendersystem was built with).

Besides that, it runs here no problems. In fact, even when I commented out the log error it still just ran fine. The only thing that delegate is for is to capture all Ogre log output and write it in the debug window of the Studio. I think your issue is probably some sort of DLL clash (different versions). I updated the Mogre binaries in SVN, so perhaps you will not see that error again if you clean & rebuild. The build will copy DLL's from the main bin directory to the required place, if you did it manually it likely was the cause of the error.
Logged
Pages: [1] 2