This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] - WoD Garrisons  (Read 2258 times)

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
[QUESTION] - WoD Garrisons
« on: September 17, 2014, 01:48:40 pm »
Greetings,

I have a question,
How do you think that are Garrisons made / coded?

I mean, every player has it's Garrison, with a personal name. How can that be handled?
And every player has a personal phase or something like that.

Is it possible to implement something like this on 3.3.5?

Thanks.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #1 on: September 17, 2014, 02:28:44 pm »
Yes.  This would be one of the easier things to port.

The player object contains player unique information. Modify this class

The UI is lua/xml, backport it.

Making it instanced is simple in theory, the server controls who sees who, just have creatures with a field that states what player that belong to and only push them to that player. Same with objects. Don't push players to other players in that zone.

And so on. Simple programming challenge. Can't really make a tutorial for this.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #2 on: September 17, 2014, 02:48:15 pm »
The actual implementation of garrisons has a shitload of in-client code. Hacking it together might be a ... hack. A huge one. But certainly, player-specific zones have been possible forever.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #3 on: September 17, 2014, 03:54:27 pm »
Just saying that it's possible is not helping me that much to be honest.

I would like to hear atleast a single idea of how to, then I can easily get it, but just saying it's easy / possible doesn't help.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #4 on: September 17, 2014, 04:15:11 pm »
Quote from: "Krang Stonehoof"
Just saying that it's possible is not helping me that much to be honest.

I would like to hear atleast a single idea of how to, then I can easily get it, but just saying it's easy / possible doesn't help.

I told you how. I even answered the 2 specific parts.

Can't program? Can't tell you how to do that.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

kojak488

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 351
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #5 on: September 18, 2014, 01:53:58 am »
Quote from: "Krang Stonehoof"
but just saying it's easy / possible doesn't help.

Well it's a damn good thing that Stoneharry didn't say just that, eh?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #6 on: September 18, 2014, 07:04:19 am »
I'm talking actually about Schlump who just said it was possible forever, not about the help I got from Stoneharry, I really thank you, your post was really useful to be honest.

But it's not the first time I see a post from Schlump just saying it's easy / possible and that's all he got to say.
I'm sorry if you get me wrong, no offense, but a small idea could come in hand.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Krang Stonehoof

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 164
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #7 on: September 18, 2014, 07:09:09 am »
Well, "Just have creatures with a field that states what player that belong to and only push them to that player", can you explain that to me a bit? I don't know how that would be possible, to be honest.

And I said that thing about Schlump because Stoneharry said pretty much everything and he said it will be like a hack, like it won't work.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #8 on: September 18, 2014, 07:48:17 am »
Why should schlumpf tell you again the same stuff stoneharry said?  He only added the point that is is possible for a long time and warned you that it can realy. Get hacky.

I dont see anythin negativ in this post.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #9 on: September 18, 2014, 07:02:59 pm »
Quote from: "Krang Stonehoof"
Well, "Just have creatures with a field that states what player that belong to and only push them to that player", can you explain that to me a bit? I don't know how that would be possible, to be honest.

And I said that thing about Schlump because Stoneharry said pretty much everything and he said it will be like a hack, like it won't work.

Indeed, Schlumpf just added to what I said... It would be hacky to backport it.

The map system works via 'cells' which is like an area in a grid. Cells are activated and deactivated as players move around, and only a certain radius of cells are pushed to each player depending on their location.

You would modify it so that certain zones only push creatures to players where the creature belongs to the player.

One way to achieve this, which probably is not the best way, is to add a reference to the player's low GUID in the creature class that if filled will only be pushed when a player that matches that reference is requesting that cell.

The cell system is very complicated.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

deep6ixed

  • Contributors
  • Wiki Incarnate
  • *****
  • Posts: 189
    • View Profile
Re: [QUESTION] - WoD Garrisons
« Reply #10 on: September 18, 2014, 08:09:06 pm »
I think how I could see it working if the Garrison area was it's own map and the instance ID was somehow bound to the player id, so that that first time the player enters the area it would lock him into it.  

The only questions I would have are:

What happens if the player is online?  Would the instance remain loaded in memory? As this could be a huge drain on resources.

Would there be a way to flush unused instances out of the database as characters got deleted?  

If I knew more about c++ than the small amount I knew now, I could see this working out as guild housing.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »