GUI Party Dialogue Journal

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
Komag
Posts: 3659
Joined: Sat Jul 28, 2012 4:55 pm
Location: Boston, USA

Re: GUI Party Dialogue Journal

Post by Komag »

Very nice! You could even add a bit of code to say Hour, Minute, Second, if the number is 1.
Finished Dungeons - complete mods to play
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: GUI Party Dialogue Journal

Post by msyblade »

Very nice indeed! Great Idea, and thank you for sharing it with us. I'm going to package up the new release with a little more functionality today. Xanathar has added the ability drag the scrollbar, and a Wordwrap feature for long lines. You will just use addItemWordWrap instead of addItem, when you want to use it. Anyway, I will add Ryeath's time conversion table in also, (welcome to the credits!) the big numbers are a bit of a turnoff, so thank you again ;)
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: GUI Party Dialogue Journal

Post by Ryeath_Greystalk »

msyblade wrote:Very nice indeed! Great Idea, and thank you for sharing it with us. I'm going to package up the new release with a little more functionality today. Xanathar has added the ability drag the scrollbar, and a Wordwrap feature for long lines. You will just use addItemWordWrap instead of addItem, when you want to use it. Anyway, I will add Ryeath's time conversion table in also, (welcome to the credits!) the big numbers are a bit of a turnoff, so thank you again ;)
The working scroll bar would really be nice. I move using the arrow keys (have a hard time with wasd) and the only way I could move the highlighted line up and down was to stand against a wall and keep walking into it.

I'm glad you liked the time idea.
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: GUI Party Dialogue Journal

Post by Ryeath_Greystalk »

Komag wrote:Very nice! You could even add a bit of code to say Hour, Minute, Second, if the number is 1.
That's a good idea.

Honestly after 2 hours of reworking the formula and then scraping them because the numbers weren't right, I was just happy to see the right numbers show up correct.
Probably should have paid more attention in math class.
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: GUI Party Dialogue Journal

Post by msyblade »

Updated version of the Journal is up:

http://grimrock.nexusmods.com/mods/269/?

Timestamp conversion works like a charm, Ryeath!

Other updates include: (Thanx Xanathar)

-Draggable scroll bar.
-WordWrap.
-Optimized positioning for some resolutions.
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
Xanathar
Posts: 629
Joined: Sun Apr 15, 2012 10:19 am
Location: Torino, Italy
Contact:

Re: GUI Party Dialogue Journal

Post by Xanathar »

Thanx Xanathar
Thanks to you for releasing this! :)
Waking Violet (Steam, PS4, PSVita, Switch) : http://www.wakingviolet.com

The Sunset Gate [MOD]: viewtopic.php?f=14&t=5563

My preciousss: http://www.moonsharp.org
Ryeath_Greystalk
Posts: 366
Joined: Tue Jan 15, 2013 3:26 am
Location: Oregon

Re: GUI Party Dialogue Journal

Post by Ryeath_Greystalk »

Downloaded the update.

The working scroll bar is a great improvement. Thanks.
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: GUI Party Dialogue Journal

Post by LocalFire »

I'm having a hard time getting this to work, I can open it but I can't add text. It works with just the hudPrint but once I add the mdConversationList.addItem it gives the error "attempt to call field addItem a nil value" I've Also tried copying the example from the demo dungeon and it works fine (for adding the text from the e-book) but anything else gives me this error.This is what I'm using

Code: Select all

local aname = ""
   
   for i=1,4 do
      
      aname = party:getChampion(i):getName()
      if aname == ("Evante Morecari") then




hudPrint  ("Voice in the air:I am weak, so I have held back the others could not be saved")

hudPrint ("Voice in the air:The other I could not save but you are strong enough to have a chance")

hudPrint ("Voice in the air: Strong enough to do what I could not.....")

    mdConversationList.addItem("You hear a faint voice on the still air of the dungeon and strain your ears to hear it.")

end
I've checked the names on all the SE's to make sure they are right, I'm useless with scripting so any help would be great
And I went into the init.lua file to make sure its at the end of the file and I'm not using any other onDraw hooks or anything else just this.
My Dungeons
Paths of the Earth: viewtopic.php?f=14&t=5136
Beneath the Sands: viewtopic.php?f=14&t=5216
Videos: viewtopic.php?f=11&t=5443
User avatar
msyblade
Posts: 792
Joined: Fri Oct 12, 2012 4:40 am
Location: New Mexico, USA
Contact:

Re: GUI Party Dialogue Journal

Post by msyblade »

It does sound like there is a small typo somewhere causing the issue, if the demo is working for you. I am leaving for work right now so i cant investigate until later, My first thought would be a capitalization of certain characters in the "camelHump" format. (Meaning, how eachWordStartsWithACapInsteadOfUsingUnderscores.) you might compare your mdConverstaionList SE to the demo SE and see if you can find any anomalies bewteen them (my guess is that your SE may be missing one of the camelHumps, or missing a character). Let me know if you cannot find any difference between the two,and post a screenshot of your mdConverstaionList SE open in the editor (showing on the bottom right) So I can check the naming and first few lines for you. I don't think this next suggestion will help, but you can also try just the "mdConversationList.addItem" in a function, without the if statement preceeding it. (Remove the "If name=" and "hudPrint" lines to see if that is causing a conflict, however I doubt it.)
Hope this helps!
Currently conspiring with many modders on the "Legends of the Northern Realms"project.

"You have been captured by a psychopathic diety who needs a new plaything to torture."
Hotel Hades
User avatar
LocalFire
Posts: 261
Joined: Thu Feb 21, 2013 1:16 am
Location: Auckland, New Zealand

Re: GUI Party Dialogue Journal

Post by LocalFire »

Actually that second suggestion worked, I played around a bit and it seems I'll just have to put all the journal sections into seperate SE's as it seems that even having a second function in the SE causes it not to work
My Dungeons
Paths of the Earth: viewtopic.php?f=14&t=5136
Beneath the Sands: viewtopic.php?f=14&t=5216
Videos: viewtopic.php?f=11&t=5443
Post Reply