ADRIFT 5 source code

This forum is the place to learn about and discuss ADRIFT 5. Feel free to mention any bugs you find here, but please also add these to the Bugs & Enhancements list.

Please also refer to the ADRIFT 5 Wiki for more information.
User avatar
Campbell
Site Admin
Posts: 4736
Joined: Sun Jun 23, 2002 12:05 pm
Points: 0
Location: Edinburgh, Scotland
Contact:

ADRIFT 5 source code

Post by Campbell »

I've uploaded the ADRIFT 5 source code here. I'm still intending on continuing the project, but making the source available will allow others to contribute to bug fixes and features, or to make ports for other platforms.
ADRIFT Developer developer.
User avatar
Lazzah
Moderator
Posts: 2502
Joined: Thu Mar 31, 2011 5:54 am
Points: 100
Location: Clacton-on-Sea, Essex
Contact:

Re: ADRIFT 5 source code

Post by Lazzah »

Campbell wrote:I've uploaded the ADRIFT 5 source code here. I'm still intending on continuing the project, but making the source available will allow others to contribute to bug fixes and features, or to make ports for other platforms.
Thank you, Campbell! :claps: :D :yeah:
Visit "Larry's ADRIFT Text Adventures" at http://LarrysAdriftTextAdventures.co.uk
User avatar
P/o Prune
Site Admin
Posts: 4899
Joined: Mon Jun 24, 2002 9:18 am
Points: 168
Location: Denmark

Re: ADRIFT 5 source code

Post by P/o Prune »

That was one big step, Campbell. Knowing how much work you have put into Adrift through the years. (Thanks a million :thanks: )
I hope that someone picks up on this and carry the torch forward.
It's good to know that you will still be working the "project" :yeah:
D-Day in progress 86Kb (Slowly drifting)
October 31st: 93Kb (possible entry for IFComp 2021 :wink: )
ElliotM
Posts: 1227
Joined: Tue Apr 17, 2007 9:04 pm
Points: 13
Location: The Midwest in the USA

Re: ADRIFT 5 source code

Post by ElliotM »

For people wanting to poke around the code, which file(s) would you recommend looking at first? Which files would help someone develop/follow Runner logic, for instance?
User avatar
Campbell
Site Admin
Posts: 4736
Joined: Sun Jun 23, 2002 12:05 pm
Points: 0
Location: Edinburgh, Scotland
Contact:

Re: ADRIFT 5 source code

Post by Campbell »

The guts of the Runner logic is in clsUserSession. So in there you have GetGeneralTask where it identifies which task to run from a given input.
ADRIFT Developer developer.
ralphmerridew
Posts: 2624
Joined: Fri Dec 13, 2002 11:56 pm
Points: 10
Location: Missouri
Contact:

Re: ADRIFT 5 source code

Post by ralphmerridew »

I'm surprised saabie hasn't commented. This ought to make his project much easier.
Bloodhounds can make you laugh and cuss in the same breath. They are endearing, faithful, and can sling drool ten feet in any direction. -- Virginia Lanier
User avatar
P/o Prune
Site Admin
Posts: 4899
Joined: Mon Jun 24, 2002 9:18 am
Points: 168
Location: Denmark

Re: ADRIFT 5 source code

Post by P/o Prune »

ralphmerridew wrote:I'm surprised saabie hasn't commented. This ought to make his project much easier.
He's probably busy programming already... :wink:
D-Day in progress 86Kb (Slowly drifting)
October 31st: 93Kb (possible entry for IFComp 2021 :wink: )
Kennedy
Posts: 160
Joined: Tue Apr 29, 2003 8:12 pm
Points: 10
Location: Oregon

Re: ADRIFT 5 source code

Post by Kennedy »

It's awesome that the source code for version 5 is being released. Will the code for version 4 be released as well? It may be helpful if programmers can compare the two versions to see how things are done differently. Also having the source for version 4 may help with making the version 5 runner better able to handle version 4 files.
Last edited by Kennedy on Thu Apr 12, 2018 4:21 pm, edited 1 time in total.
saabie
Posts: 1024
Joined: Fri Aug 12, 2011 3:07 am
Points: 50
Location: Adelaide, South Australia

Re: ADRIFT 5 source code

Post by saabie »

P/o Prune wrote:
ralphmerridew wrote:I'm surprised saabie hasn't commented. This ought to make his project much easier.
He's probably busy programming already... :wink:
I've been busy reading the source code :)
I have been getting a bit bogged down in the details of implementing the main parser. Trying to emulate the behavior of the ADRIFT runner by running tests to see what it does in every possible situation is a lot harder than implementing known logic.
Now I can compare my code to Campbell's I can see exactly why mine behaves differently under particular circumstances and so I should be able to get it working properly a lot quicker :D
User avatar
Lazzah
Moderator
Posts: 2502
Joined: Thu Mar 31, 2011 5:54 am
Points: 100
Location: Clacton-on-Sea, Essex
Contact:

Re: ADRIFT 5 source code

Post by Lazzah »

I do hope that programmers wishing to help with this project won't immediately rush to add new features, etc., before fixing the many existing bugs in ADRIFT. Surely that should be a priority before adding anything new?

I only wish that I had the neccessary skills to contribute, but alas I am a dunce when it comes to any sort of computer programming. However, if any developer needs someone to test bug-fixes, etc, then I would be happy to help out.
Visit "Larry's ADRIFT Text Adventures" at http://LarrysAdriftTextAdventures.co.uk
David Whyld
Posts: 7046
Joined: Sat Dec 18, 2004 5:15 pm
Points: 35
Location: United Kingdom

Re: ADRIFT 5 source code

Post by David Whyld »

This is very positive news. At the very least, if Campbell does decide not to continue with ADRIFT for whatever reason, there's always a chance someone else can step in and take over things.

Right now, I really wish I had some kind of programming experience myself because there's a lot I'd like to change with v5, but as a non-programmer I wouldn't have a clue where to start.
User avatar
Campbell
Site Admin
Posts: 4736
Joined: Sun Jun 23, 2002 12:05 pm
Points: 0
Location: Edinburgh, Scotland
Contact:

Re: ADRIFT 5 source code

Post by Campbell »

Actually, even if you have no coding experience, I've uploaded the StandardLibrary too. There are lots of outstanding issues with the library itself which need fixing, so that might be something you could assist with. :)
ADRIFT Developer developer.
User avatar
DazaKiwi
Posts: 835
Joined: Thu Oct 21, 2010 10:05 am
Points: 71
Location: New Zealand

Re: ADRIFT 5 source code

Post by DazaKiwi »

Campbell wrote:Actually, even if you have no coding experience, I've uploaded the StandardLibrary too. There are lots of outstanding issues with the library itself which need fixing, so that might be something you could assist with. :)
Have you got any examples of what needs fixing that we need to look for? I could have a go using Note++
User avatar
Campbell
Site Admin
Posts: 4736
Joined: Sun Jun 23, 2002 12:05 pm
Points: 0
Location: Edinburgh, Scotland
Contact:

Re: ADRIFT 5 source code

Post by Campbell »

If you go to the bugs page and add "library" as a filter. It's not perfect (we could do with tags on the bugs list really), but you should see some of the items that are just issues with the library.

So looking at the first few items, these all look to be issues in the library:

http://www.adrift.co/bug/19147
http://www.adrift.co/bug/19114
http://www.adrift.co/bug/19071
http://www.adrift.co/bug/18982
ADRIFT Developer developer.
electricimage
Posts: 1
Joined: Fri Apr 20, 2018 2:01 am
Points: 10

Re: ADRIFT 5 source code

Post by electricimage »

Hello, I'm new here, but I am very interested in this project for my personal gain. Also, I would like to contribute or help where I can, but I'm fairly new to the development aspects of IF. Visual Studio allows importing of previous version solutions, but I have to ask. What version of Visual Studio did you use? was it Professional or community? and are there any custom controls in there that might not be available in the community editions?

Congratulations on this big step. I have followed some of the threads over the years where others were asking for source code and this is a very nice project to contribute to the IF community. :bravo:
Post Reply