Jump to content
  • 0
Sign in to follow this  
iubantot

New guide for adding custom map

Question

So i am from rAthena and completely new on Herc. And im having troubles understanding how to properly add a new map. may i request for a step by step guide? ive searched every where on this forums but i cant seem to make it work. i tried using `make tools` but ./mapcache is not found in my directory.

Share this post


Link to post
Share on other sites

13 answers to this question

Recommended Posts

  • 1

that error comes because you didn't make plugins either lol my bad. if you are using a plugin, you need to make plugins as well. so actually the order should be like this.

make clean
./configure
make sql plugins
make plugin.mapcache

Share this post


Link to post
Share on other sites
  • 1

what the hell is going on here? Is it just me or are posts not being order by date...

yep, it seems your grf must be missing that map. 

Share this post


Link to post
Share on other sites
  • 0
2 hours ago, Myriad said:

Check this out: 

 

So im encountering this error here

Capture.PNG.aaeffc5ba7cfafc28aceb8a0ccb55544.PNG

 

what i did is .

 

herc/src/plugins/makefile.in

################  PLUGIN CONFIGURATION  ##############################
#                                                                    #
# When you add a plugin, add its name here:                          #
# Example: if you have a plugin named my_cool_plugin.c and another   #
# one named my_second_plugin.c, add them to the list like this:      #
#                                                                    #
# MYPLUGINS = my_cool_plugin my_second_plugin                        #
#                                                                    #
# This is only needed if you want to build your plugin through       #
#   'make plugins' or 'make all'. If you don't add it to this list,  #
#   you will still be able to build your plugin through              #
#   'make plugin.my_plugin'                                          #
#                                                                    #
# Note: DO NOT include the .c extension!!!                           #

MYPLUGINS = ExtendedVending mapcache

herc/conf/plugins.conf

plugins_list: [
	/* Enable HPMHooking when plugins in use rely on Hooking */
	"HPMHooking",
	//"db2sql",
	//"sample",
	"ExtendedVending",
	"mapcache",
]

I also added a data folder on my herc folder.

` herc/data/ ` which contains the maps as said on the guide.

Edited by iubantot

Share this post


Link to post
Share on other sites
  • 0

You should run the commands from your root folder, not inside the plugins folder.

E.g. /Hercules/ <- Correct
/Hercules/src/plugins/ <- Incorrect

Share this post


Link to post
Share on other sites
  • 0
58 minutes ago, Myriad said:

You should run the commands from your root folder, not inside the plugins folder.

E.g. /Hercules/ <- Correct
/Hercules/src/plugins/ <- Incorrect

that is what im doing

Share this post


Link to post
Share on other sites
  • 0

Sorry misread your console log. It seems you haven't compiled your map server, therefore it does not exist and you can't run it. You need to make sql to do this.

Share this post


Link to post
Share on other sites
  • 0
>> ./configure
>> make clean
>> make plugin.mapcache
>> make sql

I used this commands on my herc folder. but still i get this error.

Capture.PNG.15b44c04f7c171b0ab228fdb4244ce71.PNG

This is the contents of my plugins

Capture.PNG.feb807b558e80d2f36832faeba0ae125.PNG

Share this post


Link to post
Share on other sites
  • 0
23 minutes ago, Myriad said:

that error comes because you didn't make plugins either lol my bad. if you are using a plugin, you need to make plugins as well. so actually the order should be like this.

 


make clean
./configure
make sql plugins
make plugin.mapcache

 

So I think the mapcache has successfully compiled but now im getting this error. and i think it because the other maps are not included in the `herc/data` that i made earlier.

Do i need to put all maps on it? or do i need to import my grf file on my vm just to compile mapcache?

 

Capture.PNG

Share this post


Link to post
Share on other sites
  • 0
1 hour ago, Myriad said:

what the hell is going on here? Is it just me or are posts not being order by date...

yep, it seems your grf must be missing that map. 

Thank you so much for the time and information! /thx

Share this post


Link to post
Share on other sites
  • 0
On 5/24/2018 at 1:09 AM, luizragna said:

 

@iubantot Follow this tutorial to create your mapcache: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

Where he talk YourPlugin rename to mapcache

Centos 7 how? but i did in in windows mode. Thanks anyway and to annieruru guide ^_^ ROK!!

Edited by Chatterboy

Share this post


Link to post
Share on other sites
  • -1

you need to go to you vcproj folder , im using vcproj-14... you will see something called plugin.sample, make a copy of that in the same folder, and rename the copy mapcache.... go into your visual studio and right click on your hercules solution and add existing, go to the mapcache u just made and then you will now see it, ok right click hercules solution and rebuild... should have 0 error if i remember, then go WIN+R cmd , go "cd desktop\hercules" then do "map-server.exe - -help" 2 dash no space hard to see then do "map-server.exe - -map (mapname)" 2 dash no brackets or perenteses 

Share this post


Link to post
Share on other sites
  • -1

 

3 hours ago, iubantot said:

>> ./configure
>> make clean
>> make plugin.mapcache
>> make sql

I used this commands on my herc folder. but still i get this error.

Capture.PNG.15b44c04f7c171b0ab228fdb4244ce71.PNG

This is the contents of my plugins

Capture.PNG.feb807b558e80d2f36832faeba0ae125.PNG

@iubantot Follow this tutorial to create your mapcache: http://herc.ws/wiki/Building_HPM_Plugin_for_MSVC

Where he talk YourPlugin rename to mapcache

Share this post


Link to post
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
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.