Jump to content

Dark Theme was set as default for all members. Please report any issues here.

luizragna

Custom Unit HP Bar System

Recommended Posts

There is a small problem some clients cant display it if inside a folder inside /illust

But works good if  directly inside /illust

My client won't

ex:  /illust/hpbar/0.bmp [won't work]

ex: /illust/0_hpbar.bmp [Works]

Share this post


Link to post
Share on other sites
16 hours ago, Habilis said:

There is a small problem some clients cant display it if inside a folder inside /illust

But works good if  directly inside /illust

My client won't

ex:  /illust/hpbar/0.bmp [won't work]

ex: /illust/0_hpbar.bmp [Works]

Yes, the illust folder don't like subfolders

I improved the topic to avoid problems

Edited by luizragna

Share this post


Link to post
Share on other sites
On 6/25/2018 at 6:15 PM, luizragna said:

Do you put the images in your data? (and not in GRF)

 

what is the npc supposed to do ingame exactly? because i think it's the npc that's not working.

Share this post


Link to post
Share on other sites
5 hours ago, Blinzer said:

what is the npc supposed to do ingame exactly? because i think it's the npc that's not working.

He makes a mob with a HP Bar.

Do you added the data files? 

Share this post


Link to post
Share on other sites
7 hours ago, luizragna said:

Strange, does some error appear somewhere?

Quote

Loading NPC file: npc/cities/limitless.txt[K [1m[31m[Error][0m: [?5h                                                                                                                                                                                                                                                                                                                                                                                                                                          [?5lscript error in file 'npc/cities/limitless.txt' line 204 column 4


    parse_line: expect command, missing function name or calling undeclared function
   201:         {
   202:                 .HP_Bar = 1;
   203:                 .mobGID = monster ("payon",148,226,"[T] HP Test",POPORING,1,strnpcinfo(0)+"::OnDie");
*  204:                         [1m[31ms[0metunitdata .mobGID,UDT_MAXHP,4000;
        [1m[36m~~~~~~~~~~~~~~~~~~~~~~~~[0m[1m[32m^[0m
   205:                         setunitdata .mobGID,UDT_HP,4000;
   206:                 [email protected] = getunits(BL_PC, [email protected], false, "payon");
   207:                 for ([email protected] = 0; [email protected] < [email protected]; [email protected]++)

Edited by Blinzer

Share this post


Link to post
Share on other sites

Cool idea. Unfortunately I think it has no better solution than 100 cutin image...

An idea to optimize it is to pass all your images in a bmp compressor. And another idea is to delete 1 image every 2 images (or more) : you will divide required images per 2 but you'll loose precision. However, I think a 1% precision isn't required.

Edited by vykimo

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.