alternative keeps and postern doors, beating dead horse?

For any problems with Dawn of Light website or game server, please direct questions and problems here.

Moderator: Support Team

alternative keeps and postern doors, beating dead horse?

Postby ontheDOL » Thu Feb 02, 2017 12:00 am

Hi everybody,

So basically, I have been playing around with making a keep in a normal region , in this case Humberton keep in black mountains south.

I made a virtual keep there , and then added doors with /door show. There are nine doors total in the keep.
The front two large doors become Keep doors, while every one small door on the inside becomes a postern door. So i did a heap of searching on the forum, and it's asked a few times, and a few people saying they have fixed it (but not provided a solution)

I tried playing around with this code in GameKeepDoor
Code: Select all
public override bool IsAttackableDoor { get { if (this.Component == null || this.Component.AbstractKeep == null) return false; if (this.Component.AbstractKeep is GameKeepTower) { if (this.DoorIndex == 1) return true; } else if (this.Component.AbstractKeep is GameKeep) { if (this.Component.Skin == 10 || this.Component.Skin == 30) //old and new inner keep { if (this.DoorIndex == 1) return true; } if (this.Component.Skin == 0 || this.Component.Skin == 24)//old and new main gate { if (this.DoorIndex == 1 || this.DoorIndex == 2) return true; } } return false;
i added this
Code: Select all
if (this.Component.Skin == 0 || this.Component.Skin == 24) //old and new main gate { if (this.DoorIndex == 1 || this.DoorIndex == 2 || this.DoorIndex == 3 || this.DoorIndex == 4 || this.DoorIndex == 5 || this.DoorIndex == 6 || this.DoorIndex == 7) return true; }

which kinda works, the front two large doors are keep doors, as well as all the top small doors and one small inner door, while the other two small doors on ground level are still postern doors.

So i'm wondering if anyone has any better code for this? or another solution.
Thanks and sorry for long post!
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Thu Feb 02, 2017 5:20 am

Hi ontheDOL, and thanks for this solution.
if this works, it's a nice patch !
can you give me the file(s) for i test and commit it please ?
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: alternative keeps and postern doors, beating dead horse?

Postby PlanarChaosRvrtwo » Thu Feb 02, 2017 10:49 am

its an db issue onthedol all keep doors have door type 0 and it assign a door type to it if you want change away from default you need change the door type
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: alternative keeps and postern doors, beating dead horse?

Postby ontheDOL » Thu Feb 02, 2017 3:19 pm

i tried that , im not exactly sure what value to enter but i read "7" was the value for a keep door.
when i add the doors, 7 out of 9 were keep doors, yet they all have the same value except for "internalID" , so i dont think it is db related

"type" is all 0, yet doors are different, "flags" is all 0, yet doors are different.
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: alternative keeps and postern doors, beating dead horse?

Postby PlanarChaosRvrtwo » Thu Feb 02, 2017 3:25 pm

7 is the vaule for neutral keep dor its an combined id of keep door and neutral door
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: alternative keeps and postern doors, beating dead horse?

Postby ontheDOL » Thu Feb 02, 2017 3:32 pm

ok, so are you saying put 7 into the "type" field? because i've tried that and it does nothing.
or is there another value you are saying

in all of the previous posts on this forum about postern doors, no one simply says change a DB value, its all in the code. (but maybe its been updated....)

edited to clarify a few things, PVP ruleset, keep types are set to old.
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: alternative keeps and postern doors, beating dead horse?

Postby ontheDOL » Thu Feb 02, 2017 3:46 pm

ok i little update, i added this.DoorIndex == 8 and this.DoorIndex == 9 to the code i changed. recompiled and the remaining two postern doors changed to keep doors :) their internal ID's were 2083808 and 2083809 so i guess the last number there is related to door index.

im gonna go try it on swanton keep in black mountains north and see if its all good there too.
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: alternative keeps and postern doors, beating dead horse?

Postby PlanarChaosRvrtwo » Thu Feb 02, 2017 5:08 pm

No clue then
DOL dint only gaved me the data to start my server,
it also gaved me 16 amazing years with nice peeps,
and now its on me to return the favor.
User avatar
PlanarChaosRvrtwo
Database Team
 
Posts: 517
Joined: Thu Jul 07, 2016 6:21 am

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Fri Feb 03, 2017 7:02 am

Okai i tested in New Frontiers with Old Skins (use_new_keeps = 0), all doors works except one per keep, direction : IN to OUT.
The bug is player is jumber on the map floor level so in structure ...
Door ID : 710002002
ComponentID : 20
DoorIndex : 2
TowerNumber : 0
Right clic, show image.
sshot000.jpg
sshot000.jpg (173.04 KiB) Viewed 2740 times
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Fri Feb 03, 2017 8:31 am

I tested also with New Skins (use_new_keeps = 1) :
Bug with the two ground floor doors, direction IN to OUT.
The bug is player is jumber on the map floor level so in structure ...
DoorID : 710000004
ComponentID : 0
DoorIndex : 4
Right clic, Show image.
sshot002.jpg
sshot002.jpg (194.97 KiB) Viewed 2736 times
DoorID : 710000006
ComponentID : 0
DoorIndex : 6
Right clic, Show image.
sshot001.jpg
sshot001.jpg (191.45 KiB) Viewed 2736 times
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Fri Feb 03, 2017 8:35 am

Note the last DoorID number = DoorIndex
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: alternative keeps and postern doors, beating dead horse?

Postby ontheDOL » Fri Feb 03, 2017 4:00 pm

i wonder if you add the same code to the line above
Code: Select all
if (this.Component.Skin == 10 || this.Component.Skin == 30) //old and new inner keep { if (this.DoorIndex == 1) return true;
it might work for NF
- Unty -
Model Showroom and DOL guides
http://losojos-001-site1.btempurl.com
User avatar
ontheDOL
Developer
 
Posts: 311
Joined: Fri May 20, 2016 4:21 am
Location: Australian abroad

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Sat Feb 04, 2017 5:26 am

the IsAttackableDoor method is not responsible about the bug.
Need to find where teleport destination Z is defined.
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Sat Feb 04, 2017 6:26 am

For Z, i'm working to. Method Interact line ~379
Actualy it calculate Teleport Destination with player Heading considering if the door is in front but don't works correctly.
A very bad but working solution is to code each RvR door with fixed Destination.
I searching a better solution.
For your code i simplified it :
Code: Select all
public override bool IsAttackableDoor { get { if (Component == null || Component.AbstractKeep == null) return false; if (Component.AbstractKeep is GameKeepTower) { if (DoorIndex == 1) return true; } else if (Component.AbstractKeep is GameKeep) { if (Component.Skin == 10 || Component.Skin == 30) //old and new inner keep { if (DoorIndex == 1) return true; } if (Component.Skin == 0 || Component.Skin == 24) //old and new main gate { if (DoorIndex > 0 && DoorIndex < 10) return true; } } return false; } }
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am

Re: alternative keeps and postern doors, beating dead horse?

Postby HunabKu » Sat Feb 04, 2017 6:39 am

I tried to put a NF keep on other zones about NF and BG but never works.
I'm so interesting to see that on your server and help you to implement that, and i will put it on the DoL. :lol:
"C'est l'ignorance qui apporte le chaos, pas la connaissance."
Scarlett Johansson dans "Lucy" de Luc Besson
-------------------------------------------------------------------------------
"Ignorance brings chaos, not knowledge."
Scarlett Johansson on "Lucy" by Luc Besson
User avatar
HunabKu
Developer
 
Posts: 1905
Joined: Sat Jun 18, 2011 4:48 am


Return to “%s” Support

Who is online

Users browsing this forum: No registered users and 1 guest