Announcement: Be excellent to each other.


Caravel Forum : DROD Boards : Bugs : ATTN: Fixed export/import bugs
New Topic New Poll Post Reply
Poster Message
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5058
Registered: 02-04-2003
IP: Logged
icon ATTN: Fixed export/import bugs (0)  
(Some of this is copied from another thread that I'm afraid won't get the coverage a fresh topic will.)

Ok. I found and fixed Stuart's crash bug on restoring after importing a player. Also fixed the bug where you try to import a player you imported before and deleted previously, and it won't show up any more. I also found some other major import/export bugs that other people have posted and I've either fixed or am working them out right now. I think a lot of the trouble people have been having is related to these issues I'm dealing with presently (details below, for whoever's interested).

I hate to say it, but having bad export files floating around is a bad idea and should be thrown away. They might cause all kinds of trouble even after all the bugs get fixed. BUT! Don't just go deleting all your files in despair. They can be fixed. There is hope.

Actually, there should be a nice way to fix up the corrupted data files that anyone is interested in keeping, starting with the next build, #24. So listen up!

A way to remedy this with your personal holds is to import any "bad" (i.e. any hold exported/imported up to this point) holds you have, then copy the levels into a new, fresh hold that won't have any corrupted data associated with it, and then export this copied version from build 24. It should be clean. (It's not the rooms or levels that have the problem we've been looking at, just the hold they're in. So copying rooms/levels over to a fresh hold should get rid of some export/import problems.)

I also recommend for everyone, if they possibly can, to (1) not use any data they've imported. If possible, just re-upgrade data afresh from your drod1_5.dat records. (2) If that's not feasable for your situation, import your player using build #24 and re-export it. Then throw away all your old, buggy exported player records! (You might want to keep them around just long enough to make sure importing, exporting, deleting them, and re-importing them (all in build 24) retains all your data.

<Developer stuff follows - for whoever's interested>

Basically, Stuart's problem was trying to load the room from the new, empty continue saved slot (with a roomId==0). Added a check for this eventuality.

Also, fixed the export to also export *hidden* saved games (stupid filters, always ignoring the hidden records) by adding flags to CDbDemos and CDbSavedGames for whether loading filtered records would ignore hidden records or not. Now a player will also have their continue and end hold saved games exported, as they should be. This is needed for editing privileges on completed holds.

Thirdly, fixed some potential db access (filter) bugs. Recall how I replaced all the Cdb instances with a pointer to the one global CDb. You can probably quickly guess how not resetting the filters correctly could wreak havoc here. So I put back some local db instances where filtering is being done. For example, in the export code. this will guarantee all filters are set precisely right. I'm hoping it will clear up some more random export/import bugs. Such as the "I imported my player and it has some weird saved game data in it" bug.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
06-25-2003 at 05:39 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5058
Registered: 02-04-2003
IP: Logged
icon Re: ATTN: Fixed export/import bugs (0)  
I've found and fixed up a bunch more export/import stuff. I've tried loading everyone's holds and player files who've posted them here on the Forum for download. Some of them are corrupted, due to import bugs actually (i.e. exporting them from one build, importing them into another -- this step corrupted it, then exporting them again in corrupted form) There have been export problems too. Some nasty ones. But for those files that aren't corrupted, I haven't seen any further trouble with importing, exporting, and importing them again. (Krammer - good news - your player and cellars hold are just fine.)

Everyone stay tuned for build 24!

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
06-26-2003 at 05:55 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
NoahT
Level: Smitemaster
Avatar
Rank Points: 1133
Registered: 06-17-2003
IP: Logged
icon Re: ATTN: Fixed export/import bugs (0)  
I have something to say related to importing and exporting. When trying to import, it seems the only way to do it is to type in the file you're looking for, click for a "File not found" error message, and only then does the top space let you open up folders to search for your file. This shouldn't have to happen to search for the player, demo, or hold file to import. Hopefully this can be fixed in Build 24.

-Noah

[Edited by NoahT on 07-10-2003 at 03:10 AM GMT: Signature]

[Edited by NoahT on 07-22-2003 at 06:30 AM GMT: "hello" statement]

____________________________
And in the end, the love you take is equal to the love you make.

My stuff:
Click here to view the secret text

06-26-2003 at 06:24 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
krammer
Level: Smitemaster
Avatar
Rank Points: 904
Registered: 02-12-2003
IP: Logged
icon Re: ATTN: Fixed export/import bugs (0)  
Actually, if you type (say) C: in the current directory field the contents of your C: drive will then be displayed. You only need to do it once - DROD "remembers" the next time.

____________________________
+++ Divide by Cucumber Error +++ Please Reinstall Universe and Reboot +++

"Oook!"
06-26-2003 at 08:25 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5058
Registered: 02-04-2003
IP: Logged
icon Re: ATTN: Fixed export/import bugs (0)  
Right. It remembers the last directory each player used. If you import a player that had an empty dir path, it will stay empty until you set it to something else. In fact, starting from a clean installation, it should start with the right directory in the first place.
06-27-2003 at 01:15 AM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
New Topic New Poll Post Reply
Caravel Forum : DROD Boards : Bugs : ATTN: Fixed export/import bugs
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.