Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- okay so no max we don't need UI because
- I specifically you don't want that so I
- specifically wrote the first version is
- to use slash commands because
- I want to test the system first and see
- if we like it as a foundation and then
- built UI otherwise if we build the UI
- first and then we decide we hate the
- underlying system waste of time so okay
- so okay so the basically the I broke it
- into I started by breaking into two
- parts right so I've got city building
- multiplayer city building and
- multiplayer world buildings right those
- are kind of two separate similar but
- unconnected but separate vectors we have
- to go down and then each of those there
- turned out to be so much work there that
- I broke them into phase 1 and phase 2
- and then I went back and looked at phase
- 1 and decided it was still too heavy so
- I made a phase 1.5 I probably should
- have made it 1 2 and 3 but I didn't so
- anyway so there's like six parts there's
- city building 11.5 and 2 we're old
- building 11.5 and 2 and I put them in
- priority order and I kind of leapfrog
- between the two so it goes city building
- 1 world building 1 city building 1.5
- we're all building 1.5 city building 2
- world building to that make sense sort
- of it's not really but anyway all right
- all you have to do is start at the
- beginning and make the stuff in order
- and the phases numbers don't make any
- difference
- all right so okay so I went through
- first I just put down the basic
- definitions of stuff that's already in
- and working like here's the world grid
- here's the world grid here's what a
- parcel is the world owner who's called a
- monarch the fact that we have district
- overall global restrictions right so you
- can set your world public or private if
- you say public it means anybody can come
- in unless they're on the banned list if
- you said it private it means the only
- people who can come in are the people on
- the allowed players list that all works
- already so I'm building on that as a
- base so I also like I defined a term of
- a noble as being a person who has been
- given world building access on this
- world so if I have a kingdom and I want
- you to be able to draw parcels on it I
- call that
- nobles list so it means you remember the
- already on the loud player and on top of
- that you've been given nobel access
- which means you can add and drop parcels
- and then I did the same thing at the
- city building level with vassals which
- is if you're the if you're Noble and you
- drop a parcel you're that parcel owner
- and then you have a vassals list which
- is people who are allowed to drop
- buildings on their right you with me so
- far so okay so let's just to go through
- it so everybody's got it so I got the
- world has a monarch actually we'll put
- the monarch up here so the monarch we
- can think of as the admin repair the
- world owner then the ultimate root-level
- world owner alright so that's the the
- world has the monarch underneath that
- then you've got a list of allowed
- players and that's just people who can
- log-in inside that you have an admin
- right which is a noble and then of those
- Nobles they can drop a parcel and they
- are the parcel owner and underneath that
- you can have a list of vassals who are
- already on the allowed players list it's
- really not that bad it seems kind of bad
- but when you go through it it's pretty
- pretty standard stuff like it's the same
- type of thing you'd see in an operating
- system like units I have a bunch of
- users or some of them have admin so are
- you thinking maybe like no the amount of
- nobles is like the token limit no four
- or five eventually we'll probably have a
- limits and I put that stuff in a 1.5 the
- second phase which is to put weight
- limits on so for example if I make you a
- noble I can say and I'm only giving you
- access to be able to drop up to 20 cells
- a cell being one of these grid squares
- I'm only letting you drop up to 20 cells
- worth of parcels and then I let Bentley
- in he's gonna be a noble but I don't
- trust him as much okay I mean who would
- right and I'm only gonna give him like
- five five cells it is it marked off and
- I can't touch him and he can't touch not
- right now so that's so phase one is just
- if I make you a noble you have full
- control over the world I can still kick
- you out and I can move your stuff around
- and you can
- move your own stuff around but you can
- place it anywhere there's no restriction
- on placement and initially there's no
- restriction on how much the quantity or
- location but once I placed it Tommy the
- horrible no will be crime in you can't
- change it I can move your stuff you can
- move your stuff I can I can pick up your
- stuff you can pick up your stuffs he
- can't and vice versa right so version
- 1.5 then is when I added the capacity
- limits so it's I can now you can put on
- 20 and you can put a five and then phase
- two was adding regions where I can
- define an area as a north and say John
- you can only use your 20 cells within
- this region which I saw me you can only
- use your five cells down here in the
- South right so eventually we get there
- but I tried to build it as layers of the
- onion so anyhow usually you've circled
- back around to some of the original
- ideas and thoughts that you had you yeah
- I mean if effectively I've tried to
- simplify it down to the essence and I've
- tried to stage it out in complexity so
- that we're building towards it because
- we have players then playing right now
- right yeah so the next version that
- comes out they're gonna have vendors so
- they can drop in there in their own
- their own kingdoms but there's no
- multiplayer or
- ability so it's going to kind of be the
- whole loop like I can go to a campaign
- world and I get resources I can take
- them to you and you can craft them you
- can put stuff in your vendor and then
- Tommy can come to your world and buy it
- that'll work but if you actually think
- through it as a player it means that
- every player will have their own Kingdom
- with their own shop and their own vendor
- to login to that's not a very good
- shopping experience right it's not like
- it's worse than it's not even it's not a
- mall it's worse than even like a farmers
- market like it's literally having to go
- from one farm to the next to the next to
- buy every to look and shop for
- everything so that's that's kind of
- crappy so that's why I put a city
- building one as the first thing on the
- list so let's start with that one
- actually so so I also did a thing here
- about taxes I mentioned taxes vendors
- has sales tax built the vendor system
- that's about to come online does have a
- sales tax system in it but initially the
- only taxes supported his system tax
- which is the basically the overall
- charge that we that the system takes so
- having a parcel owner tax and then a
- Kingdom
- tax we're laying the foundation for it
- but those come online and later phases
- to is that automatic the system tax is
- automatic so there's a just and I don't
- remember what it's sent to but it's like
- you know seven percent or something like
- that if any transaction there's a tax
- that's just taken out by the system on
- top of that the parcel owner will be
- able to have a knob where they can say I
- want from zero to one hundred percent of
- additional tax and then the Kingdom
- owner can say and I want an additional 0
- to 100 percent on top of that as well so
- that'll be something that is negotiated
- between the players like I can if I'm
- the parcel owner and I want you to come
- bring your shop here I can say I'm gonna
- offer you a break I'll make it only 5
- percent or whatever so that's really
- cool I think it is cool so longer-term
- we're gonna want to give them more
- granularity and I can say on Tommy's
- shop it's ten percent but on your shop
- it's five of course right because that's
- what I would do but that's an eventual
- thing initially you know we're gonna
- start with just the system and then
- we'll add in the the overall simple knob
- and then we'll get granular later make
- sense oh yeah okay very cool city
- building one then so parcel owner can
- grant any player that's on the allowed
- player list the rights to build that
- makes them ennoble I came up with just a
- series of simple slash commands to use
- to manage that list right now it's the
- stuff you would expect view the list add
- to the list remove from a list I put in
- here that we need a new mode of building
- manipulation which is moving a building
- so right now right I drop a building in
- the parcel and in order to do that I use
- a deed it shows up ghost form that I can
- drag it around and when it as long as it
- turns blue which was broken but that's
- fixed now we think it was in the last
- version remember it was really like it
- would take you two hours to find a spot
- oh yeah okay great
- so okay so I could drop it and I could
- drag it around when I was done I would
- say go here so in order to keep the
- inventory from exploding into this giant
- unbelievable tree we don't let you read
- heed that building if you have vendors
- or containers that have stuff on though
- all right you have to clear all that out
- first so here's the problem is it
- created an unbelievable
- tree-like let's say I put a vendor there
- and the vendor has a list of items Yeti
- stores and in that list of items is a
- building with the vendor with a list of
- items and in that vendor he's got a
- building so it became a giant ridiculous
- problem very quickly it said yes a
- nightmare and so it also became a furry
- infinite container I don't know why
- would I need a bank I just took
- everything on my vendor so we've had to
- go around we've had to fix those
- problems if one of the fixes is any
- containers including vendors and chests
- that are in this thing if you want to
- pick this thing up and read it you have
- to empty those out first your vendor can
- stay there your furniture can stay there
- but you have to empty the containers out
- are we thinking everybody be in some
- sort of UI so once you pick it up it
- gives you an option to say clear out or
- you have to go in there on the
- eventually we can make it cleaner but
- right now if you want to pick up this
- building and read it to move it to
- another world you have to clean it out
- okay you know collectively all the
- furniture you only answer to me now I go
- down there and remove it yep dad you
- update yeah you go up to it it's glued
- is what it's calling right now G
- Toulouse we probably need to fix that
- text at some point to say like you know
- g2 redid this object or whatever okay so
- I've got this object to the Lumix if I
- want to pick it up and read it then I
- have to clear it out but if I'm the
- parcel owner and I let you build a
- building right here and I decided that I
- want Tommy hammering up props I want him
- to build his building right here I need
- you to move your building you're not
- even online right now I can't be stuck
- so I need to be able to move that
- building but now we've got a problem if
- I'm the parcel owner I don't want to
- have to clear out all of the items and
- your containers and your vendors
- especially I know where to just move
- this thing to feet and you told me to
- move ten minutes ago and I just set it
- up and now I got a log off right exactly
- so that's that caused a bunch of
- problems so our way to fix that is we
- need to add a movement mode for
- buildings and assets so that instead of
- actually reading and picking it up I can
- just grab it it'll go back into ghost
- form and I can slide it around without
- picking it up and for that we don't need
- to clear anything out just for nudging
- yeah right it's for nudging if I even
- talked about making the Avatar run up to
- it and using their shake the tree
- animation
- actually just shove the building and
- sliding it over but we as funny as I was
- we thought it'd be to paint what I
- really liked about it this idea which i
- think is gonna be really great is this
- is gonna make actual city building much
- more easy yeah I think it'll be a lot
- easier
- maybe when those kind of tight little
- buildings that kind of connect to each
- other that they're gonna want to make
- yeah I'll get that kind of old city
- feeling all right this is gonna be way
- easy I know it just it just wasn't dealt
- out that I wasn't really workable so
- that's why I put this in phase one even
- though technically they could have
- gotten away with building cities without
- it I think it would have been too such a
- pain towards a variance that it way more
- arduous and unnecessarily kind of and
- this is going to get yeah painful this
- is gonna get closer to what I would be
- doing it you know if I'm creating a
- scene when you build it I mean I'm just
- dragging him around and just you know
- rotating him and get him to look all
- nice and pretty they're gonna if they
- can have that kind of same ability
- that's gonna be fantastic right so how
- hard I guess that's my next question
- they'll say painful no nothing no it's
- gonna take a little bit of time because
- we no longer store the socket
- connections in a tree structure it's
- basically just flat lists nothing you
- said makes any sense Alice oh you need
- to change the way that we stored the
- connections between buildings okay yes
- so that is gonna make it more
- challenging because you have to go
- there's a base it there you're gonna go
- back and make it to where you continue
- to store those you're gonna try and
- rebuild them because this is for other
- things that you've added the building
- right like crafting tables and you know
- you added a flagpole out front and well
- this is the same problem we just hit as
- he was creating the vendor so it's
- attachable attaching to attach pulse
- right that was the issue yeah well
- because so when you sock it to a
- building adds to a list okay or one of
- two lists and there's a list for all the
- attachments that this building is
- attached to some kinds a list of all
- other buildings that this building is
- attached to right the standalone
- buildings like to wall segments shows
- because technically those the difference
- is an attachable can't exist in the
- world unless it's attached to a building
- whereas those connected buildings can
- yeah right X well yeah that's
- and so I guess well part of the question
- is I guess is when you're picking up a
- building how far out do you want to pick
- up like do you want to unlocking it from
- everything except at actuals yes
- attachable should stay connected but
- connected buildings should not just as
- if you have read it air you and dropped
- it from a deed because if you deed it if
- Yuri if you read it you put it back into
- your inventory it keeps the attachment
- race right but it disconnects from other
- connected right but if you had a wall
- segment socket it to another wall
- segment and you did the move on one of
- them it wouldn't no should remove both
- because that would be fairly horrendous
- and really actually hard to manage it
- sounds convenient but if you have a full
- Simonelli around and you're moving one
- piece and it causes like a ripple effect
- you'll never be able to find a way to
- place it especially if that right one of
- the assets in the distance is not even
- loaded
- by which because yeah it could be
- connected to something that on the
- server that is not even on your client
- yeah so if you made the Great Wall of
- China for example yeah so the fact that
- you would only be picking up the
- attached wills and the decorations when
- you move it makes it a little bit
- simpler but we're still going to need to
- rework a little bit how the socket
- connections are stored okay otherwise so
- like the issue that max had brought up
- was with vendors we put an annex on the
- ground and then we had the stall which
- wasn't attachable and we changed that
- yeah then we had the vendor which was an
- attachable and that vendor would attach
- to the stall so it's now an attachable
- attached turn attached right of course
- we never had before
- okay so this was technically a bug in
- the past but we never knew it so when
- you because we've never tried that code
- fat right alright so for example when
- you hover over a building that you've
- placed it highlights right uh-huh so
- that you know you can interact with it
- and so right now what it does is says
- all of my attachable like do my
- highlight then tell all of my tangibles
- to do their highlight which then tells
- all of their attached bulls to do their
- highlight yeah and if you have an
- attachable connected to
- attachable you now have a circle because
- the vendor the vendor is being told to
- highlight and in his attach modes list
- is a stall and so the stall is getting
- told to highlight so the so an
- attachable has a link back to its parent
- as what you're saying
- and any building has a list of what it's
- connected to
- right but it's not just a list of the
- things that are down it also it's a
- two-way connection so I put the building
- I add the stall I put the vendor here's
- my vendor
- now here's building attachable vendor
- right so the vendor says to the stall
- hey you're connected to me so you need
- to highlight so these guys are stuck in
- a traffic you just go down the chain
- till this thing tells its children and
- this thing tells its children and it's
- done right right okay so I get that so
- there's some work there okay so in terms
- of base what we just said though they
- don't have to have the move building
- they can get around it it's just really
- really obnoxious so what I would do is
- I'll reorder this list it's still going
- to be part of phase one I don't want to
- go out without it but to get us up and
- running more quickly I would suggest we
- do the basileus management stuff first
- because then we can actually get in and
- start to test that and see are there
- other issues like I decide I want to
- move this building but I don't know that
- John who's a noble and this is his but
- I'm the world owner or the parcel owner
- he's he's a he's a building owner let's
- say if I'm in the middle of moving his
- building and he logs in and now he's
- trying to move it
- there could be locking issues right so
- I'd sent a note about this one not just
- to you but to Steven as well asking like
- do we need to lock that asset so that if
- he tries to use it it says sorry Todd's
- already moving it yeah whatever so
- there'll be some weird oddities like
- that they come out but I guess that
- won't come up we add the moving anyway
- so anyhow would we do that
- the it's so the thing is the movement as
- far as I know so tell me if I'm wrong
- but the movement of a building is not
- actually happening on the server on the
- client I'm saying hey I want to move
- this building and the clients like okay
- tell me where you want it and when
- you're done figuring out what
- put it I'll let the server know you
- moved it so that means that I'm in ghost
- mode let's say and I'm dragging this
- thing around server doesn't care the
- server doesn't know that I'm even doing
- that until I submit it so if in the
- meantime I start that process you walk
- up and grab that building and now you
- move it around and then you say actually
- put it here what the hell happens is it
- gonna in tell me yeah I'm just kam care
- does it gonna send a message to me it's
- saying well it's certainly gonna send a
- message to me saying this building's
- been moved so when I get that message we
- could do one of two things we could
- cancel my movement and say hey I'm
- aborting you just so you know because
- John moved this building out from under
- you
- or it could get it and say yeah John
- moved it whatever doesn't matter I'm in
- the middle of moving it and when I
- finally decide where to put it it'll
- send my message up and the server will
- then pop it and you'll just see it it's
- a teleport
- yeah Brian just so I don't know which of
- those I prefer I just as long as one as
- long as whichever fund we go it doesn't
- break things I don't really care like
- what we don't want is the two clients
- are out of sync now or the or the
- building gets duped god forbid or
- anything like that like that sori blows
- away the vendors like we just wanted to
- not be buggy otherwise I don't really
- care which of those to be honest so
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement