Author Topic: Multiplayer SEXP packet build  (Read 3307 times)

0 Members and 1 Guest are viewing this topic.

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Multiplayer SEXP packet build
Okay, here's a preliminary version of the changes I discussed in this thread. Basically these changes should make it a lot easier for any coder to include multiplayer compatibility for new SEXPs. So far I've fixed the following SEXPs to work in multiplayer.

change-soundtrack
set-persona
change-subsystem-name
change-ship-class
play-sound-from-table
play-sound-from-file
close-sound-from-file
ship-targetable-as-bomb
ship-untargetable-as-bomb
ship-invisible
ship-visible
ship-stealthy
ship-unstealthy
friendly-stealth-invisible
friendly-stealth-visible
lock-afterburner
unlock-afterburner
lock-primary-weapon
unlock-primary-weapon
lock-secondary-weapon
unlock-secondary-weapon
set-afterburner-energy
set-weapon-energy
set-shield-energy

I've also fixed set-respawns in preparation for adding a visible respawns-left counter to the HUD (The SEXP itself works just fine since the number of respawns the client thinks it has left affect nothing). But I haven't tested the change since I don't have the counter yet.

I'll probably take a look at change-ship-class next as that one screwed me over a few years back and I want to see it working.

As you may have guessed this build isn't compatible with RC2 (or any other build for that matter) and hosts running this build will crash clients that aren't.

*Other Features*
---------------

  • Advanced Team Loadout Functions
  • Ability to play cutscenes before Fiction, Command Brief, Brief, Game Start and Debrief.
  • Ability to chat to team mates only in TvT games briefings using /f:
  • Various new SEXPs

EDIT : Build upgraded.

EDIT : Upgraded again. Added the set-afterburner-energy, set-weapon-energy and set-shield-energy SEXPs.
« Last Edit: April 23, 2009, 01:52:08 pm by karajorma »
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Multiplayer SEXP packet build
Would this be including FS/SoL SEXPs?
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Multiplayer SEXP packet build
SoL SEXPs?

As for the Fringespace SEXPs I promised, they're written but currently untested (and in a different branch from this build). I will however have a working build with both the SEXPs you asked for and this feature (which is needed to make them work in multiplayer) probably by tomorrow. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Multiplayer SEXP packet build
Standalone up and running for testing.  Password is:  sexp
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Multiplayer SEXP packet build
By SoL I meant that they were much interested in the same SEXPs you were making for FS.
So both mods actually were getting something out of it.

If I can get some people together I'll see if we can test our specific SEXPs for you.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Multiplayer SEXP packet build
Ah yes. I remember now.

Getting the SEXPs tested is useful but I always like to do some basic testing myself first to make sure I haven't made any stupid mistakes. :)
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Multiplayer SEXP packet build
Yeah agreed.

Oru issue is that most of the mod staff is now unemployed, or we're between things.
So I've got to get a couple people together to finish some stuff so we can test these powerups
SEXPs.

Either way I'll probably PM you with the results.
« Last Edit: April 13, 2009, 05:35:57 pm by JGZinv »
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Multiplayer SEXP packet build
Hmmm. Can't have unemployed modders around! :p

Build updated. Now includes set afterburner, weapon energy and shield SEXPs. All three should work in multiplayer. If you want a diff just ask. I'm probably going to commit this stuff to my branch by the end of the week though.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Multiplayer SEXP packet build
Yeah do whatever you need to... really I hope to see this stuff in a new RC build anyway.
Not sure if I can assemble folks in that amount of time anyway. We're steady people, just super slow.

Thanks for the work.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Multiplayer SEXP packet build
This stuff won't be in 3.6.10, it's far too poorly tested for that. The problem is that there are two possible major sources of problems. First there could be bugs in the packet system itself. It's reasonably complex and it's all completely new. Some parts are completely untested.

Secondly there is a very good chance of bugs in the implementation of the client side SEXPs themselves.

All in all this is not something I'd want to see in 3.6.10 because I know that there are bound to be at least a couple of big bugs I haven't caught yet.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline JGZinv

  • 211
  • The Last Dual! Guardian
    • The FringeSpace Conversion Mod
Re: Multiplayer SEXP packet build
We'll let's hope for the best. I'd hate to have our entire mod based off this one build until
3.6.11 comes about... whenever that may be.
True power comes not from strength, but from the soul and imagination.
Max to PCS2 to FS2 SCP Guide
The FringeSpace Conversion Mod

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Multiplayer SEXP packet build
The idea for 3.6.11 is to merge in as much as we can from the various branches that coders have been using and then release. With luck that should mean that 3.6.11 isn't much further off than 3.6.10.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]

 

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Multiplayer SEXP packet build
Updated the build, code is committed (It's been committed for about a week actually).
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]