Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: EK.IceFlake on Jul 06, 2018, 10:09 PM

Title: VCMP SDK in YAML format
Post by: EK.IceFlake on Jul 06, 2018, 10:09 PM
This is the VCMP SDK in yaml format made so that you can parse it easily in order to generate bindings to it.

https://pastebin.com/Z350QSYp

Some names might be changed, but the order remains the same so they should still work.

-- Update: Removed redundant const ... notation.
-- Update: Made return types easier to parse.
-- Update: Standardize enumerator formats.
-- Update: Make constant-size lists easier to parse.
-- Update: Make dynamic-size lists easier to parse.
-- Update: Made strings easier to parse. Fixed length of string in struct PluginInfo.
-- Update: Made format strings easier to parse. Made PluginFuncs and PluginCalls separate from Structs.
Title: Re: VCMP SDK in YAML format
Post by: vitogta on Jul 07, 2018, 02:41 AM
QuoteVcmpPlayerState:
    -   vcmpPlayerStateNone: 0
    -   vcmpPlayerStateNormal: 1
    -   vcmpPlayerStateAim: 2
    -   vcmpPlayerStateDriver: 3
    -   vcmpPlayerStatePassenger: 4
    -   vcmpPlayerStateEnterDriver: 5
    -   vcmpPlayerStateEnterPassenger: 6
    -   vcmpPlayerStateExit: 7
    -   vcmpPlayerStateUnspawned: 8
is it someone know such list for player.Action?
Title: Re: VCMP SDK in YAML format
Post by: NicusorN5 on Jul 07, 2018, 06:50 AM
#   Copyright © 2018  FlekaNo shit. You just modified the SDK. You don't deserve any copyright stuff.
Title: Re: VCMP SDK in YAML format
Post by: EK.IceFlake on Jul 07, 2018, 07:28 AM
Quote from: Athanatos on Jul 07, 2018, 06:50 AM#   Copyright © 2018  FlekaNo shit. You just modified the SDK. You don't deserve any copyright stuff.

?

When you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.

It's the MIT license anyways, which means you can do whatever you want with it.
Title: Re: VCMP SDK in YAML format
Post by: Stormeus on Jul 07, 2018, 05:25 PM
Quote from: EK.IceFlake on Jul 07, 2018, 07:28 AMWhen you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.

That's not really how copyright works, but it doesn't really matter since this is compatible with the Apache License we use for the SDK anyway.
Title: Re: VCMP SDK in YAML format
Post by: EK.IceFlake on Jul 07, 2018, 08:06 PM
Quote from: Stormeus on Jul 07, 2018, 05:25 PM
Quote from: EK.IceFlake on Jul 07, 2018, 07:28 AMWhen you modify something, you gain copyright over what you've created. It also inherits the original copyright which is why there's the apache license notice included in the original header file.

That's not really how copyright works, but it doesn't really matter since this is compatible with the Apache License we use for the SDK anyway.

If you extend some GPL'd software with your own code, your code is under your copyright. You can even put it under a proprietary license. However, you aren't allowed to link them together in that case, since they're incompatible. But like you said, in this case, the MIT license is compatible with the Apache license. So, in this case, it's perfectly alright for this code to have both licenses + copyright notices.