Hi,
I'm using Jor'Mox's generic mapping script. I'm trying to set an in direction to jump to another room on the same z-level but a little removed from the main map.
Room 972 has exits N, S, in
Room 1018 has exits E, W, N, out
972's in exit is set to 1018
1018's out exit is set to 972
However when I move in at location 972 it does not take me to 1018.
What else do I need to do to jump to 1018 when I move in?
Thanks,
Ulysses.
Mapping In/Out Oddness
Mapping In/Out Oddness
Wod
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
- SlySven
- Posts: 1023
- Joined: Mon Mar 04, 2013 3:40 pm
- Location: Deepest Wiltshire, UK
- Discord: SlySven#2703
Re: Mapping In/Out Oddness
Is that "in" or "IN", Lua is case sensitive so it may be that something needs tweaking to use the correct case... {even if the MUD server is NOT so picky!}
Re: Mapping In/Out Oddness
So, I'm assuming here that you checked the exit mappings, and you verified that the various in/out exits are actually mapped to the correct rooms. Given that that is the case, what actual command did you use for movement? Can you show us a log of you moving from one room to the other? Do any errors pop up in the error log when you move from room to room? And finally, once in the destination room, if you "look" (to ensure it properly captures the room name and exits) and then use the "find me" command, does THAT make the map update your position properly?
Re: Mapping In/Out Oddness
Exit mappings checked and double-checked. I'm using the command 'in' (lower-case). Here is the log:Jor'Mox wrote: ↑Sun Feb 11, 2018 2:06 pmSo, I'm assuming here that you checked the exit mappings, and you verified that the various in/out exits are actually mapped to the correct rooms. Given that that is the case, what actual command did you use for movement? Can you show us a log of you moving from one room to the other? Do any errors pop up in the error log when you move from room to room? And finally, once in the destination room, if you "look" (to ensure it properly captures the room name and exits) and then use the "find me" command, does THAT make the map update your position properly?
Code: Select all
new line arrived:You enter the reformatory.
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:
Trigger name=Delete empty lines(^$) matched.
LUA OK script Delete empty lines (Trigger23) ran without errors
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:Dylath-Leen - Youth Reformatory (city-raining-puddles)
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:[Exits: north east west out]
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
Trigger name=Exits Trigger(^\[Exits\: ([\w\s]+)\]) matched.
capture group #1 = <[Exits: north east west out]>
capture group #2 = <north east west out>
LUA OK script Exits Trigger (Trigger17) ran without errors
new line arrived: An aged fountain still sparkles with clean water.
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:(Too weak) A fat, lazy guard watches over the facility with bored indifference.
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:
Trigger name=Delete empty lines(^$) matched.
LUA OK script Delete empty lines (Trigger23) ran without errors
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:(10:22) (1523/1523hp 1061/1075mn 1267/1270mv) Level:(84 + 0%)
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
Trigger name=Prompt Trigger(^\(\d\d\:\d\d\) ) matched.
capture group #1 = <(10:22) >
LUA OK script Prompt Trigger (Trigger18) ran without errors
LUA OK anonymous Lua function ran without errors
LUA OK anonymous Lua function ran without errors
LUA OK anonymous Lua function ran without errors
new line arrived:
Trigger name=Delete empty lines(^$) matched.
LUA OK script Delete empty lines (Trigger23) ran without errors
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
new line arrived:(OOC) Tanasi gossips 'ooc do you know of anyone with less than 29 in debating?'
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
Trigger name=Gossip((OOC) ) matched.
selectSection(0,79): line under current user cursor: (OOC) Tanasi gossips 'ooc do you know of
anyone with less than 29 in debating?'
P_begin(0/9956), P_end(79/9956) selectedText = (OOC) Tanasi gossips 'ooc do you know of anyone with
less than 29 in debating?'
LUA: code compiled without errors. OK
LUA OK script Gossip (Trigger21) ran without errors
new line arrived:
Trigger name=Delete empty lines(^$) matched.
LUA OK script Delete empty lines (Trigger23) ran without errors
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
LUA OK script 119 (Trigger119) ran without errors
new line arrived:(10:33) (1523/1523hp 1075/1075mn 1270/1270mv) Level:(84 + 0%)
LUA OK script Room Name Trigger Desc (trigger16condition0) ran without errors
Trigger name=Prompt Trigger(^\(\d\d\:\d\d\) ) matched.
capture group #1 = <(10:33) >
LUA OK script Prompt Trigger (Trigger18) ran without errors
LUA OK anonymous Lua function ran without errors
LUA OK anonymous Lua function ran without errors
I've just realised what is probably going wrong! I could not work out how to maually create a room so I disconnected an existing room from a branch elsewhere in the map and re-defined it's exits to the 'in' room. My guess is because the 'in' room name does not match the original name of this room, the map is refusing to jump there. So, how can I either a) move a newly-created 'in' room from under the current room, or b) rename this 'hijacked' room's name, so that it matches with the 'in' location?
Thanks!!
Wod
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
Re: Mapping In/Out Oddness
Okay, so the room names not matching is exactly why it won't move you to the new destination. To move a room that you are standing in (i.e. a newly created "in" room) use the "shift" command, syntax: shift <direction>, ex. shift n. It is possible to rename an existing room via code, but given that the other option ensures everything else will be correct, I think using the shift strategy is the better one.
Re: Mapping In/Out Oddness
Perfect! That works beautifully. Need to invest some more time reading your script and the mapping functions!Jor'Mox wrote: ↑Mon Feb 12, 2018 2:36 pmOkay, so the room names not matching is exactly why it won't move you to the new destination. To move a room that you are standing in (i.e. a newly created "in" room) use the "shift" command, syntax: shift <direction>, ex. shift n. It is possible to rename an existing room via code, but given that the other option ensures everything else will be correct, I think using the shift strategy is the better one.
Thank you again, Jor'Mox.
Wod
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.
CthulhuMUD
www.cthulhumud.com
A hugely entertaining MUD based on the horror writings of HP Lovecraft.