DieHard Wolfers Forum Index DieHard Wolfers
A Wolfenstein 3d Fan Community


  Hosted by: MCS & Areyep.com - Designed by: BrotherTank

Original Yahoo Forum - Die Hard Archives

AReyeP HomepageAreyep Homepage DieHard Wolfenstein BunkerDieHard Wolfenstein Bunker Log inLog in RegisterRegister Banlist FAQFAQ Search ForumsSearch

  Username:    Password:      Remember me       

[help] Larger than 64x64 maps
Page 1 of 1
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page BottomView Next Topic
Post new topicReply to topic
Author Message
Mortimer
Don't Hurt Me
Don't Hurt Me


Joined: 25 Oct 2007
Last Visit: 05 Dec 2017

Topics: 14
Posts: 51

poland.gif

PostPosted: Thu Apr 15, 2010 1:42 pm
   Subject: [help] Larger than 64x64 maps
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Next PostGoto Bottom of Posts

I've been trying to get this to work, but it simple doesn't.

I have tried to change map size definitions in wl_def.cpp:

::: CODE :::

#define MAPSIZE         64              // maps are 64*64
#define mapshift        6               // 2^mapshift = MAPSIZE
#define maparea         4096            // MAPSIZE<<mapshift or MAPSIZE*MAPSIZE
#define mapspotend      8191            // 64<<mapshift-1 or 64*MAPSIZE-1
#define MAPPLANES       2

#define mapheight MAPSIZE
#define mapwidth MAPSIZE



I've took this part Chris' Wolf4gw patch (seems more understandable).

Also, I didn't quite understand what does this "mapshift" stands for (neither how 2^mapshift is supposed to be equal to MAPSIZE). The other ones I seem (I think. Maybe...) to understand.



So, anybody knows exactly how to do it?

note: I've read hundred times every post related to it in this forum (hope so at least) and couldn't get it to work. Probably cuz I'm not a programmer.

Thanks.
Chris
DieHard Wolfer
DieHard Wolfer


Joined: 11 Mar 2003
Last Visit: 18 Jul 2018

Topics: 55
Posts: 2135
Location: Canada
blank.gif

PostPosted: Thu Apr 15, 2010 9:49 pm
   Subject: Re: [help] Larger than 64x64 maps
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Next PostGoto Bottom of Posts

Hi Mortimer,

MAPSHIFT is used because shifting bits is faster than multiplying.
2^6 is the same as 1<<6, or 2 to the power 6, so it means 2*2*2*2*2*2 = 64.

So to get 128x128 maps, just change MAPSHIFT to 7 and recompile (as 2^7 = 128).
And to get 256x256 maps, just change MAPSHIFT to 8 and recompile (as 2^8 = 256).

It's that simple, you just have to change that one variable (MAPSHIFT). WolfSDL handles the rest. Smile

Also, WDC lets you create 128x128 maps. So try using MAPSHIFT 7, and make a 128x128 map to test it.

No editor I know of lets you create 256x256 maps yet, but you can code one yourself in SetupGameLevel() of wl_game.c if you want. To write to map tiles directly, use mapsegs[plane] or MAPSPOT(x,y,plane). I'll post more info on this if you're curious.

Hope that helps.
Mortimer
Don't Hurt Me
Don't Hurt Me


Joined: 25 Oct 2007
Last Visit: 05 Dec 2017

Topics: 14
Posts: 51

poland.gif

PostPosted: Fri Apr 16, 2010 10:05 am
   Subject: [help] Larger than 64x64 maps
   [ IP : Logged ]
Reply with quote
Goto Top of PostsGoto Previous PostGoto Bottom of Posts

Aww man, thanks very much. This worked perfectly Laughing

I would offer you a meal in McDonald's, but you're probably too used to it. So I just offer you a nice and huge Pizza.

About 256x256 maps, thanks for being willing to pass the knowledge, but I think 128x128 maps are good enough (for now at least Shocked). Also, I don't want to use too much your time.

Once again, thanks for helping me man. Ya nice.
Display posts from previous:   
Post new topicReply to topic Time synchronized with the forum server time
DieHard Wolfers Forum Index -> SDL Code Crackers View Previous TopicRefresh this PageAdd Topic to your Browser FavoritesSearch ForumsPrint this TopicE-mail TopicGoto Page TopView Next Topic
Page 1 of 1
Jump to:  

Related topics
 Topics   Replies   Views   Last Post 
No new posts [help] Adding teleporters in wolf4sdl
Author: Mortimer
35 9988 Fri May 26, 2017 8:19 am
Military View latest post
No new posts [WOLF4SDL Help] Blake Stone Style doors
Author: Haasboy
3 2836 Sun Jul 20, 2008 7:56 am
Haasboy View latest post
No new posts [Wolf4SDL Help] Inserting a second palette (like in SoD)
Author: Andy_Nonymous
10 3047 Mon Jun 02, 2008 3:59 pm
Adam Biser View latest post
No new posts [Help] Problem with Checkweaponchange function (wolf4sdl)
Author: Mortimer
4 3026 Sat May 17, 2008 11:26 am
Mortimer View latest post
No new posts [help] Wolf4sdl's implemented tutorials
Author: Mortimer
6 3073 Tue May 06, 2008 1:15 pm
Ripper View latest post
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
   You cannot delete your posts in this forum
You cannot vote in polls in this forum


Copyright ©2003-2008 DieHard Wolfers
A Modified subBunker Theme by BrotherTank
Powered by phpBB © 2001, 2005 phpBB Group