Adding new Param

04/09/2013 20:50 raventh1984#1
Hi elitepvpers,

Well i wanted to add an new Param for weapons/shields etc to the source.

So i looked at these 3 names in the entire source

#define dwDestParam3 dwDestParam[2]
#define nAdjParamVal3 nAdjParamVal[2]
#define dwChgParamVal3 dwChgParamVal[2]

And i added this underneath it with an diff #ifdef

#define dwDestParam4 dwDestParam[3]
#define nAdjParamVal4 nAdjParamVal[3]
#define dwChgParamVal4 dwChgParamVal[3]

I have compared all those things with the v19 Source of LTD to see if i missed out something. All is completed and uppon rebuilding no errors pops out.

So after i launched the DatabaseServer.exe i notice some errors that i didnt had before


The first error bugs me cause the weapon is there. But for some odd reason it cant find it.

Any help in this will be appriciated.
04/09/2013 21:12 Unleashed!#2
You cant simply define the new parameters, you have to load them in CProject. Look at functions like CProject::LoadPropItem (Correct me if the function name is wrong), and you'll get it very quickly.
04/09/2013 21:48 raventh1984#3
Well i dont just simply add it.

I have my source and i have the LTD source

I am looking for example dwDestParam in the LTD source this will give the right locations where i need to add it same as for nAdjParamVal dwChgParamVal
So then i am going to implant that to my source.

But somewhere it doesnt work like that. The files i have changed with those new params are the same. Checked it with winmerge just to be sure.