Advertisement
Rochet2

Talk with newcomer

Jul 23rd, 2016
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.01 KB | None | 0 0
  1. [12.7.2016 22:13:06] Anon: Just recently got into emulation, I'm still in the process of learning how to script gossip creatures basically
  2. [12.7.2016 22:15:54] Rochet2: I think this might be a useful read if you are going to code some gossips
  3. [12.7.2016 22:15:54] Rochet2: http://www.ac-web.org/forums/showthread.php?215486-All-purpose-NPC-duel-reset-enchanter-kill-streak-pvp-titles-teleporter-chat
  4. [12.7.2016 22:17:07] Anon: Oh great i was just about to ask you, where could i start off
  5. [12.7.2016 22:17:48] Rochet2: take a look at the post I made there
  6. [12.7.2016 22:17:49] Anon: I've been watching nomsofts videos, if that's their name on youtube and also been doing some research on google
  7. http://www.trinitycore.net/d2/d4b/classPlayer.html testing out some calls here, i really like making quests, so i did some water collect quest and stuff like that
  8. [12.7.2016 22:18:11] Anon: Will do
  9. [12.7.2016 22:18:11] Rochet2: nice
  10. [12.7.2016 22:18:26] Rochet2: what do you use to code?
  11. [12.7.2016 22:18:35] Anon: Visual studios 2013
  12. [12.7.2016 22:18:45] Rochet2: and you use intellisense?
  13. [12.7.2016 22:18:50] Anon: no
  14. [12.7.2016 22:18:54] Anon: i have no idea what that is
  15. [12.7.2016 22:19:00] Rochet2: its the autocomplete / suggestion tool
  16. [12.7.2016 22:19:06] Anon: oh god
  17. [12.7.2016 22:19:10] Anon: i knew i was missing something
  18. [12.7.2016 22:19:26] Anon: i know java has netbean but i didnt know c++ had something similar
  19. [12.7.2016 22:20:21] Rochet2: well, anyways. The way you can enable it in visual studio is that you open TrinityCore.sln as if you were going to compile
  20. and only then start editing your scripts.
  21. [12.7.2016 22:20:39] Anon: i might have intellisense then
  22. [12.7.2016 22:21:17] Anon: yea but for some reason it only starts working after the compile is over like for example if i got an error and open up the file in which the error appeared, intelisense would start working
  23. [12.7.2016 22:21:27] Anon: it's a pretty useful tool
  24. [12.7.2016 22:21:59] Anon: ok no im an idiot
  25. [12.7.2016 22:22:06] Anon: works fine when i just open the sln file
  26. [12.7.2016 22:22:16] Rochet2: well, there you have it anyways
  27. [12.7.2016 22:22:26] Rochet2: do you know how to debug?
  28. [12.7.2016 22:22:31] Rochet2: or get a crash log?
  29. [12.7.2016 22:22:49] Anon: no
  30. [12.7.2016 22:22:59] Rochet2: how about output some text to console or something?
  31. [12.7.2016 22:23:06] Rochet2: like printing something
  32. [12.7.2016 22:23:07] Anon: i have a console to text output
  33. [12.7.2016 22:23:15] Anon: a server log
  34. [12.7.2016 22:23:24] Anon: if that's what you mean by output lol
  35. [12.7.2016 22:23:37] Rochet2: Well, you can print to the console or to the log files yeah
  36. [12.7.2016 22:23:39] Anon: i also have a crash log
  37. [12.7.2016 22:23:45] Anon: but i have no idea how to debug
  38. [12.7.2016 22:23:54] Rochet2: Do you compile in debug?
  39. [12.7.2016 22:24:05] Anon: No in release
  40. [12.7.2016 22:24:46] Rochet2: Well, if you need the crashlog then you should compile in debug. Any crashlogs generated in release are useless.
  41. But you can do once you actually get crashes.
  42. [12.7.2016 22:24:53] Rochet2: To debug you also need to compile in debug
  43. [12.7.2016 22:25:00] Anon: Oh
  44. [12.7.2016 22:25:06] Anon: we'll its worth the extra time then
  45. [12.7.2016 22:25:12] Anon: debug compile takes a while on this pc tho
  46. [12.7.2016 22:25:56] Rochet2: After compiling in debug you can start the server normally.
  47. And once the server has started you can open the SLN in visual studio again as usual and click on DEBUG menu at the top. Then click on attach to process and select worldserver.exe in the list that pops up
  48. [12.7.2016 22:26:07] Rochet2: Then you can set breakpoints in the visual studio editor and stuff
  49. [12.7.2016 22:26:22] Anon: what are breakpoints
  50. [12.7.2016 22:26:25] Rochet2: the step into and over and out controls are at the top as usual in most IDEs
  51. [12.7.2016 22:27:12] Rochet2: breakpoints allow you to mark a line of code and when that line is reached (the code is executed) the program is halted and you get to see all local variables and stuff in your IDE (in this case visual studio)
  52. [12.7.2016 22:27:22] Rochet2: Then you can go through the code line by line
  53. [12.7.2016 22:27:31] Rochet2: and stuff like that
  54. [12.7.2016 22:27:50] Rochet2: you can see the values of any variables etc
  55. [12.7.2016 22:28:12] Rochet2: useful when you have a bug you cant figure out
  56. [12.7.2016 22:28:22] Rochet2: you can just go in and see what the code does
  57. [12.7.2016 22:29:02] Anon: Yo these are actually the greatest bigginer tips a person could get
  58. [12.7.2016 22:29:28] Rochet2: and Im telling them because I didnt even know there was a wiki when I started : |
  59. [12.7.2016 22:29:46] Rochet2: you been to trinitycore wiki :D?
  60. [12.7.2016 22:30:07] Anon: yes i've visited the wiki a couple of times
  61. [12.7.2016 22:30:13] Anon: when i was compiling lol
  62. [12.7.2016 23:01:07] Anon: when is a person supposed to use cmake?
  63. [12.7.2016 23:01:32] Rochet2: every time they add or remove files or edit cmakelists files.
  64. [12.7.2016 23:01:47] Rochet2: when you change contents of an existing cpp you dont need to
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement