Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [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
- [12.7.2016 22:15:54] Rochet2: I think this might be a useful read if you are going to code some gossips
- [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
- [12.7.2016 22:17:07] Anon: Oh great i was just about to ask you, where could i start off
- [12.7.2016 22:17:48] Rochet2: take a look at the post I made there
- [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
- 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
- [12.7.2016 22:18:11] Anon: Will do
- [12.7.2016 22:18:11] Rochet2: nice
- [12.7.2016 22:18:26] Rochet2: what do you use to code?
- [12.7.2016 22:18:35] Anon: Visual studios 2013
- [12.7.2016 22:18:45] Rochet2: and you use intellisense?
- [12.7.2016 22:18:50] Anon: no
- [12.7.2016 22:18:54] Anon: i have no idea what that is
- [12.7.2016 22:19:00] Rochet2: its the autocomplete / suggestion tool
- [12.7.2016 22:19:06] Anon: oh god
- [12.7.2016 22:19:10] Anon: i knew i was missing something
- [12.7.2016 22:19:26] Anon: i know java has netbean but i didnt know c++ had something similar
- [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
- and only then start editing your scripts.
- [12.7.2016 22:20:39] Anon: i might have intellisense then
- [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
- [12.7.2016 22:21:27] Anon: it's a pretty useful tool
- [12.7.2016 22:21:59] Anon: ok no im an idiot
- [12.7.2016 22:22:06] Anon: works fine when i just open the sln file
- [12.7.2016 22:22:16] Rochet2: well, there you have it anyways
- [12.7.2016 22:22:26] Rochet2: do you know how to debug?
- [12.7.2016 22:22:31] Rochet2: or get a crash log?
- [12.7.2016 22:22:49] Anon: no
- [12.7.2016 22:22:59] Rochet2: how about output some text to console or something?
- [12.7.2016 22:23:06] Rochet2: like printing something
- [12.7.2016 22:23:07] Anon: i have a console to text output
- [12.7.2016 22:23:15] Anon: a server log
- [12.7.2016 22:23:24] Anon: if that's what you mean by output lol
- [12.7.2016 22:23:37] Rochet2: Well, you can print to the console or to the log files yeah
- [12.7.2016 22:23:39] Anon: i also have a crash log
- [12.7.2016 22:23:45] Anon: but i have no idea how to debug
- [12.7.2016 22:23:54] Rochet2: Do you compile in debug?
- [12.7.2016 22:24:05] Anon: No in release
- [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.
- But you can do once you actually get crashes.
- [12.7.2016 22:24:53] Rochet2: To debug you also need to compile in debug
- [12.7.2016 22:25:00] Anon: Oh
- [12.7.2016 22:25:06] Anon: we'll its worth the extra time then
- [12.7.2016 22:25:12] Anon: debug compile takes a while on this pc tho
- [12.7.2016 22:25:56] Rochet2: After compiling in debug you can start the server normally.
- 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
- [12.7.2016 22:26:07] Rochet2: Then you can set breakpoints in the visual studio editor and stuff
- [12.7.2016 22:26:22] Anon: what are breakpoints
- [12.7.2016 22:26:25] Rochet2: the step into and over and out controls are at the top as usual in most IDEs
- [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)
- [12.7.2016 22:27:22] Rochet2: Then you can go through the code line by line
- [12.7.2016 22:27:31] Rochet2: and stuff like that
- [12.7.2016 22:27:50] Rochet2: you can see the values of any variables etc
- [12.7.2016 22:28:12] Rochet2: useful when you have a bug you cant figure out
- [12.7.2016 22:28:22] Rochet2: you can just go in and see what the code does
- [12.7.2016 22:29:02] Anon: Yo these are actually the greatest bigginer tips a person could get
- [12.7.2016 22:29:28] Rochet2: and Im telling them because I didnt even know there was a wiki when I started : |
- [12.7.2016 22:29:46] Rochet2: you been to trinitycore wiki :D?
- [12.7.2016 22:30:07] Anon: yes i've visited the wiki a couple of times
- [12.7.2016 22:30:13] Anon: when i was compiling lol
- [12.7.2016 23:01:07] Anon: when is a person supposed to use cmake?
- [12.7.2016 23:01:32] Rochet2: every time they add or remove files or edit cmakelists files.
- [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