Mods / Simple Home Teleport (/sethome /home /back)
Author: MasterDeeJay
Side: Server
Created: Mar 15th at 11:22 AM
Last modified: Jun 6th at 4:57 PM
Downloads: 2512
Follow Unfollow 61
Latest release (for Vintage Story 1.20.11, outdated):
SimpleHomeTPwCD.zip
1-click install
My first mod for Vintage Story.
Please use the latest MultiHomeTeleport mod, it can work as a simple if needed.
Multi teleport version:
https://news.kalataka.ru/show/mod/26212
1.0.0 the simplest version - SimpleHomeTP.zip
home locations saved on server side
Only one /home location per player supported.
Just two commands:
/sethome and /home
1.0.2-1.0.3 the cooldown version - SimpleHomeTPwCD.zip
Commands and features same as above but with additional cooldown timer.
Default is 5min (300sec) from real life clock.
Configurable on server side with config.json file.
1.0.3
added a new /back command
1.0.4
added /back command cooldown, same value as the /home
1.0.5
/home and /back have now separate cooldown settings in the config.json (auto created on fist time)
{"HomeCooldownSeconds":300.0,"BackCooldownSeconds":300.0}
added logging
1.0.6
fixed /back location save
Multi teleport version:
| Mod Version | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|
| 1.0.6 | 853 | Jun 6th at 4:57 PM | SimpleHomeTPwCD.zip | 1-click install | ||
|
fixed: back locations are saved now when server is restarted | ||||||
| 1.0.5 | 127 | Jun 5th at 5:07 AM | SimpleHomeTPwCD.zip | 1-click install | ||
|
added /back command cooldown in the config file added loging | ||||||
| 1.0.4 | 80 | Jun 4th at 12:41 PM | SimpleHomeTPwCD.zip | 1-click install | ||
|
added cooldown to the /back command needs testing! | ||||||
| 1.0.3 | 59 | Jun 4th at 4:49 AM | SimpleHomeTPwCD.zip | 1-click install | ||
|
added /back command | ||||||
| 1.0.2 | 862 | Mar 20th at 9:57 AM | SimpleHomeTPwCD.zip | 1-click install | ||
|
fixed the timer, now it use the real clock now. Removed the homecooldown command it caused bugs. (later i will fix it!) Use the config.json for the cooldown. | ||||||
| 1.0.0 | 276 | Mar 15th at 11:24 AM | SimpleHomeTP.zip | 1-click install | ||
|
v1.0 Simplest verison. Just /sethome and /home. No persissions needed! | ||||||
Now a multi home version:
https://news.kalataka.ru/show/mod/26212
If it works bug free then it can replace the simple version because it can switch between single and multi modes!
That would be so boss for single player because my windmill is always on top of a mountain somewhere.
Is it possible to have multiple homes?
Like </sethome [name]> and </home [name]> ?
1stSlug
Fixed in 1.0.6
now it is saved
Is anyone else having the issue that inbetween game sessions the /back cmd doesn't register the last location and resets?
For example (because I suck at explaining things): I was in a ruin I was deconstructing (for the old parts 😀), but noticed the time in RL, so /home and then saved and quit. Next day I jump on and want to continue and use the /back cmd and I get the usual reply of blah blah /help.
1stSlug
it is a server side only mod, i think i need to do a client side version for that.
WolfWarrior
dont know yet, but i think i can make that to consume a specific item from inventory.
TheDude
dont know yet how to make that because it is not a fixed position, it needs somehow to mark that mount/boat...
MasterDeeJay
Is it possible to be able to use a hotkey instead of a chat /cmd?
1.0.5 /back command now have configurable cooldown.
wondering if we can get a config option to set a teleport cost? like taking a temporal gear from your offhand?
MasterDeeJay You know, I have Mad Respect for you. New to C and yet you are Kicking Ass! Nice.
Your planned mod for server query sounds awesome, not something I need, but awesome none the less. Go For It!
LOL
Ensorcelled
Thanks for the accurate testing!!!
next update will be the separate cooldown settings for the home and back command!
TheDude
it is possible that I will do this as well!
@ To everyone:
Im working on a different mod. A live server query, that is not an average name, player count etc but a complete query API. With that i can query anything in the game(or i hope so). For now i can show a very litle demo that can do the folowing:
year + month
player name, location, temperature and rain in that location.
loaded mods and info
i have a working demo at
https://vintagestory.hu/
(sorry it is hungarian, closed server)
the live data is : http://178.48.20.9:8181/
(using http/https proxy)
(Year is data.date.Year + 1386; and the location is from a different xyz from spawn)
But if i have time i will make the full api if possibble. That way i can query anything like classes, skills, health, items...and maybe in the future not just view but editing it, teleport with web interface etc. It is a complex project (for me) because im new in the c language, im not a programmer but i used a commodore basic when i was young and now i use visual studio .net basic for my programs. I never learned to program but i hope that i can do a lot of good mods!
Hello, would it be possible to make a /homeboat and /homemount command to return to base with the boat and mount, with 3 different paying /home (with nothing, mount and boat) avec ?
I'l test it now and edit this with the results. Thank You.
/EDIT : Ok, tested the following cases:
1) /back before /sethome or /home used, gives proper message about using /home first before /back can be used.
2) /home before /sethome used, gives proper message about using /sethome first.
3) /sethome run, saved location. Manually deleted file from directory and tried Step 1, 2, and 3 agin. Worked flawlessly.
4) With home saved, tried /back, got proper error message.
5) used /home and it worked, gave me the timer when I tried it again.
6) used /back, it's on the same timer as /home, so have to wait for time limit.
Now, I have no issue with that, as this is a limited use convieniece function.
BUT if somone wanted to go home, drop stuff, and pop back to where they were, they might have an issue with waiting the duration?
Honestly, unless you get more people saying they want that, I'm content with the way it works currently. Solid Work.
7) ALSO tested all three commands on server console. Proper response about must be called by player issued. Yup, Very Solid Work.
ok! added cooldown to /back command, not yet tested!
Howdy, maybe a matching cooldown on /back so that isn't abused, allowing infinite no time teleport to whereever it was set?
/EDIT otherwise works like a champ. LOL
MasterDeeJay
Might wanna add /back cmd to your description as 6 months from now, you'll be getting spammed about adding it or that they didn't know. :P
added a /back command.
I'd like to suggest a /back command to teleport you back to the place that you just teleported from.
YO amazing idea, adding it to my server with a 3-6 hour cd so everyone has a hearthstone or a get out of jail free card once in a while in case they fall down a hole, go on a trek, etc.
Lovely idea, thanks for adding the config file
Kelemvore That would just be creative with extra steps.
Thank you so much for the fix, it is now a loved addition to our server!
If you update this in the future try to be prepared with version numbers for the modfiles: https://semver.org/
would love to see an update in the future that allows us to add multiple home locations. great work!
Lancelite
Thanks! It was a bug with the timer, now the 1.0.2 uses the real time server clock, not the ticks.
At first use it displays the timer in minutes and then seconds for the countdown.
And there was a hidden server/admin command to change the cooldown when the server is online, i removed it because it was buggy. So please use the config.json.
I am a very beginner modder, so expect bugs.
Hm it seems to ignore any alterations I make to the cooldown. In the chat it does display 86400 second cooldown but it ignores this limitation and seems to default to 300sec.
Edit: I was wrong, If you spam the chat it seems to count down a lot faster. Is this in miliseconds? Or even ticks?
Added cooldown version. Default is 5min from real life clock. Configurable on server side with config.json file.
It's simple and clean, will there be any settings to limit the clients? Thinking like you can only slash home once a month or so?
True, it is not need any permissions to work.
GreenP I don't play multiplayer or know exactly how permissions work, but /tpwp sounds like it would be an admin command, whereas /home could be provided as a more balanced option to all players, yeah?
Not to sound like a jackass but what is the point of this mod? You can already do this if you make a waypoint and name it "home" and then use the "/tpwp home" command
edit: huh alright then it does make sense