[Help] MyMessage.Show(MyVar)

Post » Sun Jun 24, 2012 11:08 am

I working on adding a Version Controller based on Taewon's example.
I've got it work, but I'm having an issue with the display size.

After reading the wiki several times, I finally got the concept of how to show a message using a message form using a formatted string.

Spoiler
Scriptname ASAPVersionCheckerScript extends Quest;These are variables that will pretty much tell us if we should update or not;Current Version (New Version if any);Installed Version (is the one that is found in the saved-game variable listGlobalVariable Property ASAPCurrentVersion AutoGlobalVariable Property ASAPInstalledVersion AutoBook Property ASAPConfigurationBook Autofloat fUpdateInterval = 5.0bool bKeepAlive = TrueBool Function IsVersionCurrent()If ASAPCurrentVersion.GetValue() != ASAPInstalledVersion.GetValue()  Return FalseEndIfReturn TrueEndFunctionFunction CheckIfUpdateNeeded()RegisterForSingleUpdate(fUpdateInterval)EndFunctionFunction AddConfigurationBook()Actor Player = Game.GetPlayer()If Player.GetItemCount(ASAPConfigurationBook) > 0  Player.RemoveItem(ASAPConfigurationBook, Player.GetItemCount(ASAPConfigurationBook), False)EndIfPlayer.AddItem(ASAPConfigurationBook, 1)EndFunctionEvent OnUpdate()If !IsVersionCurrent()  AddConfigurationBook()  ASAPInstalledVersion.SetValue(ASAPCurrentVersion.GetValue())  ASAPUpdateMessage.Show(ASAPCurrentVersion.GetValue())EndIfIf bKeepAlive  RegisterForSingleUpdate(fUpdateInterval)EndIfEndEventMessage Property ASAPUpdateMessage  Auto

My message text in the message form : ASAP has been updated to v%.1f
But the message itself if displayed extremely small, not in the normal size as if you use a debug.notification.
Can anyone tell me what I need to do to show the message in the correct of larger size?

Edit: sorry about the code format - it didn't quite come through correctly.
User avatar
Doniesha World
 
Posts: 3437
Joined: Sun Jan 07, 2007 5:12 pm

Post » Sun Jun 24, 2012 11:03 am

It's buggy, try making a new message and only type in what you must without making edits. Use the fewest number of characters possible, your message is probably too long even though it may not have exceeded the limit. Making a whole new message form finally fixed it for me.
User avatar
Manny(BAKE)
 
Posts: 3407
Joined: Thu Oct 25, 2007 9:14 am

Post » Sun Jun 24, 2012 6:23 am

Figured it out.
Don't do an "enter" after the last character. The blank line causes the text to be "smushed".
User avatar
Anna Watts
 
Posts: 3476
Joined: Sat Jun 17, 2006 8:31 pm


Return to V - Skyrim