Ask a simple question, get a simple answer

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
SluisE
Posts: 8
Joined: Fri Nov 30, 2018 4:56 pm

Re: Ask a simple question, get a simple answer

Post by SluisE »

Eleven Warrior wrote: Wed Mar 18, 2020 10:12 am I trying to get this potion to work when the champ drinks it the food bar should go up but, this potion here is not working Help...

defineObject{
name = "potion_restore",
baseObject = "base_item",
components = {
{
class = "Model",
model = "assets/models/items/flask.fbx",
},
{
class = "Item",
uiName = "Potion of Restoration",
gfxIndex = 148,
weight = 0.3,
stackable = true,
description = "Drinking the potion will cause the champion to be bestowed with a torrent of powerful energy and healing that cleanses ailments and provides nourishment.",
traits = { "potion" },
},
{
class = "UsableItem",
sound = "consume_potion",
emptyItem = "flask",
onUseItem = function(self, champion)
playSound("consume_potion")
champion:regainFood(350) --- This wrong it crashes
return true
end,
},
},
tags = { "zim_assets" },
}
Try this: champion:consumeFood (350)

However, for energy and health you have to use regain.
minmay
Posts: 2768
Joined: Mon Sep 23, 2013 2:24 am

Re: Ask a simple question, get a simple answer

Post by minmay »

bongobeat wrote: Wed Mar 18, 2020 2:35 pmMay I ask how you did the dm portraits in the dm ressource asset?
I didn't do those, germanny did. You'd have to ask him.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

bongobeat wrote: Wed Mar 18, 2020 2:35 pm May I ask how you did the dm portraits in the dm ressource asset?
What is the question being asked? [exactly]
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: Ask a simple question, get a simple answer

Post by bongobeat »

well I was wondering how (I thought that was minmay) Germanny made portrait of 256x256, based certainly on low quality samples.

I wanted to do the same thing on some of the log2 portrait.
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Sutekh
Posts: 126
Joined: Sun Nov 25, 2012 9:58 am
Location: UK

Re: Ask a simple question, get a simple answer

Post by Sutekh »

Germanny used a set of portraits originally done by Angry Meteor. These were based on the ones from Dungeon Master, and were in a higher resolution to start with.
User avatar
Isaac
Posts: 3172
Joined: Fri Mar 02, 2012 10:02 pm

Re: Ask a simple question, get a simple answer

Post by Isaac »

bongobeat wrote: Thu Mar 19, 2020 10:40 pm well I was wondering how (I thought that was minmay) Germanny made portrait of 256x256, based certainly on low quality samples.

I wanted to do the same thing on some of the log2 portrait.
Do you mean upsampling?

Image

*Upsampling does introduce image degradation (sort of; actually interpolation).
Sutekh wrote: Thu Mar 19, 2020 11:39 pm Germanny used a set of portraits originally done by Angry Meteor. These were based on the ones from Dungeon Master, and were in a higher resolution to start with.
Aha.
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: Ask a simple question, get a simple answer

Post by bongobeat »

Actually I tryed a resize of 128x128 portrait to 256x256 while increasing the resolution, but the result look as good/bad as your try.
I suppose there is not many solution to have something better except resizing from a better quality.
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Ask a simple question, get a simple answer

Post by Zo Kath Ra »

bongobeat wrote: Fri Mar 20, 2020 2:17 pm Actually I tryed a resize of 128x128 portrait to 256x256 while increasing the resolution, but the result look as good/bad as your try.
I suppose there is not many solution to have something better except resizing from a better quality.
How did you scale the image?
https://en.wikipedia.org/wiki/Image_scaling
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: Ask a simple question, get a simple answer

Post by bongobeat »

By increasing resolution, setting size dimension to 192x192 or more, and using a resampling tool best for enlarging image.

Also I have try on waifu2x:
size is doubled

Image

By the way, I just had an email from the creator of the LOG2 portraits, Emile Denis.

I've been contacting him about better quality portraits, and he said that he will aggree to give me the hd portraits, but he's not sure if he has the right to do that.

He said that AH are legaly the owner of those drawings.

Can he share those files or must I ask authorisation to AH?
Last edited by bongobeat on Fri Mar 20, 2020 7:18 pm, edited 1 time in total.
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
Zo Kath Ra
Posts: 931
Joined: Sat Apr 21, 2012 9:57 am
Location: Germany

Re: Ask a simple question, get a simple answer

Post by Zo Kath Ra »

bongobeat wrote: Fri Mar 20, 2020 7:08 pm By increasing resolution, setting size dimension to 192x192 or more, and using a resampling tool best for enlarging image.
That's too vague for me, can you be more specific?
Post Reply