Maps & Portals (Redux V2)

11/15/2018 02:24 LepEatWorld#1
I was toying around with the maps/portals/passages in the Redux source. Could someone give me an example on how to get it to work? The portal just teleports me to TwinCity and doesnt seem to teleport me to the map it's suppose to. I'm currently working on the portals inside the Ancient Devil quest. I see where the portals take you out, but I dont see how to get the portal that teleports you there.

Example of Promotion Center

This is the portals.sql table(the spawn point exiting the portal):
Code:
UID: 0012
MapID: 1004
PortalID: 0000
PortalX: 0051
PortalY: 0070
This is the passage.sql table(the map with the portal and the exit map):
Code:
UID: 0003
EnterMap: 1002
EnterID: 0000
ExitMap: 1004
ExitID: 0000
11/15/2018 03:55 swildwest#2
In your Passage.sql - could it be that both your enterID and exitID are both 0000?

Never toyed with it, but maybe that is the issue.
11/15/2018 04:11 Spirited#3
When you look at a map from a dmap file in the client, the dmap file lists portals by an index, X coordinate, and Y coordinate. The index is not an identifier alone, but it looks like Redux uses the Map ID and portal index as a unique identifier when the "DataAction.UsePortal" case is handled. It looks up this identifier in a collection and returns the new map, X coordinate, and Y coordinate for the portal destination. The portal's X and Y source seems to only be used for distance checks. Additionally, that logic is very poorly written. It can be improved quite a bit.

Quote:
Originally Posted by tehpwnerer69 View Post
Exactly one of the reasons why "Go to Definition" is included in Visual Studio...
Please don't answer questions like this.
If someone put in the effort to ask, then please put in the effort to answer, if you choose to.
11/15/2018 04:16 LepEatWorld#4
Quote:
Originally Posted by tehpwnerer69 View Post
Exactly one of the reasons why "Go to Definition" is included in Visual Studio...
If you would of looked at my previous posts or the reason why I'm asking, you wouldn't have to look like such a prick. Clearly I'm a beginner and I'm learning. If you think I haven't checked, here it is.

Code:
using Redux.Enum;

namespace Redux.Database.Domain
{
    public class DbPassage
    {
        public virtual uint UID { get; set; }
        public virtual ushort EnterMap { get; set; }
        public virtual uint EnterID { get; set; }
        public virtual ushort ExitMap { get; set; }
        public virtual uint ExitID { get; set; }
    }
}
Code:
using Redux.Enum;

namespace Redux.Database.Domain
{
    public class DbPortal
    {
        public virtual uint UID { get; set; }
        public virtual ushort MapID { get; set; }
        public virtual uint PortalID { get; set; }
        public virtual ushort PortalX { get; set; }
        public virtual ushort PortalY { get; set; }
    }
}
When I hop on the Portal and Passage references this is all I get "GetPortalByMapAndID" and "GetPortalByPassage" which doesn't really help me understand.


Quote:
Originally Posted by swildwest View Post
In your Passage.sql - could it be that both your enterID and exitID are both 0000?

Never toyed with it, but maybe that is the issue.
No sorry, the 0000 is actually the ID of it xD that was an example, which works completely fine.

Quote:
Originally Posted by Spirited View Post
When you look at a map from a dmap file in the client, the dmap file lists portals by an index, X coordinate, and Y coordinate. The index is not an identifier alone, but it looks like Redux uses the Map ID and portal index as a unique identifier when the "DataAction.UsePortal" case is handled. It looks up this identifier in a collection and returns the new map, X coordinate, and Y coordinate for the portal destination. The portal's X and Y source seems to only be used for distance checks. Additionally, that logic is very poorly written. It can be improved quite a bit.



Please don't answer questions like this.
If someone put in the effort to ask, then please put in the effort to answer, if you choose to.


I currently know that the map I'm looking for is "idland-map.DMap" but I'm not sure how to open it. I tried Ultimation's DMap viewer post, but it seems that has been removed. I also tried 2 other threads, 2 which were DMap -> TinyMap converters, which I don't seem to know how to get it to work exactly, nor if it will get me what I want.
11/15/2018 08:44 Spirited#5
Quote:
Originally Posted by LepEatWorld View Post
I currently know that the map I'm looking for is "idland-map.DMap" but I'm not sure how to open it. I tried Ultimation's DMap viewer post, but it seems that has been removed. I also tried 2 other threads, 2 which were DMap -> TinyMap converters, which I don't seem to know how to get it to work exactly, nor if it will get me what I want.
If you're looking for a portal editor, then try this:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

The code is pretty sloppy and I didn't test it, so let me know if it works or not. It should allow you to edit the source locations of portals, if that's what you want to do. Otherwise, everything you need is on the server for determining where a portal dumps you out.
11/15/2018 23:10 LepEatWorld#6
Quote:
Originally Posted by Spirited View Post
If you're looking for a portal editor, then try this:
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]
[Only registered and activated users can see links. Click Here To Register...]

The code is pretty sloppy and I didn't test it, so let me know if it works or not. It should allow you to edit the source locations of portals, if that's what you want to do. Otherwise, everything you need is on the server for determining where a portal dumps you out.
From what I can tell, it doesn't seem to work. I tried to load it, it popped up a cmd prompt and it closes off immediately. I also tried to do it through drag and dropping the document on it, but that also seems to be pointless. The program also pops up as a threat btw. Not sure if I'm doing anything wrong, but from the options that are given, I believe the cmd prompt should stay open.
11/16/2018 03:10 Spirited#7
Quote:
Originally Posted by LepEatWorld View Post
From what I can tell, it doesn't seem to work. I tried to load it, it popped up a cmd prompt and it closes off immediately. I also tried to do it through drag and dropping the document on it, but that also seems to be pointless. The program also pops up as a threat btw. Not sure if I'm doing anything wrong, but from the options that are given, I believe the cmd prompt should stay open.
You're supposed to run it from a command prompt. It's a command-line tool, not a shell, so that's the expected behavior.
11/16/2018 03:46 LepEatWorld#8
Quote:
Originally Posted by Spirited View Post
You're supposed to run it from a command prompt. It's a command-line tool, not a shell, so that's the expected behavior.
Thanks, I got the following from the .dmap file
Code:
0,182,281
1,99,171
2,170,99
3,272,176
4,308,283
Seems to be working completely fine. I already mapped the portals within the map and I would like to thank you for all the help you give. :handsdown: