This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [TUTORIAL] Creating a shell of a class!  (Read 36953 times)

shawn

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 11
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #60 on: August 25, 2015, 09:15:43 pm »
wow crashes when clicking new class, :ugeek:  :evil:  :cry:
core: trinity
version: 335a

pretty sure the dbc files are fine but ill check again
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

hinur

  • Registred Member
  • Race Changer
  • *****
  • Posts: 29
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #61 on: November 21, 2015, 06:39:14 pm »
I'm new to this type of thing and I was wondering were you find and how I access world.sln?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #62 on: November 21, 2015, 06:41:58 pm »
You access TrinityCore.sln by making it.

EDIT: ArcEmu is not entirely different. The base concept is the same for every core archetype.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

hinur

  • Registred Member
  • Race Changer
  • *****
  • Posts: 29
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #63 on: November 21, 2015, 10:15:11 pm »
Quote from: "Ascathos"
You access TrinityCore.sln by making it.

EDIT: ArcEmu is not entirely different. The base concept is the same for every core archetype.

if you mean by compiling the server from scratch, then I wouldn't have it then. (I got the server as a repack)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #64 on: May 19, 2016, 01:21:25 am »
Bumping because I need help.

On TrinityCore.sln inside worldserver the cmakelist.txt does not have what the guide wants me to change. There is no movementhander references inside there. Any help?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #65 on: May 19, 2016, 01:47:23 am »
(Not) recent changes made it so cmake automatically adds every file in folder. Just add them and make them again.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #66 on: May 19, 2016, 02:01:19 am »
Quote from: "Ascathos"
(Not) recent changes made it so cmake automatically adds every file in folder. Just add them and make them again.

What do you mean? Adds which file in which folder? Add what where?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #67 on: May 22, 2016, 04:57:56 am »
Bump. Any help?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #68 on: May 22, 2016, 10:38:25 am »
Just follow the instructions and neglect modifying cmakelist.txt.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #69 on: May 22, 2016, 07:25:07 pm »
Quote from: "Ascathos"
Just follow the instructions and neglect modifying cmakelist.txt.

How do I get Necromancer.h and Necromancer.cpp then? Should I manually make the file?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #70 on: May 22, 2016, 11:26:33 pm »
So I went through everything and added my class' stuff into the files manually but when I build I get some errors in Necromancer.cpp. Says I don't have StdAfx.h. No such file or directory.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #71 on: May 23, 2016, 11:42:09 pm »
Is it even necessary for me to make necromancer.cpp and .h on trinitycore? stdafx cant be found.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ascathos

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 1129
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #72 on: May 23, 2016, 11:52:10 pm »
You CAN add those if you want to add custom scripts for your custom class. E.g. for spells that are not working (yet) or not properly imeplemented, e.g. because of custom mechanics.

Ignore that part. You'd create new files for them but they are neglectable if you do not intend to add custom stuff for them just yet.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #73 on: May 24, 2016, 12:18:53 am »
Quote from: "Ascathos"
You CAN add those if you want to add custom scripts for your custom class. E.g. for spells that are not working (yet) or not properly imeplemented, e.g. because of custom mechanics.

Ignore that part. You'd create new files for them but they are neglectable if you do not intend to add custom stuff for them just yet.

Okay. Most of the other .cpp and .h files that the original post wanted me to edit does not have what it wants me to change. I went through the files on my own though and edited them and I hope I got it all.

Things I've edited to include my new class:
player.cpp
statsystem.cpp
ObjectMgr.cpp
playermethods.h
shareddefines.h
worldsession.cpp
worldsession.h

I do eventually want to script spells for my class, though.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [TUTORIAL] Creating a shell of a class!
« Reply #74 on: May 25, 2016, 02:42:05 am »
Quote from: "Ascathos"
You CAN add those if you want to add custom scripts for your custom class. E.g. for spells that are not working (yet) or not properly imeplemented, e.g. because of custom mechanics.

Ignore that part. You'd create new files for them but they are neglectable if you do not intend to add custom stuff for them just yet.

So should I make stdafx then?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »