over the past week i decided to try my hand at creating a dynamic world ( like the one in the game ‘Wurm online’ ) that the player would be able to change as he played.
The point in doing this was mainly to see if it could be done, and with what limits could it be done on.
Now that i know how to do this i will probably recode it from scratch now that i know whats going on.
(its very sloppy right now but its still a really cool thing to mess around in )
how this works :
you a melon …
you can left click to move the mesh world down
right click to move it up 0.o
it uses physicsfrommesh to create it
(this ^^^^^ is such a b****, you cant have more then like 348 vertexes at a time, and it wont collide with players)
notes: when a player joins he will download the original world mesh, and as you change it, it will update
(Ive been up every night with headaches just trying to understand what Ive code, like i said the codes very sloppy )
This is what it looks like in the game mode:
Here is a download link for the map/gamemode/code, make sure you put all the files where they need to go :
(let me know if this link works megaupload was freaking out a second ago)
My exiting thoughts are the following :
i really hope in the future we will be able to have large scale teraforming inside of gmod.
at the moment because of the source engin the game will crash if you have any more then 348ish vertexes
i guess a work around would be to create maybe 20 vertexes around where ever the player is and have it follow him as he walks, this would lead to unlimited map size, assuming you don’t have a shit ton of players.
look at the code, try to figure out whats going on, i tried to comment what i could but im a bit tired as i write this and still in shock that i got this to work
Now that i know how to go about this il probably rewrite the whole thing, il let you know when i do i guess.
let me know you thoughts, comments, reactions, and questions about this.