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):
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
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.
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
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
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.
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:
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.
If you're looking for a portal editor, then try this:
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.
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.