[Mod] worldedge [worldedge]

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

[Mod] worldedge [worldedge]

by Don » Sun Dec 14, 2014 15:11

worldedge is a mod that teleports the player to the other side of the world when they reach the edge.

When the player walks past 30000 in any direction they will be teleported to the other side of the world as if they walked around the world.

Krock has made it so when you teleport to the other side you will be at ground height.

This mod was created by Amaz and modified by Krock.

License - DWYWPL
Dependencies - none
Download - worldedge
Github - worldedge

Tested on Minetest 0.4.10
Last edited by Don on Wed Mar 23, 2016 21:31, edited 3 times in total.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Napiophelios
Member
 
Posts: 940
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod]worldedge

by Napiophelios » Sun Dec 14, 2014 16:09

oooh, I can use this to limit my worlds size?
I wanna trap my players to a smaller game area.
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Sun Dec 14, 2014 16:37

Napiophelios wrote:oooh, I can use this to limit my worlds size?
I wanna trap my players to a smaller game area.

Yes. Just edit init.lua change the first 2 lines to the size you want. Make the second a few smaller so they don't keep teleporting. It is not perfect but it works.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Napiophelios
Member
 
Posts: 940
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod]worldedge

by Napiophelios » Sun Dec 14, 2014 16:49

Nice it works well,
except I keep teleporting inside nodes.
I think its an easy fix tho.
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Sun Dec 14, 2014 16:52

Napiophelios wrote:Nice it works well,
except I keep teleporting inside nodes.
I think its an easy fix tho.

you get teleported to the same height as what you was at. If you can find a way to fix this I will added it.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
AMMOnym
Member
 
Posts: 682
Joined: Tue Sep 10, 2013 14:18
Location: Slovakia
IRC: AMMOnym
In-game: AMMOnym
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Sun Dec 14, 2014 23:05

AMMOnym wrote:Wow

Yes. Amaz is Amazing
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
paramat
Developer
 
Posts: 3240
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod]worldedge

by paramat » Mon Dec 15, 2014 00:25

It's possible to use noise to precalculate terrain before it is generated, so that the player can be placed at the surface on teleportation, it's complex though, see my 'spawnplayer' functions in my recent mapgens for examples. I'm a bit busy at the moment to do this for this mod.
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Mon Dec 15, 2014 00:34

paramat wrote:It's possible to use noise to precalculate terrain before it is generated, so that the player can be placed at the surface on teleportation, it's complex though, see my 'spawnplayer' functions in my recent mapgens for examples. I'm a bit busy at the moment to do this for this mod.

Unfortunately I know nothing about mapgen. If you are about to do it I would be happy. I know you are very good with mapgen. Maybe you can put it on you "if I get bored" list. I think this mod could be really good but I do not have the skills to do it.

If anyone wants to improve this mod please do so.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

Re: [Mod]worldedge

by Hybrid Dog » Mon Dec 15, 2014 16:25

paramat wrote:It's possible to use noise to precalculate terrain before it is generated, so that the player can be placed at the surface on teleportation, it's complex though, see my 'spawnplayer' functions in my recent mapgens for examples. I'm a bit busy at the moment to do this for this mod.

Would it keep the mgv6 look (caves, cliffs,…) at the map corners?

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
Krock
Developer
 
Posts: 4144
Joined: Thu Oct 03, 2013 07:48
Location: Switzerland
GitHub: SmallJoker

Re: [Mod]worldedge

by Krock » Mon Dec 15, 2014 19:08

https://github.com/DonBatman/worldedge/pull/1

I will add a terrain height detection when I've got time.
Mod Search Engine - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Mon Dec 15, 2014 19:54

Krock wrote:https://github.com/DonBatman/worldedge/pull/1

I will add a terrain height detection when I've got time.

Thanks for that. It is now merged.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
TG-MyinaWD
Member
 
Posts: 356
Joined: Thu May 08, 2014 21:22
Location: Far Eden
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: [Mod]worldedge

by TG-MyinaWD » Tue Dec 16, 2014 02:47

I love this mod Don. Really use for when got a flat world. I might use this in my massive city. but First would need update the world a bit get work better.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Tue Dec 16, 2014 03:00

Alt. Tester wrote:I love this mod Don. Really use for when got a flat world. I might use this in my massive city. but First would need update the world a bit get work better.

Thank Amaz. He wrote it. And Krock for his help.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
paramat
Developer
 
Posts: 3240
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod]worldedge

by paramat » Tue Dec 16, 2014 05:57

Don i never get bored hehe.

Hybrid Dog wrote:Would it keep the mgv6 look (caves, cliffs,…) at the map corners?

Yes there will be no change to the mapgen, the method would be similar to how player spawnpoint is chosen: use mapgen parameters and noise to precalculate the ground level at the teleport destination before that terrain is generated. You have to know exactly where to teleport to before teleporting.
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

Re: [Mod]worldedge

by Hybrid Dog » Tue Dec 16, 2014 14:35

paramat wrote:Don i never get bored hehe.

Hybrid Dog wrote:Would it keep the mgv6 look (caves, cliffs,…) at the map corners?

Yes there will be no change to the mapgen, the method would be similar to how player spawnpoint is chosen: use mapgen parameters and noise to precalculate the ground level at the teleport destination before that terrain is generated. You have to know exactly where to teleport to before teleporting.

ok, l thought that you would change the map at the other side, where the player becomes teleported at, that it looks exactly like the current place and so the player doesn't notice teleporting.

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

User avatar
Don
Member
 
Posts: 1642
Joined: Sat May 17, 2014 18:40
GitHub: DonBatman
IRC: Batman
In-game: Batman

Re: [Mod]worldedge

by Don » Tue Dec 16, 2014 15:10

@paramat - if I had your skills I would not get bored either.
Many of my mods are now a part of Minetest-mods. A place where you know they are maintained!

A list of my mods can be found here
 

User avatar
paramat
Developer
 
Posts: 3240
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod]worldedge

by paramat » Tue Dec 16, 2014 15:23

Hybrid Dog wrote:ok, l thought that you would change the map at the other side, where the player becomes teleported at, that it looks exactly like the current place and so the player doesn't notice teleporting.

That could only possibly be done in a lua mapgen, with a core mapgen the terrain will always be different when you teleport.
 

User avatar
philipbenr
Member
 
Posts: 1688
Joined: Fri Jun 14, 2013 01:56
Location: United States
GitHub: philipbenr
IRC: philipbenr
In-game: robinspi

Re: [Mod]worldedge

by philipbenr » Tue Dec 16, 2014 15:42

Actually, it would be cool if you were to make it so the magpen would wrap around. That way, there would be possiblilty to make the world wrap around.

Offtopic: That feature could also make it possible to have different world modes. You could have it so there would be a wrap around world, and an infinite flat world... Just some cool ideas that have been thought of.
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

Re: [Mod]worldedge

by Hybrid Dog » Tue Dec 16, 2014 16:24

philipbenr wrote:Actually, it would be cool if you were to make it so the magpen would wrap around. That way, there would be possiblilty to make the world wrap around.

Offtopic: That feature could also make it possible to have different world modes. You could have it so there would be a wrap around world, and an infinite flat world... Just some cool ideas that have been thought of.

some time ago l tried to make my own mg noises
viewtopic.php?f=3&t=156&p=158729#p158729
viewtopic.php?f=3&t=156&start=2625#p158957

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

twoelk
Member
 
Posts: 1257
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk

Re: [Mod]worldedge

by twoelk » Tue Dec 16, 2014 16:27

paramat wrote:...
That could only possibly be done in a lua mapgen, with a core mapgen the terrain will always be different when you teleport.


I have always wondered wether such a transportation mod could not be combined with a restricted mapgen of sorts. This special "mapgen" could force a certain terrain along the predefined borders but leave all other parts of the map/world to what ever other mapgen is doing the job.

Such a border could be for example a broad stretch of desert that gradually draws to a certain hight that fits to the corresponding edge on the other side. My favourite version though would be a nice surrounding ocean of considerable depth and width. I guess other things such as a stretch of grassy plains or a high mountain ridge should also be possible. At least in theory. It might be usefull to restrict interaction in the borderlands to avoid people trying to build structures over the border.
 

User avatar
Hybrid Dog
Member
 
Posts: 2681
Joined: Thu Nov 01, 2012 12:46

Re: [Mod]worldedge

by Hybrid Dog » Tue Dec 16, 2014 16:35

twoelk wrote:
paramat wrote:...
That could only possibly be done in a lua mapgen, with a core mapgen the terrain will always be different when you teleport.


I have always wondered wether this could not be combined with a restricted mapgen of sorts. This special "mapgen" could force a certain terrain along the predefined borders but leave all other parts of the map/world to what ever other mapgen is doing the job.

Such a border could be for example a broad stretch of desert that gradually draws to a certain hight that fits to the corresponding edge on the other side. My favourite version though would be a nice surrounding ocean of considerable depth and width. I guess other things such as a stretch of grassy plains or a high mountain ridge or a deep forest should also be possible. At least in theory. It might be usefull to restrict interaction in the borderlands to avoid people trying to build structures over the border.


this:
Image

could be used as an approximate height map:
Image

for the whole world
Attachments
part2.png
(7.64 KiB) Not downloaded yet
part1.png
(314.72 KiB) Not downloaded yet

‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪‮
‮‪
 

twoelk
Member
 
Posts: 1257
Joined: Fri Apr 19, 2013 16:19
Location: northern Germany
GitHub: twoelk
IRC: twoelk
In-game: twoelk

Re: [Mod]worldedge

by twoelk » Tue Dec 16, 2014 17:12

lol
I had just edited out the forests as I don't think trees in the borderlands would work well :-D
 

User avatar
paramat
Developer
 
Posts: 3240
Joined: Sun Oct 28, 2012 00:05
Location: UK
GitHub: paramat
IRC: paramat

Re: [Mod]worldedge

by paramat » Wed Dec 17, 2014 00:03

paramat wrote:That could only possibly be done in a lua mapgen, with a core mapgen the terrain will always be different when you teleport.

What i mean of course is it could be done in a new core mapgen as well.
Also yes a mod could add matching borderlands to a core mapgen.
 

User avatar
ArguablySane
Member
 
Posts: 116
Joined: Sun Oct 12, 2014 21:29

Re: [Mod]worldedge

by ArguablySane » Wed Dec 17, 2014 01:28

Hybrid Dog wrote:<snip>


I have a better solution. Gradually blend your perlin noise values with the values on the opposite side of the world for chunks near the edge. Choose a distance which is large compared to the features in your terrain gen, then gradually blend from one side to the other over that distance. Blocks exactly on the edge should be a 50-50 mix of the terrain from each side.
The above post and any ideas expressed therein are released to the public domain under a Creative Commons CC0 license.
 

Next

Return to Mod Releases



Who is online

Users browsing this forum: No registered users and 4 guests