FINDarkside / TLD-Save-Editor

Edit The Long Dark save files
http://www.moddb.com/mods/the-long-dark-save-editor-2/downloads
MIT License
76 stars 31 forks source link

About teleport #21

Open Pt-Djefferson opened 4 years ago

Pt-Djefferson commented 4 years ago

How about safe teleport points - inside buildings or caves or poi? I think I can collect coords of that points. For now it can be done with Region ComboBox with a lil trick (cause ComboBox not editable): I have saves in some buildings most important for me, so I load one of that saves, region of that save (Barn for example) now in ComboBox, then I load my current save and change region in ComboBox for Barn, then save, then load in game. Coords in buildings near main door almost always near 0,0,0 (2.799663,-7.201617,0.09310496 for ex. rear door at QuonsetGasStation) Or some radio buttons can be placed (they can?) at map (zoom???) for teleport only to that points with well known coords.

FINDarkside commented 4 years ago

Yeah it's a good idea, but at the moment I don't have much time so I'll only do the bare minimum to keep this editor working.

More interesting way to get valid locations for all interiors would be to send (opt in) the location and coordinates to my firebase database.

irrweg commented 4 years ago

How do you guys handling falling through the map while teleporting?

FINDarkside commented 4 years ago

At some point, the game always spawned you on the ground, no matter what your z coordinate was. It was changed at some point and now you'd have to set it manually. In theory it'd be possible to have some kind of height map which would be used to set z coordinate automatically, but that'd be a lot of work. I'm not really working on this editor anymore other than for maintenance reasons.

irrweg commented 4 years ago

I tried with minus and plus coordinates for the z axis. But looks like the game does not care, what you put on the z axis. You fall trough the map, and it teleports you to the middle of the map. Anyways never used it before, was just curious if it works.

Thank you for such a great application, wish I could donate to you, using it since the beta!

FINDarkside commented 4 years ago

It should work just fine, just tested it. You probably just put in too small z coordinate, or your x and y coordinates might be off the map as well. You can try it by increasing z coordinate when you're already on the ground, you'll spawn mid air.

enricodias commented 3 years ago

I just tried the teleport for the first time and couldn't make it work, the character falls through the void. This is related to #14 as well. Changing the z axis manually also didn't work.

I know you don't have much time to deal with this, but I'm just commenting this here in case someone else face the same issue.

FINDarkside commented 3 years ago

Changing z axis should work, you can confirm by changing coordinates to some position you know to work. If your z is too low you'll fall through the map and if it's too high you'll fall to your death.

RobertEves92 commented 2 years ago

How about safe teleport points - inside buildings or caves or poi? This to me seems the easier idea both in terms of coordinate collection, and for implementing. Rather than letting users click anywhere on a map and having to know not only the xy coords but a safe z seems like overkill. If a user wants to be somewhere specific it'll most likely be a POI, or at least fairly near one.

It's a big job to get all POI coords for all regions, but once its done, its fairly easy to maintain if and when new regions a made, or if new POIs are added to an existing region.

Or some radio buttons can be placed (they can?) at map (zoom???) for teleport only to that points with well known coords. exactly my thought, just but a radio button on the map next to a POI. might not be the most efficient implementation, but from a UI/UX perspective its likely the most functional

enricodias commented 2 years ago

If the feature gets implemented, users could submit PRs adding new POIs easily. There's no need to get them all at once.

RobertEves92 commented 2 years ago

If the feature gets implemented, users could submit PRs adding new POIs easily. There's no need to get them all at once.

This is very true. Could start by taking all the square maps (most of them), splitting them in to quarters and picking a POI close to the centre of each quarter, plus maybe on dead map centre. Then for ones like costal highway do maybe 3 points, one at each end of the road, and one somewhere in the middle? It gets the idea off the ground

I've been trying to write a program to run along side TLD that simply shows the region and XYZ you are currently at to make this a smidge easier, however I am struggling to find the right addresses in the games memory, so may just have to rely on saves in certain locations

FINDarkside commented 2 years ago

I've been trying to write a program to run along side TLD that simply shows the region and XYZ you are currently at to make this a smidge easier, however I am struggling to find the right addresses in the games memory, so may just have to rely on saves in certain locations

You could use developer console mod and pos command will give you your coordinates.

RobertEves92 commented 2 years ago

I've been trying to write a program to run along side TLD that simply shows the region and XYZ you are currently at to make this a smidge easier, however I am struggling to find the right addresses in the games memory, so may just have to rely on saves in certain locations

You could use developer console mod and pos command will give you your coordinates.

See now I just feel stupid for not knowing that was a thing....