Page 3 of 8

Re: Huge script request - new party member(s)

Posted: Sat Dec 13, 2014 8:08 pm
by Batty
Mysterious wrote:Jkos good work man :) 10 Kudos??? What is a Kudo if you don't mind me asking? I guess that's the scoring system here? I think I just asked a stupid question, but ill stick my neck out lol.
Image
Interesting that it's from Greek, didn't know that. :) Maybe each secret solved = 10 kudos?

Re: Huge script request - new party member(s)

Posted: Sun Dec 14, 2014 6:51 pm
by JKos
New version: https://github.com/JKos/log2doc/archive/master.zip
- New larger GUI (modified from the party generation screen)
- Support for champion description
- Support for items
- onRecruit-hook
- onDrawStats-hook

champions.lua contains a plenty of useful functions, like drawItem, if someone want's to create for example a shop/trade GUI.
Let's hope that there are no bugs :)

Screenshot
Image

Re: Huge script request - new party member(s)

Posted: Sun Dec 14, 2014 7:01 pm
by Drakkan
JKos wrote:New version: https://github.com/JKos/log2doc/archive/master.zip
- New larger GUI (modified from the party generation screen)
- Support for champion description
- Support for items
- onRecruit-hook
- onDrawStats-hook

champions.lua contains a plenty of useful functions, like drawItem, if someone want's to create for example a shop/trade GUI.
and NOW I wonder how many cudos you deserve :shock:
really wonderfull and not just from visual side. thanks

EDIT: small request - is there some function that could be added that if GUI is displayed, game is "freezed" ? means you cannot move till closing GUI manualy or making some option.
Ps: observation - in case there is more items than could fit in gui they are automaticly droped before party when starting editor. I do not mind as I do not plan to give more than like 10 items to new party member

Re: Huge script request - new party member(s)

Posted: Sun Dec 14, 2014 7:48 pm
by JKos
Freeze world is possible, but I solved the problem so that if the party moves the gui is automatically closed.
Items are stored in a dynamically created ContainerItem-component and it's default capacity is 9, I think that it should be possible to allow more items by changing the type of the container. But they wont fit to the GUI, so I think 9 is good.

Re: Huge script request - new party member(s)

Posted: Sun Dec 14, 2014 10:30 pm
by Eleven Warrior
By god Jkos that is super awesome. Soon you will have Kudos coming out your ears, ill give 2 x 10 for this :) Are you going to make this GUI into a shop? Buy item sell items. I reckon you can do it although it's big ask ahy. LOG 2 Needs a Shop like Allios made for LOG 1.

Once again awesome work mate big pat on the back :o

Re: Huge script request - new party member(s)

Posted: Wed Dec 17, 2014 11:49 pm
by Drakkan
Hi Jkos, I have following problem - in case I set any custom portrait to champion script (in part

portrait='assets/textures/portraits/human_female_04.tga',

editor crash when I try to display champions portrait in displayed GUI (just hover with mouse over name of the champion). DO need that picture have something special ? It was working for previous version of your GUI system.
Image

Re: Huge script request - new party member(s)

Posted: Fri Dec 19, 2014 5:23 am
by Eleven Warrior
Hmmmm Is it the size of your picture Drakkan - I must get back to the editor and check this out thxs for the tip :)

Re: Huge script request - new party member(s)

Posted: Fri Dec 19, 2014 12:07 pm
by Drakkan
Eleven Warrior wrote:Hmmmm Is it the size of your picture Drakkan - I must get back to the editor and check this out thxs for the tip :)
tried default 128x128 tga format,aslo 75x75 but neither is working. THere are no clues what is the correct size :/

Re: Huge script request - new party member(s)

Posted: Mon Dec 22, 2014 7:39 pm
by JKos
There is nothing special in my script when drawing champions, I just use context.drawImage(filepath,x,y) method, so there must be something wrong with your image format or filepath. Sorry but I can't help you more with this.

Re: Huge script request - new party member(s)

Posted: Tue Dec 23, 2014 12:31 am
by Isaac
Drakkan wrote:Hi Jkos, I have following problem - in case I set any custom portrait to champion script (in part

portrait='assets/textures/portraits/human_female_04.tga',

editor crash when I try to display champions portrait in displayed GUI (just hover with mouse over name of the champion). DO need that picture have something special ? It was working for previous version of your GUI system.
Image
** I think that Xanathar may have run into the same problem in his own mod... It was the same situation; and was the image at fault, but I don't recall what the actual problem was.

** Could it be that the dds file must not be compressed?

(Also... Is it a DDS file that you are using?)