[MOD] Portal [Testing]

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

Fix: for now the activated portal's blocks are not diggable, so you should deactivate portal before removing.
My game: RTMG
GENTOO USER

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

http://www.youtube.com/watch?v=A1YGHCDJHgA
Teleports video! Watch in HD!
My game: RTMG
GENTOO USER

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

Image
build this and you get shot into the void on entry :)

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

Nemo08
Member
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Post

I said earlier that the portals have not yet check how they are installed and remove nodes at the installation site )))
Last edited by Nemo08 on Sun Jan 15, 2012 13:37, edited 1 time in total.

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

Nemo08 Where you are for now?
My game: RTMG
GENTOO USER

Baŝto
New member
Posts: 9
Joined: Fri Jan 06, 2012 13:46
Location: Hesse

by Baŝto » Post

translate.google.com wrote:
Hackeridze wrote:...
Пажди мы парталы падпилим, патом пасмотриш скажиш.
Pazhdi we partaly padpilim, pasmotrish skazhish stalemate.
WTF!?

Nemo08
Member
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Post

its uigur language!
Baŝto wrote:
translate.google.com wrote:
Hackeridze wrote:...
Пажди мы парталы падпилим, патом пасмотриш скажиш.
Pazhdi we partaly padpilim, pasmotrish skazhish stalemate.
WTF!?
He mean: Wait, we do portals, then take a look.

Baŝto
New member
Posts: 9
Joined: Fri Jan 06, 2012 13:46
Location: Hesse

by Baŝto » Post

Nemo08 wrote:its uigur language!
Baŝto wrote:
translate.google.com wrote: Pazhdi we partaly padpilim, pasmotrish skazhish stalemate.
WTF!?
He mean: Wait, we do portals, then take a look.
ah ... k ... thx ^^

User avatar
cisoun
Member
Posts: 232
Joined: Tue Apr 19, 2011 18:56
GitHub: cisoun
IRC: cisoun
In-game: cisoun
Location: Switzerland
Contact:

by cisoun » Post

'sup!

Just FYI: you should take a look at Jachoo's fork which provides portals (with acceleration support like Portal). Should be inspiring.
Not here for a while due to some troubles between my graphic card and Minetest.
Cisoun's Texture Pack | The Conifers Mod (deprecated) | Faenza icons for Minetest |
Website

User avatar
Hackeridze
Member
Posts: 310
Joined: Thu Nov 03, 2011 13:35

by Hackeridze » Post

cisoun wrote:'sup!

Just FYI: you should take a look at Jachoo's fork which provides portals (with acceleration support like Portal). Should be inspiring.
Why?
My game: RTMG
GENTOO USER

User avatar
dannydark
Member
Posts: 428
Joined: Fri Aug 12, 2011 21:28
Location: Manchester, UK

by dannydark » Post

Nice ^_^ works great, would be nice to see support for linking portals (i.e. so p1 can only got to p2 because its linked) and also automated tp so when a player stands on the portal it will tp them without having to use commands?

I like the idea of commands as you dont have to be at a portal base to goto another one but If lots of portals are added trying to keep track of which one is which (i.e. names for the command) might get a bit much.

sebseb01
New member
Posts: 1
Joined: Tue Feb 28, 2012 13:48

by sebseb01 » Post

I have patch your code for not have need to stand on the middle stone.
It's probably not better way, but it's my first lines in LUA.

I have modified (check_activated_portal_integrity), and add a function (split)

Code: Select all

function split(str,sep)
        local ret={}
        local i=1
        repeat
                --skip the separator repeated at the begining of search
                while str:find(sep,i,true)==i do i=i+sep:len() end
                --end it if we reached the end of the string
                if i>=str:len() then break end

                startPos=i
                endPos=str:find(sep,i,true)
                if endPos then
                        element=str:sub(startPos,endPos-1)
                        i=endPos
                else
                        element=str:sub(startPos)
                end
                table.insert(ret,element)
        until endPos==nil
        return ret
end

check_activated_portal_integrity = function(pos)
        block = split(minetest.env:get_node({x = pos.x,y = pos.y-0.2,z = pos.z}).name, "_")
        if block[1]~="portal:baph" then return false; end
        -- poc = pos corrected
        poc = {z = pos.z+(((math.floor((math.floor(block[2])-1)/3))-1)*-1),y=pos.y,x = pos.x+((math.mod((math.floor(block[2])-1),3)-1)*-1)}  
        local co = 1
        for i=-1,1 do  
                for j=-1,1 do   
                        p = {x = poc.x+j,y = poc.y-0.2,z = poc.z+i}
                        if minetest.env:get_node(p).name~="portal:baph_" .. co .. "_act" then return false; end
                        co = co +1
                end
        end
        return true
end
Thanks

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

i cant use this mod it crashes my client

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

Nemo08
Member
Posts: 132
Joined: Mon Dec 26, 2011 04:59

by Nemo08 » Post

portals dont updated

User avatar
sdzen
Member
Posts: 1170
Joined: Fri Aug 05, 2011 22:33
Location: Paradise (your not allowed)

by sdzen » Post

even in the rmmtp pack its says its updated but kills me each time

Zen S.D.

The next generation of tranquility!
malheureusement mon français n'est pas bon :<
Owner of the Zelo's
In game name: MuadTralk, spdtainted, sdzen, sd zen, sdzeno

User avatar
jordan4ibanez
Member
Posts: 1923
Joined: Tue Sep 27, 2011 18:44
GitHub: jordan4ibanez
IRC: jordan4ibanez
In-game: jordan4ibanez

by jordan4ibanez » Post

Update this please
hello, am program. do language in rust. make computer do. okay i go now.

User avatar
Death Dealer
Member
Posts: 1379
Joined: Wed Feb 15, 2012 18:46
Location: Limbo
Contact:

by Death Dealer » Post

cisoun wrote:'sup!

Just FYI: you should take a look at Jachoo's fork which provides portals (with acceleration support like Portal). Should be inspiring.
its great right??:D love jachoo's server:D
Keep calm and code python^_^

Post Reply

Who is online

Users browsing this forum: No registered users and 11 guests