Page 344 of 396
Re: Ask a simple question, get a simple answer
Posted: Wed Mar 18, 2020 4:12 pm
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.
Re: Ask a simple question, get a simple answer
Posted: Wed Mar 18, 2020 6:20 pm
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.
Re: Ask a simple question, get a simple answer
Posted: Wed Mar 18, 2020 9:08 pm
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]
Re: Ask a simple question, get a simple answer
Posted: Thu Mar 19, 2020 10:40 pm
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.
Re: Ask a simple question, get a simple answer
Posted: Thu Mar 19, 2020 11:39 pm
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.
Re: Ask a simple question, get a simple answer
Posted: Thu Mar 19, 2020 11:47 pm
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?
*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.
Re: Ask a simple question, get a simple answer
Posted: Fri Mar 20, 2020 2:17 pm
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.
Re: Ask a simple question, get a simple answer
Posted: Fri Mar 20, 2020 5:49 pm
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
Re: Ask a simple question, get a simple answer
Posted: Fri Mar 20, 2020 7:08 pm
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
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?
Re: Ask a simple question, get a simple answer
Posted: Fri Mar 20, 2020 7:17 pm
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?