Jump to content
  • 0
Luffy

[Help] Script Edit GM Rewarder.

Question

Can someone make this work on Hercules emu?

 

 

  Reveal hidden contents

 

Share this post


Link to post
Share on other sites

16 answers to this question

Recommended Posts

  • 0

Probably didn't load the SQL table?

I tested the script and it seems fine to me, I'm not even using a fully updated Hercules either.

Share this post


Link to post
Share on other sites
  • 0

@Luffy

 

Did you try this script in your herc server?

 

Tried checking this script with the script checker and didn't find any error.

 

What problem is you facing?

Share this post


Link to post
Share on other sites
  • 0

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.


 


Note: I already imported the tables to my database.


Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 12:59 AM, Like it~* said:

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.

 

Note: I already imported the tables to my database.

Map server terminates? Any crash? Map server shouldn't terminate by script unless something makes it crash. Maybe if it's crash, post gdb dump and we could see how to solve it..

Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 4:45 AM, Dastgir said:

 

  On 5/23/2017 at 12:59 AM, Like it~* said:

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.

 

Note: I already imported the tables to my database.

Map server terminates? Any crash? Map server shouldn't terminate by script unless something makes it crash. Maybe if it's crash, post gdb dump and we could see how to solve it..

 

See for yourself, master.

 

http://ap.imagensbrasil.org/image/jJ4iq5

 

 

Translate: A problem caused the program to stop working properly. Window will close the program and notify you if a solution is available.

Edited by Like it~*

Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 6:06 AM, Like it~* said:

 

  On 5/23/2017 at 4:45 AM, Dastgir said:

 

  On 5/23/2017 at 12:59 AM, Like it~* said:

 

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.

 

Note: I already imported the tables to my database.

 

Map server terminates? Any crash? Map server shouldn't terminate by script unless something makes it crash. Maybe if it's crash, post gdb dump and we could see how to solve it..
 

See for yourself, master.

 

imgur.com/a/faxHX

 

Translate: A problem caused the program to stop working properly. Window will close the program and notify you if a solution is available.

Though image link is invalid, by description, it definitely is crash, please follow these steps:

http://herc.ws/wiki/MSVC_Crash_Debugging

And show the screenshot of call stack and where it crashed, which might help to solve it.

Also, if you could mention when the crash occurs, it would be great.

Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 6:13 AM, Dastgir said:

 

  On 5/23/2017 at 6:06 AM, Like it~* said:

 

  On 5/23/2017 at 4:45 AM, Dastgir said:

 

  On 5/23/2017 at 12:59 AM, Like it~* said:

 

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.

 

Note: I already imported the tables to my database.

Map server terminates? Any crash? Map server shouldn't terminate by script unless something makes it crash. Maybe if it's crash, post gdb dump and we could see how to solve it..
 

See for yourself, master.

 

imgur.com/a/faxHX

 

Translate: A problem caused the program to stop working properly. Window will close the program and notify you if a solution is available.

Though image link is invalid, by description, it definitely is crash, please follow these steps:

http://herc.ws/wiki/MSVC_Crash_Debugging

And show the screenshot of call stack and where it crashed, which might help to solve it.

Also, if you could mention when the crash occurs, it would be great.

 

 
Sorry the image link has been fixed.
I followed the steps directed at the link and compiled the emulator. After that, I re-opened the map-server and tried again to use the script, but the same problem occurred.
 
 
The error occurs only after clicking the sell button when trying to send an item to any player. Option "[Gm] send reward" from npc.

Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 6:53 AM, Like it~* said:

 

  On 5/23/2017 at 6:13 AM, Dastgir said:

 

  On 5/23/2017 at 6:06 AM, Like it~* said:

 

  On 5/23/2017 at 4:45 AM, Dastgir said:

 

  On 5/23/2017 at 12:59 AM, Like it~* said:

 

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.

 

Note: I already imported the tables to my database.

Map server terminates? Any crash? Map server shouldn't terminate by script unless something makes it crash. Maybe if it's crash, post gdb dump and we could see how to solve it..
 

See for yourself, master.

 

imgur.com/a/faxHX

 

Translate: A problem caused the program to stop working properly. Window will close the program and notify you if a solution is available.

Though image link is invalid, by description, it definitely is crash, please follow these steps:

http://herc.ws/wiki/MSVC_Crash_Debugging

And show the screenshot of call stack and where it crashed, which might help to solve it.

Also, if you could mention when the crash occurs, it would be great.

  Sorry the image link has been fixed.I followed the steps directed at the link and compiled the emulator. After that, I re-opened the map-server and tried again to use the script, but the same problem occurred. http://ap.imagensbrasil.org/image/jJ4iq5 The error occurs only after clicking the sell button when trying to send an item to any player. Option "[Gm] send reward" from npc.
Open the map server from visual studio in debugging mode, the link I sent shows how to do it​. That method would give reason exactly why the server crashed.

Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 8:05 AM, Dastgir said:

 

  On 5/23/2017 at 6:53 AM, Like it~* said:

 

  On 5/23/2017 at 6:13 AM, Dastgir said:

 

  On 5/23/2017 at 6:06 AM, Like it~* said:

 

  On 5/23/2017 at 4:45 AM, Dastgir said:

 

  On 5/23/2017 at 12:59 AM, Like it~* said:

 

I'm used latest version of Hercules, however, when trying to use it, every time I try to send any item, the map-server terminates itself without presenting any errors.

 

Note: I already imported the tables to my database.

Map server terminates? Any crash? Map server shouldn't terminate by script unless something makes it crash. Maybe if it's crash, post gdb dump and we could see how to solve it..
 

See for yourself, master.

 

imgur.com/a/faxHX

 

Translate: A problem caused the program to stop working properly. Window will close the program and notify you if a solution is available.

Though image link is invalid, by description, it definitely is crash, please follow these steps:

http://herc.ws/wiki/MSVC_Crash_Debugging

And show the screenshot of call stack and where it crashed, which might help to solve it.

Also, if you could mention when the crash occurs, it would be great.

  Sorry the image link has been fixed.I followed the steps directed at the link and compiled the emulator. After that, I re-opened the map-server and tried again to use the script, but the same problem occurred. http://ap.imagensbrasil.org/image/jJ4iq5 The error occurs only after clicking the sell button when trying to send an item to any player. Option "[Gm] send reward" from npc.
Open the map server from visual studio in debugging mode, the link I sent shows how to do it​. That method would give reason exactly why the server crashed.

 

Call stack errors.

>	map-server.exe!set_reg(script_state * st, map_session_data * sd, __int64 num, const char * name, const void * value, reg_db * ref) Line 3482	C
 	map-server.exe!script_setarray_pc(map_session_data * sd, const char * varname, unsigned int idx, void * value, int * refcache) Line 4885	C
 	map-server.exe!npc_selllist_sub(map_session_data * sd, itemlist * item_list, npc_data * nd) Line 2152	C
 	map-server.exe!npc_selllist(map_session_data * sd, itemlist * item_list) Line 2226	C
 	HPMHooking_map.dll!HP_npc_selllist(map_session_data * sd, itemlist * item_list) Line 49325	C
 	map-server.exe!clif_parse_NpcSellListSend(int fd, map_session_data * sd) Line 10778	C
 	map-server.exe!clif_parse(int fd) Line 19219	C
 	map-server.exe!do_sockets(int next) Line 1026	C
 	map-server.exe!main(int argc, char * * argv) Line 560	C
 	[External Code]	
 	[Frames below may be incorrect and/or missing, no symbols loaded for kernel32.dll]	

http://ap.imagensbrasil.org/image/jJ5mXn

Share this post


Link to post
Share on other sites
  • 0
  On 5/23/2017 at 5:41 PM, Dastgir said:

Have any plugins? List them, or maybe disable them and then try?

 
I'm confused as I had to close the windows to quit Visual Studio and open it again. But after the map-server has finished, I opened Visual Studio and the only thing that appears now is this. I do not know if it's because I had to close the Call stack, Autos, Script.c and Visual Studio alert windows shown in the previous screenshot or if it's because there are no more errors. However, the map server continues shutting down.
 
OBS: I deactivated all plugins.

 

'map-server.exe' (Win32): Loaded 'C:\Users\Hercules\map-server.exe'. Symbols loaded.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Unloaded 'C:\Windows\SysWOW64\kernel32.dll'
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\KernelBase.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ws2_32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptbase.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcryptprimitives.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\user32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\win32u.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Users\Hercules\pcre3.dll'. Module was built without symbols.
'map-server.exe' (Win32): Loaded 'C:\Users\Hercules\libmysql.dll'. Module was built without symbols.
'map-server.exe' (Win32): Loaded 'C:\Users\Hercules\zlib1.dll'. Module was built without symbols.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\gdi32full.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\advapi32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wsock32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\cryptsp.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rsaenh.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\bcrypt.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\imm32.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\NapiNSP.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\pnrpnsp.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nlaapi.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\mswsock.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dnsapi.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\nsi.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\IPHLPAPI.DLL'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\winrnr.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\wshbth.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\FWPUCLNT.DLL'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rasadhlp.dll'. Cannot find or open the PDB file.
'map-server.exe' (Win32): Loaded 'C:\Windows\SysWOW64\kernel.appcore.dll'. Cannot find or open the PDB file.
The thread 0x3988 has exited with code 1 (0x1).
The thread 0x1c54 has exited with code 1 (0x1).
The thread 0x3a48 has exited with code 1 (0x1).
The thread 0x3ba4 has exited with code 1 (0x1).
The program '[16432] map-server.exe' has exited with code 1 (0x1).
Edited by Like it~*

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.


×
×
  • Create New...

Important Information

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