Aller au contenu

Photo

[Tutorial] How to add a new class from scratch


  • Veuillez vous connecter pour répondre
21 réponses à ce sujet

#1
Reynen Starfyre

Reynen Starfyre
  • Members
  • 52 messages
CONSOLIDATED INTO ONE THREAD TO KEEP UPDATED MORE EASILY:

www.damods.com/forums/index.php

Another reason I removed it from here is the engine on here breaks the script put in....
I don't know why it is doing this, but it really needs to be fixed.
I apologize to all the people this affected, I did not see the changes it made.

===================
NEW class STARTER KIT
===================


You can download the new class kit from our site

www.damods.com/forums/index.php

===================
NEW class STARTER KIT
===================


PICS:

Posted Image

Posted Image

Posted Image

Posted Image

Modifié par Reynen Starfyre, 23 novembre 2009 - 10:51 .


#2
Lo-Pan

Lo-Pan
  • Members
  • 15 messages
Thank you for posting this, I was interested in trying this, but I have no programming experience so this is most helpful!

#3
Challseus

Challseus
  • Members
  • 1 032 messages
Please, oh please put this on the WIKI Posted Image Perhaps linking from the current Tutorials page (at least until things get a little more organized).

#4
Reynen Starfyre

Reynen Starfyre
  • Members
  • 52 messages
I wish it was easier but it is not and there are alot of problems if you don't get it right....i was pulling my hair out sometimes.

#5
stuntpope

stuntpope
  • Members
  • 112 messages
Reynen, great effort. I had similar hair pulling experiences just adding different backgrounds, which is much simper than this.

I am not sure of two things though. Firstly what has any of this got to do with c++ (as referred to in your warning)? There is a small amount of c style scripting involved. Secondly how does this irrevocably corrupt your game? You are just modfying data and scripts. Does it screw with the Guids in the game somehow?

Perhaps it would be a lot safer to experiment with this in a stand alone module rather than as an addin to the single player campaign. In that case I can't see how you could currupt your game (please correct me if I am wrong). Also in that case I would recommend placing the GDA files in the module override instead of the core override as that way they will only ever affect your own module.

It would also be good to find a way of replacing scripts without having to overwrite the original core scripts, but maybe that is not possible.

Modifié par stuntpope, 22 novembre 2009 - 02:44 .


#6
sajahVarel

sajahVarel
  • Members
  • 160 messages
Good, very helpful and coming at the right time :P, I have one question though, I don't see where you put specializations for the classes (If you even did it in the tutorial), I found everything I needed beside that, I checked the scripts and 2DA but I don't see where the specs are actually assigned to a specific class (and if it is even possible to give more than 4 specs to a class), I thought it would be in a script but I didn't find anything :/.

#7
Reynen Starfyre

Reynen Starfyre
  • Members
  • 52 messages
If you look in the screenshot above you will see how they are defined:



SPEC_WARRIOR_

SPEC_WIZARD_

SPEC_ROGUE_



So If I wanted to add them to my cleric I would use



SPEC_CLERIC_

#8
AND04

AND04
  • Members
  • 154 messages
very nice - i bet some parts could have been done more mod friendly (as in not overriding the whole core files) but after working on it for some days i bet you were glad it worked at last ;)

#9
Scin Legion

Scin Legion
  • Members
  • 15 messages
Great work and thank you for taking the time to write a tutorial!

#10
Joshua Raven

Joshua Raven
  • Members
  • 182 messages
Very nice indeed!

#11
Reynen Starfyre

Reynen Starfyre
  • Members
  • 52 messages
Removed

Modifié par Reynen Starfyre, 23 novembre 2009 - 05:28 .


#12
Reynen Starfyre

Reynen Starfyre
  • Members
  • 52 messages
Screens show the full Cleric Skill Sets:

YES THESE ARE BOTH STAMINA / MANA SKILLS COMBINED INTO ONE class :)

PROOF OF CONCEPT

Posted Image

Posted Image

#13
Trefecka

Trefecka
  • Members
  • 128 messages
Great work!



I've been wondering, is there a way to access the constants in "plt_gen00pt_class_race_gend"? I've been fiddling around with the toolset, going over your tutorial but it looks like that you need to make some additions to get the character creator to work properly (or I've just been doing it wrong lol).



Anyways whatever help would be much appreciated!

#14
Nodrak

Nodrak
  • Members
  • 144 messages
Why are you not using a M2DA for the Abi_base and other 2da's?(I can see the reason for the backgrounds one)

Modifié par Nodrak, 25 novembre 2009 - 03:00 .


#15
jsog

jsog
  • Members
  • 106 messages
How is the game UI handling the stamina and mana? Do you only see one pool?



Curious. Won't try it until it's 100% stable... but... interesting.

#16
Reynen Starfyre

Reynen Starfyre
  • Members
  • 52 messages

Nodrak wrote...

Why are you not using a M2DA for the Abi_base and other 2da's?(I can see the reason for the backgrounds one)


Because as I stated there they don't work properly.  I tried it.
You also have to modify the main mage spells table in Abi, which I stated in the tutorial...
You also need to edit the corefiles.

I tried several ways not to alter the original files but there was really no good way around it.

As far as the other comment i had to create 36 new abilities for that class because you can't reuse old abilities as they are.  I just redefind the new sword and shield ones to use mana instead of stamina.

#17
Nodrak

Nodrak
  • Members
  • 144 messages
If you define your ABI_base worksheet as ABI_ whatever, (I used ABI_base_custom) you can compile it into an M2DA.  You should be able to override or add any row in this way.  If you leave your ABI_base worksheet named the same as the original, it will replace the whole worksheet.
The wiki has this somewhat mentioned here.

"Every worksheet listed in M2DA_base is actually a prefix. The system reads this prefix and then searches through all the 2DAs for the ones starting with this prefix and merges them together as one 2DA. For example: M2DA Id 0 is "ANIM_". The system looks through its list of 2das and finds "ANIM_base", "ANIM_combat" and "ANIM_walk". It will read and merge all 3 2DAs into an M2DA called "ANIM_".
...
2DAs are merged row by row, keyed on the ID column. If two rows in two different 2DAs to be merged have the same ID, the row in the 2da with the highest priority wins."


Any column changes will probably need to overrload the entire 2da.

ABI_Base is actually merged into an M2DA called ABI_.

Modifié par Nodrak, 25 novembre 2009 - 06:06 .


#18
DhammaWings

DhammaWings
  • Members
  • 125 messages
First, thank you Reynen for providing the tutorial!

Question: How do I add Specializations for my custom class? The problem is when I level-up, the Specialization Panel is empty - even though I have points available to use?

I've tried adding a Specialization in the varioius .xls files to no avail.

Thanks

Modifié par DhammaWings, 21 février 2010 - 06:22 .


#19
Phoenix787

Phoenix787
  • Members
  • 4 messages
So, I have a little dilemma that I hope someone can help me with. I am at the part when you are putting together the class utc in the toolset. When I go to the class dropdown menu, my custom class is not on the list and I can't add it.



What should I do?

#20
Phoenix787

Phoenix787
  • Members
  • 4 messages
Nevermind, I figured out the problem. I was going off the Toolset wikipedia tutorial (which I thought was the same), but it never had me place the guitypes before working on the utc.

#21
Sausfest

Sausfest
  • Members
  • 57 messages
Registratiion disabled? I can't get the startr kit :/

#22
yokmp

yokmp
  • Members
  • 58 messages
The download doesn't exist. How to get this now?