• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

How to change the CP value ?

Vampyre

Well-known member
Hello guys,

In the authoring kit, I try to change the value of the CP for the character creation. It is most likely a calculated value since I can't find anywhere hardcoded.

It is presented on top of the character creation screen and is like this :

CP.PNG


Do you guys have any idea where I can modify this value, or where it is defined the attribute costs ?

Many thanks for your help !
 
It's in the source code. I think the file is traits.str
You need to look for it though, it may appear in several locations (anything that decreases your amount would have a script that does the calculations).
 
Sir yes sir ! I've yet to find out where exactly this is calculated, but I've already been able to find and change my minimum values, as well as for the cost of those.

But I've yet to find out where it is calculated, since I need to write another similar counter for the abilities (in my games, traits and abilities are two different steps, and need two counters).

But thanks already for the fast spotting !
 
I think the tracker for CP is resCP in thing_miscellaneous.dat

you need to open the source code files and familiarize yourself with what is in them.
 
Thank you for the help.

That's was what I was trying to do, but it's not easy tracking down a value without a debugger to see where the call is coming from.

After much research, I finally managed to find out where it was all starting from. It was contained inside the actor.str

Thanks for the help and suggestion :)
 
I like to open all .1st, .core, .aug, .def, and .dat files in Notepad++. Then I do File -> Save Session... so I can open them all again easily.

With every file open, it's easy to find what you're looking for with Find All in All Open Documents, and you can even do some refactoring with Replace All in All Open Documents.

As for knowing what you're looking for, if you use Hero Lab's Develop -> Floating Info Windows -> Hero Fields (in this case), you can see that you are most likely looking for "acStartCP"


Using Notepad++ to Find All in All Open Documents reveals 3 locations in which it is used.
- form_config.dat
- thing_miscellaneous.dat
- actor.str


It looks like thing_miscellaneous.dat is setting up the Character Point pool,
actor.str is setting a default value, and
form_config.dat provides the ListOfValues "dropdown" options.




(of course, you'll need to set Language -> XML in Notepad++ to make things pretty)
 
Last edited:
Back
Top