artemis-nerds / protocol-docs

Unofficial documentation for the Artemis network and file protocols, written by the Artemis community
https://artemis-nerds.github.io/protocol-docs/
MIT License
8 stars 5 forks source link

research question probably about GameStartPacket #143

Open StarryWisdom opened 6 years ago

StarryWisdom commented 6 years ago

following odd behavior happens and probably wants explaining start border war (acts as normal, blue band in middle) start gm mission (blue band still in middle of screen)

different option start border war start siege (no blue border) start gm mission (blue band still in middle)

this might be the server sending the wrong data or relying on cached information, logically the blue band is controlled via the GameStartPacket which implies its the first place to look

StarryWisdom commented 6 years ago

it seems the stock server will say the mission type is whatever is selected on the standard mission screen when starting a gm mission - sending a GameStartPacket with type=border war will display the blue bar that border war has, sending a GameStartPacket with a different value will remove it

presumably "the field is present but its value is undefined for PvP and scripted games." wants some nice words to say scripted games in the stock server use the value set in the co-op/single player screens (unsure about pvp) and somewhere either there or in game type a comment about border wars having the blue border

NoseyNick commented 6 years ago

Related question: In Border War games, what packet signifies "Border is down"? Is it just commText(1,UTF16("TSNCOM"),UTF16("ALERT! War has been declared! [...]")); ... or is there some other sort of "drop the border!" packet, or changes to ObjNPCShips to say "right! Now we attack!"?

rjwut commented 6 years ago

Other than the COMM message and the fact that the enemy starts attacking, is there any indication in the client that it has happened? I don't think the server really needs to tell the client that it's down; I believe it's all handled server-side.

StarryWisdom commented 6 years ago

(would need to check) ObjNPC's are spawned at the start of war - I am guessing all the preexisting NPC ships dont attack pre that - I'm guessing the orignally spawned brainstacks keep them near bases (thus there isnt any signal)

NoseyNick commented 6 years ago

Certainly COULD all be server-side. 'K.