Jump to content

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


Shinsei

Recommended Posts


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3128
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   23
  • Joined:  02/21/17
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3128
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

2 minutes ago, Shinsei said:

could you possibly clarify what do you mean

Sure thing - here's a file i prepared a few years ago ? https://github.com/rathena/rathena/blob/master/conf/readme.md

  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   23
  • Joined:  02/21/17
  • Last Seen:  

12 minutes ago, Akkarin said:

Sure thing - here's a file i prepared a few years ago ? https://github.com/rathena/rathena/blob/master/conf/readme.md

Ah yes, I got it. I'll edit the guide so that people don't continue doing it that way ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

This is massive, considering my project revolves around custom maps! Much appreciated!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.01
  • Content Count:  416
  • Reputation:   73
  • Joined:  05/16/19
  • Last Seen:  

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 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   23
  • Joined:  02/21/17
  • Last Seen:  

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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.01
  • Content Count:  134
  • Reputation:   115
  • Joined:  10/20/17
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   23
  • Joined:  02/21/17
  • Last Seen:  

@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
Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3128
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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 ? 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  9
  • Reputation:   23
  • Joined:  02/21/17
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3128
  • Reputation:   1617
  • Joined:  03/26/12
  • Last Seen:  

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.

Link to comment
Share on other sites

  • 2 months later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/24/14
  • Last Seen:  

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
Link to comment
Share on other sites

  • 5 months later...

  • Group:  Members
  • Topic Count:  62
  • Topics Per Day:  0.02
  • Content Count:  944
  • Reputation:   175
  • Joined:  11/27/14
  • Last Seen:  

Thx for this guide !

Link to comment
Share on other sites

  • 2 years later...

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  6
  • Reputation:   0
  • Joined:  03/12/23
  • Last Seen:  

Good tutorial but change the black font you are using because it's impossible to read with dark theme enabled.

Link to comment
Share on other sites

  • 7 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  01/24/18
  • Last Seen:  

Help i already done it but the welcome message(like: Capital of Rune Midgard Prontera) after entering new map didnt appear 

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  12/12/11
  • Last Seen:  

How to edit yellow text?image.thumb.png.4542c77c6c8325f9ad325b34a6078c7b.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  58
  • Reputation:   5
  • Joined:  12/12/11
  • Last Seen:  

20 hours ago, kadze said:

How to edit yellow text?image.thumb.png.4542c77c6c8325f9ad325b34a6078c7b.png

mapInfo_true in system

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   1
  • Joined:  03/11/12
  • Last Seen:  

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

IMG20240612024543.jpg

IMG20240612024549.jpg

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  337
  • Reputation:   63
  • Joined:  10/30/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  84
  • Reputation:   1
  • Joined:  03/11/12
  • Last Seen:  

11 hours ago, mrfizi said:

 

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

data/viewpointtable.txt 

 

Tq sir

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.03
  • Content Count:  69
  • Reputation:   3
  • Joined:  08/19/23
  • Last Seen:  

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 

Link to comment
Share on other sites

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.

×
×
  • Create New...