[RESOLVED] Alternate Window_Help?

Started by Punn, March 04, 2008, 07:25:35 pm

Previous topic - Next topic

Punn

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

Chaze007

so you need the defult window? cornfused here O.o
Always I Wanna Be With You! Make Believe With You!

fugibo

Could you please post the error message...?

Punn

March 04, 2008, 07:40:19 pm #3 Last Edit: March 04, 2008, 07:43:18 pm by mumerus
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.

fugibo

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.

Punn


fugibo

Sorry that I can't help you. I have no experience with the SDK, nor do I want any. Sorry.

Punn

Is there a way to change it? Like a different method?

Juan

I might try I just need to know what sdk version.
Dropbox Who need luck when you can make your own.
3ds Friend code: ShowHide
 4468 1422  6617

fugibo

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 =)

Punn

Alright then. Im using version 2.2

Juan

All I could find was sdk 2.3 and I can't get that sdk to crash =p. What scripts are using?
Dropbox Who need luck when you can make your own.
3ds Friend code: ShowHide
 4468 1422  6617

Blizzard

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.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nerissya

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


Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<

Blizzard

Yeah, loads of mini stuff by Lag-Seph.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nerissya

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


Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<

Fantasist

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.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)


The best of freeware reviews: Gizmo's Freeware Reviews




Blizzard

March 06, 2008, 10:18:32 am #17 Last Edit: March 06, 2008, 10:19:04 am by Blizzard
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
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

nerissya

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


Click here to feed me a Rare Candy!



I demand you to level up my pokemon. :<

Nortos

and 50% probably lag too much :P