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!
boatboxes, hiding objects, adding objects to radar
Moderator: Phades
-
_Gunnar
- Posts: 1430
- Joined: Thu Dec 22, 2011 1:15 pm
-
Arcanist
- Posts: 2664
- Joined: Mon Mar 19, 2012 2:01 pm
Re: boatboxes, hiding objects, adding objects to radar
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.
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.
-
_Gunnar
- Posts: 1430
- Joined: Thu Dec 22, 2011 1:15 pm
Re: boatboxes, hiding objects, adding objects to radar
Thanks Arcanist, do you happen to know which res files I need to edit, or have a copy of ones with boxes?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.

-
Xcom
- Posts: 1105
- Joined: Wed Dec 14, 2011 1:43 pm
Re: boatboxes, hiding objects, adding objects to radar
1 and 2. You can add all hidden objects in a function inside mapview.java line 1207. The same function does the hitboxes._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!
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);
}
}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.