Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - mctwist

Pages: 1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 70
256
Add-Ons / Re: New Duplicator 1.6.1 | One Year Already!
« on: November 24, 2016, 02:51:15 PM »
Because other mods are not supposed to initialize these bricks like they do for manually placing one.
I don't want anything adding door events, setting the item for a bot spawn, zones disabling rendering, etc.

Calling onLoadPlant means that this brick will get all properties set from whatever "loaded" it, and should not be modified like that.

I may have misunderstood what that function is all about. I thought it was used when you load a save, and only when you're doing so. Not when you plant the brick. Would you know an alternative for loaded bricks?

Not sure what this means.
Player A plants a plate and events it so Player B have the ownership of the apartment on it. Player B may then place and edit bricks on that Player A's plate. Player C have trust with Player B and can therefore plant his bricks on Player A's plate. This works alright while planting normally.

When loading a save, each brick have its onLoadPlant called and when a brick finds out that it's loaded on top of Player A's plate which contains the event set for apartment owner Player B, it will therefore set all bricks right above the plate to Player B. The rest of the bricks will automatically be set to Player B due to how the loading system works.

However, when using the New Duplicator, it should work so you can duplicate and place them right on Player A's plate and then set them to the player planting the brick. In this case, as you call onLoadPlant, if Player C plant his brick on Player A's plate, the ownership of the bottom brick planted will go to Player B and not Player C as it should.

As mentioned above, would you know a better way to handle this?

257
Add-Ons / Re: New Duplicator 1.6.1 | One Year Already!
« on: November 24, 2016, 01:24:18 PM »
An once again I found an issue with your add-on with my Apartment add-on. In this case it's about planting. I saw in your classes/server/selection.cs on line 2536-2550 you're forcing the onLoadPlant. I don't see the reason for why you would do that.

The bug that therefore comes up is that my add-on will then check for apartment and set the owner on the brick that owns the apartment as that should only be done when you load a save.

I don't really know how I would be able to work around this without hacking your code as you hack the load system.

258
Add-Ons / Re: Change Ownership - Give your bricks to someone else
« on: November 24, 2016, 06:19:36 AM »
Code: (Changelog) [Select]
Added "Force Create Brick Group" preference.
Added so you can use player name when using /chown.

This might be the last update if all bugs are removed and no new feature is coming up.

259
Add-Ons / Re: New Duplicator 1.6.0 | Supercut Released
« on: November 24, 2016, 05:24:27 AM »
From here: https://forum.blockland.us/index.php?topic=303122.0

Just took quite a while to actually do something about it, had it half finished for like a month...
Huh... Wonder why I missed this... Good thing that you managed to to put it in without breaking everything.

260
Add-Ons / Re: New Duplicator 1.6.0 | Supercut Released
« on: November 24, 2016, 01:37:32 AM »
•  Added support for Event_Apartment by mctwist
I haven't gotten around testing my fix yet as I require at least one more cooperative player on my server.

•  Added option to plant bricks in a different brick group
I'm just guessing who you got this idea from. I actually thought of letting you know, but then again I thought that kind of functionality didn't need to exist in this add-on. This was a nice approach. (And I'm stealing rightfully copying parts of your functionality as I even planned that functionality anyway.)

261
It's cool but we don't want anyone to become too reliant on it. Back up your stuff people, we don't want another bjway_bandit incident.
That's why I want some sort of collaboration. The add-on creators can connect several services and the add-on will be available on all of them automagically. This will prevent one service to hog all add-ons, but also to avoid add-ons getting lost if the service suddenly goes offline. An additional feature is that you can redirect users to other services to avoid one service to be overloaded.

262
Add-Ons / Re: Change Ownership - Give your bricks to someone else
« on: November 23, 2016, 09:31:37 AM »
Well, I put the setName in there myself. It works so I wont fix that little issue.



Code: (Changelog) [Select]
Added better compatibility toward brick names.
Variety of optimizations.

263
Add-Ons / Re: Change Ownership - Give your bricks to someone else
« on: November 23, 2016, 09:13:32 AM »
They are handled in a similar way. A list of the bricks and a count for how many. The only difference is that they are updated on a schedule(Noted this when the list was not updated one second and the other it was updated) and they reset each entry with a "-1" instead of just removing it. I added the changes you mentioned(I was required to set empty name for the functions to work properly) and also optimized the spawn bricks in a similar manner. There's no index list, but it doesn't need to iterate through the whole list on best case scenarios now(Also, it's rare to have too many spawn bricks anyway).

264
Add-Ons / Re: Change Ownership - Give your bricks to someone else
« on: November 23, 2016, 08:50:44 AM »
You learn new things every day. I'll implement it asap.

Quite a silly question, but what would you recommend how to implement those functions in my add-on and still maintain a compatibility for other mods? Just blatantly copy it into my add-on seems bad, but I don't know an another option but to look out for your New Duplicator.

Edit: Why don't we make a similar function for spawn bricks? Does New Duplicator implement such a functionality as well, or is that already implemented automatically?

265
This sounds a lot like what Blockland Repository aims to do. Make things automatic in such a way that it will ease the usage for the user.

I'm still working on Blockland Repository, but due to personal matters I haven't been able to work on it for a month. I do have an Alpha up and running, containing registration, upload and download. There's more to it in the background, but I rather not go through it in detail. Due to the cross-reference of forums rule, I cannot post a link, but instead I'll just hint that there's a forum that contains a better detailed log of how's the development is coming along.

I would be happy to have more people on the project. I aim to work along with Blockland Glass someday as we both wants to do this for the community.

It's sad, however, that most mods or projects for Blockland is made by mostly only one person. I'd like to change that by inviting more people to work toward common goals of what we're aiming at. For instance, some people want to upload their save to a site and that site will recognize all bricks, events and colorset in it and then give a list of what add-ons are required to get best result. This is quite easy to accomplish.

I've also done some work on potentially parsing through the add-ons board and automatically indexing all available download links, along with screenshots and descriptions. I feel like that would have a similar focus that would also cover the market for an add-on archive, but at the moment I don't have time to pursue that; maybe after the semester ends.
I had that idea just weeks ago. I haven't come around doing it due to lack of time, but I'd love make or use it as that would make it so much easier to find add-ons that are long lost and forgotten(I just the other day looked at the oldest add-ons at the last pages. Not impressed, but there might be other add-ons that are good to have.).

266
Add-Ons / Re: Change Ownership - Give your bricks to someone else
« on: November 23, 2016, 07:37:16 AM »
Code: (Changelog) [Select]
Fixed the tool not working at all.
Added handling for named bricks and spawnbricks.

267
Add-Ons / Re: Change Ownership - Give your bricks to someone else
« on: November 23, 2016, 01:11:44 AM »
Does it convert spawnbrick[...]
That depends on how spawnbricks are used. I haven't looked into them that much, so I'm not sure.

If, for instance, the mod is like CityRP(G), then it'll probably keep their spawns in a separate list. For this situation I wont know about this list and have therefore no way from preventing this from happening.

The only way to prevent this from happening is if I'm adding a function which each mod that relies on this functionality will implement it as well so every mod will know about the change of the owner. That is, I need collaboration from all add-ons that rely on this functionality. This should be quite a few, really.


Well, they are not added. I'll make an update for that.

[...]and name variables over too?
I actually forgot about those. This is embarrassing. I'll hand out an update later today.

268
Add-Ons / Re: Change Ownership
« on: November 18, 2016, 03:32:11 PM »
What is the trust situation of player B is a Super Admin?
Like I mentioned in the post, this mod is like chown. For normal users, only you can use it on your content. But for the SA(sudo user), you can change anything.

269
Add-Ons / Re: Change Ownership
« on: November 18, 2016, 03:27:18 PM »
Ooh interesting, I didn't think of that. Say player B wants to transfer bricks from player A to player C.
  • Obviously A and C need to trust each other to transfer bricks between the two.
  • A and B need to trust each other so B can hit A's bricks with the wand.
  • Does B need to trust C?
It is an interesting question, but sadly I got a boring answer.

Only the one owning the bricks can give the bricks away. You cannot "steal" bricks from someone else. So it's a one-way transfer, but the one receiving it can transfer it back. I may rephrase that in the post.

270
Add-Ons / Change Ownership - Give your bricks to someone else
« on: November 18, 2016, 03:13:18 PM »
Change Ownership
Can't wait for Christmas? Want to give a gift to a friend? Then build something and give the bricks to him so he can claim it as his. And then he destroys it.

This tool will make it easy to give your bricks to an another player. Just use the tool on a structure you own, then use it on the player you're giving it to. This can also be done the other way around. If the person is not around, you may even use the built in command to give the build to them manually. Keep in mind that you require at least Build trust between yourself and the one you're giving it to and you need to own the bricks you're giving.

If you're a Super Admin, then you can easily take over other builds, giving it to someone else or why not gift it to the host of the server.

If you know what the chown command in the unix system is and what it does, this does exactly that, hence the name on the tool.

Command
Code: [Select]
/chown [bl_id/name]Skipping the argument results in getting the tool. With already the tool in your hand, you'll be presented with a quick help.

Credits
McTwist - Creator
Demian - Tester

Download (aposoc.net)

GitHub

Pages: 1 ... 13 14 15 16 17 [18] 19 20 21 22 23 ... 70