Page 1 of 2

[Mod] Portalgun V6 [portalgun]

PostPosted: Thu Jul 09, 2015 09:03
by AiTechEye
Image

Portalgun

The gun that can shoot portals :D

The portals can teleport both players, mobs, stuff, and using velocity (which is important)
The users portals, deletes when the user leaves the game or if not used for 40sec.

The extra stuff requires mesecons

"place" to change portal mode (or "left+rightclick" to use the other)

"shift+leftclick" to close both portals (or wait becaoue them removes it self)

"leftclick" on an object to carry it, click again to release
you can craft it to a decuration block, dig to get it back

More info:
+ Spoiler


Licenses: code and media CC0
Depends: default, mesecons

Re: [MOD] portalgun (0.5)

PostPosted: Thu Jul 09, 2015 15:01
by Evergreen
This works really well! Great job!

As a side note, I opened this issue a while back on the topic of getter and setter functions for player velocity. This is something minetest really needs.

Re: [MOD] portalgun (0.5)

PostPosted: Sun Jul 12, 2015 13:23
by Hybrid Dog
Evergreen wrote:This works really well! Great job!

As a side note, I opened this issue a while back on the topic of getter and setter functions for player velocity. This is something minetest really needs.

Did you also add an addvelocity function? lf it's lagging the local player differs from the player seen on the server and if you want to do recoil setting velocity wouldn't work for adding it to the current one l assume.

Re: [MOD] portalgun (0.5)

PostPosted: Tue Jul 14, 2015 17:47
by TG-MyinaWD
Here a video I did.
Very cool mod hope I will able finish this Portal Test Subgame XD but it only a placeholder atm.

Video

Re: [MOD] portalgun (0.5)

PostPosted: Wed Jul 15, 2015 02:21
by Excalibur Zero
Do you think you could set up a GitHub repo for this mod? Doing so would make it easier for other people to contribute to and download the mod.

Re: [MOD] portalgun (0.5)

PostPosted: Fri Jul 17, 2015 17:44
by Hybrid Dog
Alt. Tester wrote:Here a video I did.
Very cool mod hope I will able finish this Portal Test Subgame XD but it only a placeholder atm.

Video

you may would like to use a tool that makes you execute chatcommands if you use, drop or place it
https://github.com/HybridDog/command_tool

UjEdwin, if you attach the player to an object (which could be invisible and not pointable), you can set the velocity of this object and the player gets it too.

Re: [MOD] portalgun (0.5)

PostPosted: Sun Jul 19, 2015 07:33
by AiTechEye
I had an ide about that too, but it wont work very nice (laggy)
But like the green text, I let everyone that is intrested, to make what they want to do with the mod / source :)
(do exclty what you whant with it)
Becaouse by some reason i got too borred by making mods / program.

Re: [MOD] portalgun (basic)

PostPosted: Wed Oct 07, 2015 15:39
by mrob27
Thanks @UjEdwin I love this!

Image

I've set this up on Github and I'm working on it, forumpost is here

Re: [MOD] portalgun (basic)

PostPosted: Thu Oct 08, 2015 11:51
by Gaming Association
Could u work on the gravity gun mod next? @UjEdwin

Re: [MOD] portalgun (basic)

PostPosted: Thu Oct 08, 2015 18:03
by philipbenr
Awesome!

Re: [MOD] portalgun (basic)

PostPosted: Thu Oct 08, 2015 20:04
by AiTechEye
Gaming Association wrote:Could u work on the gravity gun mod next? @UjEdwin


i did that long time ago :-) its a part of diplazer, mode8
https://www.youtube.com/watch?v=8JhbfV2cYHg

Re: [MOD] portalgun (basic)

PostPosted: Sat Oct 10, 2015 00:08
by mrob27
That (Diplazer gravity gun mode) looks pretty cool, but the YouTube video links to this forum post which is totally unrelated. Instead I think you should link to [Mod] Diplazer 15.2 (the ultimate build tool!

I am thinking about using gravity in connection with the P0rtal gun through the crafting recipes. My thinking is like this:

  • The portals are connected by a wormhole in space, and the wormhole has two ends.
  • If you've only placed one portal, then the other end of the wormhole is still inside the gun, and you could walk around with the gun like a vacuum cleaner, any entities would get sucked up and pop out of the portal that you placed.
  • In order to create the wormholes the p0rtalgun contains a "quantum singularity", kind of like a black hole.
  • Since a black hole is very dense matter, it would be made by a chain of crafting recipes like this:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
 rock      obsidian    rock
 obsidian    MESE    obsidian         -->  Dense Matter level 1 (DM-1)
 rock      obsidian    rock

 MESE        DM-1      MESE
 DM-1        DM-1      DM-1           -->  Dense Matter level 2 (DM-2)
 MESE        DM-1      MESE

 DM-1        DM-2      DM-1
 DM-2        DM-2      DM-2           -->  Dark Matter level 1 (Dark-1)
 DM-1        DM-2      DM-1

 DM-2       Dark-1     DM-2
 Dark-1     Dark-1    Dark-1          -->  Dark Matter level 2 (Dark-2)
 DM-2       Dark-1     DM-2

   -     MESE   O.Shard
  MESE  Dark-2     -                  -->  P0rtalgun
  MESE     -       -


except I was thinking of having even more stages, but then it would be effecitvely impossible. Even with 4 stages it would take a ton of work in survival mode to get all the materials to make one P0rtalgun, but that's kind of the point!

Anyway, these dense and dark-matter blocks could also be placed, and they would do stange things with gravity, but I'm not sure exactly what. Maybe if you are near them, the mod would do a set_physics_override({gravity=whatever}) on you (or a setacceleration({x=0, y=whatever, z=0) on other entities)

Any more complex alteration of physics that affects players is hard to do, just like with the boat, you'd have to create an entity and set_attach() the player to it.

Re: [MOD] portalgun (basic)

PostPosted: Sat Oct 10, 2015 07:26
by Hybrid Dog
mrob27 wrote:If you've only placed one portal, then the other end of the wormhole is still inside the gun, and you could walk around with the gun like a vacuum cleaner, any entities would get sucked up and pop out of the portal that you placed.

yes, then throw the gun into that single portal

In order to create the wormholes the p0rtalgun contains a "quantum singularity", kind of like a black hole.
Since a black hole is very dense matter, it would be made by a chain of crafting recipes like this:

only a specific part of matter causes warping of space l think

Re: [MOD] portalgun (basic)

PostPosted: Sat Oct 10, 2015 17:50
by mrob27
Hybrid Dog wrote:yes, then throw the gun into that single portal


As currently written (@UjEdwin's code), If only one portal is placed, the globalstep proc doesn't scan for objects near it, so placing one portal then throwing the gun into it has no effect. I believe that's what the original game does too (and the portals look different: they're filled with orange or blue if they don't link to another portal).
  But it would be fun (or perhaps evil) to make it do something spectacular. Suggestions? Kill the player? Make every atom in the universe explode at the speed of light? Something in between?

Re: [MOD] portalgun (basic)

PostPosted: Sat Oct 10, 2015 20:57
by Don
Teleport them to a random location

Re: [MOD] portalgun (basic)

PostPosted: Sat Oct 10, 2015 23:36
by Gaming Association
Could u separate the gravity part of the displazer mod because i couldn't figure out exactly how it works

Re: [MOD] portalgun (basic)

PostPosted: Mon Oct 12, 2015 03:13
by mrob27
Good idea @Don

@Gaming Association, if you're asking @UjEdwin, you can maybe send them a PM.

Re: [MOD] portalgun (basic)

PostPosted: Mon Oct 12, 2015 17:58
by AiTechEye
i should did it from the start, but i dont remmeber how it works too :-)

the best you can do are to remove all parts that it works without, i will see if i can do it.

Re: [MOD] portalgun (basic)

PostPosted: Mon Oct 12, 2015 20:36
by AiTechEye
Gaming Association wrote:Could u separate the gravity part of the displazer mod because i couldn't figure out exactly how it works



Now you a chance to remake it to its own mod too, i managed to clear the mostly code, it was a bit hard :-)


the link will disappear after a few days
https://dl.dropboxusercontent.com/u/183644134/FromUjEdwin-gravgun.zip

Re: [MOD] portalgun (basic)

PostPosted: Tue Oct 13, 2015 23:32
by Gaming Association
Ty so much @UjEdwin

Re: [MOD] portalgun (basic)

PostPosted: Sat Jan 09, 2016 01:23
by benrob0329
O.O what!?

How have I missed this!?!?!!

THE CAKE IS A LIE!

Re: [MOD] portalgun 1.0

PostPosted: Sat Jan 30, 2016 19:54
by AiTechEye
after a long time, i got enough knowledge to make it done :D
this portalgun system is remade and works much better!

changed: refurbished the system
added: place to shift modes
added: player velocity (using entitys)
added: carry with gravity (left click)
added: changes colors in modes

Re: [Mod] Portalgun 1.5 (beta)

PostPosted: Tue Feb 02, 2016 17:11
by AiTechEye
added a lot of stuff, look above :-)

Re: [Mod] Portalgun 3

PostPosted: Fri Feb 05, 2016 15:24
by AiTechEye
The portals in this version will work atleast 40% better then version 2.

Re: [Mod] Portalgun 3

PostPosted: Mon Feb 08, 2016 01:33
by william341
I've put your mod on the MPI showcase!
You can find it here: http://minetestplayerinitative.github.io/mods/

Re: [Mod] Portalgun 3

PostPosted: Mon Feb 08, 2016 21:24
by mrob27
william341 wrote:I've put your mod on the MPI showcase!
You can find it here: http://minetestplayerinitative.github.io/mods/

That link doesn't work, also "github.io" appears to not be a real site, and none of the major search engines has even heard of "minetestplayerinitative".

Re: [Mod] Portalgun 3

PostPosted: Mon Feb 08, 2016 21:30
by AiTechEye
404
There isn't a GitHub Pages site here.

im working on v4, it will be a really big update with a next to perfect control over the portals and a lot of new stuff & fixes :D

checkout the portal test server (when its online) until its done

Re: [Mod] Portalgun 3

PostPosted: Mon Feb 08, 2016 21:33
by mrob27
UjEdwin wrote:404
There isn't a GitHub Pages site here.

im working on v4, it will be a really big update with a next to perfect control over the portals and a lot of new stuff & fixes :D

checkout the portal test server (when its online) until its done

Oh hey I figured it out. They spelled the URL wrong. (Why?!?!? That's so much harder than copy/paste) It should be:

http://minetestplayerinitiative.github.io/mods/

@UjEdwin, your mod is great, thanks for coming back to it. I was going to do some of that stuff but ran out of steam.

Re: [Mod] Portalgun 4

PostPosted: Tue Feb 09, 2016 20:32
by AiTechEye
V4: big update!

Re: [Mod] Portalgun V5 [portalgun]

PostPosted: Wed Nov 16, 2016 15:08
by Andrey01
Nice mod, but for what does it use?