Dedicated Server API Client Communication

Discuss the Dedicated Server Tools developed by Nadeo Live such as ManiaLive, Trust Circles, Dedicated Manager, Competition Manager and Lobbies

Moderator: NADEO

Post Reply
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Dedicated Server API Client Communication

Post by The_Big_Boo »

I'm actually kind of "refreshing" the Connection class so I'll include the new methods obviously ^^

Btw, by refreshing, I mean mainly updating methods documentation but sometimes logic too. So as I already said to reaby, there'll be some tiny differences which may cause issues but I'm trying to not break too many things.

And to avoid saying all this in a commit comment, here's a quick overview of what you can expect:
  • setCallVoteRatios and getCallVoteRatios are now calling the *Ex version (as callVote were already doing)
    • setCallVoteRatios now has a $replaceAll parameter which default to true (to get the non-*Ex behaviour), which means $multicall is shifted to the right
    • both are now using/returning VoteRatio objects
  • chatSend now regroups all chatSend* methods (except *ToId) and adapts the dedicated method to call depending on the parameters
    • the $message parameter can now be a dictionary as in the *ToLanguage variants
    • a new $isServerMessage parameter has been added to use the ChatSendServerMessage* variants, which means $multicall is shifted to the right
  • chatForwardToLogin is renamed to chatForward (for constancy with other methods which never have the *ToLogin suffix)
  • tunnelSendData and writeFile are renamed to tunnelSendDataFromFile and writeFileFromFile while tunnelSendDataFromString and writeFileFromString are renamed to tunnelSendData and writeFile
    • it's more logical compared to the dedicated methods but it clearly breaks things if you were using them
  • I'm globally trying to return objects more often instead of associative arrays
    • it may break things but it enables autocompletion so I think it's a necessary evil
  • Player class is now exploded to avoid big objects with lots of null attributes
That's all I can think of right now, I'm still working on it and running lots of tests to check that I didn't introduce any bug (but with around 200 methods, it's not an easy task...)
Last edited by The_Big_Boo on 03 May 2014, 19:57, edited 1 time in total.
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: Dedicated Server API Client Communication

Post by oliverde8 »

thanks a lot for the work you are doing I am sure it will be great :D. :thumbsup:
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Dedicated Server API Client Communication

Post by The_Big_Boo »

The "refreshing" is now pushed. Be careful with it, as it may contains bugs though I spent a lot more time testing it than really writing code ^^ As said, there some tiny changes which will give you a few issues. I fixed them on both ManiaControl and eXpansion while testing but I was working on untracked clones... Maybe I'll try to provide you patches but you won't have a lot of fixes to do anyway.

For eXpansion, you might be interested by this branch of manialive-lib, which handles changes in the dedicated-api.
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: Dedicated Server API Client Communication

Post by oliverde8 »

Thanks a lot, we are taking a bit of a brake this weekend with reaby but we will try testing your changes as soon as we charged our batteries a bit.

great job :yes: and more thanks :D
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Dedicated Server API Client Communication

Post by The_Big_Boo »

Patch for eXpansion sent, I'm attacking the ManiaControl one ;)

@kremsy: at first it would be nice to know more about when these interrupts happen, then we might be able to find a solution ^^ It's always the problem of "random" bugs: you can hardly fix them without a repro :(
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
oliverde8
Posts: 1286
Joined: 16 Jun 2010, 07:33
Location: in a Blue Box

Re: Dedicated Server API Client Communication

Post by oliverde8 »

The_Big_Boo wrote:Patch for eXpansion sent, I'm attacking the ManiaControl one ;)
Thanks so much, wasn't that our job normally? :D
Image
Developper for The next generation, Clean and Powerfull controller eXpansion for your SM & TM server . Working on eXpansion² with full MP4 support and many other awesome features...
The_Big_Boo
Posts: 1026
Joined: 15 Jun 2010, 15:46

Re: Dedicated Server API Client Communication

Post by The_Big_Boo »

I had to do it for testing so why should you do the same job again? :P And as I know the changes I made, it's easier for me to find possible issues. ^^
OS: Win 7 Pro x64
RAM: 2x4GB Corsair @ 1600MHz
CPU: Intel i5 760 @ 3.6GHz
Mobo: Asus P7P55D-E
GPU: NVidia GTX 760 2GB
HDD: WD Black 1TB
Sound: VIA VT1828S (onboard)
Peripherals: Razer DeathAdder - Razer DeathStalker - Logitech F310
Post Reply

Return to “Dedicated Server Tools”

Who is online

Users browsing this forum: No registered users and 1 guest