Triffid/anthill Respawn

Problems with the Windows version of Darwinia

Moderators: bert_the_turtle, jelco, Chris, andy, John

User avatar
IGuardian
level1
level1
Posts: 11
Joined: Wed Aug 04, 2010 1:17 pm
Contact:

Postby IGuardian » Mon Aug 09, 2010 8:21 am

NeatNit wrote:Instead of going through all this mess, just finish a level after you start it... Is there a real reason why you can't do this?


Because I want to be able to go back into levels without having to play them over again and because I am the type of person that just does not like things doing what they are not supposed to and not knowing the reason why.

I deleted all the Triffid's in the main.dat I could see, then I deleted them out of the encripted file by using the red decoder/reincoding after removing them, something I guess in the program code is restoring the main.dat file however when It loads, so it then over-writes the one in the userfiles as soon as I have quit, so I can get it to remove the Triffid's one time, when I first play the mission, but as soon as I go back into the mission, say a day later, the main.dat is back as it was, and so the Triffid's respawn again.
~ IGuardian
User avatar
xander
level5
level5
Posts: 16863
Joined: Thu Oct 21, 2004 11:41 pm
Location: Riverside, CA, USA
Contact:

Postby xander » Mon Aug 09, 2010 4:23 pm

Ah! I see your problem (I think, maybe). Don't re-encrypt the files after you edit them. The game can read the non-encrypted files perfectly well, and it is possible that the encryption algorithm that you are using is messing something up. If that is the case, the game is going to see a file that doesn't look right, and reload from main.dat.

xander
User avatar
IGuardian
level1
level1
Posts: 11
Joined: Wed Aug 04, 2010 1:17 pm
Contact:

Postby IGuardian » Mon Aug 09, 2010 6:42 pm

Ok I will give that ago, but im not re-encripting the main.dat, and that is what is being replaced.
~ IGuardian
User avatar
xander
level5
level5
Posts: 16863
Joined: Thu Oct 21, 2004 11:41 pm
Location: Riverside, CA, USA
Contact:

Postby xander » Mon Aug 09, 2010 7:58 pm

Okay, I don't know exactly what you are doing, and I don't know why it is not working. However, as messing with the data files is a pain in the ass, and can cause things to break, and should not be done lightly, I am going to give this one more go, and this is the last attempt that I am going to make---if it doesn't work, you are just going to have to live with the bug (either finish the level in one go, or accept that there will be triffids).

  1. Unarchive main.dat which is a .rar archive. When you unarchive it, a new subdirectory called "data/" should be created in the same directory as main.dat.
  2. In general, anything in data/ will override anything in main.dat. So, if you make a change to files in data/, those changes should be reflected in the game. Hence, do not rearchive the directory, and do not overwrite the original main.dat with anything. If you have already done so, it might be wise to reinstall Darwinia.
  3. In data/levels/, find the map file which corresponds to the level that you are playing. It should be called something like "map_[levelname].txt". Open that file in a text editor, and delete any lines in the Buildings_Definitions section of the file that begin "Triffid." This will remove any triffids that are being loaded from the map file. If there are no triffids in the map file, then you are done. Save any changes; do not rearchive the directory.
  4. Next, find your user profile. There will be a directory called "users/"---the exact location varies with OS and the version of the game (i.e. Steam vs retail). There should be a subdirectory for the profile that you are using (i.e. users/[profilename]/). Open that subdirectory. This directory should contain a file called game.txt, as well as several mission files, all of which are encrypted (by the way, encrypted is spelt with a "y") using redshirt2.
  5. Find the mission file that corresponds to the level that you are having trouble with. It should be named something like "mission_[levelname]_[foo].txt." Use whatever utility that you are using to decrypt the file. At this point, you can replace the original, encrypted version of the file with the new, unencrypted version.
  6. Open the newly unencrypted file, and, as with the map file, delete any lines in the buildings section that refer to triffids. Save the file. Do not re-encrypt it. The game can understand plain text files just fine.
  7. Open Darwinia, and load the level that you are editing. If you have done everything as instructed, the level should now be free of triffids. If not, check to make sure that you are using the right profile (i.e. you are using the profile that corresponds to the files you edited).


As I originally stated, after NeatNit suggested that you just ignore the problem, you have two options: the first is to ignore the problem---you can beat the game without destroying every enemy unit; the second is the edit the files, which is not guaranteed to work, is not the easiest thing in the world to do, and can break things. At this point, I have given you all of the tools that I know how to give you, so if you are still having problems, I can't help you. Sorry.

xander
User avatar
IGuardian
level1
level1
Posts: 11
Joined: Wed Aug 04, 2010 1:17 pm
Contact:

Postby IGuardian » Wed Aug 11, 2010 9:00 pm

This worked:)
~ IGuardian
User avatar
IGuardian
level1
level1
Posts: 11
Joined: Wed Aug 04, 2010 1:17 pm
Contact:

Postby IGuardian » Thu Aug 12, 2010 6:37 pm

Thanks so much xander:)
~ IGuardian

Return to “Windows Issues”

Who is online

Users browsing this forum: No registered users and 1 guest