Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

UMS, error. Journal error. More!(PLs. Help)

Jeea

Member

It seems like Amanda's Super Simple Journal Script, the Universal Messaging Script and Blizzard's Party Switcher Script don't work together as a team... Anyone know how to fix this hectic bug?




If you are puzzled about what i'm talking about, maybe this would help:

I used the Script line:
$game_system.ums_mode = FIT_WINDOW_TO_TEXT $game_system.comic_enabled = true

At the game, so i played and tested the game with Party switcher, then the game says an error about the width of the face graphic. I tried to erase party switcher script, it went so well. The game is fine. I'm cool with that... I'm just requesting if anyone knows how to make Ums and the party changer script work fine with the script line i posted above. And I know what are you gonna ask about the Journal error.
I just thought that the Journal script had something to do with this too.


When i accessed amanda's script... It says that there is an error about the script line:
self.contents.draw_text(25, @n, 640, 32, item, 0)
Do you know what would trigger this error???



Thank you for your help......
 
You need to post a screenshot of the actual error, or type in the entire error. I know they look cryptic, but they do mean something.

Or you could compress your project & upload it, and post a link so we can help you debug it.

It may be something as simple as the order of the scripts.
 

Jeea

Member

Problem1_Journal.jpg

Here is the problem. I changed the Offset,,,,,,,,,,,,,,,,




Sorry for not replying so long
 

Jeea

Member

self.contents.draw_text(25, @n, 640, 32, item, 0) is the 90th line...

@brewmeister:I've tried and sure, it still doesn't work....



I've used the line 200, because I firstly made some couple events needing switches......
 

Jeea

Member

#==========================================================================
# Window_Journal
#------------------------------------------------------------------------------
# This window displays a journal.
#==========================================================================

class Window_Journal < Window_Selectable
# ------------------------
def initialize
super(0, 32, 460, 330)
#----------------------------------------------------------
# populate your journal with entries.
@data = []
@data[200] = "Escape the palace"
@data[201] = "Find The Mystery Person"
@data[202] = "Convince the guard"
@data[203] = "Find the missing Cat"
@data[204] = "Find the kid in Elundra"
@data[205] = "Find Cyrus"
@data[207] = "Deliver the slingshot"
@data[208] = "Bring Ross a man from Krublin"
@data[209] = "Find the missing dog"
@data[210] = "Find the bartender"
@data[212] = "Find a House to live in"
@data[213] = "Bring the needs of the beggar"
@data[214] = "Bring Kronos Back to life"
@data[215] = "Find Elli"
@data[216] = "Find Klaus"
@data[217] = "Talk to Ann's Mother"
@data[218] = "Graduate at CrestFall Academy"
@data[219] = "Attend the Persian Ball"


# this is the offset for your switches. If you start with switch 100, set
# @offset = 99

@offset = 199

### to change the windowskin for the journal
#self.windowskin = RPG::Cache.windowskin("Scroll.png")





#----------------------------------------------------------

@column_max = 1
refresh
self.back_opacity = 150
self.index = 0
end


#--------------------------------------------------------------------------
# * Draw the contents of the item window
#--------------------------------------------------------------------------
def refresh
if self.contents != nil
self.contents.dispose
self.contents = nil
end

# variables
@journal_height = (@data.size - 1)*32 # y coord of entire journal (# of entries - 1) * 32
@n = 0 # y coord for each entry
@item_max = 0 # max items to display

# draw the bitmap. the text will appear on this bitmap
self.contents = Bitmap.new(width - 32, @journal_height)

for i in 1...@data.size
if $game_switches[i + @offset] == true
draw_item(i)
@item_max += 1
end
end

end

#--------------------------------------------------------------------------
# * Draw an individual item in the window
# index : Index of the item to be drawn
#--------------------------------------------------------------------------

def draw_item(index)
item = @data[index]
rect = Rect.new(10, @n, 640, 32)
self.contents.fill_rect(rect, Color.new(0,0,0,0))
self.contents.draw_text(32, @n, 640, 32, item, 0)
@n += 32

end
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top