[Mod] Portalgun V6 [portalgun]

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

[Mod] Portalgun V6 [portalgun]

by AiTechEye » Thu Jul 09, 2015 09:03

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
Attachments
ByUjEdwinV6-portalgun.zip
(489.31 KiB) Downloaded 231 times
screenshot_20161114_123616.png
screenshot_20161114_123616.png (268.35 KiB) Viewed 4142 times
Last edited by AiTechEye on Mon Nov 28, 2016 21:53, edited 47 times in total.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
Evergreen
Member
 
Posts: 2131
Joined: Sun Jan 06, 2013 01:22
GitHub: 4Evergreen4
IRC: EvergreenTree
In-game: Evergreen

Re: [MOD] portalgun (0.5)

by Evergreen » Thu Jul 09, 2015 15:01

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.
"Help! I searched for a mod but I couldn't find it!"
http://krock-works.16mb.com/MTstuff/modSearch.php
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: [MOD] portalgun (0.5)

by Hybrid Dog » Sun Jul 12, 2015 13:23

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.
 

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

Re: [MOD] portalgun (0.5)

by TG-MyinaWD » Tue Jul 14, 2015 17:47

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
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
Excalibur Zero
Member
 
Posts: 142
Joined: Tue Apr 02, 2013 19:45
GitHub: ExcaliburZero

Re: [MOD] portalgun (0.5)

by Excalibur Zero » Wed Jul 15, 2015 02:21

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.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: [MOD] portalgun (0.5)

by Hybrid Dog » Fri Jul 17, 2015 17:44

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.
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [MOD] portalgun (0.5)

by AiTechEye » Sun Jul 19, 2015 07:33

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.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
mrob27
Member
 
Posts: 21
Joined: Sun Sep 27, 2015 13:32
GitHub: mrob27

Re: [MOD] portalgun (basic)

by mrob27 » Wed Oct 07, 2015 15:39

Thanks @UjEdwin I love this!

Image

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

User avatar
Gaming Association
Member
 
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: [MOD] portalgun (basic)

by Gaming Association » Thu Oct 08, 2015 11:51

Could u work on the gravity gun mod next? @UjEdwin
Gaming Association
 

User avatar
philipbenr
Member
 
Posts: 1665
Joined: Fri Jun 14, 2013 01:56
GitHub: philipbenr
IRC: philipbenr
In-game: WisdomFire or philipbenr

Re: [MOD] portalgun (basic)

by philipbenr » Thu Oct 08, 2015 18:03

Awesome!
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [MOD] portalgun (basic)

by AiTechEye » Thu Oct 08, 2015 20:04

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
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
mrob27
Member
 
Posts: 21
Joined: Sun Sep 27, 2015 13:32
GitHub: mrob27

Re: [MOD] portalgun (basic)

by mrob27 » Sat Oct 10, 2015 00:08

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.
 

Hybrid Dog
Member
 
Posts: 2460
Joined: Thu Nov 01, 2012 12:46

Re: [MOD] portalgun (basic)

by Hybrid Dog » Sat Oct 10, 2015 07:26

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
 

User avatar
mrob27
Member
 
Posts: 21
Joined: Sun Sep 27, 2015 13:32
GitHub: mrob27

Re: [MOD] portalgun (basic)

by mrob27 » Sat Oct 10, 2015 17:50

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?
 

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

Re: [MOD] portalgun (basic)

by Don » Sat Oct 10, 2015 20:57

Teleport them to a random location
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
Gaming Association
Member
 
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: [MOD] portalgun (basic)

by Gaming Association » Sat Oct 10, 2015 23:36

Could u separate the gravity part of the displazer mod because i couldn't figure out exactly how it works
Gaming Association
 

User avatar
mrob27
Member
 
Posts: 21
Joined: Sun Sep 27, 2015 13:32
GitHub: mrob27

Re: [MOD] portalgun (basic)

by mrob27 » Mon Oct 12, 2015 03:13

Good idea @Don

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

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [MOD] portalgun (basic)

by AiTechEye » Mon Oct 12, 2015 17:58

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.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [MOD] portalgun (basic)

by AiTechEye » Mon Oct 12, 2015 20:36

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
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
Gaming Association
Member
 
Posts: 62
Joined: Tue Aug 18, 2015 01:52
GitHub: Gerold55
In-game: Gerold55

Re: [MOD] portalgun (basic)

by Gaming Association » Tue Oct 13, 2015 23:32

Ty so much @UjEdwin
Gaming Association
 

User avatar
benrob0329
Member
 
Posts: 1192
Joined: Thu Aug 06, 2015 22:39
GitHub: Benrob0329
In-game: benrob03

Re: [MOD] portalgun (basic)

by benrob0329 » Sat Jan 09, 2016 01:23

O.O what!?

How have I missed this!?!?!!

THE CAKE IS A LIE!
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [MOD] portalgun 1.0

by AiTechEye » Sat Jan 30, 2016 19:54

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
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] Portalgun 1.5 (beta)

by AiTechEye » Tue Feb 02, 2016 17:11

added a lot of stuff, look above :-)
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] Portalgun 3

by AiTechEye » Fri Feb 05, 2016 15:24

The portals in this version will work atleast 40% better then version 2.
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

william341
New member
 
Posts: 9
Joined: Thu Jul 16, 2015 05:24
GitHub: PatchTest
In-game: william341

Re: [Mod] Portalgun 3

by william341 » Mon Feb 08, 2016 01:33

I've put your mod on the MPI showcase!
You can find it here: http://minetestplayerinitative.github.io/mods/
 

User avatar
mrob27
Member
 
Posts: 21
Joined: Sun Sep 27, 2015 13:32
GitHub: mrob27

Re: [Mod] Portalgun 3

by mrob27 » Mon Feb 08, 2016 21:24

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".
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] Portalgun 3

by AiTechEye » Mon Feb 08, 2016 21:30

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
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
mrob27
Member
 
Posts: 21
Joined: Sun Sep 27, 2015 13:32
GitHub: mrob27

Re: [Mod] Portalgun 3

by mrob27 » Mon Feb 08, 2016 21:33

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.
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: [Mod] Portalgun 4

by AiTechEye » Tue Feb 09, 2016 20:32

V4: big update!
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
Andrey01
Member
 
Posts: 431
Joined: Wed Oct 19, 2016 15:18
In-game: Andrey01

Re: [Mod] Portalgun V5 [portalgun]

by Andrey01 » Wed Nov 16, 2016 15:08

Nice mod, but for what does it use?
 

Next

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 26 guests