RMS Home | Guide Writing | Test Server | New Servers | Latest Reviews

Author Topic: Help.Grf to make mob names always visible  (Read 11165 times)

0 Members and 1 Guest are viewing this topic.

Offline dob_20

Help.Grf to make mob names always visible
« on: Feb 22, 2015, 08:24 pm »
To see a monster's name.you should move your mouse over the monster. My question is. Is it possible to make every monster's name visible through custom grf? Or any other way? Tnx for the help. I am willing to dwell deeper into grf editing if that's a must.

Advertisement

Offline Triper

Re: Help.Grf to make mob names always visible
« Reply #1 on: Feb 22, 2015, 09:09 pm »
I'm pretty sure that the names show based on how the server and the exe is coded. Ofc you could always edit each frame of each sprite in the grf to include the name but... good luck with life to do that to every monster lol

BTW, it would be easier to just swap/recolour the problematic sprites instead.

Offline exii

Re: Help.Grf to make mob names always visible
« Reply #2 on: Feb 22, 2015, 09:21 pm »
[dream shattering]Not possible with grf edits.[/dream shattering]
exii - leader of the nonsense army

finest low quality gw2 streams: http://www.twitch.tv/exii_against_the_world

Offline Tokeiburu

Re: Help.Grf to make mob names always visible
« Reply #3 on: Feb 22, 2015, 11:10 pm »
Well it's possible to some extent. Triper's correct, the server sends the mob's name to the client and his idea of showing up the name of the mob is actually a nice one!

There is, obviously, issues with the method. You can't show the name below the mob, because if you zoom out it'll show under the floor and you won't see it. Showing it above works fine, except if you zoom in and out, the text will change size as well. For example :



If that solution is fine with you, I can make these for all available sprites, just let me know! (On a side note, adding the name above the sprite is rather straightforward and it's done via a script xD!)

Offline MrMystery

Re: Help.Grf to make mob names always visible
« Reply #4 on: Feb 23, 2015, 12:59 am »
@Tokeiburu That's super cool. Mind sharing how you did it?

Offline Tokeiburu

Re: Help.Grf to make mob names always visible
« Reply #5 on: Feb 23, 2015, 02:25 am »
Well, not sure if this is what the OP would want, but here goes : http://www.mediafire.com/download/naw25l5a6l3bzp2/mobsWithName.grf

And to answer your question, this was made with Act Editor using the following script : http://pastebin.com/xif9KE8Z

Another screenshot :
(click to show/hide)

Offline itsmevincecee

Re: Help.Grf to make mob names always visible
« Reply #6 on: Jan 16, 2021, 12:12 am »
Hi Tokeiburu, i want to learn how to use your script. I can't use it and im new to this kind of stuff so if you see this kindly teach me or send me a guide on how to make a name above the mobs. Thanks!

Offline itsmevincecee

Re: Help.Grf to make mob names always visible
« Reply #7 on: Jan 25, 2021, 08:05 am »
Well, not sure if this is what the OP would want, but here goes : http://www.mediafire.com/download/naw25l5a6l3bzp2/mobsWithName.grf

And to answer your question, this was made with Act Editor using the following script : http://pastebin.com/xif9KE8Z

Another screenshot :
(click to show/hide)

Hi tokeiburu, this script has an error if i try to load it to Act editor. How to fix this?
https://imgur.com/3VgV3JI

Thanks!

Offline Ara

Re: Help.Grf to make mob names always visible
« Reply #8 on: Jan 26, 2021, 08:00 pm »
I went through and tried running it myself and it worked fine. I don't know what's causing your error, but I had to make a couple edits to the script.

First off, you need a mob_db.txt I guess. I just copied the one from here: https://github.com/rathena/rathena/blob/master/db/re/mob_db.txt
If the server you're playing on has custom monsters, you might need to add them into the mob_db.txt yourself.

I pasted this in my Ragnarok Online folder (I'm just going to be reffering to this as "C:\Games\NovaRO" because that's what mine's is called.)

Then, take a look at the script. Near the top, you can see these lines:

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\data.grf";
var newGrfName = @"C:\mobsWithName.grf";
var mobDbPath = @"C:\mob_db.txt";

You'll need to change the last 3 to your own Raganrok Folder. So I changed mine to

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\Games\NovaRO\data.grf";
var newGrfName = @"C:\Games\NovaRO\mobsWithName.grf";
var mobDbPath = @"C:\Games\NovaRO\mob_db.txt";

You'll also need to use GRF Editor and I guess make an empty grf in your Ragnarok Online folder called mobsWithName.grf.

Then you can paste the edited script into ACTEditor's script runner and run it.

-----------------------------

If your server also has monster sprites in a GRF that isn't data.grf, you'll have to switch out that code line for the other GRF as well.

(example: after I finish running the script with data.grf, I'd switch the code to say

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\Games\NovaRO\nova.grf";
var newGrfName = @"C:\Games\NovaRO\mobsWithName2.grf";
var mobDbPath = @"C:\Games\NovaRO\mob_db.txt";
You can see I changed data.grf -> nova.grf and mobsWithName.grf -> mobsWithName2.grf. Don't forget to make another empty GRF for this also. Run the script again and then merge mobsWithName.grf and mobsWithName2.grf and it should work fine.

Offline itsmevincecee

Re: Help.Grf to make mob names always visible
« Reply #9 on: Jan 26, 2021, 10:12 pm »
I went through and tried running it myself and it worked fine. I don't know what's causing your error, but I had to make a couple edits to the script.

First off, you need a mob_db.txt I guess. I just copied the one from here: https://github.com/rathena/rathena/blob/master/db/re/mob_db.txt
If the server you're playing on has custom monsters, you might need to add them into the mob_db.txt yourself.

I pasted this in my Ragnarok Online folder (I'm just going to be reffering to this as "C:\Games\NovaRO" because that's what mine's is called.)

Then, take a look at the script. Near the top, you can see these lines:

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\data.grf";
var newGrfName = @"C:\mobsWithName.grf";
var mobDbPath = @"C:\mob_db.txt";

You'll need to change the last 3 to your own Raganrok Folder. So I changed mine to

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\Games\NovaRO\data.grf";
var newGrfName = @"C:\Games\NovaRO\mobsWithName.grf";
var mobDbPath = @"C:\Games\NovaRO\mob_db.txt";

You'll also need to use GRF Editor and I guess make an empty grf in your Ragnarok Online folder called mobsWithName.grf.

Then you can paste the edited script into ACTEditor's script runner and run it.

-----------------------------

If your server also has monster sprites in a GRF that isn't data.grf, you'll have to switch out that code line for the other GRF as well.

(example: after I finish running the script with data.grf, I'd switch the code to say

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\Games\NovaRO\nova.grf";
var newGrfName = @"C:\Games\NovaRO\mobsWithName2.grf";
var mobDbPath = @"C:\Games\NovaRO\mob_db.txt";
You can see I changed data.grf -> nova.grf and mobsWithName.grf -> mobsWithName2.grf. Don't forget to make another empty GRF for this also. Run the script again and then merge mobsWithName.grf and mobsWithName2.grf and it should work fine.

This helps a lot. Thanks for your time.  /ok /ok /ok

Offline itsmevincecee

Re: Help.Grf to make mob names always visible
« Reply #10 on: Feb 06, 2021, 01:13 am »
I went through and tried running it myself and it worked fine. I don't know what's causing your error, but I had to make a couple edits to the script.

First off, you need a mob_db.txt I guess. I just copied the one from here: https://github.com/rathena/rathena/blob/master/db/re/mob_db.txt
If the server you're playing on has custom monsters, you might need to add them into the mob_db.txt yourself.

I pasted this in my Ragnarok Online folder (I'm just going to be reffering to this as "C:\Games\NovaRO" because that's what mine's is called.)

Then, take a look at the script. Near the top, you can see these lines:

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\data.grf";
var newGrfName = @"C:\mobsWithName.grf";
var mobDbPath = @"C:\mob_db.txt";

You'll need to change the last 3 to your own Raganrok Folder. So I changed mine to

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\Games\NovaRO\data.grf";
var newGrfName = @"C:\Games\NovaRO\mobsWithName.grf";
var mobDbPath = @"C:\Games\NovaRO\mob_db.txt";

You'll also need to use GRF Editor and I guess make an empty grf in your Ragnarok Online folder called mobsWithName.grf.

Then you can paste the edited script into ACTEditor's script runner and run it.

-----------------------------

If your server also has monster sprites in a GRF that isn't data.grf, you'll have to switch out that code line for the other GRF as well.

(example: after I finish running the script with data.grf, I'd switch the code to say

Code: [Select]
var mobFolder = @"data\sprite\¸ó½ºÅÍ\";
var dataGrfName = @"C:\Games\NovaRO\nova.grf";
var newGrfName = @"C:\Games\NovaRO\mobsWithName2.grf";
var mobDbPath = @"C:\Games\NovaRO\mob_db.txt";
You can see I changed data.grf -> nova.grf and mobsWithName.grf -> mobsWithName2.grf. Don't forget to make another empty GRF for this also. Run the script again and then merge mobsWithName.grf and mobsWithName2.grf and it should work fine.

How about a single monster? Is it possible to put a name on a specific monster? Thanks again.

Offline Ara

Re: Help.Grf to make mob names always visible
« Reply #11 on: Feb 06, 2021, 07:47 pm »
Uh I guess if you just want specific monsters, you just have to find the sprite in the GRF you exported earlier (mobsWithName.grf) and find the monsters you want to see the name for. Delete all the ones you DON'T want to see from the grf and you should be fine?