Forum Archive

Go Back   3D Realms Forums > 3D Realms Topics > Duke Nukem > Duke Nukem 3D Modifications
Blogs FAQ Community Calendar

Notices

 
 
Thread Tools
Old 07-18-2008, 05:08 PM   #1
DeeperThought

DeeperThought's Avatar
Play with mirrored maps
The Map Mirroring Mod for EDuke32

Plagman wrote some code that will invert maps, making it possible to play Duke 3D with mirrored maps. I added some code to make it playable and fix bugs.

I think this is pretty cool. To make it work, all you have to do is unzip the attached CON and put it in your EDuke32 folder, then just start a game normally using the latest version of EDuke32. Note: I have changed things around as of this edit. The CON is now called "EDUKE.CON", and it works with an unmodified GAME.CON. If you added the "include INVERT.CON" line to your GAME.CON for a previous version, then you must remove that line!

EDIT: Updated to version 1.1 This seems to fix all the rotating sector issues, and adds a few sprites to the flip list (big thanks to Gambini for helping fix those bugs)

EDIT2: Updated to version 1.2 This fixes a problem where in rare cases sector effectors would end up in the wrong sector. Thanks to Hunter_Rus for helping with this bug.


Spoiler:


MapMirrorMod.zip
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
Last edited by DeeperThought; 07-20-2008 at 03:10 PM. Reason: lots
DeeperThought is offline  
Old 07-18-2008, 05:12 PM   #2
The Stinger
Guest
Re: Play with mirrored maps
Looks like fun, trying it out now.

Edit: This is great. I played Duke 3d so much that I'm confused with these mirrored maps, I expect to go left when it mirrored to the right.
Last edited by The Stinger; 07-18-2008 at 05:21 PM.
 
Old 07-18-2008, 05:45 PM   #3
Plagman

Plagman's Avatar
Re: Play with mirrored maps
As you didn't say anything about swingdoors, I assume those work correctly now. What was the problem?
Also, if you're able to move the player to a multiplayer starting position at map start without him dying in the meantime, what prevents you from just inverting his x position instead? Is the position just not set at this time or does it just not work?
__________________
EDuke32 - "The corrupt doctrine of terror has begun."
Plagman is offline  
Old 07-18-2008, 06:09 PM   #4
gambini

gambini's Avatar
Re: Play with mirrored maps
how it does work with other modifications?

no, seriusly: do you think that is possible to add some code to emulate a player start for those maps that hasnt multiplayer starts?

Amazing idea, allways is like playing a new level when you have it mirrowed, at least you´ll be surprised several times!
gambini is offline  
Old 07-18-2008, 06:44 PM   #5
Shadow Master

Shadow Master's Avatar
Re: Play with mirrored maps
Wow, I was playing one of the Roch maps with this. I feel... dizzy.
__________________
You're master of no shadows! -- Steve
Duke Nukem Forever!

[My website | Public Commander Keen Forum | The Commander Keen Wiki]
Shadow Master is offline  
Old 07-18-2008, 07:25 PM   #6
DeeperThought

DeeperThought's Avatar
Re: Play with mirrored maps
Quote:
Originally Posted by Plagman View Post
As you didn't say anything about swingdoors, I assume those work correctly now. What was the problem?
The angles on the swingdoor SEs weren't quite right after the inversion. I can't explain it right now, but adjusting the angles for that one type of SE seemed to fix it, at least in E1L1.

Quote:
Originally Posted by Plagman View Post
Also, if you're able to move the player to a multiplayer starting position at map start without him dying in the meantime, what prevents you from just inverting his x position instead? Is the position just not set at this time or does it just not work?
It just doesn't work...so far. The game crashes and I don't know why. Maybe I'm doing something wrong but I'm too tired to see it now.

EDIT: It was because I was using changespritestat on the player instead of changespritesect. I could upload the improved version but I'm so tired that I don't trust my code. I'll wait until I get some rest.

EDIT2: The attachment in the first post has been updated. AFAIK everything works as it should now.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
Last edited by DeeperThought; 07-18-2008 at 09:42 PM.
DeeperThought is offline  
Old 07-19-2008, 12:29 AM   #7
gambini

gambini's Avatar
Re: Play with mirrored maps
i guess that the only that you have to do to make the swing doors working proper is turning the SE 11 angle 180 degrees.
gambini is offline  
Old 07-19-2008, 12:53 AM   #8
d3ad connection

d3ad connection's Avatar
Re: Play with mirrored maps
Just tried it, and... wow... it's very confusing, cause I've memorized alot of the original levels and so I keep running into walls and such
d3ad connection is offline  
Old 07-19-2008, 01:00 AM   #9
XTHX2

XTHX2's Avatar
Re: Play with mirrored maps
Hmm, I noticed that players facing isn't always correct. For example the Stadium map, The Cycloid Emperor is behind me while I should be looking at it, if the facing is reversed. Because at the original, Duke looks to it when nuke is fully raised.

Other than that, noticed a few misalignments at some walls at E3. I don't know if it's from the inversing but just wanted to say it anyway.
XTHX2 is offline  
Old 07-19-2008, 01:34 AM   #10
DeeperThought

DeeperThought's Avatar
Re: Play with mirrored maps
The player spawning with the wrong (i.e. original) angle has been fixed, and I'm also implementing a sprite flip list so that only certain sprites are x-flipped. As for "misalignments", you are free to post screenshots, although I doubt it will be fixed. It could happen if a wall texture is flipped and then the adjacent texture is not (I put some textures on a no flip list, since some have writing on them or are otherwise not suitable for flipping). From an aesthetic standpoint, the best solution is just to x-flip everything and not worry about textures with backwards writing. That would certainly make the coding simpler.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 07-19-2008, 01:37 AM   #11
XTHX2

XTHX2's Avatar
Re: Play with mirrored maps
It was E3L1, where you start, next to the shadowed area. There's a double wall usage to create a shadow effect right next to player, right next to it, the misalignment.
XTHX2 is offline  
Old 07-19-2008, 02:36 AM   #12
DeeperThought

DeeperThought's Avatar
Re: Play with mirrored maps
Quote:
Originally Posted by XTHX2 View Post
It was E3L1, where you start, next to the shadowed area. There's a double wall usage to create a shadow effect right next to player, right next to it, the misalignment.
hahahaha I thought you might have been talking about that when you said there were misalignments, but I gave you the benefit of the doubt. Start the map without mirroring and you'll see why I'm laughing.

I edited my first post to release version 1.0 of MMM (map mirroring mod). It was beta until now, folks. You must REMOVE that line I had you add to your GAME.CON, and you should delete INVERT.CON. The player starting angle is now fixed, sprites should now all be flipped correctly....maybe.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 07-19-2008, 02:54 AM   #13
XTHX2

XTHX2's Avatar
Re: Play with mirrored maps
Let me guess. That misalignment is at maps own right?

Yeah, I noticed your post, it looks much cleaner now, and better.
XTHX2 is offline  
Old 07-19-2008, 03:00 AM   #14
Spiker

Spiker's Avatar
Re: Play with mirrored maps
Cool stuff. Totally new experience. If you add some other modificators people will never recognize any map, lol.
Spiker is offline  
Old 07-19-2008, 03:06 AM   #15
The Commander

The Commander's Avatar
Re: Play with mirrored maps
Yes very good,
Now that you have Duke Plus done and now this mod what will it take to convince you to make a new release of Duke Nukem Arena?
__________________
I Know Everything There Is To Know About Anything.

Duke Nukem Red Alert SVN

Ask Me Anything!
The Commander is offline  
Old 07-19-2008, 03:26 AM   #16
necroslut

necroslut's Avatar
Re: Play with mirrored maps
It's reeeally confusing playing with mirrored maps because I know all the original maps so well I don't really look where I'm going anymore... But it makes it feel like completely new levels at some points. Anyway, I found a bug in Occupied Territory (E2L5): the doors in the beginning of the level are all messed up and you can't pass them.
__________________
Never fear! You thought I wanted to abuse your body... On the contrary, death is the fate I have in store for you!
necroslut is offline  
Old 07-19-2008, 03:29 AM   #17
d3ad connection

d3ad connection's Avatar
Re: Play with mirrored maps
In E2L3 Warp Factor, the Armory doors (offering goodies) are messed up. They slide into each other, and no way to get them. Alot of doors and things have this same type of door in episode 2 (probably the one necroslut found is like it)
d3ad connection is offline  
Old 07-19-2008, 05:01 AM   #18
Roma Loom

Roma Loom's Avatar
Re: Play with mirrored maps
I just wanted to add my 5chars to this thread and say this hack is a complete braindamage™.
__________________
GRPViewer, DN3D/SW Models
Roma Loom is offline  
Old 07-19-2008, 06:16 AM   #19
Daedolon
Re: Play with mirrored maps
This sounds like an awesome idea, is the current version playable without getting stuck on level loads and such? I'd love to play the game through with this.
Daedolon is offline  
Old 07-19-2008, 07:46 AM   #20
XTHX2

XTHX2's Avatar
Re: Play with mirrored maps
It is playable now but as he said, it's not suitable for TC's and etc.
XTHX2 is offline  
Old 07-19-2008, 10:18 AM   #21
DeeperThought

DeeperThought's Avatar
Re: Play with mirrored maps
Quote:
Originally Posted by d3ad connection View Post
In E2L3 Warp Factor, the Armory doors (offering goodies) are messed up. They slide into each other, and no way to get them. Alot of doors and things have this same type of door in episode 2 (probably the one necroslut found is like it)
I'll look into this. I hope it's something simple to fix.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 07-19-2008, 12:19 PM   #22
DeeperThought

DeeperThought's Avatar
Re: Play with mirrored maps
The rotating sector door bug is fixed now (download again).

I don't know if this is documented anywhere, but the direction that a sector rotates is determined by the pal of the lotag 0 SE in the rotating sector (pal 0 for one direction, pal 2 for the other). The pals needed to be reversed when the SEs were moved. Thanks to Gambini for figuring this out.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 07-19-2008, 06:45 PM   #23
Devan

Devan's Avatar
Re: Play with mirrored maps
Whoa! I'm tripping! Yes, it gives some "trip" feeling when I know where to walk but I need more time to realize that I remember I have tried some program that flips the maps. But it generated mirrored map files from original. With this mod I don't need any converting, so it's faster. It's more useful for people addicted to LSD
__________________
Sorry for my bad english - I'm from Lithuania
If you like voxel models but you don't know where to get them, click HERE NOW! Thread link: http://forums.3drealms.com/vb/showthread.php?t=24456
Devan is offline  
Old 07-20-2008, 03:51 AM   #24
XTHX2

XTHX2's Avatar
Re: Play with mirrored maps
Well dukematching with this would probably be awesome. I can't imagine E1L1's mirrored style is played with matchers. Probably there would be a total confusion.
XTHX2 is offline  
Old 07-20-2008, 03:11 PM   #25
DeeperThought

DeeperThought's Avatar
Re: Play with mirrored maps
Updated to version 1.2 This fixes a problem where in rare cases sector effectors would end up in the wrong sector. Thanks to Hunter_Rus for helping with this bug.

See original post for download.
__________________
DUKE PLUS
New map effects and various optional extras for Duke 3D.

DUKE NUKEM: ATTRITION
XP based weapon upgrades, progressive difficulty, and more.
DeeperThought is offline  
Old 08-19-2008, 11:33 AM   #26
CraigFatman

CraigFatman's Avatar
Re: Play with mirrored maps
LEBuild editor has built-in commands to mirror sectors about X, Y or Z axis. Using some scripting to make duplicate tags unique, I'd created this quadruple version of E1L1 with interconnected locations. =)

E1L1QUAD.rar
__________________
LEBuild 1.0.3
Revolution of Duke mapping is coming on...
CraigFatman is offline  
 

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:27 PM.

Page generated in 0.34198499 seconds (100.00% PHP - 0% MySQL) with 17 queries

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.

Website is ©1987-2014 Apogee Software, Ltd.
Ideas and messages posted here become property of Apogee Software Ltd.