Search found 45 matches

by mattwla
05 Aug 2017, 00:28
Forum: Development
Topic: Difference between world and worldimp?
Replies: 3
Views: 408

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

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

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

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

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

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

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

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.
by mattwla
19 Jul 2017, 15:33
Forum: Support
Topic: Compiled windows x64 build, crashes on launch. Any tips on solving this?
Replies: 9
Views: 721

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

I right clicked in the repo I cloned and choose the git bash option, than copied and pasted the command line in the tutorial (I had the same visual studio and the same windows edition). Does the script require any user input? I don't recall having to move it along at all. I was away from the compute...
by mattwla
19 Jul 2017, 13:11
Forum: Support
Topic: Compiled windows x64 build, crashes on launch. Any tips on solving this?
Replies: 9
Views: 721

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

Thanks for the info and thanks for your work on the script, The script might not have executed properly on my machines. On both computers I have built OpenMW on, I had to manually add the PATH environment variables for cmake to find the dependencies, which I think the script is supposed to do. Any i...