Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ Mapper for Achaea
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1
2
3
4
5
6
7
8
9
10
11
12
13
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #180 on Sun 06 Mar 2011 10:57 PM (UTC) |
Message
| Yes I see what's happened now. The "script" you linked to (which is actually a list of changes) is only 153 lines, so you probably thought "won't take long to fix that".
But the actual mapper is 1600 lines of code, and the plugin which calls the mapper is another 1948 lines of code. So that's 3548 lines of code, before modifications. So add in the extra lines (say, 150) and we get around 3700 lines of code.
The mapper itself is fairly complex as it involves a lot of loops and recursive/iterative calculations as it "walks outwards" from where you are to draw the map. It was complex enough with fixed length exits, and having to take into account room coordinates when deciding where to draw each room would have added to the complexity. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Dontarion
USA (62 posts) Bio
|
Date
| Reply #181 on Thu 17 Mar 2011 03:54 AM (UTC) |
Message
| All/Nick:
I'm trying to build in a few things into the mapper but I'm having trouble. Achaea has an odd method of doing the subdivision/wilderness so it takes up non-used room numbers to generate them on the fly. Eventually when they build new rooms these UIDs get used but the mapper already has them filled. I'm trying to build a method to completely wipe the room from DB's and have other tables erased too (room exits, etc). Currently I've learned a bit about delete. Anyone else attempted this?
I'm also looking at making the update area list pool from the rooms db and not just a second db of the area names. I think this is how it's being populated now because the listing is area names that aren't being used and were just pulled from the achaea map converter. | Top |
|
Posted by
| Ahiram
(14 posts) Bio
|
Date
| Reply #182 on Sat 26 Mar 2011 01:21 AM (UTC) |
Message
| I had to do a system restore to 2 days ago to fix an issue on my PC. Now, the mapper no longer works. I tried reinstalling everything, and the commands like MAPPER HELP still work but the plugin no longer tracks me. Also, unless I'm doing something wrong, MUSHClient is no longer understanding the plugin map.xml (lifted from www.achaea.com/maps/map.xml) The flow I'm using goes like this:
File -> Plugins... -> Add... -> ATCP_NJG -> ATCP_Mapper -> Create_ATCP_Map_Database -> map.xml
Everything loads up until the end. Mush tells me map.xml is not a plugin and thus will not be loaded. Even without map.xml, it won't create even a generic map for me. Anyone have any ideas? | Top |
|
Posted by
| Twisol
USA (2,257 posts) Bio
|
Date
| Reply #183 on Sat 26 Mar 2011 01:29 AM (UTC) Amended on Sat 26 Mar 2011 01:30 AM (UTC) by Twisol
|
Message
| map.xml isn't a plugin, though. It's an XML dump of (almost) all of the rooms in Achaea. The Create_ATCP_Map_Database plugin converts map.xml into a database that the ATCP_Mapper can use.
Also, make sure that "Convert IAC EOR/GA to newline" is checked, in Game -> Configure -> Output. |
'Soludra' on Achaea
Blog: http://jonathan.com/
GitHub: http://github.com/Twisol | Top |
|
Posted by
| Ahiram
(14 posts) Bio
|
Date
| Reply #184 on Sat 26 Mar 2011 01:31 AM (UTC) |
Message
| Actually, I fixed the problem. With the same answer you gave me last time. That atcp info in VadiSystem was configured to No (I had to get the system again and forgot to update) so everything is peachy again. | Top |
|
Posted by
| Dontarion
USA (62 posts) Bio
|
Date
| Reply #185 on Sat 07 May 2011 05:07 AM (UTC) Amended on Sat 07 May 2011 07:01 AM (UTC) by Dontarion
|
Message
| I've successfully converted the mapper over to working with GMCP. I used the Aardwolf GMCP plugin to handle data with a few tweaks for Achaea.
I added the ability to update room names if they're not the same as Achaea constantly goes through room name changes.
Soon I will be trying to change two things:
A: No more trying to map wilderness and subdivision rooms
B: Yanking area from GMCP data.
C: updating exits if they're wrong --> This may or may not happen.
--
I figured out how to avoid updating on wilderness rooms and area is already updating from GMCP now. | Top |
|
Posted by
| Fiendish
USA (2,534 posts) Bio
Global Moderator |
Date
| Reply #186 on Thu 02 Jun 2011 03:07 AM (UTC) |
Message
| I've been meaning to ask this for a really long time. Why did you originally make a second database file just for bookmarks? |
https://github.com/fiendish/aardwolfclientpackage | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #187 on Thu 02 Jun 2011 07:23 AM (UTC) |
Message
| I identified two sorts of data you would want to store:
- Data supplied by the MUD (that is, the maps, area information, connecting exits, etc.)
- Data entered by the player (eg. favourite shop, guild info, notes about mobs)
The easiest way of repopulating the MUD-related data is to rebuild the database from the MUD's supplied file (if any). And the most reliable way it just to clear the tables and start from scratch. But I didn't want to lose all the player-entered data.
I suppose you could clear everything, except bookmarks, which would have worked. But it would make it hard for you to distribute the built database, or if the MUD didn't supply the whole database, to give a friend the room info without your notes.
Hence the two databases. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
501,810 views.
This is page 13, subject is 13 pages long:
1
2
3
4
5
6
7
8
9
10
11
12
13
It is now over 60 days since the last post. This thread is closed.
Refresh page
top