TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

linking multiple map files together

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
Lvki



Joined: 15 Apr 2015
Posts: 2

PostPosted: Wed Apr 15, 2015 9:51 am    Post subject: linking multiple map files together Reply with quote

Hi. is there any way to link room in one map file, to a room in another map file?

My mud is changing all the time. One big mapfile is not the answer so i had to split in in small parts to avoid problems with fixing the whole thing.

multiple map files would be great, but i cant get it to work. Is there any way to do this? or is there any other way to split the map into small "zones" that could be easly ereased and written from scratch.
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Thu Apr 16, 2015 5:44 pm    Post subject: Reply with quote

If the room vnums are in order you can use a loop.

#loop {3000} {3100} {vnum} {#map delete $vnum}

If you have the area name set for each room you can create a loop to delete every room for a given area.

Code:

#loop {1} {50000} {vnum}
{
    #map get roomarea {temp} {$vnum};
    #if {"$temp" == "Midgard"}
    {
        #map delete $vnum
    }
}


Can use the list command to see what rooms belong to a given area:

#map list {roomarea} {Midgard}

Hope that helps.
Back to top
View user's profile Send private message Send e-mail
mpekas



Joined: 06 Apr 2015
Posts: 2

PostPosted: Fri Apr 17, 2015 2:29 am    Post subject: Reply with quote

Have you tried playing with the #map exit command?

If you use it to switch a map directly it crashes the client, so you gotta make an action for it like this:

#map exit XXX command {e;#showme --Reading map: test.map, 1}
#action {^--Reading map: %1, %2} {#map leave;#map read %1;#map goto %2}

So, when you take that particular exit, test.map will be loaded and you'll be sent to vnum 1.
Back to top
View user's profile Send private message
PowerGod



Joined: 04 Aug 2014
Posts: 339

PostPosted: Fri Apr 17, 2015 4:58 am    Post subject: Reply with quote

mpekas wrote:

#action {^--Reading map: %1, %2} {#map leave;#map read %1;#map goto %2}


This still crashes for me, but adding a delay all seems working

Code:

#action {^--Reading map: %1, %2} {#delay {1} {#map leave;#map read %1;#map goto %2}}
Back to top
View user's profile Send private message
Lvki



Joined: 15 Apr 2015
Posts: 2

PostPosted: Tue Apr 28, 2015 8:29 am    Post subject: Reply with quote

I managed to do it 'stupid' way. I used ACTIONS. I take short of a location, and when this short is on the screen then im loading map, and going to a room in other zone. If short can be repeated, then i use long version of location info, or part of it.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group