boatboxes, hiding objects, adding objects to radar

Forum for alternative clients, mods & discussions on the same.

Moderator: Phades

boatboxes, hiding objects, adding objects to radar

Postby _Gunnar » Wed Jul 24, 2013 5:06 pm

hello,

1. i've noticed in some clients that you can see the solid box a boat takes up - would this be hard for me to add to enders?
2. a related question - is there any way that i can add objects to be hidden easily? e.g. village idols, etc
3. ...and add objects to the radar? I remember in salem there was a radar.xml file that i could edit - is there an equivalent here?

Thanks!
Image
User avatar
_Gunnar
 
Posts: 1430
Joined: Thu Dec 22, 2011 1:15 pm

Re: boatboxes, hiding objects, adding objects to radar

Postby Arcanist » Wed Jul 24, 2013 5:08 pm

1: Change the res
2: In union it's simply ctrl+alt+click
3: In union you edit haven.ini, I'd imagine it would be more difficult in enders since enders has pictures.
User avatar
Arcanist
 
Posts: 2664
Joined: Mon Mar 19, 2012 2:01 pm

Re: boatboxes, hiding objects, adding objects to radar

Postby _Gunnar » Wed Jul 24, 2013 5:38 pm

Arcanist wrote:1: Change the res
2: In union it's simply ctrl+alt+click
3: In union you edit haven.ini, I'd imagine it would be more difficult in enders since enders has pictures.


Thanks Arcanist, do you happen to know which res files I need to edit, or have a copy of ones with boxes?
Image
User avatar
_Gunnar
 
Posts: 1430
Joined: Thu Dec 22, 2011 1:15 pm

Re: boatboxes, hiding objects, adding objects to radar

Postby Xcom » Thu Jul 25, 2013 4:22 am

_Gunnar wrote:hello,

1. i've noticed in some clients that you can see the solid box a boat takes up - would this be hard for me to add to enders?
2. a related question - is there any way that i can add objects to be hidden easily? e.g. village idols, etc
3. ...and add objects to the radar? I remember in salem there was a radar.xml file that i could edit - is there an equivalent here?

Thanks!


1 and 2. You can add all hidden objects in a function inside mapview.java line 1207. The same function does the hitboxes.
This function hides objects. I added it somewhere in my code so you can hide objects by giving it a object and it will hide all similar named objects. Issue is to unhide you need to remove hidden objects and give it the same object again.

Code: Select all
   void hideStuff(Gob gob){
      String item = gob.resname();
      if(Config.hideObjectList.contains(item)){
         Config.remhide(item);
      } else {
         Config.addhide(item);
      }
   }

}[/code]

3. Config.java have the radar objects. The issue is that they also add a radar circkle around the object so Im not sure how to remove that. But you can add stuff to the list at line 211: private static void loadBeasts() {

You also need to add a res image to go along with it in your haven folder under the folder "res/mmap". Thats where the other animal reses are located. simply edit one of them and rename it then give the address of that res in your haven code.
User avatar
Xcom
 
Posts: 1105
Joined: Wed Dec 14, 2011 1:43 pm


Return to The Wizards' Tower

Who is online

Users browsing this forum: Claude [Bot] and 0 guests