Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Nightfox on October 17, 2008, 09:35:34 am

Title: Help
Post by: Nightfox on October 17, 2008, 09:35:34 am
Can you make this demo into a functioning demo. I need help. Thank you in advance.

the demo

http://www.sendspace.com/file/9ct51k (http://www.sendspace.com/file/9ct51k)
Title: Re: Help
Post by: Starrodkirby86 on October 20, 2008, 12:40:03 am
I couldn't find much of anything to correct the problems, but I can read from the script that some instructions need to be followed:

Spoiler: ShowHide
# To Use
#  - You can use this script in one of two ways
#    - 1) Set <Bitmap>.sfont to an SFont object then call <Bitmap>.draw_text
#    - 2) Call <SFont>.render(<String>) and then blt it to a Bitmap object
# Documentation
#  - SFont.new(<String/Bitmap>, <Array>, <Integer/String>)
#  - Where the first parameter is a filename (in Graphics/SFonts) or a Bitmap
#     object containing the Font data
#  - the second parameter is an Array of all of the characters in order in the
#    file the default is specified in @@glyphs below you
#  - the last parameter is either the width that should be used for the space
#    character or the character whose width you want to use for the space
#    character the default is " which is the width of the " character if "
#    character is not in the glyph then the height of the bitmap will be used


Maybe using it right away will eradicate this strange scripting problem? Also check if it's SDK compliant, though I highly doubt.
Title: Re: Help
Post by: Fantasist on October 20, 2008, 02:33:30 am
It was just a typo (typing mistake). Here's the fix:

Line 92 in the "SFont" script slot:
      if space.ia_a?(Numeric)

change to:
      if space.is_a?(Numeric)
Title: Re: Help
Post by: Blizzard on October 20, 2008, 05:45:52 am
Those lines seem identical to me. o_o
Title: Re: Help
Post by: Fantasist on October 20, 2008, 11:41:26 am
1. space.ia_a?
2. space.is_a?
:P
Title: Re: Help
Post by: Blizzard on October 20, 2008, 11:43:21 am
*rubs eyes* o_o
Title: Re: Help
Post by: Mightylink on October 20, 2008, 05:46:24 pm
i thought so too lol, its like an eye puzzle
Title: Re: Help
Post by: Blizzard on October 20, 2008, 05:56:04 pm
Worst thing is that I remember myself making that typo a few times.