Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Punn on March 04, 2008, 07:25:35 pm

Title: [RESOLVED] Alternate Window_Help?
Post by: Punn on March 04, 2008, 07:25:35 pm
Once again.. SDK fucked up another script, but this time, a defualt script Window_Help, so I was wondering if someone can make a alternate one, similar to it but differently coded one.

(The one thats glowed is the one that is messed up)



Spoiler: ShowHide
#==============================================================================
# ** Window_Help
#------------------------------------------------------------------------------
#  This window shows skill and item explanations along with actor status.
#==============================================================================

class Window_Help < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, 640, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
  end
  #--------------------------------------------------------------------------
  # * Set Text
  #  text  : text string displayed in window
  #  align : alignment (0..flush left, 1..center, 2..flush right)
  #--------------------------------------------------------------------------
  def set_text(text, align = 0)
    # If at least one part of text and alignment differ from last time
    if text != @text or align != @align
      # Redraw text
      self.contents.clear
      self.contents.font.color = normal_color
      self.contents.draw_text(4, 0, self.width - 40, 32, text, align)     
      @text = text
      @align = align
      @actor = nil
    end
    self.visible = true
  end
  #--------------------------------------------------------------------------
  # * Set Actor
  #     actor : status displaying actor
  #--------------------------------------------------------------------------
  def set_actor(actor)
    if actor != @actor
      self.contents.clear
      draw_actor_name(actor, 4, 0)
      draw_actor_state(actor, 140, 0)
      draw_actor_hp(actor, 284, 0)
      draw_actor_sp(actor, 460, 0)
      @actor = actor
      @text = nil
      self.visible = true
    end
  end
  #--------------------------------------------------------------------------
  # * Set Enemy
  #     enemy : name and status displaying enemy
  #--------------------------------------------------------------------------
  def set_enemy(enemy)
    text = enemy.name
    state_text = make_battler_state_text(enemy, 112, false)
    if state_text != ""
      text += "  " + state_text
    end
    set_text(text, 1)
  end
end
Title: Re: Alternate Window_Help?
Post by: Chaze007 on March 04, 2008, 07:29:41 pm
so you need the defult window? cornfused here O.o
Title: Re: Alternate Window_Help?
Post by: fugibo on March 04, 2008, 07:30:03 pm
Could you please post the error message...?
Title: Re: Alternate Window_Help?
Post by: Punn on March 04, 2008, 07:40:19 pm
Quote from: Fallen Star on March 04, 2008, 07:29:41 pm
so you need the defult window? cornfused here O.o


A different one

Quote from: WcW on March 04, 2008, 07:30:03 pm
Could you please post the error message...?


When I go into the battle scene, when I select the skill, this comes up

Script 'Window_Help' line 26: TypeError occurred
cannot convert nil into String

EDIT: Yeah.. just that, when I get into battle and select the skill, that error pops up.
Title: Re: Alternate Window_Help?
Post by: fugibo on March 04, 2008, 07:55:33 pm
Lol, it's unfixable 'cuz of the SDK, I see. The SDK made the method on that line different, or maybe the one that calls it, so now it doesn't get called with the right string. Just lol at how stupid they are at RMXP.org.
Title: Re: Alternate Window_Help?
Post by: Punn on March 04, 2008, 07:58:28 pm
Fucking SDK -_-

Title: Re: Alternate Window_Help?
Post by: fugibo on March 04, 2008, 08:00:28 pm
Sorry that I can't help you. I have no experience with the SDK, nor do I want any. Sorry.
Title: Re: Alternate Window_Help?
Post by: Punn on March 04, 2008, 08:01:52 pm
Is there a way to change it? Like a different method?
Title: Re: Alternate Window_Help?
Post by: Juan on March 04, 2008, 08:30:16 pm
I might try I just need to know what sdk version.
Title: Re: Alternate Window_Help?
Post by: fugibo on March 04, 2008, 09:05:32 pm
No, the SDK works by taking every one of the default methods, raping them, letting Bill Gates rape them, then splitting them into a million little pieces. Without taking a look at the SDK, I can't do it. Juan can, though =)
Title: Re: Alternate Window_Help?
Post by: Punn on March 04, 2008, 09:20:48 pm
Alright then. Im using version 2.2
Title: Re: Alternate Window_Help?
Post by: Juan on March 04, 2008, 09:52:31 pm
All I could find was sdk 2.3 and I can't get that sdk to crash =p. What scripts are using?
Title: Re: Alternate Window_Help?
Post by: Blizzard on March 05, 2008, 03:45:15 am
100+ if I'm not wrong. His script editor is similar to mine in CP, the difference is that he has more slots, most of them are less than 100 lines and he didn't make them himself.
Title: Re: Alternate Window_Help?
Post by: nerissya on March 05, 2008, 09:31:41 am
Quote from: Blizzard on March 05, 2008, 03:45:15 am
100+ if I'm not wrong. His script editor is similar to mine in CP, the difference is that he has more slots, most of them are less than 100 lines and he didn't make them himself.



100+ scripts..? thats alot. O.O
Title: Re: Alternate Window_Help?
Post by: Blizzard on March 05, 2008, 09:45:51 am
Yeah, loads of mini stuff by Lag-Seph.
Title: Re: Alternate Window_Help?
Post by: nerissya on March 05, 2008, 10:22:23 am
Quote from: Blizzard on March 05, 2008, 09:45:51 am
Yeah, loads of mini stuff by Lag-Seph.


what does those things do then? o.O
Title: Re: Alternate Window_Help?
Post by: Fantasist on March 05, 2008, 11:02:54 am
Anyway, judging from the error message, the Window_Help doesn't need to be fixed. The method 'set_text' is called wrong somewhere in the battle scene, that's the problem. And it might even be some other script than the SDK itself. I'm not into battle scenes, or I could've probably traced it down... so sorry, I can't help you.
Title: Re: Alternate Window_Help?
Post by: Blizzard on March 06, 2008, 10:18:32 am
Quote from: nerissya on March 05, 2008, 10:22:23 am
Quote from: Blizzard on March 05, 2008, 09:45:51 am
Yeah, loads of mini stuff by Lag-Seph.


what does those things do then? o.O


Little add-ons from which 50% are useless and 50% can be done with events easier.
LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL
Title: Re: Alternate Window_Help?
Post by: nerissya on March 06, 2008, 12:34:04 pm
Quote from: BlizzHard on March 06, 2008, 10:18:32 am
Quote from: nerissya on March 05, 2008, 10:22:23 am
Quote from: Blizzard on March 05, 2008, 09:45:51 am
Yeah, loads of mini stuff by Lag-Seph.


what does those things do then? o.O


Little add-ons from which 50% are useless and 50% can be done with events easier.
LOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOLOL


I see... o.O
Title: Re: Alternate Window_Help?
Post by: Nortos on March 06, 2008, 04:46:46 pm
and 50% probably lag too much :P
Title: Re: Alternate Window_Help?
Post by: fugibo on March 06, 2008, 08:03:05 pm
Quote from: Nortos on March 06, 2008, 04:46:46 pm
and 50% probably lag too much :P


You're off by 50% there, buddy.

And blizz, I know of at least 3 you didn't make. But that's just being lazy and not re-inventing the wheel  :P