Jump to content

[Guide] Fresh all-in-one guide to implementing maps - with worldmap


Recommended Posts

Posted

This is a good effort, though I would recommend users make full use of the import directory in /conf/ rather than using the .conf files themselves.

Posted
4 minutes ago, Akkarin said:

This is a good effort, though I would recommend users make full use of the import directory in /conf/ rather than using the .conf files themselves.

Thank you - Also, could you possibly clarify what do you mean exactly by "full use" of the directory? I'm not certain I understand what you mean there.

Posted

1 look at this guide and i dont even know what your talking about

 

 

 

 

 

 

Navigate to data\luafiles514\lua files\worldviewdata\
a)   Find files worldviewdata_table.lub as well as worldviewdata_language.lub (if your files are inside a GRF, extract them).

i)     Open your worldviewdata_language.lub and add the following line: MSI_###_[MAPNAME] = "Map Display Name", (if you’re adding it at the end of the array, don’t forget to remove the comma, as it’s the last element of the array.

ii)    Now open your worldviewdata_table.lub and add the following line: {###, "[mapname].rsw", x¹, y¹, x², y², WORLD_MSGID.MSI_###_[MAPNAME], ""}

 

Oh cool lemme just point this part out ?

Posted
12 hours ago, Naruto said:

1 look at this guide and i dont even know what your talking about


Navigate to data\luafiles514\lua files\worldviewdata\
a)   Find files worldviewdata_table.lub as well as worldviewdata_language.lub (if your files are inside a GRF, extract them).

i)     Open your worldviewdata_language.lub and add the following line: MSI_###_[MAPNAME] = "Map Display Name", (if you’re adding it at the end of the array, don’t forget to remove the comma, as it’s the last element of the array.

ii)    Now open your worldviewdata_table.lub and add the following line: {###, "[mapname].rsw", x¹, y¹, x², y², WORLD_MSGID.MSI_###_[MAPNAME], ""}

Oh cool lemme just point this part out ?

What is it that you don't understand here exactly? If you can clarify, I can try to put it in different words.... Maybe with images?

Posted

Hi Shinsei! First, thank you very much for this guide! It seems to be really well explained!

I just have some questions :3
Well, I haven't tested much when adding le maps, because (at least so far) I've only added my custom maps to test them.
So far I've done it like this instead:
1. Add maps to map_index and maps_athena.conf
2. Add the map to a grf, so that I add the grf itself in weemapcache. (Because if you simply add the gat file, the gat cells aren't read properly, as in you can make Holy Water anywhere and other similar problems. But if you add the GRF containing the map, this problem is avoided)

So since I'm still learning about this, do you recommend me to use this method instead? (Because it seems a little more complicated than the usual, but if it's better I should do it like you say!)
If I do this, can I avoid having to add the map to a GRF for the cells to be read properly?
Worldmap can't be used with my old method, am I correct?
And, if I use your method, will it conflict somehow with how I've been doing it?

Thank you in advance, have a good day! /no1

Posted (edited)

@Mina-chan  I believe there shouldn't be any problem with the method which you are using to add your custom maps. (I just personally have been doing it as I've described)

 

The world map files are also within your GRF, the only thing is that the files from worldviewdata are .lub files, which can't be edited within GRF (at least as far as I'm aware) therefore in order to edit them, you need to first extract, and then when you're done - import them back into GRF.

In short - no there should be no conflicts. 

 

Edit:

Quote

 So far I've done it like this instead:
1. Add maps to map_index and maps_athena.conf

As Akkarin mentioned above, it is better to use the imports, to avoid unnecessary conflicts. I've edited the part of the guide to fit that convention of doing things on the server-side

Edited by Shinsei
Additional information
  • Love 1
Posted
On 2/16/2020 at 3:34 PM, Shinsei said:

 Now up directory (Into db\map_index.txt) and add  the following line: import: db/import/map_index.txt

The files and imports are generated automatically after you've compiled rAthena for the first time. You don't need to create any extra files or add in the import: lines manually. It's already done for you ? 

Posted (edited)
14 hours ago, Akkarin said:

The files and imports are generated automatically after you've compiled rAthena for the first time. You don't need to create any extra files or add in the import: lines manually. It's already done for you ? 

That's weird.

True that map_index.txt file did already exist in the \import\ folder. However there was no "import:" pointer to it in \db\ file - Also I personally didn't have the maps_athena.txt file or the "import:" pointer to it in the \conf\ directory.

That's also the reason why I described that part like I did in the guide.

Edited by Shinsei
Posted
38 minutes ago, Shinsei said:

However there was no "import:" pointer to it in \db\ file

The "import:" functionality already exists in the /src/ folder for things in /db/, that's why you wouldn't have seen those lines there.

  • 2 months later...
Posted (edited)

My map was already added, but I can't add NAVIGATE, follow the steps.
Featured map: new_zone01

can you help me please ?

 

../worldviewdata/worldviewdata_language.lub:

Spoiler

image.png.a881c8d24a7a30b1074384da2ce2d7b1.png

 

../worldviewdata/worldviewdata_table.lub:

Spoiler

image.png.2f4d70b110930e2e2cde40d65f1bbceb.png

 

../navigation/navi_map_krpri.lub:

Spoiler

image.png.ce60d749b2cc434ab196a53adfe5dfe8.png

../navigation/navi_link_krpri.lub:

Spoiler

image.png.5dd74ef9d2aeb3bb23cfdde81d41da09.png

 

 

in game:  /navi new_zone01 124 124

Results:

Navigation >: "You are looking for an unknown place."

Spoiler

image.png.b89f3251cf7fadc63a5656167b844a4e.png

 

AT NPC: 

image.png.82723af32607df62f2171250bc56a719.png

nothing happens either.

image.png

Edited by evolutionbr
  • 5 months later...
  • 2 years later...
  • 7 months later...
  • 3 months later...
  • 3 months later...
Posted (edited)
53 minutes ago, hadie said:

Hi can I ask?how to make my map indoor same like all map indoor that will tilted from 1st photo to 2nd photo

 

Change / write it on your viewpointtable.txt ... Client side, inside your grf data folder.

data/viewpointtable.txt 

 

Edited by mrfizi
Posted
11 hours ago, mrfizi said:

 

Change / write it on your viewpointtable.txt ... Client side, inside your grf data folder.

data/viewpointtable.txt 

 

Tq sir

Posted

Good job! this is what we can call a good person with a good personality! keep it up!

Unlike this person just saying "Unable to reproduce" without testing out everything very unprofessional. image.thumb.png.1310f2da938d7b89a3f12384a1898ac5.png 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...