Announcement: Be excellent to each other.


Caravel Forum : Caravel Boards : Development : RoomX, RoomY
New Topic New Poll Post Reply
Poster Message
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2459
Registered: 11-14-2005
IP: Logged
icon RoomX, RoomY (0)  
If you export your hold's text, you get things like:

<Levels HoldID='10143' GID_LevelIndex='1' LevelID='10674'>
<Rooms LevelID='10674' RoomX='50' RoomY='1067450' RoomID='15199'>


Is there a way to translate that into actual room coordinates?

12-28-2007 at 09:21 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
mrimer
Level: Legendary Smitemaster
Avatar
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
icon Re: RoomX, RoomY (+1)  
Tahnan wrote:
If you export your hold's text, you get things like:

<Levels HoldID='10143' GID_LevelIndex='1' LevelID='10674'>
<Rooms LevelID='10674' RoomX='50' RoomY='1067450' RoomID='15199'>


Is there a way to translate that into actual room coordinates?
Yes. The last two digits of the X/Y values are centered on (50,50) at the main level entrance, and then go from there (values smaller than 50 go west/north, and larger values go east/south). Observe the larger portion of the Y value is identical to the LevelID. It's there for historical reasons.

____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.

[Last edited by mrimer at 12-28-2007 10:23 PM]
12-28-2007 at 10:22 PM
View Profile Send Private Message to User Send Email to User Show all user's posts High Scores This architect's holds Quote Reply
Stefan
Level: Smitemaster
Avatar
Rank Points: 2119
Registered: 05-25-2004
IP: Logged
icon Re: RoomX, RoomY (+1)  
Note, however, that the entrance isn't always centered on (50,50) - if the architect changes the location of the main entrance, the old entrance room coordinates are preserved.

____________________________
0.099³
12-29-2007 at 03:08 PM
View Profile Send Private Message to User Show all user's posts This architect's holds Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2459
Registered: 11-14-2005
IP: Logged
icon Re: RoomX, RoomY (0)  
Oh, blast.
12-29-2007 at 05:45 PM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
schep
Level: Smitemaster
Avatar
Rank Points: 865
Registered: 03-01-2005
IP: Logged
icon Re: RoomX, RoomY (+1)  
Yeah, the correct way to do what you want involves getting the list of hold entrances, taking the ones with the main-level-entrance flag set, and doing differences of RoomX and RoomY.
12-29-2007 at 08:42 PM
View Profile Send Private Message to User Send Email to User Show all user's posts This architect's holds Quote Reply
Tahnan
Level: Smitemaster
Avatar
Rank Points: 2459
Registered: 11-14-2005
IP: Logged
icon Re: RoomX, RoomY (0)  
But the hold entrance list is frustratingly unavailable in the "export text" file.
12-30-2007 at 04:23 AM
View Profile Send Private Message to User Show all user's posts High Scores This architect's holds Quote Reply
coppro
Level: Smitemaster
Rank Points: 1308
Registered: 11-24-2005
IP: Logged
icon Re: RoomX, RoomY (0)  
If you have access to the hold itself, try adding a scroll in the level to use as a reference point - if you put in in the entrance room, you should be able to use that as your reference point (pick something you can Ctrl-F easily)
01-01-2008 at 07:19 AM
View Profile Show all user's posts Quote Reply
New Topic New Poll Post Reply
Caravel Forum : Caravel Boards : Development : RoomX, RoomY
Surf To:


Forum Rules:
Can I post a new topic? No
Can I reply? No
Can I read? Yes
HTML Enabled? No
UBBC Enabled? Yes
Words Filter Enable? No

Contact Us | CaravelGames.com

Powered by: tForum tForumHacks Edition b0.98.8
Originally created by Toan Huynh (Copyright © 2000)
Enhanced by the tForumHacks team and the Caravel team.