Search found 57 matches

by mattwla
08 Aug 2017, 15:59
Forum: Development
Topic: Looking to understand how to work with OSG in OpenMW, would this tutorial help?
Replies: 2
Views: 673

Looking to understand how to work with OSG in OpenMW, would this tutorial help?

The only tutorials I could find for OSG are deprecated. so I was wondering if this OpenGL tutorial would help me out: https://learnopengl.com/ Would going through that help me out at all in working in OpenMW, or should I stick to figuring out OSG? Maybe outdated OSG tutorial would still be useful? T...
by mattwla
05 Aug 2017, 13:21
Forum: Development
Topic: Difference between world and worldimp?
Replies: 3
Views: 814

Re: Difference between world and worldimp?

Thanks Chris,

So, to make sure I understand. world.hpp declares the public functions of the MWWorld subsystem, worldimp.hpp declares the private, and all MWWorld functions public or private are defined in worldimp.cpp?
by mattwla
05 Aug 2017, 00:28
Forum: Development
Topic: Difference between world and worldimp?
Replies: 3
Views: 814

Difference between world and worldimp?

Hi,

What is the difference between world.hpp and worldimp.hpp? It seems that everything in world.hpp is defined in worldimp.cpp, and all in worldimp.hpp is also defined in worldimp.cpp

How are these classes related? Why are they separate?

Thank you,
by mattwla
02 Aug 2017, 00:03
Forum: Development
Topic: Recommended reading to grasp code base?
Replies: 2
Views: 936

Recommended reading to grasp code base?

I've read through the wiki, which helped a bit but didn't do much to help with grasping the overall structure of the code base. Stuff like how ESM/ESPs are read, how the classes connect, etc. Are there any good resources I should check out? I've been reading the code base and I'm beginning to grasp ...
by mattwla
01 Aug 2017, 23:56
Forum: Development
Topic: Code Quality Issues
Replies: 13
Views: 11144

Re: Code Quality Issues

This was an interesting read, thanks for typing it up. I've got a question about point 4. Consider what happens should we have to add a new referenceable record type (after OpenMW 1.0). This would obviously require a new concrete subclass of MWWorld::Class. And ideally most of the code specific to t...
by mattwla
25 Jul 2017, 02:26
Forum: Development
Topic: newbie C++ question, why are const functions in OpenMW sometimes used to change values?
Replies: 3
Views: 719

Re: newbie C++ question, why are const functions in OpenMW sometimes used to change values?

Chris, thanks a lot for your explanation, I hope you don't mind if I ask some follow up questions. So, to make sure I'm understanding properly: In the onHit example, making the onHit member function const makes it so no changes can happen to the class the member function belongs to (in this case the...
by mattwla
24 Jul 2017, 23:38
Forum: Development
Topic: newbie C++ question, why are const functions in OpenMW sometimes used to change values?
Replies: 3
Views: 719

newbie C++ question, why are const functions in OpenMW sometimes used to change values?

Hi, new C++ programmer here, poking around OpenMW to get a feel for the language. In my C++ tutorials I've learned you can make a function a const function if you don't want it to change any values. But, unless I am mistaken, const functions in OpenMW are used to change values, such as void Npc::onH...
by mattwla
24 Jul 2017, 13:42
Forum: Development
Topic: What are the rules for referencing game assets?
Replies: 3
Views: 714

Re: What are the rules for referencing game assets?

Thanks for the input, sounds like I really shouldn't hard code any npc class references. Maybe I could add a new AI attributes to the npc object, and those values are set by scanning an XML. So there wouldn't be a reference to "assassin" in the hard code, but there will be a bit of code that scans t...
by mattwla
24 Jul 2017, 01:39
Forum: Development
Topic: What are the rules for referencing game assets?
Replies: 3
Views: 714

What are the rules for referencing game assets?

So, I just started messing with OpenMW source, I am enjoying myself! I have some ideas for adding functionality, not for the main OpenMW branch but for myself and friends and maybe others who might be interested. One such idea is tweaking AI behavior depending on what class they are (farmer, assassi...
by mattwla
19 Jul 2017, 17:04
Forum: Support
Topic: Compiled windows x64 build, crashes on launch. Any tips on solving this?
Replies: 9
Views: 933

Re: Compiled windows x64 build, crashes on launch. Any tips on solving this?

This is some great info, thanks so much. I think you are probably right regarding the issues stemming from building release instead of debug versions.

What advantage does the debug version offer? More feedback about runtime stuff?

Thanks again, this info is really helping me get on track.