Jump to content
luizragna

Custom Unit HP Bar System

Recommended Posts

9 minutes ago, Blinzer said:

i must be retarded but it doesn't work when i load it up

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

Share this post


Link to post
Share on other sites

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
5 hours ago, luizragna said:

He makes a mob with a HP Bar.

Do you added the data files? 

 

dude, the npc doesn't spawn anything for me.

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:                 .@count = getunits(BL_PC, .@units, false, "payon");
   207:                 for (.@i = 0; .@i < .@count; .@i++)

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.   Restore formatting

  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.