Jump to content
stefanhendriks

D2TM - Help develop! Get the source. (SVN)

Recommended Posts

ah yes, resource files should be named lowercase. Source files will be like they are now;

c for classes <Name (with capital)>

ie:

cGame

or

cMyVeryCoolClass

Any changes are welcome. I think i also forgot to reformat the naming for raknet. Will look into that now

Share this post


Link to post
Share on other sites

I commited all the changes, it compiles perfectly on Linux. Hope it does on VS as well :)

Oh, and one more question. I can now start the campaign but all the buildings are disabled.

I don't know why. Perhaps there are still some case issues...

Share this post


Link to post
Share on other sites

I noticed i forgot the add the campaign to the SVN repository. So i added it. Your changes are great, it compiles fine and it works (which is also very important). If you do not see any structures (disabled), try another team perhaps. Also, be sure the game.ini file is loaded.

Share this post


Link to post
Share on other sites

nice work t0th... by the way, is there any needed libs to install before we can compile in linux? somehow i can't compile it (before your changes) coz it was looking for the alfont and almp3 headers... ill try updating my copy to the new changes :) it'd be cool to see it running in my linux partition

by the way, i have allegro 4.2

Share this post


Link to post
Share on other sites

Yes, you need some additional libraries:

- raknet

- allegrofont

- allegromp3

- fblend

none of which compiled out-of-the-box :D So i will upload fixed versions of them somewhere. What linux distribution do you have?

Share this post


Link to post
Share on other sites

ahh thank you for that list :)

ill try installing them now and see if i can get it running already hehe :D

i have Gentoo 2006.1, how bout you?

[edit]

typo - grammar

Share this post


Link to post
Share on other sites

me too :D

Well you can just emerge allegromp3 but if you have gcc 4.1.1 it won't compile. I think i'm gonna make a patch ;]

Share this post


Link to post
Share on other sites

I have committed quite a bunch of code. Nothing really changes by functionaly, but under the hood things are a bit more clean (the main.cpp file is very short now). I have encapsulated d2tmc.h in d2tmh.h so you only need to put one header file at top. Besides that a lot of other changes. Tonight i have more time, will then clean the code in the TimeManagement class and probably begin to introduce another class DrawManagement.

The structure of classes and their relationship begin taking shape, but its a long way to go (as you can see, 3 empty class files , factories named are yet to be created). Eventually the goal is clean code, which should make it easier to expand the game with nice (more complex) features.

Share this post


Link to post
Share on other sites

I attach a howto which describes the process of compiling D2TM on linux and also patches and a script

for automated patching, compilation and installation of needed libraries. Hope it will work well on other

distributions :)

I also commited some linux specific files which are the base for Makefile and configure scripts (these

are generated automatically by autoconf and automake)

howto.zip

Share this post


Link to post
Share on other sites

Stefan: changes you have made to source code made it run very slow now. I mean, the program runs fast (mouse movement is smooth) but all the fade-in's and -out's and unit movement is very slow, it must be something with timers. Can i contact you on some IM? Google Talk perhaps? MSN? ICQ?

Share this post


Link to post
Share on other sites

Google talk is fine (i have already sent a request btw) , msn is also file, same as google username (stefanhen83@hotmail.com).

Share this post


Link to post
Share on other sites

Nice of you to releas the source Stefan. Maybe I'll join as a programmer after a few years of IT education :P

Keep up the good work with D2TM, I will follow further development closely via this forum. Give me a word if you need any non-coding help.

Share this post


Link to post
Share on other sites

Well you can always assign issues.. If you have a google account that is. (just mail me @ google, will set it up in a few mins). And you can always download the source, get it compiling (its all described in a doc how to do that, even for a non-it'r ;)) and test the very latest (really latest) version... :D

Share this post


Link to post
Share on other sites

Is there anyone who is willing to participate in a project concerning d2tm. Can't tell more, but anyone who really can provide code, and some serious work (and i mean, seriously some commits here and there) about that project. Its on free basis ofcourse...

If you are interested, despite the limited info, please email me -> stefanhen83@gmail.com

Share this post


Link to post
Share on other sites

One of my friends who is a serious programmer got involved with Dune Legacy for a while. He left the project after taking a good hard look at the engine and its limitations from an AI perspective. He is very keen on doing AI stuff. At present he is working on an AI system to manage security cameras that can distinguish between humans and animals and follow their movement.

I know he prefers working through sourceforge though.

I'm glad to see your project is still going. You may well end up releasing the best RTS for Linux. There is alot of great FPS games for Linux (most notably Tremulous), but no good RTS games.

Share this post


Link to post
Share on other sites

I'm trying to compile D2TM by the book/manual. Everything went all fine except running the game. It says it's missing MSVCR70D.dll. Where can I get the file and where do I have to put it?

Share this post


Link to post
Share on other sites

I've just downloaded and compiled the source, and hit the same problem - missing MSVCR70D.dll and MSVCR70.dll. Both can be googled (I dled them from dll-files).

After getting things running, I ran into the following issues -

On Campaign, after clicking a House banner, the Bene Gesserit mentat intro asking whether you would like to join that house ends in "Would you like to join house" with no Atreides, Harkonnen, Ordos or Yes/No buttons, forcing an ESC-quit.

On Skirmish, after selecting either of the two maps, with two random teams, and entering the map, buildings cannot be placed - the Construction Yard can be upgraded, but all building options build instantly, and show no placement outline to actually put them down.

I was hoping to do a little bug-testing, but between those two, I can't really get anywhere  :-[ Are they code issues, or am I missing files / have I made an error somewhere while compiling?

Share this post


Link to post
Share on other sites

Actually they are showstopper issues. To be concrete; there was a rewrite in progress, but half-way it stopped. Therefor the code can compile, but functionality is not brought back. I suggest you try to grab the source of an older revision.

Share this post


Link to post
Share on other sites

I've got the mentats working again. The code probably isn't too pretty, but it can hold till someone refines it. Would you like an upload? Or is this version of D2TM now officially dead, what with the new project planned?

Share this post


Link to post
Share on other sites

any uploads are welcome. From which revision did you fix this? Send me an email at gmail (stefanhen83@gmail.com) , you need a gmail account as well if you want to be able to upload the code to svn.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×