Sinister Government Agency mdk_813 [award]

For award for special buildings

Moderators: KoalaGuy, Showcase Moderators

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 841
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Re: Sinister Government Agency mdk_813 [award]

Post by mdk_813 » Sun Nov 05, 2017 1:02

mdk_813 wrote:
Sun Nov 05, 2017 0:32
KoalaGuy wrote:
Sun Nov 05, 2017 0:29
Sorry, it's "once": true
No, doesn't work for me.
By the way, what exactly is the difference between "once" and "override"?
Does "override" not work for more than two IDs, or why is "once" necessary?
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 5527
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Sinister Government Agency mdk_813 [award]

Post by CommanderABab » Sun Nov 05, 2017 1:56

The tag

Code: Select all

"once:true"
allows you to define the same id in multiple places, but only the first one encountered is used. The tag

Code: Select all

"override:true"
would do the same thing, but only the last one encountered is used.


But, don't quote me. :)
468468Currently using closed alpha 468. 468 What's new? :)
Garbage!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Lobby
Developer
Reactions:
Posts: 2911
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Sinister Government Agency mdk_813 [award]

Post by Lobby » Sun Nov 05, 2017 12:00

@CommanderABab you got it. There are some more fine details to it, though:
1. If you use "override":true but there's not a definition that uses the same id yet, you will get an error (not in the current version, but that's apparently a bug).
2. If you override a plugin that has been referenced to before by other plugins (e.g. an animation that's used by buildings) you might end up with both versions in the game. Which version a building uses depends then on whether the animation has been overridden yet at loading time.

Code: Select all

"once":true
will just omit any further definition of the plugin, so it's better for loading time, texture space and it ensures that all plugins that use it get the same version of it. Memory footprint of embedded plugins shouldn't be an issue. I assume that most users, especially on mobile devices, prefer to download a slightly bigger file than to download multiple files.
...Have a nice stay

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 841
Joined: Fri Dec 16, 2016 2:38
Location: Germany
Plugins: Show

Re: Sinister Government Agency mdk_813 [award]

Post by mdk_813 » Sun Nov 05, 2017 14:39

Thanks guys :thumbsup:
My Plugins: Link

PLEASE NOTE: My plugins are not open source! So, ask me first before altering and republishing any of my plugins!

Post Reply

Return to “Award and Special”

Who is online

Users browsing this forum: No registered users and 2 guests