Adding more stats to CP Status config (Xstats)

So a little background info before we dig into the meat of the question.  In my game, I plan to have weapon damage separate from my characters strength (atk).  To this end, I renamed the base stats

ATK => STR

DEF => CON

MAT => INT

MDF => WIS

AGI => DEX

LUK => LUK

ok so STR will represent the character's strength.  Strength without any weapons equipped essentially.  the new stat I made (damage) will be increased by equipping weapons to the characters.  For instance...

Mithril Sword: +38 dmg. 

So on and so forth like that.  Ok so now you know what I'm attempting to do, here is my problem

I am using N.A.S.T.Y. extra stats (http://forums.rpgmakerweb.com/index.php?/topic/998-nasty-extra-stats/) to create the new stats.  Then, I went into CP Luna Status Core and went to the section that defined stats and stats2.  

Spoiler
 ##------## * Stat name object sprite##------class CPLStatusStatsN < CPLStatusObject def initialize(*args) super(*args) self.z = setting_type[:z] end def pos(xp, yp) self.x = setting_type[:x] + xp self.y = setting_type[:y] + yp self.z = setting_type[:z] end def make_object_bitmap self.bitmap = Bitmap.new(setting[:width], setting[:stats].size * setting[:line_height]) return unless battler color1 = Color.new(*setting_type[:color]) color2 = Color.new(*setting_type[😮utline]) self.bitmap.font.color = color1 self.bitmap.font.out_color = color2 self.bitmap.font.bold = setting_type[:bold] self.bitmap.font.italic = setting_type[:italic] self.bitmap.font.name = setting_type[:font] self.bitmap.font.size = setting_type[:size] setting[:stats].each_with_index do |s,i| vocab = setting_type[:vocabs] rect = Rect.new(1, setting[:line_height] * i, setting[:width] - 2, setting[:line_height]) self.bitmap.draw_text(rect, vocab, setting_type[:align]) end end def setting super[symbol] end def symbol :stats1 end def setting_type setting[:names] endendclass CPLStatusStatsN2 < CPLStatusStatsN def symbol :stats2 endend

I added below that

class CPLSatusStatsN3 < CPLStatusStatsN def symbol :stats3 endendI figured that would be enough since stats2 is done the same way.  At any rate, I go to CP Luna Status Config and find the section for the stats.  Below the editable area for stats2, I add in the configurations for stats3 like so.

Spoiler
## Stats settings :stats3 => { :enable => true, :width => 220, :line_height => 24, :stats => [:dmg, :arm, :mag, :spd], :names => { :x => 332, :y => 318, :z => 500, :vocabs => ["damage", "Armor", "Speed", "Magic"], :color => [100, 200, 255, 255], 😮utline => [0, 0, 0, 255], :bold => true, :italic => true, :align => 0, :font => "Copperplate Gothic bold", :size => 16, }, ## Value text settings :values => { :x => 245, :y => 318, :z => 120, :color => [255, 255, 255, 255], 😮utline => [0, 0, 0, 255], :bold => false, :italic => false, :align => 2, :font => "Copperplate Gothic Bold", :size => 16, }, }, ## End stats settings
Pretty much the same settings as stats2 and stats1 except a few changes to reflect the different stats.  The stats are the same as they are in the N.A.S.T.Y. extra stats script. 

module Z26 STATS = [:dmg,:arm,:spd,:mag] #Default xstat formulas for ACTORS DEFAULT_LEVEL_FORMULA = { :dmg => 0, :arm => 0, :spd => 0, :mag => 0, }just to give you an idea.  That is an excerpt from the Extra Stats script.  So the stats are the same on both, and I don't get any errors.  They just don't appear.  I added stats3 to page 2 as so.

## Dual page settings :switch_button => :C, 😛age1 => [:stats1, :stats2, :elements], 😛age2 => [:rates, :stats3],but they don't show up.  I have tried placing the Extra Stats script above all other scripts and below all other scripts.  Neither work.  Can't figure this out for the life of me so any help will be appreciated.  More info can be provided.  In the spoiler below is a list of the scripts installed (in order).  Thank you in advance!

Spoiler
Nasty Xstats

Limit Break Core
Limit Break 7
Theolized - Skill based stat damage
Shadowmaster - Damage limit

YEA - Core Engine
YEA - Debug Luna Ver.
YEA - Battle Engine
YEA - Weapon Attack Replace

Rhyme's Window Identifier
Archeia Party Size

KGC Bitmap Extension
Cache Extended
Sprite Extended
Module MenuLuna
Module BattleLuna
Window_Base

Configuration Main Menu
Configuration Item Menu
Configuration Skill Menu
Configuration Status Menu
Configuration Save Menu
configuration Equip Menu
Configuration Shop Menu
Lunatic Config Main Menu
Lunatic Config Item Menu
Lunatic Config Skill Menu
Lunatic Config Status Menu
Lunatic Config Save Menu
Lunatic Config Equip Menu
Lunatic Config Shop Menu
Lunatic Common
Battle Luna Config

Default Status Menu

Battle Luna
Menu Luna

CP Menu Command Config
CP Menu Command Core

CP's Luna Status Config
CP's Luna Status Core

CP's Luna Save (Graphical)
CP's Luna Save Core *yami cursor edit*

Quest Menu
 + Quest Menu Config
 + Quest Menu Add-on

Name Input
 + Add-on Name Input 
 + Advanced Table

Window Cursor

Jet - Viewed Battle System

Disable party commands
Actor Commands
 + Escape Command

Damage Popup

YEA Compatible
YEA Battle Revival / Item Fix
Thank you!

 
The Luna Engine and N.A.S.T.Y. Extra Stats both change the status menu - in fact, I suspect there are several different scripts in the Luna Engine that might be the culprit there. I myself was unable to track it down properly when I tried, so I ended up basically gutting the Luna Engine down to the three or so functions I wanted from it. 😛
I'm pretty good with the editing process, but not so good with from scratch stuff when it comes to ruby.  I doubt I'd effectively do it myself.   thank you for your reply though!
At this moment in time, it's better to just do everything through Lunatic Status than using CP's when using external scripts like that. We'll see what we can do since this is a compatibility script request that is outside our 'officially supported' list.
Hmm I see.  Well thank you for the help regardless everyone.  I'll probably make damage a hidden stat for now.  That would be the easiest thing to do in order to go forward with development.  Thanks Archeia.  you're wonderful as always
If you can PM me a demo of the project indicating what you want, I can attempt to implement it <:3c
That would be awesome but I don't want to impose if you have more important things to do.  

I'll pm you with a downloadable demo of the game in a moment.  There will be a text document inside indicating what I'd like done with the stats.  I'll also include a mock up image so you can see visually as well.  I like to be thorough.  if there is something else you would need, I'll be happy to provide.  Give me a bit to get things in order ^.^

Original thread: https://forums.rpgmakerweb.com/threads/adding-more-stats-to-cp-status-config-xstats.39661/