[Script]Portals

A big new update is now available, introducing biomes, caves and much more!
Latest hotfix: 0.7.0.3 (2024-02-21)
  • Ok guys we have had portals on our server for some time so its been tested and i have now Cleaned it up for you guys to use



    Portal help
    Use /portalhelp
    Use /selectportal to select the area that will function as a portal
    Use /createportal [destinationPortalID or -1] [portalName] to create the portal, if the portal is a destination portal then use \"-1\" as ID
    Use /listportals to see a list of portals to get the right id for the detination portal
    Use /showportals to visualize the portals
    Use /hideportals to hide the visualized portals
    Use /removeportal [id] to remove the portal
    Frist you need to make your destination portal this is done with using the -1 as the id


    example 1 make a destination
    /selectportal then make a box area no smaller than 2x3x3 then enter ( /createportal -1 Homebase exit ) Homebase exit, can be changed to any name you wish.


    example 2 make a portal to a destination
    /selectportal then make a box area no smaller than 2x3x3 then enter ( /createportal 1 Homebase enter ) 1 = Homebase exit id because this was the first portal made to see all ids of portals type /listportals





    https://forum.rising-world.net…tachment/7961-Portals-7z/

    Files

    • Portals.7z

      (4.77 kB, downloaded 889 times, last: )

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Rising Cities @ ip 52.53.149.132:4255 ServerName (Rising Cities) Unity :thumbsup:

    If you want to run a server how about using my AutoServerInstallers go here to download >>>RWAutoServerInstaller for Unity And Java<<<

    If at first your code does not work call it version 0.1 with the odd bug :thinking:




    31245-logo-png

    Edited 2 times, last by yahgiggle ().

  • Eigentlich wollte ich warten bis er nen weiteren Befehl zum löschen der Portale eingebaut hat aber irgendwie kommt da nix.
    Nun versuche ich einfach mal in meiner einfachen Art dieses Plugin auf deutsch zu erklären.

    • /portalhelp Gibt euch eine Ingame Hilfe per Chat aus

    Als erstes müsst ihr /selectportal eingeben.

    • Nun müsst ihr wie bei AreaProtection ein rotes Feld erstellten was dann später das Portal ergeben wird. Macht es mindestens 2 tief, 3 breit und 3 hoch. Sonst könnte es zu Problemen kommen. Mit + - und den Pfeiltasten auch bei gedrückter [Shift] Taste könnte ihr das Auswahlfenster anpassen.

    Nun /createportal [Zahl] [PortalName] um die rote Fläche zu einem Portal zu machen

    • [Zahl] steht für ID des Portals wo es hingehen soll. Sollte dieses Portal als Ausgang dienen müsst ihr -1 schreiben
    • [PortalName] ist nur als Wiedererkennung für euch gedacht, könnt also schreiben was ihr wollt


    Unter /listportals werden euch all eure gesetzten Portale aufgelistet. Werdet ihr brauchen wenn ihr gerade zwischen verschiedenen Portalen hin und her springen wollt. Bei jeden Portal wo am Ende eine -1 in der Liste steht handelt es sich um ein Ausgangs Portal.


    Habt ihr die Liste vor Augen seht ihr auch die einzelnen IDs der Portale, diese brauchen wir um ein bestimmtes Portal wieder zu löschen.
    Mit /removeportal ID kann man es löschen. ID steht hierbei für die Portal ID.


    Der Befehl /showportals zeigt euch eure gesetzten Portale auf der Map an. Ähnlich wie bei AreaProtection wenn man /showareas macht.


    Per /hideportals bekommt ihr die Anzeige der gesetzten Portale wieder weg. Bei mir wurden aber weiterhin die Namen angezeigt, sollte aber bei einem erneuten Einloggen wieder weg sein.



    Beispiel:
    Hier versuche ich mal ein verständliches Beispiel aufzuschreiben.
    Stellt euch mal vor ihr habt eine kleine Stadt die sich um euren Spawn befindet.
    Und nun habt ihr noch einen schönen Sandstrand der aber über 2 km weit weg ist.
    Jetzt wollt ihr euren Spielern die Reise zum Strand vereinfachen und vor allem verkürzen.


    Nun ist es am einfachsten ihr fangt mit dem Portal an was als Ausgang dienen soll. In unserem Fall wäre es das Portal am Strand.
    Fliegt also rüber zum Strand, sucht euch eine schöne Stelle aus und gebt folgende Befehle ein:

    • /selectportal Wählt euer Portal aus, ich mache immer 2 Blöcke tief, 3 Blöcke breit und 4 Blöcke hoch.
    • /createportal -1 Strand Macht aus dem roten Auswahlfenster ein Portal. die -1 deklariert es als Ausgang
    • Im Chat sollte nun stehen das ihr erfolgreich ein Portal erstellt habt, plus eine ID. Gehen wir hier mal von aus das ihr noch keines habt müsste dies die ID 1 sein.
    • Fertig.

    Nun fliegt wieder rüber zum Spawn, baut euch da irgendwas hin damit man auch erkennt das es ein Durchgang (Portal) sein soll. Lasst aber ein Loch von 2 Blöcken tief, 3 Blöcken breite und 4 Blöcken höhe!

    • /selectportal Setzt nun in eurer gelassenen Lücke das rote Auswahlfenster.
    • /createportal 1 Spawn Die 1 steht nun für die Portal ID wo wir hin wollen, in unserem Fall zu dem Portal am Strand welches die ID 1 bekommen hat. Der Name Spawn dafür damit wir auch später noch wissen wo es steht.
    • Nun sollte auch hier im Chat stehen das das Portal erfolgreich erstellt wurde, nur diesmal mit der ID 2
    • Fertig.

    Geht ihr nun durch das Portal landet ihr direkt am Strand. *yeah*


    2. Beispiel
    Stellt euch nun mal vor wir wollen wieder zurück zum Spawn. Jetzt könnte man ja denken ich gehe einfach durch das Portal am Strand und bin wieder am Spawn. Nope! Klappt nicht. Ok, dann setzen wir einfach in das Portal noch mal ein Portal welches mich dann zurückbringt. NOPE! Geht auch nicht, dann landet ihr in einer Schleife und hängt fest. Ja, ist mir selbst passiert. :rolleyes:


    Fangen wir nun wieder mit dem Portal an was als Ausgang diesen soll, in diesem Fall also das Portal am Spawn.
    Fliegen wir also zurück zum Spawn und setzen am besten direkt am Spawn ein Portal.

    • /selectportal Einfach ein Auswahlfenster ziehen. 2 tief, 3 breit und 4 hoch
    • /createportal -1 SpawnAusgang Die -1 deklariert wieder den Ausgang, SpawnAusgang macht es mir einfach später auch noch zu wissen um was es sich handelt.
    • Nun sollte im Chat eine Erfolgsnachricht auftauchen mit der ID 3
    • Fertig.

    Gehen wir nun durch das Portal was uns direkt zum Strand bringt. *uiiiii*
    Bauen wir dort einen Durchgang was jeden Spieler sofort zeigt das es sich um einen Durchgang handelt.

    • /selectportal Sollte ja nun bekannt sein, Auswahlfenster erstellen.
    • /createportal 3 StrandEingang Die 3 sagt dem Portal das er uns zu dem Portal mit der ID 3 bringen soll. Der Name StrandEingang macht es uns leichter es wieder zuerkennen.
    • Nun steht wieder eine Nachricht über ein erfolgreich gesetztes Portal mit der ID 4 im Chat.
    • Fertig.

    Nun geht mal durch das Portal und ihr landet direkt am Spawn. *uiiiii, geht das schnell*


    3. Beispiel
    Stellen wir uns nun vor wir haben ein Portal total falsch gesetzt und wollen es nun wieder los werden.
    Im besten Fall wisst ihr die ID des Portals noch weil ihr sofort gemerkt habt das es falsch war, ansonsten können wir via /listportals eine Liste unserer gesetzten Portale anzeigen lassen, da stehen auch die IDs drin.


    Gehen wir nun mal davon aus wir wollen das letzte gesetzte Portal aus unseren Beispiel löschen, dies hatte die ID 4 bekommen.
    Geben wir nun in den Chat /removeportal 4 ein, wobei die 4 für die ID des Portals steht das wir löschen wollen.




    Ich hoffe meine Anleitung hilft euch etwas und hoffentlich ist sie verständlich.
    Eigentlich wollte ich ja ein Video Tutorial machen aber nicht wenn die Option zum löschen der Portale noch fehlt.


    PS:
    Über etwas Feedback wäre ich sehr dankbar.




    Gruß TutMeistensNix

  • This is very nice and i have big fun with this. :thumbsup:


    Please make a delete Option.\


    opps there is its /removeportal id id = the portal id

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Rising Cities @ ip 52.53.149.132:4255 ServerName (Rising Cities) Unity :thumbsup:

    If you want to run a server how about using my AutoServerInstallers go here to download >>>RWAutoServerInstaller for Unity And Java<<<

    If at first your code does not work call it version 0.1 with the odd bug :thinking:




    31245-logo-png
  • Thanks a lot, thats what I wanted long time ago. Thanks for sharing :D


    @TutMeistensNix DIr auch vielen Dank. :)


    yeah i know, and no problem :-)

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Rising Cities @ ip 52.53.149.132:4255 ServerName (Rising Cities) Unity :thumbsup:

    If you want to run a server how about using my AutoServerInstallers go here to download >>>RWAutoServerInstaller for Unity And Java<<<

    If at first your code does not work call it version 0.1 with the odd bug :thinking:




    31245-logo-png
  • hey guys i got a question.


    Is it possible to connect permissions or Areprotection with the teleport so group 1 cant walk through portals of group 2?


    Or maybe there is something like a deathbarrier connected to groups.


    Thanks for your help

  • Question!


    is the portal info always /createportal -1 portal1 exit /createportal 1 portal1 enter
    /createportal -1 portal2 exit /createportal 1 portal2 enter


    or should it be /createportal -1 portal1 exit /createportal 1portal1 enter
    /createportal -2 portal2 exit /createportal 2 portal2 enter


    Question 2!


    Is there a limit to how many portals you can have?
    if you create a portal and then remove it can you use the same location again for a new portal?


    Basically the very 1st test portal i made worked very well. but every portal I have tried since has not worked.


    Question 3!
    If you create /createportal -1 portal1 exit /createportal 1 portal1 enter/createportal -1 portal2 exit /createportal 1 portal2 enter and then change your mind and remove them, can you use the same details again in new locations?



    Any help is much appreciated.

  • OK! after trying to decipher the german example I have finally worked it out.


    The Destination id is ALWAYS -1 (whatever name you like) and the id of the entry is ALWAYS the assigned created id of the destination.


    Example: you are up to portal ID10 you create a new destination using -1 (portalname) the computer labels this ID11
    Sooo the entry portal will be /createportal 11 (this can be a different name if you like)

  • OK! after trying to decipher the german example I have finally worked it out.


    The Destination id is ALWAYS -1 (whatever name you like) and the id of the entry is ALWAYS the assigned created id of the destination.


    Example: you are up to portal ID10 you create a new destination using -1 (portalname) the computer labels this ID11
    Sooo the entry portal will be /createportal 11 (this can be a different name if you like)

    yes ^^^ thats right Destination has to always have -1 this means its a Destination or you could run into a loop of doom oO you can make 1000s of portals the limit would be more todo with how meany are been used at one given time not realy how meany you have

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Rising Cities @ ip 52.53.149.132:4255 ServerName (Rising Cities) Unity :thumbsup:

    If you want to run a server how about using my AutoServerInstallers go here to download >>>RWAutoServerInstaller for Unity And Java<<<

    If at first your code does not work call it version 0.1 with the odd bug :thinking:




    31245-logo-png
  • Had a go at using this in my single player world and wow loved it, but I cant get it to work in our server as far as i know iv installed it ok into the scripts folder but nothing seems to work or even register in the server? yes i have restarted the server just to make sure it was that but nothing, any info for things to try would be great, also just wondering if this will be made into a plugin with a GUI?

  • Are there any plans to "port" this over to a Java Plugin? Have I missed it in the plugins?

    i think someone else has oO maybe im



    yes im going to redo this for the new API oO

    Yahgiggle Steam Signature, real name Deon Hamilton :thumbsup: Rising Cities @ ip 52.53.149.132:4255 ServerName (Rising Cities) Unity :thumbsup:

    If you want to run a server how about using my AutoServerInstallers go here to download >>>RWAutoServerInstaller for Unity And Java<<<

    If at first your code does not work call it version 0.1 with the odd bug :thinking:




    31245-logo-png

Participate now!

Don’t have an account yet? Create a new account now and be part of our community!