Free pass to enclaves

Oct 10, 2017
124
4
18
#5
* Fixed:

Oh man. I'm a fully idiot. I got a problem while the initial server build and i didn't notice. The build was OK but, by some reason, it didn't build correctly, instead of the "success" message.

I was looking for CRCs issues, Strange Commands, and other shit and the true problem was the build. And it was simply removing
>>containerComponent = "EnclaveContainerComponent",<< from:

https://github.com/TheAnswer/Core3/...ripts/object/building/yavin/light_enclave.lua
https://github.com/TheAnswer/Core3/...ripts/object/building/yavin/dark_enclave.lua


once the server build is correct. I needed to back to an older snapshot to avoid that invisible bug on build.

You can add a new building using those same templates and you won't get the "permission" message.

Fully silly. Now, my new "senate.iff" building Lua is working like a common building while "light_enclave.iff" has the walk denied. It was really strange when my new lua hadn't any Component active in the file...

PS: Damn bugs.
Thank you, Timbad.
 
Likes: Timbab

Timbab

Administrator
Staff member
Administrator
Oct 6, 2010
999
5
18
27
Magna Germania
#6
Awesome to hear! Nice work. I know the pains of when you have it correct but messed up elsewhere, making you think what you did was actually wrong, which leads to questioning existence and the universe, because nothing makes sense anymore, haha.

Happy you managed to work it out in the end though. I sadly can't be of more help in general when it comes to Core3, as I'm purely a client guy.

P.S. It's Timbab, not Timbad. :p
 
Likes: Aeryna

Valkyra

Super Cool Person
Staff member
Moderator
Aug 31, 2010
166
4
18
Murica
#9
If you want a more 'thorough' answer to your question, check this:

https://github.com/TheAnswer/Core3/.../components/EnclaveContainerComponent.cpp#L71

Change:
Code:
return false;
To:
Code:
return true;
Also, you can remove line 69, either by commenting (//) or just erasing the line, so that the system message doesn't display.

Basically, from what I can see it's a container component that just checks the buildingobject permission, returning true at the end will just make it always allow. But, I don't know if there will be a cell issue.

This is all assuming you even want the EnclaveContainerComponent set on your enclave building in Lua, if you want the other features it provides.
 
Likes: Timbab