[mod] Randomly assigned spawn with /spawn support [rspawn]

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

[mod] Randomly assigned spawn with /spawn support [rspawn]

by taikedz » Fri Jan 13, 2017 22:44

A spawn command for Minetest without needing a fixed point -- singpleayer rejoice!

Players are each given their own randomized spawn point on first joining.

If no static_spawnpoint is defined in minetest.conf, the origin is 0,0,0.

If a static spawn point is defined, that point is used as origin instead.

If `spawn_anywhere = true` is set in minetest.conf, any new player will be given a randomized spawn point, somewhere around the entire world map. On server, two players might never meet eachother for a looong time...

    * A normal game in singleplayer mode will still allow the player access to a spawn location
    * Player will respawn at their spawnpoint if they die.
    * Players will respawn at their bed if this option is active (default: bedspawn = true)
    * Their /spawn location will still be the randomized location.
    * The /spawn command requires a 'spawn' privilege.
    * Players will not spawn in spaces that are protected by any other player than the Server Admin.
    * Additional commands
    * Players can request a new spawn point by typing /newspawn if they have the newspawn privilege.
    * Players can set their spawn point by typeing /setspawn if they have the setspawn privelege.

Last edited by taikedz on Tue Jan 31, 2017 18:21, edited 3 times in total.
 

KCoombes
Member
 
Posts: 278
Joined: Thu Jun 11, 2015 23:19
In-game: Knatt or Rudilyn

Re: [mod] Random spawn points with /spawn support [rspawn]

by KCoombes » Mon Jan 16, 2017 04:34

Very nice +1
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: [mod] Random spawn points with /spawn support [rspawn]

by taikedz » Tue Jan 31, 2017 18:16

New feature - spawn_anywhere

New players will be assigned a spawn point somewhere in the vastness of the world... and may not meet another soul for ages.... ;-)
 

FaceDeer
Member
 
Posts: 152
Joined: Sat Aug 29, 2015 19:01

Re: [mod] Random spawn points with /spawn support [rspawn]

by FaceDeer » Tue Jan 31, 2017 20:25

taikedz wrote:New feature - spawn_anywhere

New players will be assigned a spawn point somewhere in the vastness of the world... and may not meet another soul for ages.... ;-)



Excellent, I was thinking of suggesting something like that. :) How about a way to specify a list of "spawn regions" to be randomly picked from, so that for example you could set up a couple of different towns and have players randomly be citizens of a particular one?
 

KongarTheTerrible
New member
 
Posts: 2
Joined: Thu Feb 02, 2017 18:33

Re: [mod] Randomly assigned spawn with /spawn support [rspaw

by KongarTheTerrible » Thu Feb 02, 2017 22:58

Tons of error on install?
"Runtime error from mod 'rspawn' in callback environment_Step()
builtin/common/helpers.lua:515...
init.lua:41 'newspawn'
177: in function 'func'

etc
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: [mod] Randomly assigned spawn with /spawn support [rspaw

by taikedz » Fri Feb 03, 2017 00:08

Hmm bizarre

Check your debug.log pls and paste the actual error text?

What version of minetest?
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: [mod] Randomly assigned spawn with /spawn support [rspaw

by taikedz » Fri Feb 03, 2017 12:26

Line 41 is a debug line, I've turned it off in the latest code version, please try that.

If you are still getting issues, you should have a debug.txt log file in your minetest folder. Go to the end of the file to find the corresponding errors, and paste the exact messages here, or open an issue at https://github.com/taikedz/minetest-rspawn/issues
 

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

Re: [mod] Random spawn points with /spawn support [rspawn]

by taikedz » Fri Feb 03, 2017 12:29

FaceDeer wrote:
taikedz wrote:New feature - spawn_anywhere

New players will be assigned a spawn point somewhere in the vastness of the world... and may not meet another soul for ages.... ;-)



Excellent, I was thinking of suggesting something like that. :) How about a way to specify a list of "spawn regions" to be randomly picked from, so that for example you could set up a couple of different towns and have players randomly be citizens of a particular one?


That would be neat. Not sure I want to burden this version with yet another type of spawning though :-P

It would be fairly easily done though - maintain a table of position & radius pairs, pick one, then kick off the randomized spawn with that position as the target....
 


Return to WIP Mods

Who is online

Users browsing this forum: Bing [Bot] and 10 guests

cron