problem with editor.exe

11 replies [Last post]
Posts: 53

Small problems with DemoGame.Editor.exe. When I delete maps data from DevContent/maps these maps still aper in the editor it self. So how can I delete them know manually, and how to change starting zone ID from 3 to 1 ?
And a small suggestion maybe make it that game.editor automatically checks if the path is valid if not deletes non existing maps ?

Posts: 1030

The value probably doesn't get deleted from the database.

Posts: 53

Where is the value stored ? And how to change default spawn place ?

Posts: 1030

It's in the database, the map table. Not sure about the respawn thing.

Posts: 53

Wound be nice if Spodi makes this feature or at least I can figure it out so we can add more tutorials, and start moving this project to a better tomorrow.

Posts: 263

Taziz wrote:
And how to change default spawn place ?

I *think* it's the default value, set in the db.

Posts: 1030

Taziz wrote:
Wound be nice if Spodi makes this feature or at least I can figure it out so we can add more tutorials, and start moving this project to a better tomorrow.

I'll add an issue to the tracker with "Ability to remove maps" which should both delete the file and the db entry.

Posts: 1691

You really should be deleting maps from the editor, not the files directly. I don't know how what the future of the maps will be, and deleting could involve more stuff other than just removing the file and database row.

Though someone can add an issue for that, if a map exists in database but the file cannot be found, the editor will show a messagebox warning listing all the offending maps.

Posts: 53

Wound be nice if the editor checks if the maps exist and asks you do you wan't to delete them. That wound be much noob friendly I guess.
And maybe changing starting zone in the editor (at least I couldn't find it in editor) I found out where is the value stored so I will make a tutorial for that.

Posts: 1030

Changing the start and respawn positions in the editor are kinda not a good idea since those can depend on several things (e.g. starting class, selectable starting city, respawn at last save point, ..)

Posts: 1691

Taziz wrote:
Wound be nice if the editor checks if the maps exist and asks you do you wan't to delete them. That wound be much noob friendly I guess.

Like I said, though, people shouldn't be deleting from there. For example, future versions of NetGore might first check to make sure that there are no links to the map being deleted in any other maps (e.g. teleports). Providing the ability to just delete files and have it work, even if it warns you not to, will still result in people doing it. Having an error that says "don't do that - put those back and do it properly!" would prevent them from doing it again.

Posts: 53

The reason i deleted maps from the folder is because there were 6 maps and deleting 5 maps takes longer so how about when deleting maps make a check box what maps you want to delete. That wound solve a problem I guess.