Jump to content

  • Log In with Google      Sign In   
  • Create Account

GameCreator

Member Since 23 Apr 2001
Offline Last Active Private

Posts I've Made

In Topic: Lucasfilm games. Finally.

28 October 2014 - 05:34 PM

If you're unfamiliar with GoG, they wrap the games in emulators for you (usually DOSBox), with the latest game patches (if any)...

 

Ah, I suspected something like that.  I believe Sierra did something similar with their adventure packs.  Thanks.


In Topic: Lucasfilm games. Finally.

28 October 2014 - 03:33 PM

That's awesome though I wonder what "ready to play with no fuss on modern operating systems" means.  Even Tim Schafer had to play his games emulated via ScummVM.


In Topic: Base Class Undefined

08 September 2014 - 08:41 AM

Thank you everyone.  I'm going to reread the posts here to get a better grasp (lot of the terminology is new to me) and rework my includes where possible.


In Topic: Base Class Undefined

07 September 2014 - 10:05 PM

The solution is very simple in this case. What is the purpose of including character.h and player.h in world.h? There's nothing in world.h that depends on the contents of neither of the two files, and those unnecessary and seemingly harmless includes cause circular includes and symbols to not be defined in the correct places within a translation unit.

 

Thank you.  world.cpp uses the player class.  And I was under the impression from somewhere that you should only put one header include in cpp files whenever possible.  So I put player.h in world.h instead.  But when issues started happening, I added character.h as well to make sure it's included first as I thought: what's the harm?  Better to make sure it's included as it can't be included twice anyway, right?  And yet there are these circular references which, in my less-than-knowledgable mind, shouldn't even be possible (but I'm starting to understand a bit that the system doesn't work the way I thought it did, thanks to people's help here).  I'll see what happens if I put player.h into world.cpp instead but it seems like that would do the same thing...


In Topic: Base Class Undefined

07 September 2014 - 11:49 AM

Changing all the headers to #pragma once did not change the result.

 

And as I mentioned in my original post, from what I'm reading online, forward declarations don't work for base classes.

"Derived classes definitely need to know the structure of their parent, not just that the parent exists, so a forward declaration would be insufficient."  from here.

 

But here's my entire set of code files, should you want to take a look: Attached File  Source.rar   8KB   11 downloads

 

Oh, and excuse all the globals.  ;)


PARTNERS