Mandalor POI/Badges

oostos

Member
Joined
Mar 8, 2015
Messages
52
Hello,

Has anyone been able to get the granting of the badges and POI's to work on BATS Mandalore.

I have followed Lasko's little guide on badges and still no badges are granted and when I look in the character sheet I see this..

badge_d:[bdg_exp_man_mandalore_imperial_garrison]

Thanks for any help :)

Savage
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
The names in the datatable files differ.

For example:

badge_map.iff has entry:
bdg_exp_man_mandalore_imperial_garrison

name and description strings for the same badge have:
exp_man_mandalore_imperial_garrison

They should all have the same ID.
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
So Badge_n and badge_d the ID has to be the same in both areas?

Example:

badge_n = ID 152 bdg_exp_man_mythosaur_graveyard
badge_d = ID 143 bdg_exp_man_mythosaur_graveyard
badge_map.iff = INDEX 140 bdg_exp_man_mythosaur_graveyard


Should the ID value both be the same to include the INDEX value?


I also changed all the names to be the same.
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
Ok, I think I got everything working. Everything looks good..BUT..it still does not grant me a badge. I did change a name of a POI from the Shadow Collective Cave to the Beskar mine.

Here is my .tre file if you want to have a peek at it..

Mandalore Tre
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
Ok, tre looks fine to me..... next .....

Can you post here or on pastebin the spawn_manager entry for granting the badges.

The bit at the bottom of the file.
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
Here ya go!


}

mandalore_badges = {

{"badge_mythosaur_graveyard",1800,-1175,10,140},
{"badge_cave_of_darth_caedus",7374,256,10,144},
{"badge_vizzla_hideout",441,7489,10,146},
{"badge_bralor_clan_headquarters",-6655,5567,10,148},
{"badge_beskar_mine",-6998,3118,10,147},
{"badge_taung_warrior_bunker",-6354,288,10,143},
{"badge_keldabe_skybridge",1592,-6360,10,141},
{"badge_peace_park",6148,-6111,10,145},
{"badge_mandalmotors",6625,-6301,10,142},
{"badge_mandalore_imperial_garrison",6497,-4719,10,149},

}
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
ok, looks fine....

Just the string entries in:

/string/en/clientpoi_n
/string/en/clientpoi_d

And the datatable entry in

/datables/clientpoi/clientpoi.iff

The names must match in a 3 files.
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
I am confused, I thought the .tre file was ok? There are errors that need fixed?
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
OK....I found another .cpp file that lists badges. The location is /srv/server/zone/managers/director/DirectorManager.cpp

The way I found it..there was a badge spelled wrong bdg_accolade_home_show it was spelled bdg_accolate_home_show in all the server files, but the tre had the "accolade" spelling. So i changed the spelling and then my build failed on the DirectorManager.ccp, i just removed that badge.

Could you please take a look at my files. I am not sure what is going on. When I goto The Darth Cadeus cave I get Clan Bralor Headquarters badge granted to me....

here are my files..

Thank you for looking into it for me :)
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
OK.... one problem at a time...... remember that.....ALWAYS lol
Best way to learn tho tbh.

It's the cpp files.

Undo your changes (start with fresh unaltered files).

Forget the acolade/acolate thing for now.

Badge.h is fine if you had not changed the acolate entry. So just keep as is and change back to acolate. Your new badges were in the correct order.

Badge.cpp....

you've removed the acolate entry in the top "type" list and renamed it in the botttom "name" list, which has thrown the two lists out of sync. Names has one more entry.

The bottom name list has the badges in a different order from the badge_map.iff and the Badge.h files so its granting the wrong badge from that list.
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
Hello Lasko!

Thank's for the reply. I reverted the files back as you suggested. I have changed the order in the Badge.cpp as you suggested, but the wrong badge is still being granted.

The POI I am using is the Myosaur Graveyard. It is granting me the Accolate Home show.

Here are my new files.

Any ideas?

Oh...I also noticed that in badge.cpp at the top there is 159 entries, and at the bottom only 150. Not sure if that is the issue, just wanted to throw that out there, I don't think it is because POI's on other planets are working fine.

Thanks!
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
hey Lasko,

So using your suggestions from IRC. I made the two new files.

badge.cpp
badge.h

Now when I goto the POI, the onscreen messages is the wrong location, BUT, it does grant me the correct badge in my character sheet. I have enclosed a picture

POI Image
 

oostos

Member
Joined
Mar 8, 2015
Messages
52
Found the issue, in badge.h I had to set the... for (int i=0; i< 150; i++) I had to set that number to 1 higher then my last poi listed. My last one was 149. There is also a value just below this one that needed to be changed to 150. I did that and all worked!
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
oostos said:
Found the issue, in badge.h I had to set the... for (int i=0; i< 150; i++) I had to set that number to 1 higher then my last poi listed. My last one was 149. There is also a value just below this one that needed to be changed to 150. I did that and all worked!
It does mention this in the guide:)
 
Top Bottom