the Phrozen Forums
  General Mod Making
  OffsetX and OffsetY in Levels.txt

Post New Topic  Post A Reply
profile | register | preferences | faq | search

UBBFriend: Email This Page to Someone! next newest topic | next oldest topic
Author Topic:   OffsetX and OffsetY in Levels.txt
Alkalund
Honorary Warlord

Posts: 964
From: Florianópolis, Santa Catarina, Brazil
Registered: Apr 2001

posted 16 January 2002 11:36     Click Here to See the Profile for Alkalund   Click Here to Email Alkalund        Reply w/Quote   
What do these 2 columns in levels.txt do??? I see some scenarios have negative numbers on them, and others have really large numbers. I put 1000 on both offsetX and offsetY of the Blood Moor area (wich originally has -1,-1 in them), but apparently there is no difference noticeable.

Thanks for any info on this subject,

IP Logged

NefariusDX
Honorary Warlord

Posts: 1392
From: The Hadal Abyss of Eternal Oblivion
Registered: Jun 2001

posted 17 January 2002 02:17     Click Here to See the Profile for NefariusDX   Click Here to Email NefariusDX        Reply w/Quote   Visit NefariusDX's Homepage!
this is not the level size but the location in the d2 world

------------------
Nefarius' Secondary Mod Site
Nefarius' Primary Mod Site

------------------
XyRAX v21.00 Comming Soon!
------------------
NëƒarIu§ ÖƒƒiçláL [V]oÞÞ¦hg §¡Nce D2C V1.02!!!

quote:
Gaze into the Oblivion within yourself and you shall become your greatest fears.
The escence of leeching is to request before you try

IP Logged

Alkalund
Honorary Warlord

Posts: 964
From: Florianópolis, Santa Catarina, Brazil
Registered: Apr 2001

posted 17 January 2002 07:39     Click Here to See the Profile for Alkalund   Click Here to Email Alkalund        Reply w/Quote   
The location in the D2 world? What exactly does that mean? For example, the rogue encampment and the Barracks in act 1 have both offsetX=-1,offsetY=-1. So you say they are at the same place in the D2 world??
Sorry, I'm all confused here...

------------------
Alkalund

IP Logged

NefariusDX
Honorary Warlord

Posts: 1392
From: The Hadal Abyss of Eternal Oblivion
Registered: Jun 2001

posted 17 January 2002 12:28     Click Here to See the Profile for NefariusDX   Click Here to Email NefariusDX        Reply w/Quote   Visit NefariusDX's Homepage!
simple, offsets are similar to offsets of graphics in here, they are used so maps dont overlap (eg: in alpha and beta of cd2 there was such a bug that mades maps overlap) the fact 2 things have the same offset dosent mean they are on the same slot it just places them x#/y# next to other places, wile also note that MOST overground areas are set to -1/-1 this means they are centered on the top left center of the map. (NOT the automap)

best way to explain it:

if a map is 800x800px and its a square so top left in x/y cord would be 0/0 (or a close value) wile center would be -400/400

------------------
Nefarius' Secondary Mod Site
Nefarius' Primary Mod Site

------------------
XyRAX v21.00 Comming Soon!
------------------
NëƒarIu§ ÖƒƒiçláL [V]oÞÞ¦hg §¡Nce D2C V1.02!!!

quote:
Gaze into the Oblivion within yourself and you shall become your greatest fears.
The escence of leeching is to request before you try

[This message has been edited by NefariusDX (edited 17 January 2002).]

IP Logged

Brother Laz
Honorary Warlord

Posts: 1134
From: the place where angels watch...
Registered: Dec 2001

posted 17 January 2002 15:40     Click Here to See the Profile for Brother Laz   Click Here to Email Brother Laz        Reply w/Quote   
800x800??? You sure? Isn't it 1024x1024 or a similar power of two?

------------------
To practice the Arts of Modding is to be Damned.
To master Them is to be Victorious.
-D1 manual

IP Logged

Alkalund
Honorary Warlord

Posts: 964
From: Florianópolis, Santa Catarina, Brazil
Registered: Apr 2001

posted 17 January 2002 15:48     Click Here to See the Profile for Alkalund   Click Here to Email Alkalund        Reply w/Quote   
Ok I see it now. Just one more thing: when you say a map with 800x800px, you mean an area with SizeX=SizeY=80, like the wilderness areas in act 1?

------------------
Alkalund

IP Logged

NefariusDX
Honorary Warlord

Posts: 1392
From: The Hadal Abyss of Eternal Oblivion
Registered: Jun 2001

posted 17 January 2002 15:59     Click Here to See the Profile for NefariusDX   Click Here to Email NefariusDX        Reply w/Quote   Visit NefariusDX's Homepage!
the value in size dosent control size, the wilderness areas are built out of many .ds1 files that plug into each other and are always at the same size which is not controled by levels.txt, to change dungeons simply open lvlmaze.txt and change room count

------------------
Nefarius' Secondary Mod Site
Nefarius' Primary Mod Site

------------------
XyRAX v21.00 Comming Soon!
------------------
NëƒarIu§ ÖƒƒiçláL [V]oÞÞ¦hg §¡Nce D2C V1.02!!!

quote:
Gaze into the Oblivion within yourself and you shall become your greatest fears.
The escence of leeching is to request before you try

IP Logged

Alkalund
Honorary Warlord

Posts: 964
From: Florianópolis, Santa Catarina, Brazil
Registered: Apr 2001

posted 17 January 2002 16:04     Click Here to See the Profile for Alkalund   Click Here to Email Alkalund        Reply w/Quote   
Ok thanks. I think I'm finally getting all this stuff...

------------------
Alkalund

IP Logged

All times are Central Standard Time

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply
Hop to:

Contact Us | The PhrozenKeep

© PhrozenKeep.com . all buttons made by the Evilenglishman . swords and shields by DigiBO.


Ultimate Bulletin Board 5.47c