Jump to content

Dune Legacy News


TonyD
 Share

Recommended Posts

Your right Olaf, Im getting tired of all the issues :(, I think its time to release the source! Besides I'm sick of the game right now, other people can take over or perhaps some of the code could go towards the freecraft dune2 project or something. Theres many more people involved in that anyway. So, I'll make my final decision, and probably release it on a sourceforge page within the next few days.

I'll be able to start on something new! :D

Welp, you know what to do with those text files now :). Hehe, I want to keep in contact with ye.

Do you use MSN Messenger?

Link to comment
Share on other sites

I can see why it is a reason for publishing source, but also why it is not. The exact same reason. Anyhow, the issue 'pathfinding' is not even the case here, both computers will exactly produce the same path if its not done randomized. The only thing that could be randomized is the eventual goal. If the host figures that the unit cannot move to the cell and 'change' the goal to create a group of units, then all it should do is send the new goal cell to the client before it even tries to create the path. (Sort of confirmation).

Anyhow, i am still anxious to see the code, and it will probably take some time to 'learn' how to read the game structure and code. Also, Tony is using the SDL library (which is in 'competition terms' the 'other side' of Allegro ;) if i have to believe the communities).

My path searching actual dosen't use any randomnous anymore.

Theres a few other reasons I can think of for inconsistancy:

At the moment when you order multiple units to do some action, each unit will send a corresponding packet with this command in it seperately. If its the server, all the units will calculate their paths in the next tic, however if not, the packets may not arrive and be performed in one tic. Therefor units will calculate their paths at different times on other machines, which may cause different path calculations due to different positions of other units and such.

When the commands arrive on a client machine, due to the unpredictable nature of networking they will will very likely not be performed at the same time/tic as how they were performed on the server machine. A harvester may be assigned to a particular cell already on the server, but not yet on client which could cause different results. This could be resolved by making sure the server controls assignment to cells, but this is even more inefficient then sending the entire path.

So to fix some of this you could make sure that unit commands are performed only in bulk not individually, but after all this I think its still more effiecient just to send entire paths.

Link to comment
Share on other sites

I've got my soureforge page now, and im setting it up. Ill have a proper web page there too.

https://sourceforge.net/projects/dunelegacy/

I've realised why I want to release the source.

Firstly I have gained all experiance in c/c++ coding that I can from the project. I started it along time ago when I only just started learning how to program so some of it has not been structured how I would like it, and its time to get a job! The project was taking to much of my time, and im a bit sick of it, I have more important things to do. :P

Link to comment
Share on other sites

I can't get cvs to upload to the sourceforge page. I can log in anonymously, but when I try to initialise the area or upload anything it just says something like failed to connect to server. Does anyone here have good cvs knowlege? I don't have much time to work it out.

Link to comment
Share on other sites

  • 2 weeks later...

ok, did this but it still won't work, just sits there and says nothing but the command when i try to upload, init or anything like this. Ill just have to use cvs from linux, that should work fine. Sorry about this delay, I'm just to slack, but WILL do it next time i boot linux.

Link to comment
Share on other sites

I finally managed to get it uploaded onto there! It now will compile and run in linux, I just have to slightly adjust the windows files again so it will compile in windows too.

Sorry about it taking such a long time. I can imagine some people may have doubted my intentions since I took so long. My homepage is now set to the sourceforge location.

Link to comment
Share on other sites

I got the source code from CVS, but the VC project needs dirs like gui/, structures/ and units/, but the CVS tree doesn't contain them.

Where did those dirs go?

And when launcher from the command console of Windows XP says Dune2 Data Extractor.exe: This program cannot be run in DOS mode.

Link to comment
Share on other sites

  • 2 weeks later...

Yeah, sorry bout that, I haven't fixed the windows files yet. It will compile perfectly in linux, but you should be able to create a new project and add all the files for windows.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...