kuligs2 There's an error in the files. As like it says when using the already made but not functioning portals an error happens such as ~'server found'. Or like there is this clear evidence of at least an attempt at working portals that extend the default server map 'World' where players initially spawn in with character creation.
Okay so there is a mystery with JDungeon in how it is supposed to work but there is no documentation. Yet but it looks by the files at one point there was 'teleportation' but it's not easy to replicate. I'll get some screenshots to better communicate it. So there are scenes / maps like a base camp, a forest, a dungeon etc. but they have in the script like 'extend world' (the default server scene / map'). Here is the less buggy / more stable / non-webport version. It has this starter map when the players spawn in. There are usually 2 portals on this map but the bottom two in this image I added in. As with to help test to see how the game reacts to trying to use its portals to teleport to other scenes with portals. Scenes / maps in the files with portals that look like they inter-connected at one point.
This is another map / scene with a portal but it looks to be trying to connect to another scene called 'Wakening Forest' with a portal called 'BaseCampPortal'.
That should be this portal on this map. But when testing in game it does not work.
When the server starts with the game it has this file called .env and this controls where the player spawns in (with at least character creation) in:
"# Comment out the next one to show the world selection menu when running as server
SERVER_MAP=World"
and
"STARTER_SERVER=World"
Each map / scene has a script. this is the World scene script.
Here is that portal destionation 'WakeningForest' scene / map's script. It extends 'World' (the feault / starting multiplayer map scene'). Is this similar to like trying to swap scenes or the like?
What should I investigate / look at to see what to do first? I asked the devs but they might be busy or not reply / they have been inactive on the 2D JDungeon for months. So I figured to ask around to see if there is a proper solution to this portal mystery.
Here is the portal script as well.
The root and server scripts are pretty large.
Its sorta puzzling / maybe I over read it / missed details from the project's wiki: https://github.com/jonathaneeckhout/jdungeon/wiki/Howto-make-new-map-chunks
It looks like the wiki is missing details / there are not released dev versions that had working portals but were ### commented / marked out / inactivated. I've combed through the github history and it looks a bit strange. There are 2 versions a more working with classes and other features non-webport version which feels like a late beta / early release test version. Then also a buggy less complete webport version that feels like an early alpha.
Here are the files for the JDungeon V.0.0.3 (non-webport version used in this portal test): https://github.com/jonathaneeckhout/jdungeon/tree/d5f9ea4a5cace996383bd963dd765a29944a693f
Currently I'm just trying to get the non-webport version to work with portals and polish it up to make a community learning demonstration so it has something for people to learn from for Godot 4+ multiplayer. It feels like 4/5 to 9/10 the way to a working learning demo ready for polish but the non-working teleportation portals are holding it up.
I asked questions / did little tests as JDungeon 2D was getting worked on last year / early this year but it has slowed down. I came back to see about making a happy little like any one can learn Godot 4+ multiplayer via a working example for the community. I've done similar things but it needs to work like map to map travel.
They did this 3D version of JDungeon recently but its very different.
Also the devs slowed way down too in areas so it might be a life change gear thing. I worked with flare engine too and it happens but its really close with JDungeon 2D to be a proper working demo. Its just the portals have a mystery. I'd rather try to save the code / do a proper fix / solution than gut and smash around and make a crude solution but I'm not sure where to look for a proper solution.
So any ideas on what this means from the errors?
Here are the errors:
"I've looked around and I'm not sure how to properly portal / teleport to new / other scenes / maps / servers in both the webport and the non-webport / activated classes version. By the looks of the older versions / map files there are teleport portals to link the maps together. A lot of the portal tests come back with:
World map / scene with a portal called WakingForestDungeonPortal set up as Destination Server: World, Destination Portal: ForestCampPortal [located in the ForestDungeon map / scene]:
Errors:
"W 0:02:00:0705 logger.gd:107 @ logger(): WARN [15/6/2024 15:19:13] GameServer: Gateway server's connection failed
<C++ Source> core/variant/variant_utility.cpp:1111 @ push_warning()
logger.gd:107 @ logger()
logger.gd:130 @ warn()
servergateway.gd:192 @ _on_client_connection_failed()"
"W 0:02:00:0706 logger.gd:107 @ logger(): WARN [15/6/2024 15:19:13] GameServer: Could not connect to gateway=[localhost] on port=[4433]
<C++ Source> core/variant/variant_utility.cpp:1111 @ push_warning()
logger.gd:107 @ logger()
logger.gd:130 @ warn()
serverfsm.gd:157 @ _connect_to_gateway()
servergateway.gd:193 @ _on_client_connection_failed()"
"E 0:02:30:0624 Portal.gd:26 @ _on_body_entered(): Trying to call an RPC via a multiplayer peer which is not connected.
<C++ Error> Condition "peer->get_connection_status() != MultiplayerPeer::CONNECTION_CONNECTED" is true. Returning: ERR_CONNECTION_ERROR
<C++ Source> modules/multiplayer/scene_rpc_interface.cpp:467 @ rpcp()
Portal.gd:26 @ _on_body_entered()"
Sorry for wall of text but it keeps it all in one place.
I know in wow dev the server loads all the maps in advance so like players can teleport to other maps
The other map scripts have 'extend world' going on so are they acting like add on to the main scene / map? There above in a screenshot is the other map script (the other area scripts are all the same).
I should get a link of the version I use to test the non-webport version: https://github.com/jonathaneeckhout/jdungeon/commits/main/ It looks like the version 0.0.3 is the latest non-webport version (webport begins in feb 2024 and the release of non-webport is from jan 2024) https://github.com/jonathaneeckhout/jdungeon/tags + https://github.com/jonathaneeckhout/jdungeon/releases/tag/v0.0.3 (this should be the non-webport version from jan 2024). J key I think has class select and I think k key shows the server ping and other data playing.
The game fires up really easy you like download the 0.0.3 release then I think in Godot 4+ you get debug 4 instances / windows, run the gateway in one window, then the server in another and the other 2 windows can be for clients, make a new character, add name and password and login in and play the little demo.
How to start the game / install JDungeon2D.
Hey are there any links / demo multiplayer projects for Godot 4+ multiplayer with a server and something like loading in / inter-travelling to other maps / locations to learn from? Perhaps if there is a working server thing project with Godot 4+ one can reverse engineer the map to map loading and unloading properly. Then one can perhaps try to fix JDungeon / make something new that works in multiplayer? Where some I look / watch / learn from? Any demo / tutorial / github project suggestions?