Putting the 'role' back in role-playing games since 2002.
Donate to Codex
Good Old Games
  • Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.

PtD source code download link

Konjad

Patron
Joined
Nov 3, 2007
Messages
3,668
Location
Strap Yourselves In Codex Year of the Donut Codex+ Now Streaming! Torment: Tides of Numenera Wasteland 2 Steve gets a Kidney but I don't even get a tag.
https://github.com/MatWillows/Prelude

Here is the source code developers of PtD agreed to share with us. Some information I've got from them:

It probably won't be easy to get running, its built on directx 6 and an ancient version of c++ and I was a pretty naive coder back in the day.
I was hoping to get a version up that could build. I'm positive this is the actual latest code, but it's close if it's not. There some solution files there that can at least be opened.

MatWillows/Prelude (github.com)

It was last build with a much earlier version of Visual Studio (2006 I think) and it needs a much earlier version of directX, too.

PreludeBase was the source files for the data. World. Events. People. Rest. GUI. Most of them have a text version in script in the base that was then saved out in a binary format for release. Most of the game can be edited from within prelude itself (world, graphics, schedules, items, event placement), but I can't even recall what all the commands are and there a script window within the game that can be used extensively as well. The code is spaghetti and poorly organized! Some black magic there that it ever really worked. heh. Most locations have a fixed base and then dynamic file for things that can change like items, people, etc...

ToTest was the debug build basically.

:mlady:
 
Last edited:

Serus

Arcane
Patron
Joined
Jul 16, 2005
Messages
6,615
Location
Small but great planet of Potatohole
https://github.com/MatWillows/Prelude

Here is the source code developers of PtD agreed to share with us. Some information I've got from them:

It probably won't be easy to get running, its built on directx 6 and an ancient version of c++ and I was a pretty naive coder back in the day.
I was hoping to get a version up that could build. I'm positive this is the actual latest code, but it's close if it's not. There some solution files there that can at least be opened.

MatWillows/Prelude (github.com)

It was last build with a much earlier version of Visual Studio (2006 I think) and it needs a much earlier version of directX, too.

PreludeBase was the source files for the data. World. Events. People. Rest. GUI. Most of them have a text version in script in the base that was then saved out in a binary format for release. Most of the game can be edited from within prelude itself (world, graphics, schedules, items, event placement), but I can't even recall what all the commands are and there a script window within the game that can be used extensively as well. The code is spaghetti and poorly organized! Some black magic there that it ever really worked. heh. Most locations have a fixed base and then dynamic file for things that can change like items, people, etc...

ToTest was the debug build basically.

:mlady:
Konjad great job. Now we only need someone to make something with the source code, unfortunately I'm an idiot when it comes to such things.
You deserve some badass custom tag for this.
 

ERYFKRAD

Barbarian
Patron
Joined
Sep 25, 2012
Messages
28,070
Strap Yourselves In Serpent in the Staglands Shadorwun: Hong Kong Pillars of Eternity 2: Deadfire Steve gets a Kidney but I don't even get a tag. Pathfinder: Wrath I'm very into cock and ball torture I helped put crap in Monomyth
Awesome. May the world never doubt Polacks ever again.
Until the next time they talk big, at least.
 

Modron

Arcane
Joined
May 5, 2012
Messages
9,770
3rd time was the charm apparently, kind of surprised they actually still had the source after all these years.
 

Konjad

Patron
Joined
Nov 3, 2007
Messages
3,668
Location
Strap Yourselves In Codex Year of the Donut Codex+ Now Streaming! Torment: Tides of Numenera Wasteland 2 Steve gets a Kidney but I don't even get a tag.
Tried Visual Studio 2022 - doesn't open, not surprising
VS 2005 - doesn't open, says newer version needed.

I'll try 2008 a bit later.
 
Joined
Sep 25, 2018
Messages
419
Location
Pink Pony Planet
I opened the project (.sln) with Visual Studio 2019.
You will need to change path for directx imports (to files in "Prelude\Prelude\DXSource").
There are also some strange errors (like initializing variables without type declaration) in code maybe due to older cpp standart (I presume, not sure if what I described could ever have been allowed) but they can easily be fixed.
Still, very enlightening.
 
Last edited:

Konjad

Patron
Joined
Nov 3, 2007
Messages
3,668
Location
Strap Yourselves In Codex Year of the Donut Codex+ Now Streaming! Torment: Tides of Numenera Wasteland 2 Steve gets a Kidney but I don't even get a tag.
Opens without any errors in VS2008

XZ61KKM.jpg
 

tred

Augur
Joined
Jan 2, 2012
Messages
241
Beautiful! :salute:
I'm not a coder but if any modders end up needing a sound designer/mixer or music composer just pm me and I'll help.
 

hiciacit

Liturgist
Joined
Aug 25, 2005
Messages
406
Location
I've been there
Holy shit, this is amazing! I'm looking forward to being able to play this bug free and actually finish it.

Edit: And thanks to the developers for digging this up and sharing the code!
 

vazha

Arcane
Joined
Aug 24, 2013
Messages
2,063
Please accept my sincere apologies for doubting you - you are a giant among the men, as far as I am concerned. Thank you. Thank you. Thank you so much.
 
Joined
Sep 25, 2018
Messages
419
Location
Pink Pony Planet
(like initializing variables without type declaration)
C++ never allowed that, since it's a strongly typed language. It's probably some fucked up visual code error.
I am not familiar with cpp or c, but have experience with typed languages. Cpp has enough quirks to make me confused.
There are things like int n = 0 retaining its visibility outside for loop (in first for loop n is declared as int, in next loop n is assign 0 without declaring its type), and things like variable like variable being declared as static without type, but the same variable getting declared as int (Numprotraits in ZSPortrait.h and cpp).
I am also confused with operator method in things.h and cpp. First one is declared as bool, another is not declared as any type.
bool Thing::operator == (Thing &ThingOne) //returns bool
{}

Thing::operator = (Thing &OtherThing) //doesnt return anything, but does some memcpy.
{}
then this happens in things.h:

operator = (Thing& otherThing); //assignment operator
bool operator == (Thing& ThingOne);

I presume its overloading assignment for a class?
it should be like Thing& Thing::operator= (Thing &OtherThing)
{
...
return *this;
}

Thing& operator = (Thing& otherThing)

Interesting stuff. Not sure if it wont break other code.
 
Last edited:
Joined
Jan 14, 2018
Messages
50,754
Codex Year of the Donut
(like initializing variables without type declaration)
C++ never allowed that, since it's a strongly typed language. It's probably some fucked up visual code error.
It did as a form of backwards compatibility with C, it was removed when C++ was standardized as part of C++98.
https://godbolt.org/z/TrdbWM5MM

from C++98 standard:
At least one type-specifier that is not a cv-qualifier is required in a declaration unless it declares a constructor, destructor or conversion function.

There is no special provision for a decl-specifier-seq that lacks a type-specifier or that has a type-specifier that only specifies cv-qualifiers. The "implicit int" rule of C is no longer supported.
 
Joined
Sep 25, 2018
Messages
419
Location
Pink Pony Planet
K, fixed errors (and or omitted some missing dependencies), but I get compiler version error I guess:
auneEaI.png

need to find fresher versions of libs or use older compiler version?
Not that it can be compiled even in theory if I am correct.
 
Last edited:

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.
Back
Top Bottom